spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
[gnulib.git] / ChangeLog
blobb3f62960fa6592f2b08c71af6fece4d05c07bbe1
1 2020-12-13  Bruno Haible  <bruno@clisp.org>
3         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
4         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
5         the stdin_handle and/or stdout_handle.
7 2020-12-12  Bruno Haible  <bruno@clisp.org>
9         Fix gnulib-tool error when some modules occur in tests/.
10         * doc/gnulib.texi (Specification): Update statistics.
11         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
12         (Using AC_LIBOBJ): New section.
13         * check-AC_LIBOBJ: New file.
14         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
15         * modules/fopen-gnu (Files): Add lib/fopen.c.
16         * modules/memmem (Files): Add lib/memmem.c.
17         * modules/renameat (Files): Add lib/at-func2.c.
18         * modules/strcasestr (Files): Add lib/strcasestr.c.
19         * modules/strstr (Files): Add lib/strstr.c.
21 2020-12-11  Bruno Haible  <bruno@clisp.org>
23         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
24         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
25         elements of argv.
26         * lib/sh-quote.c (shell_quote_argv): Likewise.
27         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
28         the return type.
29         * lib/windows-spawn.c (prepare_spawn): Likewise.
30         * lib/os2-spawn.h (prepare_spawn): Likewise.
31         * lib/os2-spawn.c (prepare_spawn): Likewise.
32         * lib/execute.h (execute): Does not need write access to the elements of
33         prog_argv.
34         * lib/execute.c (execute): Likewise.
35         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
36         Likewise.
37         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
38         create_pipe_out): Likewise.
39         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
40         Likewise.
41         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
42         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
43         * lib/javaexec.h (execute_fn): Does not need write access to the
44         elements of prog_argv.
45         * lib/javaexec.c (execute_java_class): Update variable types and remove
46         casts to 'char *'.
47         * lib/csharpexec.h (execute_fn): Does not need write access to the
48         elements of prog_argv.
49         * lib/csharpexec.c (execute_csharp_using_mono,
50         execute_csharp_using_sscli): Update variable types and remove casts to
51         'char *'.
52         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55         is_jikes_present): Update variable types and remove casts to 'char *'.
56         * lib/javaversion.c (execute_and_read_line): Does not need write access
57         to the elements of prog_argv.
58         * lib/csharpcomp.c (compile_csharp_using_mono,
59         compile_csharp_using_sscli): Update variable types and remove casts to
60         'char *'.
61         * tests/test-sh-quote.c (main): Update variable types and remove casts
62         to 'char *'.
63         * tests/test-execute-main.c (main): Update variable types and remove
64         casts to 'char *'.
65         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
66         remove casts to 'char *'.
67         * NEWS: Mention the changes.
69 2020-12-11  Bruno Haible  <bruno@clisp.org>
71         execute-tests: Fix compilation error with MSVC.
72         * tests/test-execute-child.c (is_device): With _fstat, use
73         'struct _stat', not 'struct stat'.
75 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
77         vararrays: just use 2.70
78         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
79         and later, since Autoconf 2.70 matches Gnulib now.
81         sys_types: just use 2.70
82         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
83         Reindent to match Autoconf sources.
84         Use Autoconf 2.70 as a prerequisite, not 2.69c.
86         stdint: port to Autoconf 2.70
87         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
88         instead of assuming that AC_INCLUDES_DEFAULT does it.
89         The old code relied on AC_INCLUDES_DEFAULT being called
90         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
91         but this does not occur in Autoconf 2.70.
93         pid_t.m4: just use 2.70
94         * m4/pid_t.m4 (AC_TYPE_PID_T):
95         Use Autoconf 2.70 as a prerequisite, not 2.69c.
97         largefile: just use 2.70
98         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
99         Use Autoconf 2.70 as a prerequisite, not 2.69c.
101         AC_C_RESTRICT: update from Autoconf
102         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
103         as a prerequisite, not 2.69c, since 2.70 is now out.
104         (AC_C_RESTRICT): Define only for 2.70 or earlier.
105         Try __restrict__ before __restrict.
107         extensions: update from Autoconf
108         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
109         Provide a default implementation for Autoconf 2.69 or earlier.
110         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
111         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
113         alloca: update from Autoconf
114         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
115         Trivial update to match Autoconf 2.70.
117 2020-12-11  Bruno Haible  <bruno@clisp.org>
119         memchr: Work around memory overrun bug on AIX 7.2.
120         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
121         * doc/posix-functions/memchr.texi: Mention the AIX bug.
123 2020-12-11  Bruno Haible  <bruno@clisp.org>
125         execute-tests: Fix compilation error on AIX in 32-bit mode.
126         * tests/test-execute-child.c: In order to get the original definition of
127         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
128         include the system's <sys/stat.h> and use it before including other
129         header files.
131 2020-12-10  Bruno Haible  <bruno@clisp.org>
133         windows-spawn: Relicense under LGPLv2+.
134         * modules/windows-spawn (License): Change to LGPLv2+.
136 2020-12-10  Bruno Haible  <bruno@clisp.org>
138         execute, spawn-pipe: Fix memory leak on native Windows.
139         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
140         * lib/windows-spawn.c: Don't include xalloc.h.
141         (quoted_arg_length, quoted_arg_string): New functions, extracted from
142         prepare_spawn.
143         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
144         elements of *new_argv together.
145         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
146         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
147         * lib/os2-spawn.c: Don't include xalloc.h.
148         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
149         elements of *new_argv together.
150         * lib/execute.c: Include xalloc.h.
151         (execute): Check return value of prepare_spawn. Free the memory
152         allocated by prepare_spawn.
153         * modules/execute (Depends-on): Add xalloc-die.
154         * lib/spawn-pipe.c: Include xalloc.h.
155         (create_pipe): Check return value of prepare_spawn. Free the memory
156         allocated by prepare_spawn.
157         * modules/spawn-pipe (Depends-on): Add xalloc-die.
159 2020-12-10  Bruno Haible  <bruno@clisp.org>
161         findprog-in: Relicense under LGPLv2+.
162         Paul Smith's approval is in
163         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
164         * modules/findprog-in (License): Change to LGPLv2+.
166 2020-12-10  Bruno Haible  <bruno@clisp.org>
168         findprog-in: Don't exit upon out-of-memory.
169         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
170         code.
171         * lib/findprog-in.c: Don't include xalloc.h.
172         (find_in_given_path): Call concatenated_filename, not
173         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
174         return NULL with errno set.
175         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
176         concat-filename, strdup-posix, malloc-posix.
178 2020-12-09  Bruno Haible  <bruno@clisp.org>
180         fmaf: Work around a bug on FreeBSD 12.2/arm.
181         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
182         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
184 2020-12-09  Bruno Haible  <bruno@clisp.org>
186         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
187         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
188         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
189         * lib/glthread/threadlib.c: Include <errno.h>.
190         (glthread_in_use): For FreeBSD, provide an alternative implementation
191         that uses pthread_key_create.
193 2020-12-09  Bruno Haible  <bruno@clisp.org>
195         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
196         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
197         not 'isnan'.
199 2020-12-08  Bruno Haible  <bruno@clisp.org>
201         std-gnu11: Make compatible with Autoconf 2.70.
202         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
203         use.
205 2020-12-08  Bruno Haible  <bruno@clisp.org>
207         argp: Avoid undefined behaviour when invoking qsort().
208         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
209         Reported by Jeffrey Walton <noloader@gmail.com> in
210         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
211         * lib/argp-help.c (group_cmp): Remove third argument.
212         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
213         upon hol_cluster_cmp.
214         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
215         (hol_entry_cmp): Rewritten to implement a total order.
217 2020-12-08  Bruno Haible  <bruno@clisp.org>
219         argp: Improve comments.
220         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
221         null pointer.
222         (struct hol_entry): Fix comment regarding sort order of group.
223         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
224         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
225         (hol_cluster_is_child, argp_hol): Move functions.
226         (HOL_ENTRY_PTRCMP): Remove unused macro.
228 2020-12-08  Bruno Haible  <bruno@clisp.org>
230         argp: Don't pass invalid arguments to isspace() and isalnum().
231         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
232         before passing it to isspace() or isalnum().
234 2020-12-08  Bruno Haible  <bruno@clisp.org>
236         argp: Don't rely on undefined behaviour of _tolower().
237         Patch by Eric Blake
238         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
239         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
240         not upper-case.  Pass correct range to tolower.
242 2020-12-07  Bruno Haible  <bruno@clisp.org>
244         unicodeio: Fix wrong result on FreeBSD.
245         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
246         characters on all platforms.
248 2020-12-07  Bruno Haible  <bruno@clisp.org>
250         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
251         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
252         FreeBSD systems.
254 2020-12-07  Bruno Haible  <bruno@clisp.org>
256         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
257         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
258         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
259         trivially of sbrk is not available.
260         * doc/glibc-functions/sbrk.texi: Mention that the function does not
261         exist in FreeBSD 12.2/arm64.
262         * doc/glibc-functions/brk.texi: Likewise.
264 2020-12-07  Bruno Haible  <bruno@clisp.org>
266         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
267         Suggested by Zack Weinberg in
268         <https://savannah.gnu.org/support/?110294>.
269         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
270         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
272 2020-12-07  Bruno Haible  <bruno@clisp.org>
274         Tweak the Windows oldnames workaround.
275         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
276         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
277         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
278         always.
279         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
280         * lib/stdlib.in.h (putenv): Likewise.
282 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
284         doc: fix flat address space discussion
285         * doc/gnulib-readme.texi (Other portability assumptions):
286         Move the all-bits-zero assumption outside the flat address space
287         section, since the two issues are independent.
289         doc: document -static-libubsan more
290         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
291         -static-libubsan a bit more.  Mostly cons.
293 2020-12-06  Bruno Haible  <bruno@clisp.org>
295         doc: Add more details regarding the undefined behaviour sanitizer.
296         * doc/gnulib-readme.texi (High Quality): Describe
297         -fsanitize-undefined-trap-on-error better.
299 2020-12-06  Bruno Haible  <bruno@clisp.org>
301         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
302         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
303         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
304         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
305         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
306         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
307         a preprocessor #define.
308         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
309         * lib/search.in.h (lfind, lsearch): Likewise.
310         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
311         Likewise.
312         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
313         * lib/string.in.h (memccpy, strdup): Likewise.
314         * lib/sys_stat.in.h (chmod, umask): Likewise.
315         * lib/time.in.h (tzset): Likewise.
316         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
317         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
318         read, rmdir, swab, unlink, write): Likewise.
319         * lib/utime.in.h (utime): Likewise.
320         * lib/wchar.in.h (wcsdup): Likewise.
321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
322         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
323         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
325         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
326         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
327         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
328         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
330         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
331         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
332         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
333         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
334         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
336 2020-12-06  Bruno Haible  <bruno@clisp.org>
338         doc: Mention some missing function declarations.
339         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
340         AIX.
341         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
342         FreeBSD.
343         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
344         Cygwin.
345         * doc/pastposix-functions/fcvt.texi: Likewise.
346         * doc/pastposix-functions/gcvt.texi: Likewise.
348 2020-12-06  Bruno Haible  <bruno@clisp.org>
350         doc: Tweak example.
351         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
352         'print'.
354 2020-12-06  Bruno Haible  <bruno@clisp.org>
356         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
357         * tests/test-filenamecat.c: Include idx.h.
358         (main): Mark prefixlen as nonnegative.
359         * modules/filenamecat-tests (Depends-on): Add idx.
361 2020-12-06  Bruno Haible  <bruno@clisp.org>
363         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
364         * lib/time_rz.c: Include idx.h.
365         (save_abbr): Mark zone_size as nonnegative.
366         * modules/time_rz (Depends-on): Add idx.
368 2020-12-06  Bruno Haible  <bruno@clisp.org>
370         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
371         * lib/parse-datetime.y: Include idx.h.
372         (textint): Mark digits as nonnegative.
373         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
374         dsts_seen, times_seen, zones_seen as nonnegative.
375         (lookup_word): Mark wordlen as nonnegative.
376         (yylex): Mark count as nonnegative.
377         (parse_datetime2): Mark tzsize as nonnegative.
378         * modules/parse-datetime (Depends-on): Add idx.
380 2020-12-06  Bruno Haible  <bruno@clisp.org>
382         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
383         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
384         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
385         nonnegative.
386         * modules/fnmatch (Depends-on): Add idx.
388 2020-12-06  Bruno Haible  <bruno@clisp.org>
390         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
391         * lib/c-stack.c: Include idx.h.
392         (die): Mark buflen as nonnegative.
393         * modules/c-stack (Depends-on): Add idx.
395 2020-12-06  Bruno Haible  <bruno@clisp.org>
397         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
398         * lib/backupfile.c: Include idx.h.
399         (numbered_backup): Mark base_offset as nonnegative.
400         (backupfile_internal): Likewise.
401         * modules/backup-rename (Depends-on): Add idx.
402         * modules/backupfile (Depends-on): Likewise.
404 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
406         doc: fix curved quotes issue
407         * doc/gnulib.texi: Set txicodequoteundirected and
408         txicodequotebacktick so that ` and ' in examples do not generate
409         curved single quotes that do the wrong thing when cut and pasted.
411         doc: mention static and dynamic checking
412         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
413         for static and dynamic checking.
415         intprops: Add INT_ADD_OK etc.
416         * doc/intprops.texi (Checking Integer Overflow): New section.
417         * lib/intprops.h: From a suggestion by Bruno Haible in:
418         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
419         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
421         doc: move exotic platfroms to Target Platforms
422         * doc/gnulib-intro.texi (Supported Platforms)
423         (Formerly Supported Platforms, Unsupported Platforms):
424         New subsections, split off from Target Platforms.
425         (Unsupported Platforms): Move the exotic-platform stuff here ...
426         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
427         section.
429         doc: mention intptr_t etc. and IBM i
430         * doc/gnulib-readme.texi (Other portability assumptions):
431         Mention intptr_t and uintptr_t, and that arithmetic on them
432         works in the usual way.
433         (Exotic platforms): New section, containing material from
434         the old 'Integer Portability' section.  Also mention IBM i.
435         * doc/intprops.texi (Wraparound Arithmetic):
436         Say that the macros work on unsigned integers too.
437         (Integer Portability): Remove.
439 2020-12-04  Bruno Haible  <bruno@clisp.org>
441         utime: Fix a test failure on macOS 10.13.
442         Reported by Martin Storsjö <martin@martin.st> in
443         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
444         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
445         slashes on files.
446         * lib/utime.c (utime): Add alternative implementation for Unix
447         platforms.
448         * modules/utime (Depends-on): Add stat.
449         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
450         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
451         trailing-slash bug.
452         * doc/posix-functions/open.texi: Likewise.
453         * doc/posix-functions/stat.texi: Likewise.
454         * doc/posix-functions/symlink.texi: Likewise.
456 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
458         intprops: update doc and mention Unisys
459         * doc/gnulib-readme.texi (Other portability assumptions):
460         Also mention ptrdiff_t when talking about widths and overflow.
461         * doc/intprops.texi (Integer Properties): Summarize new section.
462         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
463         evaluates its argument.
464         (Integer Bounds): Fix typo.
465         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
466         Document that the _WRAPV macros now support pointers to unsigned
467         integers.
468         (Integer Range Overflow): Update SEI CERT citation.
469         (Integer Portability): New subsection, which mentions
470         the oddball Unisys platforms as non-Gnulib targets.
472 2020-12-03  Bruno Haible  <bruno@clisp.org>
474         idx: Clarify that idx_t always behaves like a signed type.
475         Suggested by Paul Eggert in
476         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
477         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
478         Don't test UNSIGNED_IDX_T.
480 2020-12-03  Bruno Haible  <bruno@clisp.org>
482         idx: New module.
483         * lib/idx.h: New file.
484         * modules/idx: New file.
485         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
486         ptrdiff_t.
487         * lib/canonicalize.c: Likewise.
488         * modules/canonicalize-lgpl (Depends-on): Add idx.
489         * modules/canonicalize (Depends-on): Likewise.
491 2020-12-03  Bruno Haible  <bruno@clisp.org>
493         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
494         Reported by Martin Storsjö <martin@martin.st> in
495         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
496         * tests/test-fprintf-posix3.c: Skip the test on macOS.
497         (main): Return a different exit code at each point. Allow 100 KB extra
498         memory consumption.
499         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
500         doesn't work" diagnostic.
502 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
504         canonicalize: refactor can_mode flag
505         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
506         (multiple_bits_set): ... this new static function.  Uses changed.
507         (canonicalize_filename_mode): Refactor for clarity to avoid
508         modifying the CAN_MODE argument.
510         canonicalize: prefer signed integer types
511         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
512         (seen_triple, canonicalize_filename_mode): Prefer signed to
513         unsigned types where either will do, as they avoid some glitches
514         in comparisons and can trap on overflow when debugging.
516         canonicalize: fix most of another EOVERFLOW issue
517         * lib/canonicalize.c (canonicalize_filename_mode):
518         Do not call stat if fewer than 20 symlinks have been traversed.
519         This avoids EOVERFLOW failure in the common case where there
520         are not that many symlinks, while continuing to catch loops
521         (or fail due to EOVERFLOW) in the unusual case when there
522         are many symlinks to traverse.
524         canonicalize: do not assume symlinks have st_ino
525         * lib/canonicalize.c (canonicalize_filename_mode):
526         When checking for loops, use st_dev and st_ino from the parent
527         directory not from the symlink, as pre-2017 POSIX says these
528         members are not reliable for symlinks.  Couple this with START
529         (the remaining file name to be resolved), not NAME (the whole file
530         name with START as its suffix).
531         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
533         canonicalize: fix EOVERFLOW bug
534         * lib/canonicalize.c (canonicalize_filename_mode):
535         When testing whether a directory entry is a symbolic link, or a
536         directory or other, do not use lstat or stat or
537         areadlink_with_size.  Just use areadlink, as this suffices and it
538         avoids the EOVERFLOW problem that lstat and stat have.
539         * modules/canonicalize (Depends-on): Depend on areadlink instead
540         of areadlink-with-size and stat.
542         canonicalize-lgpl: fix EOVERFLOW bug
543         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
544         (__realpath): Do not use lstat.  Just use readlink, as this
545         suffices and it avoids the EOVERFLOW problem that lstat has.
546         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
548 2020-12-02  Bruno Haible  <bruno@clisp.org>
550         strsignal-tests: Fix test failure on macOS 10.13.
551         Reported by Martin Storsjö <martin@martin.st> in
552         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
553         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
554         to be longer than the expected result.
556 2020-12-02  Bruno Haible  <bruno@clisp.org>
558         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
559         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
560         recursive self-include problem on FreeBSD 12.2 in C++ mode.
562 2020-12-02  Bruno Haible  <bruno@clisp.org>
564         spawn-pipe: Allow caller to specify directory for the subprocess.
565         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
566         Add directory argument.
567         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
568         (create_pipe): Add directory argument. If specified, resolve the program
569         file name and make it absolute, first. Pass the directory to spawnpvech
570         and posix_spawn_file_actions_addchdir.
571         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
572         argument.
573         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
574         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
575         * tests/test-spawn-pipe-main.c (test_pipe): Update.
576         * NEWS: Mention the change.
577         * lib/csharpcomp.c (compile_csharp_using_mono,
578         compile_csharp_using_sscli): Update.
579         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
580         is_gcj_43): Update.
581         * lib/javaversion.c (execute_and_read_line): Update.
582         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
583         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
585 2020-12-02  Bruno Haible  <bruno@clisp.org>
587         execute: Allow caller to specify directory for the subprocess.
588         * lib/execute.h (execute): Add directory argument.
589         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
590         (execute): Add directory argument. If specified, resolve the program
591         file name and make it absolute, first. Pass the directory to spawnpvech
592         and posix_spawn_file_actions_addchdir.
593         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
594         posix_spawn, posix_spawn_file_actions_addchdir.
595         * tests/test-execute-main.c: Add test for passing a directory.
596         * tests/test-execute-child.c: Likewise.
597         * tests/test-execute.sh: Update.
598         * modules/execute-tests (Depends-on): Add mkdir.
599         * NEWS: Mention the change.
600         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
601         * lib/csharpexec.c (execute_csharp_using_mono,
602         execute_csharp_using_sscli): Update.
603         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
604         compile_using_javac, compile_using_jikes, is_javac_present,
605         is_jikes_present): Update.
606         * lib/javaexec.c (execute_java_class): Update.
608 2020-12-01  Bruno Haible  <bruno@clisp.org>
610         vma-iter: Add support for macOS11/arm64.
611         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
612         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
613         and by Martin Storsjö <martin@martin.st> in
614         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
615         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
617 2020-12-01  Bruno Haible  <bruno@clisp.org>
619         spawn-pipe: Fix handling of OS/2 kLIBC.
620         Reported by KO Myung-Hun <komh78@gmail.com> in
621         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
622         * modules/spawn-pipe (configure.ac): Use the common idiom for
623         recognizing the OS/2 operating system.
625 2020-11-30  Bruno Haible  <bruno@clisp.org>
627         execute: Fix uninitialized use of errno.
628         * lib/execute.c (execute): Preserve errno across several system calls.
630 2020-11-30  Bruno Haible  <bruno@clisp.org>
632         access tests: Fix test failure on native Windows.
633         * tests/test-access.c (main): Change permissions of f2 file before
634         attempting to remove it.
636 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
638         faccessat: link with $(LIB_EACCESS)
639         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
640         module depends on euidaccess.
642 2020-11-30  Bruno Haible  <bruno@clisp.org>
644         execute, spawn-pipe: Make multithread-safe on native Windows.
645         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
646         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
647         (spawnpvech): New declaration.
648         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
649         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
650         (_): Remove macro.
651         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
652         undup_safer_noinherit): Remove functions.
653         (spawnpvech): New function.
654         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
655         cloexec, dup2, error, gettext-h.
656         * lib/execute.c: Include msvc-nothrow.h.
657         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
658         * lib/spawn-pipe.c: Include msvc-nothrow.h.
659         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
660         instead of _spawnvpe.
661         * modules/execute (Depends-on): Add msvc-nothrow.
662         * modules/spawn-pipe (Depends-on): Likewise.
664 2020-11-30  Bruno Haible  <bruno@clisp.org>
666         execute, spawn-pipe: Improve documentation.
667         * lib/execute.h: Describe progname, prog_path, prog_argv.
668         * lib/spawn-pipe.h: Likewise.
670 2020-11-30  Bruno Haible  <bruno@clisp.org>
672         execute tests: Add more tests.
673         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
674         inherited file descriptors >= 3.
675         * tests/test-execute-child.c: Likewise.
676         * tests/test-execute.sh: Update.
678 2020-11-30  Bruno Haible  <bruno@clisp.org>
680         havelib: Fix for non-ELF platforms (regression 2019-11-17).
681         Reported by comex <comexk@gmail.com> in
682         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
683         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
684         don't expect an ELF header.
686 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
688         bitset: use integer_length in table implementation
689         * lib/bitset/table.c (tbitset_list_reverse): Use
690         BITSET_FOR_EACH_BIT_REVERSE.
692 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
694         bitset: use integer_length in list implementation
695         * lib/bitset/list.c (lbitset_list_reverse): Use
696         BITSET_FOR_EACH_BIT_REVERSE.
698 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
700         bitset: use integer_length in vector implementation
701         * lib/bitset/array.c (vbitset_list_reverse): Use
702         BITSET_FOR_EACH_BIT_REVERSE.
704 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
706         bitset: use integer_length in array implementation
707         * modules/bitset (Depends-on): Add integer_length_l.
708         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
709         * lib/bitset/array.c (abitset_list_reverse): Use it.
711 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
713         bitset: style: use consistent names
714         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
715         and 'boffset' as 'bitoff', for consistency with the other
716         implementations.
717         * bitset/table.c (tbitset_list_reverse): Likewise.
719 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
721         bitset: style: sort header
722         * lib/bitset/base.h (bitset_ffs): Rename as...
723         (bitset_ffs_): this.
724         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
726 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
728         bitset: tests: check BITSET_FOR_EACH_REVERSE
729         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
730         Check BITSET_FOR_EACH_REVERSE.
732 2020-11-29  Bruno Haible  <bruno@clisp.org>
734         spawn-pipe tests: Fix test failure with MSVC.
735         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
736         (gl_msvc_invalid_parameter_handler): New function.
737         (main): Set a global invalid-parameter handler.
738         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
740 2020-11-29  Bruno Haible  <bruno@clisp.org>
742         execute: Add tests.
743         * tests/test-execute.sh: New file.
744         * tests/test-execute-main.c: New file.
745         * tests/test-execute-child.c: New file.
746         * modules/execute-tests: New file.
748 2020-11-29  Bruno Haible  <bruno@clisp.org>
750         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
751         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
752         works.
753         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
754         fallback implementation as on Haiku.
755         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
756         effective.
757         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
759 2020-11-29  Bruno Haible  <bruno@clisp.org>
761         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
762         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
763         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
764         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
765         * lib/windows-spawn.c: Remove modifications for kLIBC.
766         * modules/spawn-pipe (Files): Add the new files.
767         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
769 2020-11-28  Bruno Haible  <bruno@clisp.org>
771         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
772         Reported by Paul Eggert in
773         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
774         * m4/sparcv8+.m4: New file.
775         * modules/sparcv8+: New file.
776         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
778 2020-11-28  Bruno Haible  <bruno@clisp.org>
780         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
781         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
783 2020-11-28  Bruno Haible  <bruno@clisp.org>
785         windows-spawn: New module.
786         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
787         implementations.
788         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
789         * modules/windows-spawn: New file.
790         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
791         * lib/spawn-pipe.c: Likewise.
792         * modules/execute (Files): Remove lib/w32spawn.h.
793         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
794         xalloc.
795         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
796         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
797         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
798         xalloc.
799         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
801 2020-11-27  Bruno Haible  <bruno@clisp.org>
803         ssfmalloc tests: Port to macOS 11.
804         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
806 2020-11-26  Bruno Haible  <bruno@clisp.org>
808         Fix dependencies of modules that use '_exit' on native Windows.
809         Reported by Jim Meyering in
810         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
811         * modules/_Exit (Depends-on): Add unistd.
812         * modules/closein (Depends-on): Likewise.
813         * modules/closeout (Depends-on): Likewise.
814         * modules/forkpty (Depends-on): Likewise.
815         * modules/posix_spawn-internal (Depends-on): Likewise.
816         * modules/savewd (Depends-on): Likewise.
817         * modules/stat-time-tests (Depends-on): Likewise.
819 2020-11-26  Bruno Haible  <bruno@clisp.org>
821         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
822         * modules/raise-tests (Depends-on): Add unistd.
823         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
825 2020-11-25  Jim Meyering  <meyering@fb.com>
827         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
828         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
829         non-NULL, since we don't bother handing strdup failure.
831         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
832         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
833         * tests/test-raise.c: Include unistd.h.
834         (handler): Use _exit, not exit.
836 2020-11-23  Bruno Haible  <bruno@clisp.org>
838         Use the correct printf format attribute for mingw.
839         Reported by Reuben Thomas <rrt@sc3d.org> in
840         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
842         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
843         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
845         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
846         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
847         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
848         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
849         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
850         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
852         * modules/vasnprintf (Depends-on): Add stdio.
853         * lib/vasnprintf.h: Include <stdio.h>.
854         (asnprintf, vasnprintf): Use the standard printf format attribute.
856         * modules/xvasprintf (Depends-on): Add stdio.
857         * lib/xvasprintf.h: Include <stdio.h>.
858         (xasprintf, xvasprintf): Use the standard printf format attribute.
860         * modules/xprintf (Depends-on): List stdio first.
861         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
862         depends on GNULIB_VPRINTF_POSIX.
863         (xfprintf, xvfprintf): Use a printf format attribute that depends on
864         GNULIB_VFPRINTF_POSIX.
866         * modules/c-vasnprintf (Depends-on): Add stdio.
867         * lib/c-vasnprintf.h: Include <stdio.h>.
868         (c_vasnprintf): Use the standard printf format attribute.
870         * modules/c-vasprintf (Depends-on): Add stdio.
871         * lib/c-vasprintf.h: Include <stdio.h>.
872         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
874         * modules/c-vsnprintf (Depends-on): Add stdio.
875         * lib/c-vsnprintf.h: Include <stdio.h>.
876         (c_vsnprintf): Use the standard printf format attribute.
878         * modules/c-snprintf (Depends-on): Add stdio.
879         * lib/c-snprintf.h: Include <stdio.h>.
880         (c_snprintf): Use the standard printf format attribute.
882         * modules/c-xvasprintf (Depends-on): Add stdio.
883         * lib/c-xvasprintf.h: Include <stdio.h>.
884         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
886         * modules/error (Depends-on): Depend on stdio always.
887         * lib/error.h: Include <stdio.h>.
888         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
889         (error, error_at_line): Use a printf format attribute that depends on
890         GNULIB_VFPRINTF_POSIX.
891         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
892         _GL_ATTRIBUTE_FORMAT_PRINTF.
894         * modules/verror (Depends-on): Add stdio.
895         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
896         (verror, verror_at_line): Use the standard printf format attribute.
897         * lib/verror.c: Include "error.h".
899         * modules/argp (Depends-on): Add stdio.
900         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
901         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
903         * modules/libtextstyle-optional (Depends-on): Add stdio.
904         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
905         printf format attribute.
907         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
908         format attribute.
910 2020-11-23  Pádraig Brady  <P@draigBrady.com>
912         selinux-at, selinux-h: use const correct declarations
913         * lib/se-selinux.in.h: Use const for "set" functions,
914         to match current selinux, and support cleaner user code.
915         * lib/selinux-at.c: Likewise.
916         * lib/selinux-at.h: Likewise.
918 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
920         canonicalize-lgpl: fix memory leak
921         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
922         which could have occurred if BUF was so large that malloc was
923         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
924         this eliminates the need to free BUF separately.
926 2020-11-22  Bruno Haible  <bruno@clisp.org>
928         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
929         * modules/xvasprintf (Depends-on): Add xalloc.
930         * modules/pipe-filter-gi (Depends-on): Likewise.
931         * modules/execute (Depends-on): Likewise, for w32spawn.h.
932         * modules/spawn-pipe (Depends-on): Likewise.
934 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
936         bootstrap: add option hooks
937         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
938         (bootstrap_option_hook): Likewise.
939         (usage): Call bootstrap_print_option_usage_hook.
941 2020-11-22  Bruno Haible  <bruno@clisp.org>
943         argp: Don't break getprogname on non-glibc systems.
944         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
945         program_invocation_name and program_invocation_short_name.
947 2020-11-22  Bruno Haible  <bruno@clisp.org>
949         doc: Document <link.h>.
950         * doc/glibc-headers/link.texi: New file.
951         * doc/gnulib.texi: Include it.
953 2020-11-22  Bruno Haible  <bruno@clisp.org>
955         doc: Add references to the LSB.
956         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
957         * doc/posix-functions/*.texi: Likewise.
959 2020-11-22  Bruno Haible  <bruno@clisp.org>
961         doc: Fix a makeinfo warning (regression 2020-11-03).
962         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
964 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
966         parse-datetime: fix printf format typo
967         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
968         previous patch to this file.  Problem reported by Chris Elvidge in
969         <https://bugs.gnu.org/44763#32>.
971         setlocale-null-tests: work around GCC bug 44511
972         * tests/test-setlocale_null-mt-all.c:
973         * tests/test-setlocale_null-mt-one.c:
974         Ignore -Wreturn-type, to work around GCC bug 44511.
976         nl_langinfo-tests: work around GCC bug 44511
977         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
978         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
979         Problem reported for GNU grep by Andreas Schwab
980         <https://bugs.gnu.org/44535>.
982         selinux-h: add stubs for selabel_open etc.
983         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
984         because matchpathcon is deprecated in favor of selabel_open etc.,
985         so this patch adds stubs for these functions.
986         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
987         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
988         as it is needed for selabel_open and selinux/selinux.h declares
989         this type here.
990         * modules/selinux-h (Files): Add the new files.
991         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
992         (lib_SOURCES): Add se-label.in.h, se-label.c.
993         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
994         (selinux/label.h): New rule, mimicking selinux/context.h.
995         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
996         (Include): Add selinux/label.h.
998 2020-11-21  Bruno Haible  <bruno@clisp.org>
1000         Update after 'test-driver' in Automake changed.
1001         * build-aux/test-driver.diff: Rebase.
1003 2020-11-21  Daiki Ueno  <ueno@gnu.org>
1005         read-file: remove dead assignment
1006         * lib/read-file.c (fread_file): Remove dead assignment when
1007         RF_SENSITIVE is set, flagged by clang-analyzer.
1009 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1011         bitset: tests: exercise the stats too
1013         * tests/test-bitset.c: Display the stats at the end of the test.
1014         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
1015         last bin, display "256-..." rather that "256-511", since the last bin
1016         does count item greater than or equal to 256.
1018 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1020         bitset: tests: try harder to break it
1021         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
1022         BITSET_LIST_SIZE.
1023         (main): Likewise.
1024         While at it, also exercise super small bitsets.
1026 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1028         bitset: use ffs where possible in the vector implementation
1029         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
1031 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1033         bitset: use ffs where possible in the table implementation
1034         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
1036 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1038         bitset: check empty and full bitsets
1039         * tests/test-bitset.c (check_zero, check_ones): New.
1040         (check_attributes): Use them.
1042 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1044         bitset: be sure to always return a value
1045         * lib/bitset/array.c (abitset_small_list): Always update *next and
1046         return a value.
1048 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1050         vcs-to-changelog: Expect spaces in file names
1051         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
1052         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
1053         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
1054         tabs to spaces.
1055         (list_changes): Use tabs to identify file names.
1057 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1059         bitset: strengthen tests
1060         * tests/test-bitset.c (compare): Also check count.
1061         Deal only with random values, move the one-bit tests to...
1062         (check_one_bit): this new function.
1063         (check_attributes): Call it.
1065 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1067         bitset: fix iteration over table bitsets
1068         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
1070 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1072         bitset: rename internal details for consistency
1073         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
1075 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1077         bitset: test: run deterministic tests on several bitset sizes
1078         * tests/test-bitset.c (check_attributes): Run it with small and large
1079         sizes.
1081 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1083         bitset: use ffs where possible in the list implementation
1084         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
1086 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1088         bitset: use ffs where possible in array implementation
1089         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
1091 2020-11-17  Bruno Haible  <bruno@clisp.org>
1093         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
1094         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1095         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1096         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
1097         C++ mode.
1099 2020-11-17  Bruno Haible  <bruno@clisp.org>
1101         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
1102         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
1103         is always declared.
1104         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
1105         declared.
1107 2020-11-17  Bruno Haible  <bruno@clisp.org>
1109         Fix link errors on AIX.
1110         * modules/clean-temp (Link): Link with $(LIBTHREAD).
1111         * modules/getumask (Link): Link with $(LIBTHREAD).
1112         * modules/getumask-tests (Makefile.am): Link test-getumask with
1113         $(LIBTHREAD).
1114         * modules/supersede (Link): Link with $(LIBTHREAD).
1115         * modules/supersede-tests (Makefile.am): Link test-supersede with
1116         $(LIBTHREAD).
1117         * modules/fatal-signal (Link): New section.
1118         * modules/execute (Link): New section.
1119         * modules/csharpexec (Link): Link with $(LIBTHREAD).
1120         * modules/javaexec (Link): Link with $(LIBTHREAD).
1121         * modules/spawn-pipe (Link): New section.
1122         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
1123         $(LIBTHREAD).
1124         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
1125         * modules/javacomp (Link): Link with $(LIBTHREAD).
1126         * modules/javaversion (Link): Link with $(LIBTHREAD).
1127         * modules/pipe-filter-gi (Link): New section.
1128         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
1129         test-pipe-filter-gi2-main with $(LIBTHREAD).
1130         * modules/pipe-filter-ii (Link): New section.
1131         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
1132         test-pipe-filter-ii2-main with $(LIBTHREAD).
1133         * modules/term-style-control (Link): New section.
1134         * modules/term-style-control-tests (Makefile.am): Link
1135         test-term-style-control-hello, test-term-style-control-yes with
1136         $(LIBTHREAD).
1137         * modules/wait-process (Link): New section.
1138         * modules/nonblocking-pipe-tests (Makefile.am): Link
1139         test-nonblocking-pipe-main with $(LIBTHREAD).
1140         * modules/nonblocking-socket-tests (Makefile.am): Link
1141         test-nonblocking-socket-main with $(LIBTHREAD).
1143 2020-11-16  Bruno Haible  <bruno@clisp.org>
1145         Fix link errors on platforms with libunistring.
1146         * modules/c32isalnum (Link): New section.
1147         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
1148         $(LIBUNISTRING).
1149         * modules/c32isalpha (Link): New section.
1150         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
1151         $(LIBUNISTRING).
1152         * modules/c32isblank (Link): New section.
1153         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
1154         $(LIBUNISTRING).
1155         * modules/c32iscntrl (Link): New section.
1156         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
1157         $(LIBUNISTRING).
1158         * modules/c32isdigit (Link): New section.
1159         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
1160         $(LIBUNISTRING).
1161         * modules/c32isgraph (Link): New section.
1162         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
1163         $(LIBUNISTRING).
1164         * modules/c32islower (Link): New section.
1165         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
1166         $(LIBUNISTRING).
1167         * modules/c32isprint (Link): New section.
1168         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
1169         $(LIBUNISTRING).
1170         * modules/c32ispunct (Link): New section.
1171         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
1172         $(LIBUNISTRING).
1173         * modules/c32isspace (Link): New section.
1174         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
1175         $(LIBUNISTRING).
1176         * modules/c32isupper (Link): New section.
1177         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
1178         $(LIBUNISTRING).
1179         * modules/c32isxdigit (Link): New section.
1180         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
1181         $(LIBUNISTRING).
1182         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
1183         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1184         $(LIBUNISTRING).
1186 2020-11-16  Bruno Haible  <bruno@clisp.org>
1188         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
1189         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1190         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1191         * modules/getumask-tests (Makefile.am): Link test-getumask with
1192         $(LIBINTL).
1193         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
1194         * modules/supersede-tests (Makefile.am): Link test-supersede with
1195         $(LIBINTL).
1196         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1197         $(LIBINTL).
1199 2020-11-16  Bruno Haible  <bruno@clisp.org>
1201         getumask: Document link dependencies.
1202         * modules/getumask (Link): New section.
1204 2020-11-16  Bruno Haible  <bruno@clisp.org>
1206         Update link dependencies in modules after 2020-09-09 change.
1207         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
1208         * modules/mkdtemp (Link): Likewise.
1209         * modules/mkostemp (Link): Likewise.
1210         * modules/mkostemps (Link): Likewise.
1211         * modules/mkstemp (Link): Likewise.
1212         * modules/mkstemps (Link): Likewise.
1213         * modules/supersede (Link): Likewise.
1214         * modules/tmpfile (Link): Likewise.
1215         * modules/tmpfile-safer (Link): Likewise.
1217 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1219         getumask-tests: port to Solaris 10 etc.
1220         Problem reported by Tom Christensen in:
1221         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
1222         * modules/getumask-tests (test_getumask_LDADD):
1223         Add $(LIB_CLOCK_GETTIME).
1225 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1227         bitset: use ffsl to accelerate iterations over set bits
1228         Suggested by Bruno Haible.
1229         * modules/bitset: Depend upon ffsl.
1230         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
1231         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
1233 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1235         bitset: more tests
1236         * tests/test-bitset.c (compare): Make it clear that the random values
1237         should not be modified.
1238         Check bitset_first, bitset_last and BITSET_FOR_EACH.
1240 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1242         bitset: fix the copy from lbitset to other types
1243         * lib/bitset/list.c (lbitset_copy): Rename as...
1244         (lbitset_copy_): this.
1245         (lbitset_copy): New.
1246         Dispatch to heterogeneous/homogeneous copy.
1248 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1250         bitset: making debug traces more useful
1251         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
1253         bitset: comment changes
1254         * lib/bitset.c: Move some documenting comments to...
1255         * lib/bitset.h: here.
1256         * lib/bitset/array.c: Fix some comments.
1258 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1260         careadlinkat: warn better about GCC bug 93644
1261         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
1262         not in effect, use "#warning" to let builders know more clearly
1263         about GCC bug 93644, because the bug triggers even if no -W option
1264         is given to GCC.
1266 2020-11-13  Jim Meyering  <meyering@fb.com>
1268         hard-locale-tests: avoid a -Wstrict-prototypes warning
1269         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
1270         changing "main ()" to "main (void)". This was the only case that
1271         triggered a warning when building grep with --enable-gcc-warnings.
1273 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1275         time_rz: simplify CVE-2017-7476 fix
1276         * lib/time_rz.c: Do not include limits.h; I think it was included
1277         under the mistaken impression that limits.h defines SIZE_MAX.
1278         (SIZE_MAX): Remove.
1279         (save_abbr): Put string length into a ptrdiff_t variable,
1280         so that the size comparison works naturally.  This
1281         fixes CVE-2017-7476 in a cleaner way.
1283         parse-datetime: streamline overflow checking
1284         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
1285         did not work for unsigned destinations, and since time_t might
1286         be unsigned that meant it did not work for time_t destinations.
1287         This limitation of INT_ADD_WRAPV has been fixed, so we can
1288         now streamline parse-datetime.y a bit.
1289         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
1290         has not been used for a while.
1291         (yylex, parse_datetime2): Assume C99 declarations after statements.
1292         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
1293         to TYPE_MINIMUM.
1294         (parse_datetime2): No need for time_overflow now that
1295         INT_ADD_WRAPV works for unsigned results.
1297         parse-datetime-tests: port to Alpine Linux 3.12.1
1298         * tests/test-parse-datetime.c: Include errno.h for errno,
1299         and unistd.h for _SC_TZNAME_MAX and sysconf.
1300         (main): In the outlandishly-long time zone abbreviation test,
1301         do not exceed TZNAME_MAX as this has undefined behavior,
1302         and on Alpine Linux 3.12.1 it makes the test fail.
1304 2020-11-09  Pádraig Brady  <P@draigBrady.com>
1306         mgetgroups: avoid warning with clang
1307         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
1308         so disable -Wpointer-sign for all clang versions.
1310 2020-11-07  Bruno Haible  <bruno@clisp.org>
1312         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
1313         Reported by Simon Josefsson in
1314         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
1315         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
1316         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
1317         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
1319 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1321         tests: pacify Sun C 5.9
1322         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
1323         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
1324         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
1325         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
1326         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
1327         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
1328         Remove unreachable ‘return NULL;’s.
1330         tests: port better to XLC 12.01
1331         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
1332         even in code that is not executed, as IBM XLC 12.01 complains "The
1333         subscript -1 is less than zero."
1334         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
1335         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
1336         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
1337         arguments than are required by the macro definition."
1339 2020-11-03  Bruno Haible  <bruno@clisp.org>
1341         aligned-malloc: Use fixes from the new modules.
1342         * modules/aligned-malloc (Depends-on): Add posix_memalign,
1343         aligned_alloc, memalign.
1344         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
1346 2020-11-03  Bruno Haible  <bruno@clisp.org>
1348         aligned_alloc: Add tests.
1349         * tests/test-aligned_alloc.c: New file.
1350         * modules/aligned_alloc-tests: New file.
1352         aligned_alloc: New module.
1353         * lib/stdlib.in.h (aligned_alloc): New declaration.
1354         * lib/aligned_alloc.c: New file.
1355         * m4/aligned_alloc.m4: New file.
1356         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
1357         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
1358         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1359         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
1360         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1361         * modules/aligned_alloc: New file.
1362         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
1363         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
1364         AIX bug.
1366 2020-11-03  Bruno Haible  <bruno@clisp.org>
1368         posix_memalign: Add tests.
1369         * tests/test-posix_memalign.c: New file.
1370         * modules/posix_memalign-tests: New file.
1372         posix_memalign: New module.
1373         * lib/stdlib.in.h (posix_memalign): New declaration.
1374         * lib/posix_memalign.c: New file.
1375         * m4/posix_memalign.m4: New file.
1376         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
1377         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
1378         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1379         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
1380         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1381         * modules/posix_memalign: New file.
1382         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
1383         * doc/posix-functions/posix_memalign.texi: Mention the new module and
1384         the OpenBSD bug.
1386 2020-11-03  Bruno Haible  <bruno@clisp.org>
1388         memalign: Add tests.
1389         * tests/test-memalign.c: New file.
1390         * modules/memalign-tests: New file.
1392         memalign: New module.
1393         * modules/memalign: New file.
1394         * doc/glibc-functions/memalign.texi: Mention the new module.
1396 2020-11-03  Bruno Haible  <bruno@clisp.org>
1398         verify tests: Fix crash with GCC (regression 2020-11-02).
1399         * tests/test-verify.c (main): Fix initializer of s.
1401 2020-11-03  Pádraig Brady  <P@draigBrady.com>
1403         mountlist: recognize more file system types as remote
1405         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
1406         "remote" file systems from stat.c in coreutils.
1408 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
1410         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
1411         * tests/test-verify.c (main): Initialize state variable.
1412         Reported by Bruno Haible for GCC 5.4.0.
1414 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1416         dfa.h: support inclusion from C++
1417         * lib/dfa.h: Allow multiple inclusion, and inclusion from
1418         C++ code.  The latter was suggested by Arnold Robbins.
1420 2020-11-01  Bruno Haible  <bruno@clisp.org>
1422         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
1423         * tests/test-ssfmalloc.c: Include <limits.h>.
1424         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
1426 2020-11-01  Bruno Haible  <bruno@clisp.org>
1428         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
1429         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
1431 2020-11-01  Jim Meyering  <meyering@fb.com>
1433         dfa-tests: test for today's invalid-merge fix
1434         * tests/test-dfa-invalid-merge.sh: New file.
1435         * modules/dfa-tests (Files): Add it.
1436         (TESTS): Add it.
1438 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1440         dfa: retain sequences of similar nodes in optimization
1441         DFA was merging similar nodes when it should not.  For example,
1442         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
1443         is not merged.  Problem reported by Gonzalo Padrino in
1444         https://bugs.gnu.org/44351
1445         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
1446         optimization.
1448 2020-11-01  Jim Meyering  <meyering@fb.com>
1450         test-dfa-match-aux.c: accept EREs, not BREs
1451         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
1452         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
1454 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
1456         verify tests: avoid -Wmissing-declarations warnings
1457         * tests/test-verify.c (test_assume_expressions): Add declaration.
1458         (test_assume_optimization): Likewise.
1459         (test_assume_noreturn): Likewise.
1460         (main): Move down after all other definitions.  While at it, also
1461         call test_assume_expressions and test_assume_optimization as a
1462         runtime check.
1464 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1466         sys_stat: update comments for S_IRWXUGO, S_IXUGO
1467         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
1468         Perhaps these macros should be removed, as they’re not in either
1469         POSIX or GNU.  They could be moved to stat-macros.h, which would
1470         be cleaner in some sense.
1472 2020-10-25  Bruno Haible  <bruno@clisp.org>
1474         ssfmalloc tests: Small tweaks.
1475         * tests/test-ssfmalloc.c: Add comments.
1476         (alloc_pages): Don't require PROT_EXEC bits.
1477         (block_sizes): Add more small sizes, for better coverage of
1478         ssfmalloc-bitmap.h.
1480         ssfmalloc tests: Portability to Minix.
1481         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
1482         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
1483         * m4/mmap-anon.m4: Update comment.
1485         ssfmalloc: Portability to AIX.
1486         * modules/ssfmalloc (Include): Add ssfmalloc.h.
1487         (Link): New section.
1488         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
1489         $(LIBTHREAD).
1491         ssfmalloc: Portability to Cygwin.
1492         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
1493         (pg_offset_t): Define depending on PAGESIZE_MAX.
1494         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
1495         (PAGESIZE_MAX): New macro.
1497         ssfmalloc: Fix buffer overrun in bitmap search.
1498         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
1499         word *words_end.
1501 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1503         doc: mention ‘restrict’ and C++
1504         * doc/gnulib-readme.texi (C99 features assumed): Document
1505         that ‘restrict’ should be avoided in C++ code.
1507 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1509         selinux-at, selinux-h: port to SELinux 3.1
1510         The new release finally deprecated the typedef 'security_context_t',
1511         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
1512         Use the simpler 'char *' instead.
1513         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
1514         (lgetfilecon): Likewise.
1515         (fgetfilecon): Likewise.
1516         (map_to_failure): Likewise.
1517         (rpl_getfilecon): Likewise.
1518         (rpl_lgetfilecon): Likewise.
1519         (rpl_fgetfilecon): Likewise.
1520         * lib/se-selinux.in.h (security_context_t): Remove typedef.
1521         (getcon): Adjust type of context parameter.
1522         (freecon): Likewise.
1523         (getfscreatecon): Likewise.
1524         (setfscreatecon): Likewise.
1525         (matchpathcon): Likewise.
1526         (getfilecon): Likewise.
1527         (lgetfilecon): Likewise.
1528         (fgetfilecon): Likewise.
1529         (setfilecon): Likewise.
1530         (lsetfilecon): Likewise.
1531         (fsetfilecon): Likewise.
1532         (security_check_context): Likewise.
1533         (security_check_context_raw): Likewise.
1534         (setexeccon): Likewise.
1535         (security_compute_create): Likewise.
1536         * lib/selinux-at.c (getfileconat): Likewise.
1537         (lgetfileconat): Likewise.
1538         (setfileconat): Likewise.
1539         (lsetfileconat): Likewise.
1540         * lib/selinux-at.h: Likewise.
1542 2020-10-19  Bruno Haible  <bruno@clisp.org>
1544         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
1545         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
1546         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
1547         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
1548         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
1549         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
1550         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
1552 2020-10-18  Bruno Haible  <bruno@clisp.org>
1554         ssfmalloc: Add tests.
1555         * tests/test-ssfmalloc.c: New file.
1556         * modules/ssfmalloc-tests: New file.
1558         ssfmalloc: New module.
1559         * lib/ssfmalloc.h: New file.
1560         * lib/ssfmalloc-bitmap.h: New file.
1561         * modules/ssfmalloc: New file.
1563 2020-10-18  Bruno Haible  <bruno@clisp.org>
1565         wchar: Fix configure test result on some versions of AIX.
1566         Reported by Clément Chigot <clement.chigot@atos.net> in
1567         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
1568         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
1569         systems.
1571 2020-10-18  Bruno Haible  <bruno@clisp.org>
1573         time: Fix warning about asctime when asctime is not used.
1574         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
1575         invocation.
1577 2020-10-18  Bruno Haible  <bruno@clisp.org>
1579         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
1580         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
1581         '_GL_ATTRIBUTE_CONST'.
1582         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
1583         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
1584         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
1585         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
1586         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
1587         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
1588         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
1590 2020-10-18  Bruno Haible  <bruno@clisp.org>
1592         obstack: Fix a clang warning.
1593         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
1595 2020-10-16  Bruno Haible  <bruno@clisp.org>
1597         hash: Rename hash_delete to hash_remove.
1598         * lib/hash.h (hash_remove): Renamed from hash_delete.
1599         (hash_delete): New declaration.
1600         * lib/hash.c (hash_remove): Renamed from hash_delete.
1601         (hash_delete): New function.
1602         * tests/test-hash.c (main): Update.
1603         * lib/fts-cycle.c (leave_dir): Likewise.
1604         * NEWS: Mention the change.
1606 2020-10-16  Bruno Haible  <bruno@clisp.org>
1608         hash, xhash: Make usable from C++.
1609         * lib/hash.h: Add extern "C".
1611 2020-10-16  Bruno Haible  <bruno@clisp.org>
1613         hash, xhash: Move comments to the .h file.
1614         * lib/hash.c: Move comments meant for the user from here...
1615         * lib/xhash.c: ... and here...
1616         * lib/hash.h: ... to here.
1618 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
1620         Don't declare an intention to modify the return value of strerror.
1621         * tests/test-perror2.c (main): Assign the return value of strerror to a
1622         'const char *' variable.
1624 2020-10-11  Bruno Haible  <bruno@clisp.org>
1626         *printf: Avoid "expanded before it was required" warning.
1627         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
1628         AC_DEFUN_ONCE.
1630 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
1632         getprogname: Add support for OpenServer 6 and UnixWare 7.
1633         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
1634         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
1636 2020-10-11  Bruno Haible  <bruno@clisp.org>
1638         tests: Avoid a name clash on UnixWare.
1639         Reported by Tim Rice <tim@multitalents.net> in
1640         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
1641         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
1643 2020-10-11  Bruno Haible  <bruno@clisp.org>
1645         stdioext: Update comments regarding UnixWare.
1646         Reported by Tim Rice <tim@multitalents.net> in
1647         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1648         * lib/fbufmode.c: Update comments.
1649         * lib/fflush.c: Likewise.
1650         * lib/fpending.c: Likewise.
1651         * lib/fpurge.c: Likewise.
1652         * lib/freadable.h: Likewise.
1653         * lib/freadable.c: Likewise.
1654         * lib/freadahead.c: Likewise.
1655         * lib/freading.h: Likewise.
1656         * lib/freading.c: Likewise.
1657         * lib/freadptr.c: Likewise.
1658         * lib/freadseek.c: Likewise.
1659         * lib/fseeko.c: Likewise.
1660         * lib/fseterr.c: Likewise.
1661         * lib/fwritable.h: Likewise.
1662         * lib/fwritable.c: Likewise.
1663         * lib/fwriting.h: Likewise.
1664         * lib/fwriting.c: Likewise.
1666 2020-10-11  Bruno Haible  <bruno@clisp.org>
1668         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
1669         Reported by Tim Rice <tim@multitalents.net> in
1670         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1671         Uses the info from
1672         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
1673         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
1675 2020-10-11  Bruno Haible  <bruno@clisp.org>
1677         stdioext: Avoid compilation errors on UnixWare 7.
1678         Reported by Tim Rice <tim@multitalents.net> in
1679         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
1680         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
1681         * lib/fpurge.c: Likewise.
1682         * lib/freadable.h: Likewise.
1683         * lib/freading.h: Likewise.
1684         * lib/fwritable.h: Likewise.
1685         * lib/fwriting.h: Likewise.
1686         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
1687         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1688         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
1689         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
1690         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
1691         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
1693 2020-10-11  Bruno Haible  <bruno@clisp.org>
1695         stdioext: Update comments regarding Cygwin.
1696         * lib/fpending.c: Update comments.
1697         * lib/fpurge.c: Likewise.
1698         * lib/freadable.h: Likewise.
1699         * lib/freadable.c: Likewise.
1700         * lib/freading.h: Likewise.
1701         * lib/freading.c: Likewise.
1702         * lib/fwritable.h: Likewise.
1703         * lib/fwritable.c: Likewise.
1704         * lib/fwriting.h: Likewise.
1705         * lib/fwriting.c: Likewise.
1707 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
1709         Fix "warning: implicit declaration of function 'pthread_sigmask'".
1710         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
1711         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
1713 2020-10-10  Bruno Haible  <bruno@clisp.org>
1715         *-list, *-oset, *-omap: Avoid possible compiler warnings.
1716         Reported by Marc Nieper-Wißkirchen in
1717         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
1718         * lib/gl_anylinked_list2.h (gl_linked_iterator,
1719         gl_linked_iterator_from_to): Mark as 'pure'.
1720         (gl_linked_iterator_free): Mark as 'const'.
1721         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
1722         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
1723         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
1724         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
1725         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
1726         (gl_tree_iterator_free): Mark as 'const'.
1727         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
1728         'pure'.
1729         (gl_tree_iterator_free): Mark as 'const'.
1730         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
1731         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
1732         (gl_tree_iterator_free): Mark as 'const'.
1733         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
1734         compare_position_threshold): Mark as 'pure'.
1735         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
1736         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
1737         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
1738         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
1739         'pure'.
1740         (gl_array_iterator_free): Mark as 'const'.
1741         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
1742         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
1743         (gl_array_iterator_free): Mark as 'const'.
1744         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
1745         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
1746         gl_array_iterator_atleast): Mark as 'pure'.
1747         (gl_array_iterator_free): Mark as 'const'.
1748         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
1749         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
1750         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
1751         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
1752         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
1753         gl_carray_sortedlist_search): Mark as 'pure'.
1754         (gl_carray_iterator_free): Mark as 'const'.
1756 2020-10-10  Bruno Haible  <bruno@clisp.org>
1758         rbtree-list: Avoid possible compiler warnings.
1759         This mirrors the change of avltree-list on 2014-09-16.
1760         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
1761         declaration. Add cast to void for ignored value of check_invariants.
1763 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1765         stack: New module.
1766         * MODULES.html.sh: Add entry for the stack module.
1767         * modules/stack: New file.
1768         * modules/stack-tests: New file.
1769         * lib/stack.h: New file.
1770         * tests/test-stack.c: New file.
1772 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1774         attribute: improve const, pure doc
1775         Problem reported by Marc Nieper-Wißkirchen in:
1776         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
1777         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
1778         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
1780 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1782         thread: pacify GCC on Solaris 10
1783         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
1784         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
1785         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
1786         where pthread_t is unsigned int.
1788 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1790         c-stack: avoid AS_IF
1791         Problem reported by Bruno Haible in:
1792         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
1793         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
1795         c-stack: pacify GCC 9.3.1 when using libsigsegv
1796         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
1798 2020-10-04  Bruno Haible  <bruno@clisp.org>
1800         localename: Fix a couple of "unused parameter" warnings.
1801         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
1802         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
1803         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
1804         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
1805         parameter list.
1807 2020-10-04  Bruno Haible  <bruno@clisp.org>
1809         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
1810         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
1811         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
1812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
1813         HAVE_SNPRINTF_TRUNCATION_C99.
1814         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
1815         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
1817 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1819         c-stack: streamline Solaris configuration
1820         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
1821         the code is used only if a test for sigaltstack worked
1822         in some other way.
1823         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
1824         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
1825         heuristic does not work).
1826         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
1827         we no longer require the libsigsegv module.
1828         (Depends-on): Depend on havelib, not libsigsegv.
1830         c-stack: stop using SIGSTKSZ
1831         It’s been proposed to stop making SIGSTKSZ an integer constant:
1832         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
1833         Also, using SIGSTKSZ in #if did not conform to current POSIX.
1834         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
1835         * lib/c-stack.c (SIGSTKSZ): Remove.
1836         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
1837         All uses changed.
1839         c-stack: fix libsigsegv typo
1840         Problem reported by Bruno Haible in:
1841         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
1842         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
1843         to be used only on Solaris (exactly where it is not needed!).
1845 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
1847         MODULES.html.sh: Fix typo.
1848         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
1850 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
1852         version-etc: pacify Oracle Studio 12.6
1853         Without this patch, it complains: "version-etc.h", line 64:
1854         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
1855         pedantic mode.
1856         * lib/version-etc.h (version_etc): Port to C89 macro rules.
1858 2020-09-27  Bruno Haible  <bruno@clisp.org>
1860         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
1861         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1862         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1863         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
1864         ourselves; don't use AC_DECL_SYS_SIGLIST.
1866 2020-09-27  Bruno Haible  <bruno@clisp.org>
1868         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
1869         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1870         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1871         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
1872         instead of _AC_COMPUTE_INT.
1874 2020-09-27  Bruno Haible  <bruno@clisp.org>
1876         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
1877         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1878         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1879         Based on a patch by Paul Eggert.
1880         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
1881         test STDC_HEADERS. Assume <stdlib.h> exists.
1882         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
1884 2020-09-27  Bruno Haible  <bruno@clisp.org>
1886         Enable testing of prereleases of Autoconf 2.70.
1887         Suggested by Paul Eggert in
1888         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
1889         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
1890         >= 2.70.
1891         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
1892         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
1893         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
1895 2020-09-27  Bruno Haible  <bruno@clisp.org>
1897         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
1898         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1899         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1900         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
1901         AC_PROG_CC, depending on the Autoconf version.
1903 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
1905         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
1906         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
1907         of AC_HELP_STRING.
1908         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
1910 2020-09-27  Bruno Haible  <bruno@clisp.org>
1912         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
1913         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1914         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1915         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
1917 2020-09-27  Bruno Haible  <bruno@clisp.org>
1919         extensions: Simplify last commit.
1920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
1921         AC_GNU_SOURCE ever.
1923 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1925         extensions: require AC_GNU_SOURCE only for <=2.63
1926         Problem reported by Gavin Smith in:
1927         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
1928         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
1929         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
1930         shouldn’t be needed after that, and Autoconf 2.70 complains about
1931         it being obsolete.
1933 2020-09-26  Bruno Haible  <bruno@clisp.org>
1935         regex-tests: Make test more robust.
1936         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
1937         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
1939 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1941         regex-tests: fix possible Turkish false-alarm
1942         * modules/regex-tests (Depends-on): Add wctype-h.
1943         * tests/test-regex.c: Include wctype.h.
1944         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
1945         as the Turkish regex test assumes this.
1947         regex-tests: fix test and add debug output
1948         Perhaps this will fix the recent grep test failure reported at:
1949         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
1950         At least, the debug output should help narrow down the failure.
1951         * tests/test-regex.c: Include stdarg.h, stdio.h.
1952         (exit_status): New var.
1953         (report_error): New function.
1954         (main): Use it to report failures to stdout instead of merely
1955         exiting with some nonzero status.  The status info alone isn’t
1956         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
1957         regex before calling re_compile_pattern, fixing a portability bug.
1959         regex: no longer match glibc
1960         * config/srclist.txt: Comment out regex_internal.c for now.
1962 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1964         regex: fix ignore-case Turkish bug
1965         * lib/regex_internal.c (build_wcs_upper_buffer):
1966         Do not assume that converting single-byte character to upper
1967         yields a single-byte character.  This is not true for Turkish,
1968         where towupper (L'i') yields L'İ', which is not single-byte.
1969         * tests/test-regex.c (main): Test for this bug.
1971         regex: port to weird isascii platforms
1972         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
1974 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1976         dfa: make dfasupported a global function
1977         * lib/dfa.c (dfasupported): Rename, and make it global.
1978         Update caller.
1979         * lib/dfa.h (dfasupported): Add prototype.
1981 2020-09-20  Bruno Haible  <bruno@clisp.org>
1983         canonicalize: Add support for UNC file names on native Windows.
1984         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
1985         <https://savannah.gnu.org/bugs/?59079>.
1986         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
1987         extend the prefix to include the server.
1989 2020-09-20  Bruno Haible  <bruno@clisp.org>
1991         supersede: Fix test failures on native Windows.
1992         * lib/supersede.c (open_supersede): Handle non-regular files on native
1993         Windows like on Solaris.
1994         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
1996 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1998         test-stdalign: test Oracle Studio better
1999         * doc/posix-headers/stdalign.texi (stdalign.h):
2000         * tests/test-stdalign.c (main):
2001         Sun Studio Bug #2125432 seems to be fixed.
2003         c-stack: output diagnostic in single 'write'
2004         * lib/c-stack.c (die): In the typical case, use just one 'write'
2005         syscall to output the diagnostic, as this lessens interleaving.
2006         (die, c_stack_action): Assume C99.
2007         * modules/c-stack (Depends-on): Add c99, mempcpy.
2009         c-stack: improve checking if !libsigsegv
2010         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
2011         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
2012         unlikely pointer overflow.  Also, fix some obsolete code and typos.
2013         I found these problems while looking into this bug report:
2014         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
2015         * lib/c-stack.c: Include c-stack.h first, to test interface.
2016         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
2017         max_align_t, intprops.h for INT_ADD_WRAPV.
2018         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
2019         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
2020         for libsigsegv 2.8 and earlier since the bug should be fixed
2021         after that.
2022         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
2023         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2024         Assume sprintf returns byte count; this assumption is safe now.
2025         (page_size): New static volatile variable, since sysconf isn’t
2026         documented to be async-signal-safe on Solaris.  This variable is
2027         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
2028         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
2029         SIGINFO_WORKS).
2030         (segv_handler): Use it if present.  Never report null pointer
2031         dereference as a stack overflow.  Check for (unlikely) unsigned
2032         and/or pointer overflow.
2033         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2034         Rename cache variables to gl_cv_sys_stack_overflow_works
2035         and gl_cv_sys_xsi_stack_overflow_heuristic.
2036         All uses changed.
2037         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
2038         c-stack no longer uses STACK_DIRECTION.
2039         Do not check for unistd.h, since we depend on unistd.
2040         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
2041         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
2042         stdbool, stddef.
2044 2020-09-20  Bruno Haible  <bruno@clisp.org>
2046         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
2047         * m4/musl.m4: Revert 2020-09-19 patch.
2048         * m4/setlocale_null.m4: Likewise.
2049         * modules/setlocale-null: Likewise.
2051 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
2052             Bruno Haible  <bruno@clisp.org>
2054         relocatable-prog: Fix for multiple relocatable library directories.
2055         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
2056         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
2057         being attached to a single one.
2059 2020-09-19  Jim Meyering  <meyering@fb.com>
2061         test-verify.c: avoid -Wshadow warnings
2062         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
2063         (enum): Capitalize member names. Adjust uses.
2065 2020-09-19  Bruno Haible  <bruno@clisp.org>
2067         havelib: Avoid linking with libc.a on GNU systems.
2068         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
2069         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
2070         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
2071         dependency_libs value of a .la file, ignore '-lc' options on GNU
2072         systems.
2074 2020-09-19  Bruno Haible  <bruno@clisp.org>
2076         Fix recognition of musl libc on Alpine Linux 3.10.
2077         Reported by Jeffrey Walton <noloader@gmail.com> in
2078         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
2079         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
2080         (gl_MUSL_LIBC): Require it.
2081         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
2082         * modules/setlocale-null (Files): Add m4/musl.m4.
2084 2020-09-19  Bruno Haible  <bruno@clisp.org>
2086         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
2087         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
2088         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
2089         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
2090         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
2091         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
2092         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
2093         or <threads.h>.
2094         (ITEMS, MAX_RESULT_LEN): New macros.
2095         (nl_langinfo_unlocked): New function.
2096         (gl_get_nl_langinfo_lock): New declaration.
2097         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
2098         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
2099         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
2100         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
2101         REPLACE_NL_LANGINFO.
2102         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
2103         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
2104         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
2105         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
2106         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
2108 2020-09-18  Bruno Haible  <bruno@clisp.org>
2110         fsusage, getaddrinfo: Produce more regular configure output.
2111         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
2112         corresponding AC_MSG_RESULT.
2113         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2115 2020-09-18  Bruno Haible  <bruno@clisp.org>
2117         Add back gl_SILENT.
2118         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
2120 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2122         c-stack-tests: fix -fsanitize=undefined false alarm
2123         * tests/test-c-stack2.sh: Skip the test-harness self-test
2124         if ‘gcc -fsanitize=undefined’ is in use.
2126 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2128         signalblocking: simplify and remove gl_SILENT
2129         gl_SILENT was problematic because if a trap was sprung, stderr
2130         generated during the trap was lost.  Avoid the problem by
2131         removing the need for gl_SILENT.
2132         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
2133         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
2134         Simplify, avoiding the need for gl_SILENT while preserving the
2135         ability of the user to override the value of the cache variable,
2136         now ac_cv_func_sigprocmask.
2138 2020-09-17  Bruno Haible  <bruno@clisp.org>
2140         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
2141         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
2142         (gl_SILENT): Use 'exec', not a compound statement, to redirect
2143         AS_MESSAGE_FD.
2145 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2147         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
2148         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
2149         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
2150         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
2151         Define to 0.
2152         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
2153         Do not use __builtin_mul_overflow_p.
2155         libc-config: port __THROW to Ubuntu 4
2156         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
2157         for GCC 3.3.  Problem reported by Jeffrey Walton in:
2158         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
2159         The GCC 3.3.4 documentation says the attribute should work, but
2160         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
2161         little point or desire to research this circa-2004 platform further,
2162         so just avoid the attribute there.
2164 2020-09-17  Jim Meyering  <meyering@fb.com>
2166         test-dfa-match.sh: port timeout work-around to newer Busybox
2167         * tests/test-dfa-match.sh: Update timeout -t portability test to
2168         accommodate Busybox 1.30.0 and newer.
2170 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2172         fnmatch: adjust to match glibc fix
2173         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
2174         This does not affect Gnulib; it merely keeps Gnulib and glibc
2175         closer together, to help with any eventual merge, by incorporating
2176         a recent glibc patch.  The patch and the following commentary is
2177         by Andreas Schwab.
2178         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
2179         contains the index into the extra array, whereas wextra points
2180         into the extra array at this index, containing the length of the
2181         following collating sequence in the wide character representation.
2183 2020-09-16  Bruno Haible  <bruno@clisp.org>
2185         stat, fstat: Fix compilation error with old mingw headers.
2186         Reported by Eli Zaretskii <eliz@gnu.org> in
2187         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2188         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
2189         define it.
2191 2020-09-16  Bruno Haible  <bruno@clisp.org>
2193         stat, fstat: Fix when compiling for versions older than Windows Vista.
2194         Reported by Eli Zaretskii <eliz@gnu.org> in
2195         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2196         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
2197         that was originally set before we redefined it.
2198         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
2199         (gl_PREREQ_STAT): Require it.
2200         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
2202 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2204         dfa: remove dfa-heap-overrun workaround
2205         * lib/dfa.c (reorder_tokens): Go back to a single pass that
2206         both sets map[*] and does other things.  This reverts
2207         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
2208         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
2209         fixed the underlying problem.
2211 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2213         dfa: avoid use of uninitialized constraint
2214         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
2215         to zero here.
2216         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
2217         use of an uninitialized constraint by later code when ! (flags[i]
2218         & OPT_QUEUED) means merge_nfa_state was not called to initialize
2219         the constraint.  Problem found by running 'valgrind src/grep -E
2220         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
2222         dfa: assume C99 in reorder_tokens
2223         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
2225         dfa: fix dfa-heap-overrun failure
2226         * lib/dfa.c (reorder_tokens): When setting
2227         map[d->follows[i].elems[j].index], instead of incorrectly assuming
2228         that (i < d->follows[i].elems[j].index), use two loops, one to set
2229         the map array and the other to use it.  The incorrect assumption
2230         caused some elements to be missed, and this in turn caused grep's
2231         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
2232         with GCC.  I found this bug while investigating
2233         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
2234         and I think the bug also occurs on GNU/Linux but with more-subtle
2235         symptoms.  The bug predates the recent dfa.c changes; perhaps the
2236         recent changes make the bug more likely.
2238 2020-09-13  Bruno Haible  <bruno@clisp.org>
2240         parse-datetime: Make the build rule work with parallel 'make'.
2241         Reported by Daiki Ueno <ueno@gnu.org> in
2242         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
2243         * modules/parse-datetime (Makefile.am): Use a phony target and the
2244         general idiom for rules that produce multiple files.
2246 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
2248         getpass: Check for nonnull prompt argument while avoiding warnings.
2249         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
2250         (getpass) [!_WIN32]: Print prompt only if nonnull.
2252 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2254         dfa: epsilon-closure tweaks (Bug#40634)
2255         Rename BACKWORD to BACKWARD consistently.
2256         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
2257         (addtok_mb): Redo slightly to make it act more like a state machine.
2258         Check depth only when it increases.
2259         (epsclosure): Let the switch test the tokens.
2260         (dfaanalyze): Cache tindex.  Simplify position loops.
2261         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
2262         only if it is not null, since we're testing that anyway.
2263         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
2265 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2267         dfa: use backward set in removal of epsilon closure
2268         When removing in epsilon closure, the code searched all nodes
2269         sequentially, and this was slow for some cases.  Build a backward
2270         set before search, and only check previous position with the set.
2271         Problem reported in <https://bugs.gnu.org/40634>.
2272         * lib/dfa.c (struct dfa): New member 'epsilon'.
2273         (addtok_mb): Check whether a pattern has epsilon node or not.
2274         (epsclosure): New arg BACKWORD; caller changed.  When removing
2275         epsilon node and reconnecting, check only previous positions.
2276         Treat BEG as if it were character.
2277         (dfaanalyze): Build backward set.
2279 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2281         canonicalize: fix pointer indexing bugs
2282         Problem reported by Florian Weimer in:
2283         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
2284         * lib/canonicalize-lgpl.c (__realpath):
2285         * lib/canonicalize.c (canonicalize_filename_mode):
2286         Do not generate a pointer past the end of the array.
2287         * lib/canonicalize.c (canonicalize_filename_mode):
2288         Do not use a pointer after passing it to realloc.
2290 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2292         tempname: help merge with glibc
2293         Inspired by draft patches by Adhemerval Zanella in:
2294         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
2295         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
2296         * lib/tempname.c: Include stdalign.h, time.h.
2297         If _LIBC, do not include random-bits.h.
2298         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
2299         (RANDOM_BITS): Remove, replacing with ...
2300         (random_bits): ... this new static function.  All uses changed.
2301         Add entropy each time if getrandom is not supported.
2302         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
2303         Assume 64-bit support a la C99.
2304         (try_tempname_len): Take advantage of ASLR when initializing
2305         random value.
2306         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
2308         getcwd: merge recent glibc changes
2309         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
2310         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
2312 2020-09-06  Bruno Haible  <bruno@clisp.org>
2314         attribute: Clarify which file to include.
2315         * modules/attribute (Include): Add "attribute.h".
2317 2020-09-06  Bruno Haible  <bruno@clisp.org>
2319         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
2320         * lib/pipe-filter-ii.c: Include <process.h>.
2321         * lib/pipe-filter-gi.c: Likewise.
2323 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2325         verify: avoid __builtin_assume
2326         Our latest attempt to use Clang’s __builtin_assume caused a crash
2327         in GNU Emacs that we spent quite some time tracking down as being
2328         caused by the switch to __builtin_assume.  It’s not known whether
2329         the crash is due is a Clang bug or a portability bug in GNU Emacs.
2330         For now, play it safe and avoid __builtin_assume.
2331         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
2332         (assume): Simplify by not trying to use Clang’s __builtin_assume.
2334 2020-09-05  Bruno Haible  <bruno@clisp.org>
2336         Fix several "warning: no previous prototype for function".
2337         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
2338         in front of the declaration of the lookup function in
2339         unicase/locale-languages.h.
2340         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
2341         unictype/bidi_byname.h.
2342         * modules/unictype/category-byname (Makefile.am): Likewise in
2343         unictype/categ_byname.h.
2344         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
2345         unictype/combiningclass_byname.h.
2346         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
2347         unictype/joininggroup_byname.h.
2348         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
2349         unictype/joiningtype_byname.h.
2350         * modules/unictype/property-byname (Makefile.am): Likewise in
2351         unictype/pr_byname.h.
2352         * modules/unictype/scripts (Makefile.am): Likewise in
2353         unictype/scripts_byname.h.
2354         * modules/uninorm/composition (Makefile.am): Likewise in
2355         uninorm/composition-table.h.
2357 2020-09-05  Bruno Haible  <bruno@clisp.org>
2359         select: Fix "warning: no previous prototype for function".
2360         * lib/select.c: Include <sys/select.h>.
2362 2020-09-05  Bruno Haible  <bruno@clisp.org>
2364         Use module 'c99' when needed for variadic macros with '...' syntax.
2365         * modules/crypto/sm3 (Depends-on): Add c99.
2367 2020-09-05  Bruno Haible  <bruno@clisp.org>
2369         Use module 'c99' when needed for subobject initializer syntax.
2370         * modules/tempname (Depends-on): Add c99.
2371         * modules/nstrftime-tests (Depends-on): Likewise.
2373 2020-09-05  Bruno Haible  <bruno@clisp.org>
2375         Use module 'c99' when needed for declaration-after-statement syntax.
2376         * modules/backup-rename (Depends-on): Add c99.
2377         * modules/backupfile (Depends-on): Likewise.
2378         * modules/bitset-tests (Depends-on): Likewise.
2379         * modules/bitsetv (Depends-on): Likewise.
2380         * modules/c-strtod (Depends-on): Likewise.
2381         * modules/c-strtold (Depends-on): Likewise.
2382         * modules/clean-temp (Depends-on): Likewise.
2383         * modules/copy-file (Depends-on): Likewise.
2384         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
2385         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
2386         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
2387         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
2388         * modules/crypto/md5-buffer (Depends-on): Likewise.
2389         * modules/crypto/md5-tests (Depends-on): Likewise.
2390         * modules/crypto/sha1-buffer (Depends-on): Likewise.
2391         * modules/crypto/sha1-tests (Depends-on): Likewise.
2392         * modules/crypto/sha256-buffer (Depends-on): Likewise.
2393         * modules/crypto/sha256-tests (Depends-on): Likewise.
2394         * modules/crypto/sha512-buffer (Depends-on): Likewise.
2395         * modules/crypto/sha512-tests (Depends-on): Likewise.
2396         * modules/diffseq (Depends-on): Likewise.
2397         * modules/fatal-signal (Depends-on): Likewise.
2398         * modules/fchmodat (Depends-on): Likewise.
2399         * modules/fstrcmp (Depends-on): Likewise.
2400         * modules/fsusage (Depends-on): Likewise.
2401         * modules/fts (Depends-on): Likewise.
2402         * modules/fts-tests (Depends-on): Likewise.
2403         * modules/getumask (Depends-on): Likewise.
2404         * modules/git-merge-changelog (Depends-on): Likewise.
2405         * modules/hash-map (Depends-on): Likewise.
2406         * modules/hash-set (Depends-on): Likewise.
2407         * modules/lchmod (Depends-on): Likewise.
2408         * modules/libgmp-tests (Depends-on): Likewise.
2409         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
2410         * modules/linkedhash-map (Depends-on): Likewise.
2411         * modules/linkedhash-set (Depends-on): Likewise.
2412         * modules/long-options (Depends-on): Likewise.
2413         * modules/mbrtoc32 (Depends-on): Likewise.
2414         * modules/memchr2-tests (Depends-on): Likewise.
2415         * modules/memmem-tests (Depends-on): Likewise.
2416         * modules/memrchr-tests (Depends-on): Likewise.
2417         * modules/mktime-internal (Depends-on): Likewise.
2418         * modules/nstrftime (Depends-on): Likewise.
2419         * modules/opendirat (Depends-on): Likewise.
2420         * modules/parse-datetime (Depends-on): Likewise.
2421         * modules/quotearg-simple-tests (Depends-on): Likewise.
2422         * modules/same (Depends-on): Likewise.
2423         * modules/supersede (Depends-on): Likewise.
2424         * modules/supersede-tests (Depends-on): Likewise.
2425         * modules/time_rz (Depends-on): Likewise.
2426         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2427         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
2428         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
2429         * modules/xalloc (Depends-on): Likewise.
2430         * modules/xnanosleep (Depends-on): Likewise.
2432 2020-09-05  Bruno Haible  <bruno@clisp.org>
2434         Fix "warning: array initialized from parenthesized string constant".
2435         * tests/test-memmem.c (main): Remove parentheses around string constant.
2436         * tests/test-c-strcasestr.c (main): Likewise.
2437         * tests/test-strcasestr.c (main): Likewise.
2439 2020-09-05  Bruno Haible  <bruno@clisp.org>
2441         argmatch tests: Fix ISO C compliance warning.
2442         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
2443         invocation.
2445 2020-09-05  Bruno Haible  <bruno@clisp.org>
2447         uniname/uniname: Fix -Wshadow warning.
2448         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
2449         * modules/uniname/uniname (Depends-on): Add c99.
2451 2020-09-05  Bruno Haible  <bruno@clisp.org>
2453         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
2454         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
2455         argument to size_t.
2456         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
2457         n to size_t.
2459 2020-09-05  Bruno Haible  <bruno@clisp.org>
2461         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
2462         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
2463         u32_uctomb): Change type of last argument to ptrdiff_t.
2464         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
2465         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2466         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
2467         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
2468         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
2470 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2472         manywarnings: remove -Wchkp and -Wabi from C++ too
2473         Suggested by Reuben Thomas in:
2474         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
2475         At some point somebody should merge the many other manywarnings-c.m4
2476         changes into manywarnings-c++.m4 too, e.g.,
2477         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
2478         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2479         Remove -Wchkp, -Wabi.
2481 2020-08-30  Bruno Haible  <bruno@clisp.org>
2483         strerrorname_np: Add tests.
2484         * tests/test-strerrorname_np.c: New file.
2485         * modules/strerrorname_np-tests: New file.
2487         strerrorname_np: New module.
2488         * lib/string.in.h (strerrorname_np): New declaration.
2489         * lib/strerrorname_np.c: New file.
2490         * m4/strerrorname_np.m4: New file.
2491         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
2492         is declared.
2493         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
2494         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2495         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
2496         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2497         * modules/strerrorname_np: New file.
2498         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
2499         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
2500         the glibc 2.32 bug.
2502 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2504         perror, strerror_r: remove unportable tests
2505         Problem reported by Florian Weimer in:
2506         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
2507         * tests/test-perror2.c (main):
2508         * tests/test-strerror_r.c (main): Omit unportable tests.
2510 2020-08-26  Bruno Haible  <bruno@clisp.org>
2512         stdint, wchar, wctype-h: Change configure message.
2513         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
2514         enough..." instead of "checking whether wint_t is too small...".
2516 2020-08-26  Bruno Haible  <bruno@clisp.org>
2518         time_rz: Change configure message.
2519         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
2520         near extrema..." instead of "checking whether localtime loops forever
2521         near extrema...".
2523 2020-08-26  Bruno Haible  <bruno@clisp.org>
2525         stdint: Change configure message.
2526         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
2527         without ISO C predefines..." instead of "checking whether stdint.h
2528         predates C++11...".
2530 2020-08-26  Bruno Haible  <bruno@clisp.org>
2532         socketlib: Change configure message.
2533         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
2534         instead of "checking if we need to call WSAStartup in winsock2.h and
2535         -lws2_32...".
2537 2020-08-26  Bruno Haible  <bruno@clisp.org>
2539         include_next: Change configure message.
2540         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
2541         code line length is unlimited..." instead of "checking whether system
2542         header files limit the line length...".
2544 2020-08-26  Bruno Haible  <bruno@clisp.org>
2546         getcwd: Change configure message.
2547         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
2548         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
2549         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
2551 2020-08-26  Bruno Haible  <bruno@clisp.org>
2553         chdir-long: Change configure message.
2554         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
2555         system supports file names of any length..." instead of "checking
2556         whether this system has an arbitrary file name length limit...".
2557         Set gl_cv_have_unlimited_file_name_length instead of
2558         gl_cv_have_arbitrary_file_name_length_limit.
2559         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
2561 2020-08-26  Bruno Haible  <bruno@clisp.org>
2563         ceill: Change configure message.
2564         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
2565         instead of "checking whether ceill() breaks with small values...".
2567 2020-08-26  Bruno Haible  <bruno@clisp.org>
2569         iconv: Change configure message.
2570         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
2571         with its POSIX signature..." instead of "checking for iconv
2572         declaration...". Remove K&R C support.
2574 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2576         getcwd: help the merge back into glibc
2577         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
2578         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
2579         The idea is to make it easier for Gnulib lib/getcwd.c to match
2580         glibc io/getcwd-generic.c.
2581         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
2582         Include not-cancel.h.
2583         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
2584         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
2585         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
2586         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
2587         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
2588         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
2589         (__getcwd_generic): Rename from __getcwd.
2590         Use the abovementioned macros for consistency with glibc.
2591         (weak_alias): Remove.
2593 2020-08-25  Bruno Haible  <bruno@clisp.org>
2595         verify: Avoid warnings when assume(0) is used.
2596         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
2597         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
2598         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
2599         the constant 0.
2600         * tests/test-verify.c (f): New function.
2601         (state): New type.
2602         (test_assume_expressions, test_assume_optimization,
2603         test_assume_noreturn): New functions.
2605 2020-08-25  Bruno Haible  <bruno@clisp.org>
2607         fstrcmp: Clarification regarding NOTE_ORDERED.
2608         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
2610 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2612         diffseq: new option NOTE_ORDERED
2613         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
2614         * NEWS: Mention this.
2615         * lib/diffseq.h (NOTE_ORDERED): New macro.
2616         (IF_LINT2): Remove; no longer needed.
2617         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
2618         subproblem and iterate to do the larger.
2620 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2622         sys_types: let Autoconf 2.70 do pid_t
2623         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
2624         only for Autoconf versions 2.69 and earlier, since 2.70
2625         will be fixed.
2627 2020-08-23  Bruno Haible  <bruno@clisp.org>
2629         tests: Don't assume that pid_t fits in an 'int'.
2630         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
2631         of 'int'.
2632         * tests/test-nonblocking-socket-main.c (main): Likewise.
2634         sys_types: Fix definition of pid_t on 64-bit MSVC.
2635         * m4/pid_t.m4: New file.
2636         * modules/sys_types (Files): Add it.
2637         * modules/dirent (Files): Likewise.
2638         * modules/fcntl-h (Files): Likewise.
2639         * modules/sched (Files): Likewise.
2640         * modules/signal-h (Files): Likewise.
2641         * modules/spawn (Files): Likewise.
2642         * modules/sys_stat (Files): Likewise.
2643         * modules/sys_wait (Files): Likewise.
2644         * modules/termios (Files): Likewise.
2645         * modules/unistd (Files): Likewise.
2647 2020-08-23  Bruno Haible  <bruno@clisp.org>
2649         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
2650         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
2651         program.
2653 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2655         intprops: be consistent about +X vs X+0
2656         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
2658         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
2659         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
2660         is a bit-field, on older GCC or non-GCC compilers where we do
2661         things ourselves instead of using __builtin_mul_overflow.
2662         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
2663         to applying sizeof to a bit-field.
2664         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
2665         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
2667 2020-08-23  Bruno Haible  <bruno@clisp.org>
2669         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
2670         Reported by Jörg Sonnenberger <joerg@netbsd.org>
2671         via Thomas Klausner <tk@giga.or.at> in
2672         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
2673         * lib/supersede.c (open_supersede): When opening an existing non-regular
2674         file on Solaris, use O_CREAT although it should not be necessary.
2676 2020-08-23  Bruno Haible  <bruno@clisp.org>
2678         verify: Make assume work on bit field expressions (regr. 2020-08-22).
2679         Reported by Benno Schulenberg <bensberg@telfort.nl> in
2680         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
2681         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
2682         variable.
2684 2020-08-23  Bruno Haible  <bruno@clisp.org>
2686         libc-config: Improve comments.
2687         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
2688         cannot use clang's __diagnose_if__ here.
2690 2020-08-22  Bruno Haible  <bruno@clisp.org>
2692         verify: Do use __builtin_assume on clang.
2693         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
2694         variable in a statement expression.
2696 2020-08-22  Bruno Haible  <bruno@clisp.org>
2698         sig2str: Add more signals.
2699         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
2701 2020-08-22  Bruno Haible  <bruno@clisp.org>
2703         doc: Update for OpenBSD 6.0, 6.7.
2704         * doc/*/*.texi: Update.
2705         * m4/printf.m4: Update comments and cross-compilation guesses.
2706         * m4/ceill.m4: Update comments.
2707         * m4/getcwd-abort-bug.m4: Likewise.
2708         * m4/ilogb.m4: Likewise.
2709         * m4/ilogbf.m4: Likewise.
2710         * m4/langinfo_h.m4: Likewise.
2711         * m4/modf.m4: Likewise.
2712         * m4/modff.m4: Likewise.
2714 2020-08-22  Bruno Haible  <bruno@clisp.org>
2716         doc: Mention sig2str module.
2717         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
2719 2020-08-21  Bruno Haible  <bruno@clisp.org>
2721         sigdescr_np: Add tests.
2722         * tests/test-sigdescr_np.c: New file.
2723         * modules/sigdescr_np-tests: New file.
2725         sigdescr_np: New module.
2726         * lib/string.in.h (sigdescr_np): New declaration.
2727         * lib/sigdescr_np.c: New file.
2728         * m4/sigdescr_np.m4: New file.
2729         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
2730         declared.
2731         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
2732         HAVE_SIGDESCR_NP.
2733         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
2734         HAVE_SIGDESCR_NP.
2735         * modules/sigdescr_np: New file.
2736         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
2737         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
2739 2020-08-20  Bruno Haible  <bruno@clisp.org>
2741         sigabbrev_np: Add tests.
2742         * tests/test-sigabbrev_np.c: New file.
2743         * modules/sigabbrev_np-tests: New file.
2745         sigabbrev_np: New module.
2746         * lib/string.in.h (sigabbrev_np): New declaration.
2747         * lib/sigabbrev_np.c: New file.
2748         * m4/sigabbrev_np.m4: New file.
2749         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
2750         declared.
2751         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
2752         HAVE_SIGABBREV_NP.
2753         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
2754         HAVE_SIGABBREV_NP.
2755         * modules/sigabbrev_np: New file.
2756         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
2757         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
2759 2020-08-20  Bruno Haible  <bruno@clisp.org>
2761         stdalign tests: Skip test with AIX xlclang.
2762         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
2764 2020-08-20  Bruno Haible  <bruno@clisp.org>
2766         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
2767         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
2768         workaround as for GCC versions < 4.9.
2770 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2772         Sync up ProjectQuirks comments and documentation
2773         Transform the ProjectQuirks comments into a docstring so that it can
2774         be accessed from python as ProjectQuirks.__doc__ and harmonize
2775         descriptions with the documentation.
2776         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
2777         Transform comments into a docstring.
2778         * doc/vcs-to-changelog.texi: Sync up description with comments.
2780         Split ProjectQuirks out into its own file
2781         ProjectQuirks is used by external quirks files and importing it from
2782         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
2783         is cleaner to put it in its own file anyway.
2784         * build-aux/vcstocl/projectquirks.py: A new file...
2785         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
2786         we move ProjectQuirks and import the file.
2788 2020-08-19  Bruno Haible  <bruno@clisp.org>
2790         uchar: Fix compilation errors in C++ mode on macOS.
2791         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
2792         system header file before attempting to use 'char16_t' and 'char32_t'.
2794 2020-08-19  Bruno Haible  <bruno@clisp.org>
2796         ansi-c++-opt: Work around an autoconf macro reordering problem.
2797         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
2798         section.
2800 2020-08-19  Bruno Haible  <bruno@clisp.org>
2802         math C++ tests: Fix compilation error in with GCC 10.
2803         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
2804         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
2805         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2807 2020-08-19  Bruno Haible  <bruno@clisp.org>
2809         uchar: Fix compilation errors in C++ mode on OpenBSD.
2810         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
2811         CXX_HAS_UCHAR_TYPES is 1.
2812         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
2813         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
2814         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
2816 2020-08-19  Bruno Haible  <bruno@clisp.org>
2818         Fix compilation errors in C++ mode on OpenBSD.
2819         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
2820         OpenBSD with clang, use the approach without C preprocessor macro.
2822 2020-08-18  Bruno Haible  <bruno@clisp.org>
2824         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
2825         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
2826         AC_LANG_POP.
2828 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2830         verify: avoid __built_assume on Clang
2831         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
2832         Clang 9 incorrectly diagnoses arguments as having side effects
2833         even when they do not.  I guess Clang 9 considers any function
2834         call as if it had a side effect here.
2836         libc-config: avoid Clang’s __diagnose_if__
2837         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
2838         For now, do not use __diagnose_if__ here, as this fails
2839         on Fedora 31 with Clang 9.0.1, with diagnostic
2840         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
2841         size than length of destination buffer
2842         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
2843         for functions that are not called?
2845         careadlinkat: speedup for GCC 10 with GCC_LINT
2846         Inspired by a suggestion by Bruno Haible in:
2847         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
2848         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
2849         (readlink_stk): New function, with most of the old careadlinkat
2850         contents and with a new STACK_BUF arg.  Inline it in GCC 10
2851         if GCC_LINT.
2852         (careadlinkat): Use the new function for everything but the
2853         stack buffer.
2855         * build-aux/gcc-warning.spec: Update comments.
2857 2020-08-17  Bruno Haible  <bruno@clisp.org>
2859         Assume autoconf >= 2.64.
2860         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
2862 2020-08-17  Bruno Haible  <bruno@clisp.org>
2864         Revert autoupdate's revert.
2865         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
2867 2020-08-17  Bruno Haible  <bruno@clisp.org>
2869         uchar C++ tests: Fix build error on FreeBSD 12.
2870         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
2871         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
2872         <cuchar> does not exist.
2874 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2876         time_rz: remove unused functions
2877         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
2879         time_rz: fix issues with mktime_z failures
2880         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
2881         Use a cheaper tm_yday test for failed mktime.
2883 2020-08-16  Bruno Haible  <bruno@clisp.org>
2885         intprops test: Strengthen on clang.
2886         * tests/test-intprops.c (VERIFY): Use verify_stmt.
2888 2020-08-16  Bruno Haible  <bruno@clisp.org>
2890         nstrftime: Guide inlining also on clang.
2891         * lib/nstrftime.c (iso_week_days): Inline also on clang.
2893 2020-08-16  Bruno Haible  <bruno@clisp.org>
2895         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
2896         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
2898 2020-08-16  Bruno Haible  <bruno@clisp.org>
2900         log2l: Disable MSVC workaround on clang.
2901         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
2903 2020-08-16  Bruno Haible  <bruno@clisp.org>
2905         argp: Emit a warning also with clang.
2906         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
2907         clang.
2909 2020-08-16  Bruno Haible  <bruno@clisp.org>
2911         libc-config: Enable __REDIRECT macro also on clang.
2912         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
2913         __ASMNAME2): Define on clang like on GCC.
2915 2020-08-16  Bruno Haible  <bruno@clisp.org>
2917         regex: Use initializer shorthand syntax also with clang.
2918         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
2919         with clang.
2921 2020-08-16  Bruno Haible  <bruno@clisp.org>
2923         regex: Use space optimization also with clang.
2924         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
2925         with clang.
2927 2020-08-16  Bruno Haible  <bruno@clisp.org>
2929         Use _Static_assert and static_assert primitives when present on clang.
2930         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
2931         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
2932         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
2934 2020-08-16  Bruno Haible  <bruno@clisp.org>
2936         Use 'throw ()' for optimization in C++ mode also on clang.
2937         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
2938         * lib/getopt-cdefs.in.h (__THROW): Likewise.
2939         * lib/md5.h (__THROW): Likewise.
2941 2020-08-16  Bruno Haible  <bruno@clisp.org>
2943         absolute-header: Add support for clang.
2944         * modules/absolute-header (Makefile.am): Include '__clang__' in the
2945         HAVE_INCLUDE_NEXT expression.
2947 2020-08-16  Bruno Haible  <bruno@clisp.org>
2949         Fix "warning: implicitly declaring library function 'strcasecmp'".
2950         * lib/argp-help.c: Include <strings.h>.
2952 2020-08-16  Bruno Haible  <bruno@clisp.org>
2954         stdio: Don't break attribute 'scanf' on clang.
2955         * lib/stdio.in.h (scanf): Treat clang like GCC.
2957 2020-08-16  Bruno Haible  <bruno@clisp.org>
2959         Use __restrict also on clang.
2960         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
2961         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
2962         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
2964 2020-08-16  Bruno Haible  <bruno@clisp.org>
2966         pthread-spin: Use GCC built-ins also on clang.
2967         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2968         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
2969         also on clang.
2971 2020-08-16  Bruno Haible  <bruno@clisp.org>
2973         asyncsafe-spin tests: Update.
2974         * tests/test-asyncsafe-spin2.c: Update to match the change in
2975         lib/asyncsafe-spin.c from 2020-08-11.
2977 2020-08-16  Bruno Haible  <bruno@clisp.org>
2979         setenv: Use tree code also with clang.
2980         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
2982 2020-08-16  Bruno Haible  <bruno@clisp.org>
2984         math: Optimize signbit also on clang.
2985         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
2986         on clang.
2988 2020-08-16  Bruno Haible  <bruno@clisp.org>
2990         avltreehash-list, rbtreehash-list: Optimize also on clang.
2991         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
2992         __builtin_expect also on clang.
2994 2020-08-16  Bruno Haible  <bruno@clisp.org>
2996         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
2997         * lib/socket.c: Use WSASocketW, not WSASocketA.
2999         Fix "warning: format specifies type 'unsigned long'".
3000         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
3001         argument to match the format directive.
3003         Fix "warning: no case matching constant switch condition '0'".
3004         * tests/test-fcntl.c (check_flags): Add a 'default' case.
3006         Fix "warning: integer overflow in expression".
3007         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
3008         remove a 'long' overflow.
3010         Fix "warning: "getpagesize" redefined".
3011         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
3012         macro.
3014         Fix "warning: implicitly declaring library function 'strncasecmp'".
3015         * lib/strptime.c: Include <strings.h>.
3017         Fix "warning: 'snprintf' macro redefined".
3018         * lib/strerror_r.c (snprintf): Undefine before redefining.
3020         Fix "warning: address of array 'locale' will always evaluate to 'true'".
3021         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
3023         Fix "warning: '__stat64' macro redefined".
3024         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
3026         Fix "warning: 'format' attribute argument not supported: rpl_printf".
3027         * lib/stdio.in.h (printf): Treat clang like GCC.
3029         Fix "warning: attribute declaration must precede definition" with clang.
3030         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
3031         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
3032         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
3033         on non-glibc systems.
3034         * lib/netdb.in.h (gai_strerror): Likewise.
3035         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
3036         * lib/sys_stat.in.h (fstat): Likewise.
3037         * lib/utime.in.h (utime): Likewise.
3039         Fix undesired warnings.
3040         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
3041         clang.
3043 2020-08-16  Bruno Haible  <bruno@clisp.org>
3045         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
3046         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
3047         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
3048         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
3049         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
3051 2020-08-16  Bruno Haible  <bruno@clisp.org>
3053         Don't use Autoconf quadrigraphs.
3054         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
3055         Autoconf quadrigraph.
3056         * m4/free.m4 (gl_FUNC_FREE): Likewise.
3057         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
3058         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
3059         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
3060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3061         * m4/math_h.m4 (gl_MATH_H): Likewise.
3062         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3064 2020-08-16  Bruno Haible  <bruno@clisp.org>
3066         Fix quoting of AC_LANG_PROGRAM arguments.
3067         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
3068         arguments through [[...]].
3069         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
3070         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3071         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3072         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
3073         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
3074         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3075         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
3076         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3077         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3078         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3079         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3080         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
3081         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3083 2020-08-16  Bruno Haible  <bruno@clisp.org>
3085         Assume autoconf >= 2.64.
3086         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
3087         * DEPENDENCIES: Require Autoconf 2.64 or newer.
3088         * NEWS: Mention the changed requirement.
3089         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
3090         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
3091         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
3092         variables.
3093         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3094         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3095         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3096         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
3097         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
3098         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
3099         Likewise.
3100         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
3101         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
3102         * m4/configmake.m4: Update comment.
3104 2020-08-16  Bruno Haible  <bruno@clisp.org>
3106         sys_ioctl: Simplify.
3107         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
3108         AC_INCLUDES_DEFAULT.
3110 2020-08-16  Bruno Haible  <bruno@clisp.org>
3112         Fix quoting of AC_LANG_SOURCE arguments.
3113         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
3114         GL_NOCRASH expansion.
3115         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
3116         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3117         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3118         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3119         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3121 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3123         nstrftime: be more predictable about errno
3124         This aligns nstrftime better with draft POSIX 202x strftime.
3125         * lib/nstrftime.c: Include errno.h.
3126         (width_add, __strftime_internal): Set errno on failure,
3127         and preserve it on success.  Check for mktime_z failure.
3128         * modules/nstrftime (Depends-on): Add errno.
3129         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
3130         * tests/test-nstrftime.c: Include intprops.h, limits.h.
3131         (errno_test): New test function.
3132         (main): Call it.
3134 2020-08-15  Bruno Haible  <bruno@clisp.org>
3136         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
3137         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
3138         from dependency analysis first.
3140 2020-08-15  Bruno Haible  <bruno@clisp.org>
3142         Determine asm output option and filename suffix for MSVC/clang.
3143         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
3144         clang-cl.
3146 2020-08-15  Bruno Haible  <bruno@clisp.org>
3148         doc: Update for MSVC/clang.
3149         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
3150         that MSVC 14 does not have.
3152 2020-08-15  Bruno Haible  <bruno@clisp.org>
3154         Revert autoupdate's revert.
3155         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
3157 2020-08-15  Bruno Haible  <bruno@clisp.org>
3159         frexpl: Fix configuration test result on MSVC.
3160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
3161         zero.
3163 2020-08-15  Bruno Haible  <bruno@clisp.org>
3165         Support compiling without -loldnames on native Windows.
3166         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
3167         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
3168         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3169         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3170         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3172         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
3173         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
3174         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3175         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
3176         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3177         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3178         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3179         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
3180         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
3181         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3182         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3183         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3184         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
3185         Likewise.
3186         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
3187         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3188         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
3189         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3191         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3192         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
3193         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3195         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
3196         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3197         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
3198         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3199         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3200         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
3201         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3202         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3203         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3204         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3205         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3206         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3207         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3208         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3209         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3210         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3211         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3212         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3213         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
3214         test for getcwd.
3215         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
3216         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
3217         with GL_MDA_DEFINES.
3218         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
3219         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
3220         prefixed symbol.
3221         * lib/search.in.h (lfind, lsearch): Likewise.
3222         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
3223         Likewise.
3224         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
3225         * lib/string.in.h (memccpy, strdup): Likewise.
3226         * lib/sys_stat.in.h (chmod, umask): Likewise.
3227         * lib/time.in.h (tzset): Likewise.
3228         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
3229         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
3230         read, rmdir, swab, unlink, write): Likewise.
3231         * lib/utime.in.h (utime): Likewise.
3232         * lib/wchar.in.h (wcsdup): Likewise.
3233         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
3234         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
3235         rpl_-prefixed macro.
3236         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
3237         * lib/close.c (close_nothrow): On native Windows, use _close.
3238         * lib/creat.c (orig_creat): On native Windows, use _creat.
3239         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
3240         * lib/dup2.c (dup2_nothrow): Use _dup2.
3241         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
3242         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
3243         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
3244         * lib/open.c (orig_open): On native Windows, use _open.
3245         * lib/read.c (read_nothrow): Use _read.
3246         * lib/rmdir.c: On native Windows, use _rmdir.
3247         * lib/unlink.c: On native Windows, use _unlink.
3248         * lib/write.c (write_nothrow): Use _write.
3249         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
3250         undefined symbol.
3251         * lib/sys_socket.in.h (close): Likewise.
3252         * lib/sys_time.in.h (close): Likewise.
3253         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
3255 2020-08-15  Bruno Haible  <bruno@clisp.org>
3257         Fix "unknown pragma ignored" warnings with clang on native Windows.
3258         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
3259         * lib/cbrtf.c: Likewise.
3260         * lib/ceil.c: Likewise.
3261         * lib/floor.c: Likewise.
3262         * lib/fma.c: Likewise.
3263         * lib/fmod.c: Likewise.
3264         * lib/rint.c: Likewise.
3265         * lib/round.c: Likewise.
3266         * lib/trunc.c: Likewise.
3267         * tests/test-ceil2.c: Likewise.
3268         * tests/test-ceilf2.c: Likewise.
3269         * tests/test-floor2.c: Likewise.
3270         * tests/test-floorf2.c: Likewise.
3271         * tests/test-trunc2.c: Likewise.
3272         * tests/test-truncf2.c: Likewise.
3273         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3276 2020-08-15  Bruno Haible  <bruno@clisp.org>
3278         Fix compilation errors in C++ mode with clang on native Windows.
3279         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
3280         non-glibc systems.
3281         * lib/sched.in.h (sched_yield): Likewise.
3283 2020-08-14  Bruno Haible  <bruno@clisp.org>
3285         stdnoreturn: Work around problem with MSVC/clang.
3286         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
3287         system header after <stdnoreturn.h>.
3288         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
3290 2020-08-14  Bruno Haible  <bruno@clisp.org>
3292         utime-h: Generate an utime.h file always.
3293         * modules/utime-h (Makefile.am): Generate utime.h always.
3294         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
3295         GL_GENERATE_UTIME_H.
3297 2020-08-14  Bruno Haible  <bruno@clisp.org>
3299         mktime, mktime-internal: Remove obsolete code.
3300         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
3302 2020-08-14  Bruno Haible  <bruno@clisp.org>
3304         getcwd: Remove obsolete code.
3305         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
3306         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3308 2020-08-14  Bruno Haible  <bruno@clisp.org>
3310         tzset: Assume the function exists.
3311         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
3312         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
3313         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
3314         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
3315         HAVE_TZSET.
3316         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
3317         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
3319         nstrftime: Assume tzset exists.
3320         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
3321         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
3322         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
3324         mktime, mktime-internal: Assume tzset exists.
3325         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
3326         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
3328 2020-08-14  Bruno Haible  <bruno@clisp.org>
3330         strdup: Assume the function exists.
3331         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
3332         whether strdup exists.
3333         * modules/strdup (Files): Remove lib/strdup.c.
3334         (configure.ac): Don't compile strdup.c.
3335         * modules/strdup-posix (Depends-on, configure.ac): Don't test
3336         ac_cv_func_strdup.
3337         * doc/posix-functions/strdup.texi: Update.
3338         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
3339         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
3340         (Depends-on): Remove unistr/u8-strlen.
3342 2020-08-13  Bruno Haible  <bruno@clisp.org>
3344         sys_random: Work around an uClibc bug.
3345         Reported by akater <nuclearspace@gmail.com>
3346         via Stefan Kangas <stefan@marxist.se>
3347         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
3348         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
3349         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
3350         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3351         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
3353 2020-08-12  Bruno Haible  <bruno@clisp.org>
3355         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
3356         Reported by Florian Weimer in
3357         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
3358         * lib/gen-uni-tables.c (output_predicate): Change the element type of
3359         the level3 array to 'unsigned int'.
3360         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
3361         * lib/unictype/categ_*.h: Regenerated.
3362         * lib/unictype/ctype_*.h: Regenerated.
3363         * lib/unictype/pr_*.h: Regenerated.
3364         * lib/unictype/sy_*.h: Regenerated.
3365         * lib/unicase/cased.h: Regenerated.
3366         * lib/unicase/ignorable.h: Regenerated.
3368 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3370         stdint: port intptr_t to more-recent MinGW
3371         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
3372         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
3373         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
3374         Apparently those two macros were removed in mingwrt-3.22
3375         dated 2016-07-14.
3377 2020-08-12  Bruno Haible  <bruno@clisp.org>
3379         thread-optim: Export function-like macros only.
3380         Suggested by Paul Eggert.
3381         * lib/thread-optim.h (gl_multithreaded): New macro.
3382         (IF_MT_DECL, IF_MT): Remove macros.
3383         * doc/multithread.texi (Multithreading Optimizations): Add a small
3384         example.
3385         * lib/fatal-signal.c: Update all uses.
3386         * lib/clean-temp.c: Likewise.
3387         * lib/localename.c: Likewise.
3388         * modules/localename (Depends-on): Add stdbool.
3390 2020-08-12  Bruno Haible  <bruno@clisp.org>
3392         Revert autoupdate's revert.
3393         * config/srclist.txt: Mark regex.h as needing sync with glibc.
3395 2020-08-11  Bruno Haible  <bruno@clisp.org>
3397         thread-optim: Fix a compiler warning.
3398         * lib/thread-optim.h (IF_MT_DECL): Define differently.
3400 2020-08-11  Bruno Haible  <bruno@clisp.org>
3402         Use __restrict also on clang.
3403         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
3404         (__restrict_arr): On clang, define like on GCC.
3405         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
3406         (_Restrict_arr_): Use _Restrict_ also on clang.
3407         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
3408         (_Restrict_arr_): Use _Restrict_ also on clang.
3410 2020-08-11  Bruno Haible  <bruno@clisp.org>
3412         Use flexible array syntax also on clang.
3413         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
3414         define like for GCC 3.
3416 2020-08-11  Bruno Haible  <bruno@clisp.org>
3418         fcntl: On native Windows, use _setmode, not setmode.
3419         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
3420         * lib/binary-io.h: Update comment.
3421         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
3422         * tests/test-dup2.c: Likewise.
3423         * tests/test-dup-safer.c: Likewise.
3424         * tests/test-fcntl.c: Likewise.
3426 2020-08-11  Bruno Haible  <bruno@clisp.org>
3428         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
3429         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
3430         * lib/spawn-pipe.c (create_pipe): Likewise.
3431         * tests/test-nonblocking-pipe-main.c (main): Likewise.
3432         * tests/test-nonblocking-socket-main.c (main): Likewise.
3433         * lib/wait-process.c: Update comment.
3434         * doc/posix-functions/fork.texi: Update.
3436 2020-08-11  Bruno Haible  <bruno@clisp.org>
3438         asyncsafe-spin: Use GCC built-ins also on clang.
3439         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
3440         the newer GCC built-ins also on clang.
3442 2020-08-11  Bruno Haible  <bruno@clisp.org>
3444         Use expression statements also on clang.
3445         * lib/cdefs.h (__extension__): Don't define to empty on clang.
3446         * lib/obstack.h (__extension__): Likewise.
3447         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
3448         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
3449         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
3450         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
3451         obstack_finish, obstack_free): Enable as optimized macros also on clang.
3452         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
3454 2020-08-10  Bruno Haible  <bruno@clisp.org>
3456         Use many __attribute__s with clang.
3457         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
3458         on clang.
3459         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
3460         New macros.
3461         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
3462         on clang.
3463         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
3464         also on older clang versions.
3465         (__attribute__): Don't define to empty on clang.
3466         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
3467         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
3468         (__attribute_const__): Use __attribute__ __const__ also on clang.
3469         (__attribute_used__): Use __attribute__ __used__ also on clang.
3470         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
3471         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
3472         clang.
3473         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
3474         clang.
3475         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
3476         also on clang.
3477         (__nonnull): Use __attribute__ __nonnull__ also on clang.
3478         (__attribute_warn_unused_result__): Use __attribute__
3479         __warn_unused_result__ also on clang.
3480         (__always_inline): Use __attribute__ __always_inline__ also on clang.
3481         (__attribute_artificial__): Use __attribute__ __artificial__ also on
3482         clang >= 7.
3483         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
3484         clang versions.
3485         (_Noreturn): Don't redefine on clang >= 3.5.
3486         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
3487         also on clang.
3488         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
3489         on clang.
3490         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3491         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3492         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3493         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
3494         also on clang.
3495         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3496         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
3497         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
3498         also on clang.
3499         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
3500         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
3501         __attribute__ __noreturn__ also on clang.
3502         * lib/obstack.h (__attribute_noreturn__): Likewise.
3503         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
3504         clang.
3505         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
3506         always_inline also on clang.
3507         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
3508         clang.
3510 2020-08-10  Bruno Haible  <bruno@clisp.org>
3512         c-ldtoastr tests: Fix test failure.
3513         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
3514         is longer than 'double'.
3516 2020-08-10  Bruno Haible  <bruno@clisp.org>
3518         Revert autoupdate's revert.
3519         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
3521 2020-08-09  Bruno Haible  <bruno@clisp.org>
3523         string: Fix build error in C++ mode with clang (regression from today).
3524         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
3525         parameters, one for GCC, one for clang.
3526         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
3527         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
3528         as return type.
3530 2020-08-09  Bruno Haible  <bruno@clisp.org>
3532         ftruncate: Use _chsize, not chsize.
3533         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
3534         * lib/ftruncate.c: Test HAVE__CHSIZE.
3535         (chsize_nothrow): Use _chsize, not chsize.
3537 2020-08-09  Bruno Haible  <bruno@clisp.org>
3539         Silence warnings from clang 10 with -Wimplicit-fallthrough.
3540         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
3541         clang >= 10.
3542         * lib/fnmatch.c (FALLTHROUGH): Likewise.
3543         * lib/fts.c (FALLTHROUGH): Likewise.
3544         * tests/macros.h (FALLTHROUGH): Likewise.
3545         * lib/regex_internal.h (FALLTHROUGH): Likewise.
3546         * config/srclist.txt: Mark it as needing sync with glibc.
3548 2020-08-09  Bruno Haible  <bruno@clisp.org>
3550         stdbool tests: Enable the stricter tests also on clang.
3551         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
3552         (e): Enable the address-to-bool conversion test also on clang.
3554 2020-08-09  Bruno Haible  <bruno@clisp.org>
3556         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
3557         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
3559 2020-08-09  Bruno Haible  <bruno@clisp.org>
3561         Use attribute __aligned__ with clang.
3562         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
3563         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
3565 2020-08-09  Bruno Haible  <bruno@clisp.org>
3567         Use __alignof__ with clang.
3568         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
3569         on clang.
3570         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
3571         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
3572         clang.
3573         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
3574         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
3575         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
3576         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
3578 2020-08-09  Bruno Haible  <bruno@clisp.org>
3580         ignore-value: Simplify on clang.
3581         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
3582         workaround.
3584 2020-08-09  Bruno Haible  <bruno@clisp.org>
3586         Use __typeof__ with clang.
3587         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
3588         "clang -std=gnu99".
3589         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
3590         * tests/test-stdint.c (verify_same_types): Enable the check also on
3591         clang.
3593 2020-08-09  Bruno Haible  <bruno@clisp.org>
3595         Add ability to emit user-defined warnings and errors with clang.
3596         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
3597         _GL_ATTRIBUTE_WARNING using an attribute for clang.
3598         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
3599         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
3600         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
3601         attribute for clang.
3603 2020-08-09  Bruno Haible  <bruno@clisp.org>
3605         intprops: Fix typo in comment.
3606         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
3608 2020-08-09  Bruno Haible  <bruno@clisp.org>
3610         Use __builtin_signbit* with clang.
3611         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
3612         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
3613         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3615         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3616         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
3617         not REPLACE_SIGNBIT_USING_GCC.
3619 2020-08-09  Bruno Haible  <bruno@clisp.org>
3621         Use __builtin_isnan with clang.
3622         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3623         not __builtin_isnanf. Also on clang.
3624         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
3625         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
3626         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
3627         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
3628         built-in.
3629         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3630         not __builtin_isnanl. Also on clang.
3631         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
3632         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
3633         * lib/math.in.h (__has_builtin): Remove macro.
3634         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
3635         __builtin_isnanf. Also on clang.
3636         (isnand, gl_isnan_d): With clang, use the GCC built-in.
3637         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
3638         __builtin_isnanl. Also on clang.
3639         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
3640         on clang.
3642 2020-08-09  Bruno Haible  <bruno@clisp.org>
3644         thread-optim: Fix logic error.
3645         Reported by Paul Eggert.
3646         * lib/thread-optim.h (IF_MT): Fix logic error.
3648 2020-08-08  Bruno Haible  <bruno@clisp.org>
3650         localename: Use module 'thread-optim'.
3651         * lib/localename.c: Include thread-optim.h.
3652         (struniq): Use IF_MT macro.
3653         * modules/localename (Depends-on): Add thread-optim.
3655         clean-temp: Use module 'thread-optim'.
3656         * lib/clean-temp.c: Include thread-optim.h.
3657         (register_temporary_file, unregister_temporary_file, create_temp_dir,
3658         register_temp_file, unregister_temp_file, register_temp_subdir,
3659         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
3660         close_temp, fclose_variant_temp): Use IF_MT macro.
3661         * modules/clean-temp (Depends-on): Add thread-optim.
3663         fatal-signal: Use module 'thread-optim'.
3664         * lib/fatal-signal.c: Include thread-optim.h.
3665         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
3666         macro.
3667         * modules/fatal-signal (Depends-on): Add thread-optim.
3669 2020-08-08  Bruno Haible  <bruno@clisp.org>
3671         New module 'thread-optim'.
3672         * lib/thread-optim.h: New file.
3673         * modules/thread-optim: New file.
3674         * doc/multithread.texi (Multithreading Optimizations): New section.
3676 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
3678         doc: more updates for glibc 2.32
3679         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
3680         * doc/posix-functions/fchmodat.texi: Update.
3682 2020-08-07  Bruno Haible  <bruno@clisp.org>
3684         doc: Update for glibc 2.32.
3685         * doc/glibc-functions/__libc_single_threaded.texi: New file.
3686         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
3687         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
3688         * doc/glibc-functions/sigabbrev_np.texi: New file.
3689         * doc/glibc-functions/sigdescr_np.texi: New file.
3690         * doc/glibc-functions/strerrordesc_np.texi: New file.
3691         * doc/glibc-functions/strerrorname_np.texi: New file.
3692         * doc/gnulib.texi: Include them.
3693         (Glibc sys/single_threaded.h): New section.
3694         * doc/pastposix-functions/h_errno.texi: Update.
3695         * doc/posix-functions/*.texi: Likewise.
3696         * doc/glibc-functions/*.texi: Likewise.
3698 2020-08-07  Bruno Haible  <bruno@clisp.org>
3700         alloca: No need to compile alloca.c with clang.
3701         * lib/alloca.c: Skip all code with clang.
3703         Use __builtin_alloca with clang.
3704         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
3706 2020-08-06  Bruno Haible  <bruno@clisp.org>
3708         Use __builtin_assume with clang.
3709         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
3710         (assume): Use __builtin_assume when available.
3712 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
3714         libgmp: add <gmp/gmp.h> support
3715         * m4/libgmp.m4 (gl_LIBGMP):
3716         * modules/libgmp (configure.ac, Makefile.am):
3717         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
3718         ‘#include <gmp.h>’.
3720 2020-08-06  Bruno Haible  <bruno@clisp.org>
3722         Consider that clang defines __OPTIMIZE__ like GCC does.
3723         * lib/streq.h: Define the inline functions also on clang.
3724         * lib/c-strcaseeq.h: Likewise.
3725         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
3726         the GCC workaround to clang.
3728 2020-08-06  Bruno Haible  <bruno@clisp.org>
3730         safe-alloc: Remove unused code.
3731         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
3733 2020-08-06  Bruno Haible  <bruno@clisp.org>
3735         Use __builtin_expect with clang everywhere.
3736         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
3737         also on clang.
3739 2020-08-05  Bruno Haible  <bruno@clisp.org>
3741         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
3742         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
3743         built-in also on clang.
3744         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
3745         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
3747 2020-08-05  Bruno Haible  <bruno@clisp.org>
3749         Use __builtin_clz{,l,ll} with clang, also on Windows.
3750         * lib/integer_length.c: With clang, use the GCC built-in, not
3751         <intrin.h>.
3752         * lib/integer_length_l.c: Likewise.
3753         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
3754         also on clang.
3755         * lib/vasnprintf.c (divide): Likewise.
3757 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
3759         Update srclist.txt as per recent glibc changes
3760         * config/srclist.txt: Uncomment lines to reflect recent merges
3761         from Gnulib to glibc.
3763 2020-08-03  Bruno Haible  <bruno@clisp.org>
3765         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3766         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
3768 2020-08-03  Bruno Haible  <bruno@clisp.org>
3770         integer_length_ll: Optimize for MSVC in 64-bit mode.
3771         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3772         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3774 2020-08-03  Bruno Haible  <bruno@clisp.org>
3776         integer_length_ll: Optimize for MSVC in 32-bit mode.
3777         * lib/integer_length_l.c: Include <intrin.h>.
3778         (integer_length): Define as inline function, like in
3779         lib/integer_length.c.
3781 2020-08-03  Bruno Haible  <bruno@clisp.org>
3783         integer_length: Optimize for MSVC.
3784         * lib/integer_length.c: Include <intrin.h>.
3785         (integer_length): With MSVC, use the _BitScanReverse built-in.
3787 2020-08-03  Bruno Haible  <bruno@clisp.org>
3789         ffsll: Optimize for MSVC in 64-bit mode.
3790         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3791         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3792         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
3794 2020-08-03  Bruno Haible  <bruno@clisp.org>
3796         ffsll: Optimize for MSVC in 32-bit mode.
3797         * lib/ffsl.h: Include <intrin.h>.
3798         (ffs): Define as inline function, like in lib/ffs.c.
3800 2020-08-03  Bruno Haible  <bruno@clisp.org>
3802         ffs: Optimize for MSVC.
3803         * lib/ffs.c: Include <intrin.h>.
3804         (ffs): With MSVC, use the _BitScanForward built-in.
3806 2020-08-03  Bruno Haible  <bruno@clisp.org>
3808         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
3809         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
3810         variable.
3812 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
3814         fopen: Avoid undesired interactions with glibc headers.
3815         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
3816         __need_FILE, as the latter does not work with glibc.
3818 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3820         fcntl: document some F_SETLK errno variations
3821         * doc/posix-functions/fcntl.texi (fcntl): Document
3822         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
3824 2020-08-02  Bruno Haible  <bruno@clisp.org>
3826         oset: Add an 'iterator_atleast' operation.
3827         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
3828         extracted from gl_array_search_atleast.
3829         (gl_array_search_atleast): Use it.
3830         (gl_array_iterator_atleast): New function.
3831         (gl_array_oset_implementation): Use it.
3832         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
3833         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
3834         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
3835         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
3836         member.
3837         (gl_oset_iterator_atleast): New function.
3838         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
3839         (gl_OSet::iterator): Add another auxiliary constructor.
3840         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
3841         New functions.
3842         (main): Test also gl_oset_iterator_atleast.
3843         * tests/test-avltree_oset.c (is_at_least): New function.
3844         (main): Test also gl_oset_iterator_atleast.
3845         * tests/test-rbtree_oset.c (is_at_least): New function.
3846         (main): Test also gl_oset_iterator_atleast.
3847         * tests/test-oset-c++.cc (is_at_most): New function.
3848         (main): Test also gl_OSet::begin_atleast.
3850 2020-08-02  Bruno Haible  <bruno@clisp.org>
3852         oset-c++, omap-c++: Remove restriction for search_atleast method.
3853         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
3854         a different type than the element.
3855         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
3856         a different type than the key.
3858 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3860         gnumakefile: say ‘$(MAKE)’ not ‘make’
3861         * top/GNUmakefile (abort-due-to-no-makefile):
3862         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
3863         This change is backported from Autoconf.
3865 2020-08-01  Bruno Haible  <bruno@clisp.org>
3867         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3868         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
3869         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3870         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3871         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3872         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
3874 2020-08-01  Bruno Haible  <bruno@clisp.org>
3876         libtextstyle-optional: Update tests.
3877         * modules/libtextstyle-optional-tests (configure.ac): Invoke
3878         gl_LIBTEXTSTYLE_OPTIONAL.
3880 2020-08-01  Bruno Haible  <bruno@clisp.org>
3882         parse-datetime: Fix wrong #line statements.
3883         * modules/parse-datetime (Makefile.am): Correct #line statements also in
3884         parse-datetime-gen.h.
3886 2020-08-01  Bruno Haible  <bruno@clisp.org>
3888         libtextstyle[-optional]: Allow requesting a minimum version.
3889         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
3890         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
3891         gl_LIBTEXTSTYLE_SEARCH): New macros.
3892         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
3893         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
3894         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
3895         * modules/libtextstyle-optional (configure.ac): Don't invoke
3896         gl_LIBTEXTSTYLE_OPTIONAL.
3897         * NEWS: Mention the changes.
3899 2020-07-31  Bruno Haible  <bruno@clisp.org>
3901         _GL_CMP: Improve documentation.
3902         Reported by Paul Eggert in
3903         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
3904         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
3905         passed.
3907 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3909         largefile: sync with Autoconf master
3910         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
3911         Avoid undefined behavior on platforms where off_t is 32 bits.
3912         See: https://bugs.debian.org/742780
3914         alloca: sync with Autoconf master
3915         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3916         Do not define if Autoconf 2.70 or later, since Autoconf master
3917         now matches us.
3919 2020-07-30  Bruno Haible  <bruno@clisp.org>
3921         unicodeio: Add comment.
3922         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
3923         different iconv behaviours.
3925 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3927         Work around some Oracle Studio attribute bugs
3928         These were discovered when building bleeding-edge Emacs with
3929         Oracle Studio.
3930         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
3931         Port to Oracle Studio 12.6, which mishandles __attribute__
3932         ((__cold__)) and __attribute__ ((__may_alias__)) even though
3933         __has_attribute says they work.
3935 2020-07-29  Bruno Haible  <bruno@clisp.org>
3937         unicodeio: Fix wrong result on musl libc.
3938         Reported by A. Wilcox <awilfox@adelielinux.org> in
3939         <https://www.openwall.com/lists/musl/2020/07/29/2>.
3940         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
3941         on musl libc.
3942         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
3943         * modules/unicodeio (Files): Add m4/musl.m4.
3945 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
3947         fsusage, regex, stat-size: remove Cray support
3948         As near as I can make out this is actually support for UNICOS/mp,
3949         last released 2005, and Cray hasn’t supported that for years.
3950         * config/srclist.txt: Comment out regex.h for now.
3951         * lib/fsusage.c (get_fs_usage):
3952         * lib/regex.h (re_comp, re_exec):
3953         * lib/stat-size.h (ST_NBLOCKSIZE):
3954         Don’t worry about _CRAY.
3956 2020-07-29  Bruno Haible  <bruno@clisp.org>
3958         parse-datetime: Fix compilation error with bison 3.7.
3959         * modules/parse-datetime (Makefile.am): Create a generated header file
3960         parse-datetime-gen.h in the source directory. Correct #include and
3961         #line statements during preprocessing.
3963 2020-07-28  Bruno Haible  <bruno@clisp.org>
3965         fopen-gnu: Create files correctly (regression from 2020-05-24).
3966         * lib/fopen.c (rpl_open): Pass a third argument to open().
3968 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
3970         xalloc-die: don’t depend on xalloc
3971         This removes a circular dependency, as xalloc depends on xalloc-die.
3972         * modules/xalloc-die (Files): Add lib/xalloc.h.
3973         (Depends-on): Remove xalloc.
3974         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
3976         dfa-tests: port to MSVC
3977         Problem reported by Gisle Vanem in:
3978         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
3979         Also, remove an unnecessary dependency on getprogname.
3980         * modules/dfa-tests (Depends-on): Remove getprogname.
3981         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
3982         (exit_status): New static var.
3983         (dfawarn): Set it instead of exiting.
3984         Do not declare as _Noreturn, to pacify MSVC.
3985         (main): Return exit_status.
3987 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
3989         argz: pacify MSVC
3990         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
3991         Problem reported by Gisle Vanem.
3993         libgmp: remove dependency on havelib
3994         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
3995         use the more-traditional AC_SEARCH_LIBS approach.
3996         This should work better with GNU Emacs configuration,
3997         which uses pkg-config instead of a havelib-style approach.
3998         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
3999         * modules/libgmp (Depends-on): Remove havelib.
4001         libgmp: remove HAVE_GMP, LIB_GMP
4002         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
4003         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
4005 2020-07-26  Bruno Haible  <bruno@clisp.org>
4007         inttypes: Remove support for AIX 4.
4008         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
4009         * m4/inttypes-pri.m4: Remove file.
4010         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
4011         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
4012         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4013         PRI_MACROS_BROKEN.
4014         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
4016 2020-07-26  Bruno Haible  <bruno@clisp.org>
4018         gettimeofday: Remove workaround for Mac OS X 10.0.
4019         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
4020         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
4021         * lib/gettimeofday.c: Don't include localtime-buffer.h.
4022         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4023         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4024         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
4025         * modules/localtime-buffer: Remove file.
4026         * lib/localtime-buffer.h: Remove file.
4027         * lib/localtime-buffer.c: Remove file.
4028         * m4/localtime-buffer.m4: Remove file.
4029         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
4031 2020-07-26  Bruno Haible  <bruno@clisp.org>
4033         tzset: Remove workaround for Solaris 2.6.
4034         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
4035         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
4036         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
4037         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
4038         * lib/localtime-buffer.c: Likewise.
4039         * lib/localtime.c: Likewise.
4040         * lib/tzset.c: Don't include localtime-buffer.h.
4041         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
4042         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
4043         is 1.
4044         * modules/tzset (Depends-on): Remove localtime-buffer.
4046 2020-07-26  Bruno Haible  <bruno@clisp.org>
4048         expl: Simplify autoconf test.
4049         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
4050         with small values..." test into the "checking whether expl works..."
4051         test.
4053 2020-07-26  Bruno Haible  <bruno@clisp.org>
4055         alloca: Remove Cray-2 and Cray Y-MP support.
4056         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
4057         Enable also on Autoconf >= 2.69.
4058         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
4059         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
4060         i00afunc): Remove.
4062 2020-07-25  Bruno Haible  <bruno@clisp.org>
4064         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
4065         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
4067 2020-07-25  Bruno Haible  <bruno@clisp.org>
4069         sigprocmask: Small autoconf macro improvement.
4070         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
4071         user to override the value of gl_cv_func_sigprocmask.
4072         * m4/gnulib-common.m4 (gl_SILENT): New macro.
4074 2020-07-25  Bruno Haible  <bruno@clisp.org>
4076         Small autoconf macro improvements.
4077         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
4078         override the value of gl_cv_func_working_mktime.
4079         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
4080         compiler produces multi-arch binaries..." in the configure output.
4081         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
4082         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
4084 2020-07-25  Bruno Haible  <bruno@clisp.org>
4086         doc: Update for NetBSD 7.1, 8.0, 9.0.
4087         * doc/*/*.texi: Update.
4088         * m4/exp2l.m4: Update comments.
4089         * m4/expl.m4: Likewise.
4090         * m4/ilogb.m4: Likewise.
4091         * m4/ilogbf.m4: Likewise.
4092         * m4/log10l.m4: Likewise.
4093         * m4/logl.m4: Likewise.
4094         * m4/printf.m4: Likewise.
4095         * m4/rintl.m4: Likewise.
4096         * m4/wcwidth.m4: Likewise.
4098 2020-07-24  Bruno Haible  <bruno@clisp.org>
4100         doc: Update for Mac OS X 10.13.
4101         * doc/*/*.texi: Update.
4102         * m4/expm1l.m4: Update comments.
4103         * m4/getgroups.m4: Likewise.
4104         * m4/getlogin_r.m4: Likewise.
4105         * m4/linkat.m4: Likewise.
4106         * m4/printf.m4: Likewise.
4108 2020-07-24  Bruno Haible  <bruno@clisp.org>
4110         doc: Update for Cygwin 2.9.0.
4111         * doc/*/*.texi: Update.
4113 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4115         parse-datetime: modernize doc
4116         * doc/parse-datetime.texi: Use more-current examples.
4117         Don’t lead with 32-bit time_t, as it’s on its way out.
4118         Capitalize “Epoch” to be consistent with POSIX.
4120         timespec: remove dependence on ‘verify’
4121         * lib/timespec.h: Do not include verify.h; no longer needed.
4122         * modules/timespec (Depends-on): Remove ‘verify’.
4124         Optimize a few more three-valued comparisons
4125         * lib/timespec.h (timespec_cmp, timespec_sign):
4126         * lib/utimecmp.c (utimecmpat):
4127         Avoid conditional branches by using _GL_CMP.
4129         Fix _GL_CMP parenthesization typo
4130         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
4132 2020-07-24  Bruno Haible  <bruno@clisp.org>
4134         dfa: Revert breaking gawk.
4135         Reported by Arnold Robbins <arnold@skeeve.com>.
4136         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
4138 2020-07-23  Bruno Haible  <bruno@clisp.org>
4140         Optimize three-valued comparison between integers.
4141         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
4142         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
4143         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
4144         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
4145         * lib/dfa.c (compare): Likewise.
4146         * lib/fts.c (fts_compare_ino): Likewise.
4147         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
4148         * lib/mbscasecmp.c (mbscasecmp): Likewise.
4149         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
4150         * lib/memcasecmp.c (memcasecmp): Likewise.
4151         * lib/memcmp2.c (memcmp2): Likewise.
4152         * lib/savedir.c (direntry_cmp_inode): Likewise.
4153         * lib/strcasecmp.c (strcasecmp): Likewise.
4154         * lib/strncasecmp.c (strncasecmp): Likewise.
4155         * lib/unistr/u-cmp2.h (FUNC): Likewise.
4157 2020-07-23  Bruno Haible  <bruno@clisp.org>
4159         lchmod: Use /proc on Cygwin.
4160         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
4162 2020-07-23  Ken Brown  <kbrown@cornell.edu>
4164         fchmodat: Use /proc on Cygwin
4165         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
4167 2020-07-21  Bruno Haible  <bruno@clisp.org>
4169         aligned-malloc: Optionally use aligned_alloc.
4170         * lib/aligned-malloc.h: Verify the alignment.
4171         (aligned_malloc): Use aligned_alloc as an alternative.
4172         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
4173         * doc/posix-functions/aligned_alloc.texi: Mention the modules
4174         'aligned-malloc' and 'pagealign_alloc'.
4176 2020-07-21  Bruno Haible  <bruno@clisp.org>
4178         aligned-malloc: Add tests.
4179         * tests/test-aligned-malloc.c: New file.
4180         * modules/aligned-malloc-tests: New file.
4182         aligned-malloc: New module.
4183         * lib/aligned-malloc.h: New file.
4184         * m4/malloc-align.m4: New file.
4185         * modules/aligned-malloc: New file.
4186         * doc/posix-functions/posix_memalign.texi: Mention the new module.
4187         * doc/glibc-functions/memalign.texi: Likewise.
4189 2020-07-21  Bruno Haible  <bruno@clisp.org>
4191         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
4192         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
4193         sure PRIPTR_PREFIX is defined to "ll", not "l".
4195 2020-07-21  Bruno Haible  <bruno@clisp.org>
4197         printf-posix: Make an autoconf test more future-proof.
4198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
4199         using uintptr_t.
4201 2020-07-20  Bruno Haible  <bruno@clisp.org>
4203         list, oset, omap: Relicense some of the container modules under LGPLv2+.
4204         * modules/list (License): Change to LGPLv2+.
4205         * modules/array-list (License): Likewise.
4206         * modules/carray-list (License): Likewise.
4207         * modules/linked-list (License): Likewise.
4208         * modules/avltree-list (License): Likewise.
4209         * modules/rbtree-list (License): Likewise.
4210         * modules/oset (License): Likewise.
4211         * modules/array-oset (License): Likewise.
4212         * modules/avltree-oset (License): Likewise.
4213         * modules/rbtree-oset (License): Likewise.
4214         * modules/omap (License): Likewise.
4215         * modules/array-omap (License): Likewise.
4216         * modules/avltree-omap (License): Likewise.
4217         * modules/rbtree-omap (License): Likewise.
4219 2020-07-20  Bruno Haible  <bruno@clisp.org>
4221         oset: Add an 'update' operation.
4222         * lib/gl_array_oset.c (gl_array_update): New function.
4223         (gl_array_oset_implementation): Use it.
4224         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4225         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4226         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
4227         extracted from gl_tree_nx_add_before.
4228         (gl_tree_nx_add_before): Invoke it.
4229         (gl_tree_add_node_after): New function, extracted from
4230         gl_tree_nx_add_after.
4231         (gl_tree_nx_add_after): Invoke it.
4232         (gl_tree_remove_node_no_free): New function, extracted from
4233         gl_tree_remove_node.
4234         (gl_tree_remove_node): Invoke it.
4235         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
4236         extracted from gl_tree_nx_add_before.
4237         (gl_tree_nx_add_before): Invoke it.
4238         (gl_tree_add_node_after): New function, extracted from
4239         gl_tree_nx_add_after.
4240         (gl_tree_nx_add_after): Invoke it.
4241         (gl_tree_remove_node_no_free): New function, extracted from
4242         gl_tree_remove_node.
4243         (gl_tree_remove_node): Invoke it.
4244         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
4245         from gl_tree_iterator_next.
4246         (gl_tree_iterator_next): Invoke it.
4247         (gl_tree_prev_node, gl_tree_update): New functions.
4248         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4249         (gl_avltree_oset_implementation): Use gl_tree_update.
4250         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4251         (gl_rbtree_oset_implementation): Use gl_tree_update.
4252         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
4253         (gl_oset_update): New function.
4254         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
4255         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
4256         * modules/rbtree-oset (configure.ac): Likewise.
4257         * tests/test-oset-update.h: New file.
4258         * tests/test-array_oset.c: Include test-oset-update.h.
4259         (main): Invoke test_update.
4260         * tests/test-avltree_oset.c: Likewise.
4261         * tests/test-rbtree_oset.c: Likewise.
4262         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
4263         * modules/avltree-oset-tests (Files): Likewise.
4264         * modules/rbtree-oset-tests (Files): Likewise.
4265         * tests/test-oset-c++.cc (action): New function.
4266         (main): Test the 'update' member function.
4268 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4270         md5, sha1, sha256, sha512: pacify Autoconf 2.70
4271         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
4272         shell if, so that the argument to AC_CHECK_HEADERS is
4273         a simple string that does not require shell evaluation.
4274         This fixes a warning generated by Autoconf 2.69b.
4276 2020-07-12  Bruno Haible  <bruno@clisp.org>
4278         libgmp: Avoid warning when --without-libgmp is used.
4279         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
4280         GCC >= 8, not for GCC >= 4.6.
4282 2020-07-12  Bruno Haible  <bruno@clisp.org>
4284         libgmp: Link to the correct shared library.
4285         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
4286         * modules/libgmp (Depends-on): Add havelib.
4287         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
4288         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
4290 2020-07-12  Bruno Haible  <bruno@clisp.org>
4292         libgmp tests: Add some safety checks.
4293         * modules/libgmp-tests (Depends-on): Add verify.
4294         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
4295         (main): Verify that gmp.h and libgmp versions match.
4297 2020-07-10  Bruno Haible  <bruno@clisp.org>
4299         unicodeio: Fix wrong result on NetBSD.
4300         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4301         characters also on NetBSD.
4303 2020-07-09  Bruno Haible  <bruno@clisp.org>
4305         unicodeio: Fix wrong result on Solaris 11.
4306         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
4307         via Akim Demaille <akim.demaille@gmail.com> in
4308         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
4309         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4310         characters on Solaris.
4311         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
4312         UTF-8 output or the specified fallback.
4314 2020-07-08  Bruno Haible  <bruno@clisp.org>
4316         unicodeio: Add tests.
4317         * tests/test-unicodeio.c: New file.
4318         * tests/test-unicodeio1.sh: New file.
4319         * tests/test-unicodeio2.sh: New file.
4320         * tests/test-unicodeio3.sh: New file.
4321         * modules/unicodeio-tests: New file.
4323 2020-07-08  Bruno Haible  <bruno@clisp.org>
4325         unicodeio: Document link requirements.
4326         * modules/unicodeio (Link): New section.
4328 2020-07-07  Bruno Haible  <bruno@clisp.org>
4330         doc: Remove support for some very old platforms.
4331         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
4332         * doc/posix-functions/memcpy.texi: Likewise.
4333         * doc/posix-functions/memmove.texi: Likewise.
4334         * doc/posix-functions/memset.texi: Likewise.
4335         * doc/posix-functions/getcwd.texi: Likewise.
4337         memchr: Remove support for some very old platforms.
4338         * m4/memchr-obsolete.m4: Remove file.
4339         * modules/memchr-obsolete: Remove file.
4340         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
4341         absent. Don't define HAVE_MEMCHR.
4342         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
4343         * modules/memchr (Depends-on): Remove memchr-obsolete.
4344         (configure.ac): Assume HAVE_MEMCHR is 1.
4345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4346         HAVE_MEMCHR.
4347         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
4348         * doc/posix-functions/memchr.texi: Don't mention module
4349         'memchr-obsolete'.
4350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4351         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4352         * modules/strnlen (Depends-on): Remove memchr-obsolete.
4354         dup2: Remove support for some very old platforms.
4355         * m4/dup2-obsolete.m4: Remove file.
4356         * modules/dup2-obsolete: Remove file.
4357         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
4358         Don't define HAVE_DUP2.
4359         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
4360         * lib/dup2.c: Likewise.
4361         * modules/dup2 (Depends-on, configure.ac): Likewise.
4362         (Depends-on): Remove dup2-obsolete.
4363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
4364         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
4365         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
4367 2020-07-07  Bruno Haible  <bruno@clisp.org>
4369         canonicalize: Trim module dependencies.
4370         * lib/hash-triple.h: Group declarations.
4371         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
4372         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
4373         (STREQ): Remove macro.
4374         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
4375         * modules/hash-triple-simple: New file, based on modules/hash-triple.
4376         * modules/hash-triple (Files): Remove lib/hash-triple.h.
4377         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
4378         * modules/canonicalize (Depends-on): Remove hash-triple. Add
4379         hash-triple-simple.
4380         * modules/file-set (Depends-on): Likewise.
4382 2020-07-07  Bruno Haible  <bruno@clisp.org>
4384         Clarify dependencies to double-slash-root.
4385         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
4386         (Depends-on): Add double-slash-root.
4387         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
4388         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
4390 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4392         libgmp: new module
4393         The idea is to let programs simply include <gmp.h>, and
4394         so long as they live within the mini-gmp subset they need
4395         not worry about whether the GMP libraries are installed.
4396         * MODULES.html.sh: Mention it.
4397         * config/srclist.txt: Mention files copied from GMP source.
4398         * config/srclistvars.sh (GMP): New var.
4399         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
4400         * modules/libgmp-tests, tests/test-libgmp.c: New files.
4401         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
4403 2020-07-05  Bruno Haible  <bruno@clisp.org>
4405         mkancesdirs: Trim module dependencies.
4406         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
4407         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
4409 2020-07-05  Bruno Haible  <bruno@clisp.org>
4411         getprogname: Trim module dependencies.
4412         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
4413         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
4414         basename-lgpl.
4416 2020-07-05  Bruno Haible  <bruno@clisp.org>
4418         filenamecat-lgpl: Trim module dependencies.
4419         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
4420         dirname.h.
4421         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
4422         basename-lgpl, filename.
4424 2020-07-05  Bruno Haible  <bruno@clisp.org>
4426         backupfile, backup-rename: Trim module dependencies.
4427         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
4428         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
4429         basename-lgpl.
4430         * modules/backup-rename (Depends-on): Likewise.
4432 2020-07-05  Bruno Haible  <bruno@clisp.org>
4434         argp: Trim module dependencies.
4435         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
4436         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
4438 2020-07-05  Bruno Haible  <bruno@clisp.org>
4440         basename-lgpl: New module.
4441         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
4442         lib/basename-lgpl.c.
4443         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
4444         <stdbool.h>, filename.h.
4445         (last_component): Rename a local variable.
4446         * lib/dirname.h: Include basename-lgpl.h.
4447         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
4448         (last_component, base_len): Remove declarations.
4449         * modules/basename-lgpl: New file.
4450         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
4451         (Depends-on): Add basename-lgpl. Remove double-slash-root.
4452         (Makefile.am): Don't compile basename-lgpl.c.
4453         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
4454         not 'dirname'.
4456 2020-07-05  Bruno Haible  <bruno@clisp.org>
4458         dirname, dirname-lgpl: Simplify.
4459         * m4/dirname.m4: Remove file.
4460         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
4461         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
4462         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
4464 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
4466         tests: avoid shadowing warning
4467         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
4469 2020-07-05  Bruno Haible  <bruno@clisp.org>
4471         supersede: Add tests.
4472         * tests/test-supersede.c: New file.
4473         * tests/test-supersede-open.h: New file.
4474         * tests/test-supersede-fopen.h: New file.
4475         * modules/supersede-tests: New file.
4477         supersede: New module.
4478         * lib/supersede.h: New file.
4479         * lib/supersede.c: New file.
4480         * m4/supersede.m4: New file.
4481         * modules/supersede: New file.
4483 2020-07-05  Bruno Haible  <bruno@clisp.org>
4485         Add some copyright headers.
4486         * lib/dev-ino.h: Add copyright header.
4487         * lib/di-set.h: Likewise.
4488         * lib/fchown-stub.c: Likewise.
4489         * lib/file-set.h: Likewise.
4490         * lib/hash-triple.h: Likewise.
4491         * lib/idcache.h: Likewise.
4492         * lib/ino-map.h: Likewise.
4493         * lib/mkancesdirs.h: Likewise.
4494         * lib/scratch_buffer.h: Likewise.
4495         * lib/se-context.in.h: Likewise.
4496         * lib/stdopen.h: Likewise.
4497         * lib/userspec.h: Likewise.
4499 2020-07-04  Bruno Haible  <bruno@clisp.org>
4501         getrandom: Relicense under LGPLv2+.
4502         Paul Eggert's approval is in
4503         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
4504         * modules/getrandom (License): Change to LGPLv2+.
4506 2020-07-04  Bruno Haible  <bruno@clisp.org>
4508         getumask: Add tests.
4509         * tests/test-getumask.c: New file.
4510         * modules/getumask-tests: New file.
4512         getumask: New module.
4513         * lib/sys_stat.in.h (getumask): New declaration.
4514         * lib/getumask.c: New file.
4515         * m4/getumask.m4: New file.
4516         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
4517         declared.
4518         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
4519         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
4520         HAVE_GETUMASK.
4521         * modules/getumask: New file.
4522         * tests/test-sys_stat-c++.cc (getumask): Check signature.
4523         * doc/glibc-functions/getumask.texi: New file.
4524         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
4526 2020-07-04  Bruno Haible  <bruno@clisp.org>
4528         clean-temp: Add support for temporary files with given mode.
4529         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
4530         * lib/clean-temp.c (struct try_create_file_params): New type.
4531         (try_create_file): New function.
4532         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
4533         gen_tempname.
4535 2020-07-04  Bruno Haible  <bruno@clisp.org>
4537         clean-temp: Document limitations.
4538         * lib/clean-temp.h: Document limitations.
4540 2020-07-04  Bruno Haible  <bruno@clisp.org>
4542         clean-temp: Add support for temporary files with unpredictable names.
4543         * lib/clean-temp.h (gen_register_open_temp): New declaration.
4544         * lib/clean-temp.c: Include tempname.h.
4545         (gen_register_open_temp): New function.
4546         * modules/tempname (configure.ac): Define a module indicator.
4548 2020-07-04  Bruno Haible  <bruno@clisp.org>
4550         clean-temp: Add support for temporary files anywhere in the file system.
4551         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
4552         cleanup_temporary_file): New declarations.
4553         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
4554         variables.
4555         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
4556         (dir_cleanup_list): Renamed from cleanup_list.
4557         (cleanup_action): Process the file_cleanup_list as well.
4558         (do_init_clean_temp): New function.
4559         (clean_temp_once): New variable.
4560         (init_clean_temp): New function.
4561         (create_temp_dir): Invoke it.
4562         (register_temporary_file, unregister_temporary_file,
4563         cleanup_temporary_file): New functions.
4564         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
4565         argument.
4567 2020-07-04  Bruno Haible  <bruno@clisp.org>
4569         clean-temp: Improve comments.
4570         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4571         fwriteerror_temp, close_stream_temp): Clarify intended use.
4572         * lib/clean-temp.c: Likewise.
4574 2020-07-04  Bruno Haible  <bruno@clisp.org>
4576         clean-temp: Make multithread-safe, part 2.
4577         * lib/fatal-signal.h: Include <signal.h>.
4578         (get_fatal_signal_set): New declaration.
4579         * lib/fatal-signal.c (get_fatal_signal_set): New function.
4580         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
4581         (struct closeable_fd): New type.
4582         (fatal_signal_set): New variable.
4583         (init_fatal_signal_set): New function.
4584         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
4585         (cleanup_action): Invoke asyncsafe_close instead of close.
4586         (create_temp_dir): Invoke init_fatal_signal_set.
4587         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
4588         element.
4589         (unregister_fd): Remove function.
4590         (close_temp): Cleanup descriptors list on the fly. Invoke
4591         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
4592         (fclose_variant_temp): New function.
4593         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
4594         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
4596 2020-07-04  Bruno Haible  <bruno@clisp.org>
4598         clean-temp: Make multithread-safe, part 1.
4599         * lib/clean-temp.c: Include glthread/lock.h.
4600         (cleanup_list_lock): New variable.
4601         (register_temp_file, unregister_temp_file, register_temp_subdir,
4602         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
4603         (create_temp_dir): Likewise. Don't free the old array.
4604         (descriptors_lock): New variable.
4605         (register_fd, unregister_fd): Use it.
4606         * modules/clean-temp (Depends-on): Add lock.
4608 2020-07-04  Bruno Haible  <bruno@clisp.org>
4610         fatal-signal: Make multithread-safe.
4611         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4612         (do_init_fatal_signal_set): New function, extracted from
4613         init_fatal_signal_set.
4614         (fatal_signal_set_once): New variable.
4615         (init_fatal_signal_set): Use gl_once.
4617 2020-07-03  Bruno Haible  <bruno@clisp.org>
4619         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
4620         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
4621         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
4622         <bcrypt.h>.
4624 2020-07-03  Bruno Haible  <bruno@clisp.org>
4626         dfa tests: Follow common file naming conventions.
4627         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
4628         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
4629         * tests/test-dfa-invalid-char-class.sh: Renamed from
4630         tests/dfa-invalid-char-class.sh. Update.
4631         * modules/dfa-tests (Files, Makefile.am): Update.
4633 2020-07-03  Bruno Haible  <bruno@clisp.org>
4635         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
4636         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
4637         the GCC extended asm syntax also for the Sun Studio 12 compilers.
4639 2020-07-03  Bruno Haible  <bruno@clisp.org>
4641         asyncsafe-spin: Reduce code duplication.
4642         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
4643         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
4644         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
4646 2020-07-03  Bruno Haible  <bruno@clisp.org>
4648         lchmod: Simplify after 2020-02-22 change.
4649         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
4651 2020-07-03  Bruno Haible  <bruno@clisp.org>
4653         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
4654         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
4656 2020-07-03  Bruno Haible  <bruno@clisp.org>
4658         dfa: Make sure the compiler does not barf on 'inline'.
4659         * modules/dfa (configure.ac): Require AC_C_INLINE.
4661 2020-07-03  Bruno Haible  <bruno@clisp.org>
4663         bitset: Make sure the compiler does not barf on 'inline'.
4664         * modules/bitset (configure.ac): New section.
4666 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4668         manywarnings: improve port to GCC 10.1
4669         * build-aux/gcc-warning.spec: Also list warnings that are default
4670         or are enabled by already-given flags.  This lets us speed up
4671         checking for attributes, and makes the generated compilation
4672         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
4673         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
4674         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
4675         to shell variables that may have long values.
4676         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
4677         consequences of other flags, to speed up checking and
4678         shorten commands.
4680         tests: pacify gcc -fanalyzer on zerosize_ptr
4681         * tests/test-memcasecmp.c (main):
4682         * tests/test-memchr.c (main):
4683         * tests/test-memchr2.c (main):
4684         * tests/test-memcmp.c (main):
4685         * tests/test-memmem.c (main):
4686         * tests/test-memrchr.c (main):
4687         * tests/unistr/test-chr.h (main):
4688         * tests/unistr/test-cmp.h (test_cmp):
4689         Check whether zerosize_ptr returns NULL before using it.
4690         This pacifies GCC 10.1’s new fanalyzer option, and matches
4691         other uses of zerosize_ptr.
4693 2020-07-01  Bruno Haible  <bruno@clisp.org>
4695         asyncsafe-spin: Add tests.
4696         * tests/test-asyncsafe-spin1.c: New file.
4697         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
4698         tests/test-pthread-spin.c.
4699         * modules/asyncsafe-spin-tests: New file.
4701 2020-07-01  Bruno Haible  <bruno@clisp.org>
4703         asyncsafe-spin: New module.
4704         * lib/asyncsafe-spin.h: New file.
4705         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
4706         * modules/asyncsafe-spin: New file.
4708 2020-07-01  Bruno Haible  <bruno@clisp.org>
4710         windows-spin: Fix race condition on multiprocessor systems.
4711         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
4713 2020-07-01  Bruno Haible  <bruno@clisp.org>
4715         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
4716         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4717         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
4718         an implementation based on other GCC built-ins.
4720 2020-07-01  Bruno Haible  <bruno@clisp.org>
4722         pthread-spin: Optimize fallback for GCC versions >= 4.7.
4723         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4724         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
4725         lock byte.
4727 2020-07-01  Bruno Haible  <bruno@clisp.org>
4729         pthread-spin: Add error checking.
4730         * lib/pthread-spin.c: Include <stdbool.h>.
4731         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
4732         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
4733         the unlocks.
4734         * modules/pthread-spin (Depends-on): Add stdbool.
4736 2020-07-01  Bruno Haible  <bruno@clisp.org>
4738         pthread-spin: Add tests.
4739         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
4740         * modules/pthread-spin-tests: New file.
4742 2020-07-01  Bruno Haible  <bruno@clisp.org>
4744         tests: Reduce code duplication.
4745         * tests/atomic-int-posix.h: New file, extracted from
4746         tests/test-pthread-mutex.c.
4747         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
4748         * tests/test-pthread-rwlock.c: Likewise.
4749         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
4750         * modules/pthread-rwlock-tests (Files): Likewise.
4752 2020-07-01  Bruno Haible  <bruno@clisp.org>
4754         tests: Refactor.
4755         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
4756         * tests/test-mtx.c: Include it. Remove the corresponding code.
4757         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
4759 2020-07-01  Bruno Haible  <bruno@clisp.org>
4761         tests: Refactor.
4762         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
4763         * tests/test-lock.c: Include it. Remove the corresponding code.
4764         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
4766 2020-06-29  Bruno Haible  <bruno@clisp.org>
4768         sys_socket: Don't define socklen_t if it is already defined on mingw.
4769         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
4770         <https://savannah.gnu.org/bugs/?57725>,
4771         by Rahul Das <bokul_4u@yahoo.com> in
4772         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
4773         and by Eli Zaretskii <eliz@gnu.org> in
4774         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
4775         * lib/sys_socket.in.h (socklen_t): Remove definition.
4777 2020-06-29  Bruno Haible  <bruno@clisp.org>
4779         alloca-opt: Fix warning on mingw.
4780         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
4781         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
4782         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
4783         whether alloca is defined.
4785 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
4787         getrandom: do not depend on ‘open’ on mingw
4788         Similarly for at-internal, getloadavg.  These modules do not call
4789         the ‘open’ function when they are compiled on mingw.  On mingw,
4790         this avoids having to compile open.c when building Emacs, which
4791         does its own thing with ‘open’.
4792         * modules/at-internal, modules/getloadavg, modules/getrandom:
4793         (Depends-on): Don’t depend on ‘open’ on mingw.
4794         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
4795         * modules/getloadavg (Depends-on):
4796         Depend on intprops, open, stdbool, stdlib only if compiling
4797         getloadavg.c.
4799 2020-06-28  Bruno Haible  <bruno@clisp.org>
4801         doc: Add a note about sigprocmask vs. pthread_sigmask.
4802         * doc/posix-functions/sigprocmask.texi: Add note.
4804 2020-06-28  Bruno Haible  <bruno@clisp.org>
4806         getrandom: Fix compilation errors on older versions of mingw.
4807         Reported by Eli Zaretskii <eliz@gnu.org> in
4808         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
4809         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
4810         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
4811         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
4812         BCryptGenRandom ourselves.
4814 2020-06-28  Bruno Haible  <bruno@clisp.org>
4816         clean-temp: Fix wrong errno in error message.
4817         * lib/clean-temp.c (create_temp_dir): Save errno around
4818         unblock_fatal_signals call.
4820 2020-06-27  Bruno Haible  <bruno@clisp.org>
4822         fatal-signal: Make multithread-safe.
4823         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
4825 2020-06-27  Bruno Haible  <bruno@clisp.org>
4827         clean-temp: Don't force deletion of temporary files on native Windows.
4828         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
4829         argument.
4830         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
4831         * NEWS: Mention the change.
4832         * lib/javacomp.c (write_temp_file): Update.
4834 2020-06-27  Bruno Haible  <bruno@clisp.org>
4836         fatal-signal: Make multithread-safe.
4837         * lib/fatal-signal.c: Include glthread/lock.h.
4838         (at_fatal_signal_lock): New variable.
4839         (at_fatal_signal): Use it.
4840         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
4841         (block_fatal_signals, unblock_fatal_signals): Use them.
4842         * modules/fatal-signal (Depends-on): Add lock.
4844 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
4846         getloadavg: don’t depend on fopen-gnu
4847         This is for Emacs, which does not need fopen-gnu for anything else,
4848         and which would need it only on a NetBSD platform where getloadavg
4849         does not work (does that even happen?).
4850         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
4851         * modules/getloadavg (Depends-on): Remove fopen-gnu.
4853         * tests/test-getloadavg.c (main): Fix typo.
4855 2020-06-27  Bruno Haible  <bruno@clisp.org>
4857         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
4858         * modules/tempname (Link): New section.
4859         * modules/mkdtemp (Link): Likewise.
4860         * modules/clean-temp (Link): Likewise.
4861         * modules/mkstemp (Link): Likewise.
4862         * modules/stdlib-safer (Link): Likewise.
4863         * modules/mkstemps (Link): Likewise.
4864         * modules/mkostemp (Link): Likewise.
4865         * modules/mkostemps (Link): Likewise.
4866         * modules/tmpfile (Link): Likewise.
4867         * modules/tmpfile-safer (Link): Likewise.
4868         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
4869         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
4870         $(LIB_GETRANDOM).
4871         * NEWS: Mention the changes.
4873 2020-06-27  Bruno Haible  <bruno@clisp.org>
4875         fopen-gnu: Simplify code.
4876         * lib/fopen.c: Include <stdbool.h>.
4877         (rpl_fopen): Use a single variable open_flags instead of
4878         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
4879         * modules/fopen (Depends-on): Add stdbool.
4881 2020-06-26  Bruno Haible  <bruno@clisp.org>
4883         canonicalize: Improve documentation.
4884         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
4885         return convention.
4887 2020-06-26  Bruno Haible  <bruno@clisp.org>
4889         xgetcwd: Improve documentation.
4890         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
4892 2020-06-26  Bruno Haible  <bruno@clisp.org>
4894         getcwd: Improve documentation.
4895         * lib/getcwd.c (__getcwd): Document the failure return convention.
4897 2020-06-26  Bruno Haible  <bruno@clisp.org>
4899         fchdir: Improve documentation.
4900         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
4901         convention.
4903 2020-06-26  Bruno Haible  <bruno@clisp.org>
4905         filenamecat-lgpl: Set errno upon failure.
4906         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
4907         return convention.
4908         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
4910 2020-06-26  Bruno Haible  <bruno@clisp.org>
4912         areadlink-with-size: Set errno upon failure.
4913         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
4914         fails.
4915         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
4917 2020-06-26  Bruno Haible  <bruno@clisp.org>
4919         copy-file: Shrink dependencies.
4920         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
4921         qcopy-acl.
4923 2020-06-26  Bruno Haible  <bruno@clisp.org>
4925         doc: Mention declaration fixes implemented by some modules.
4926         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
4927         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
4928         declaration appear in <unistd.h>.
4929         * doc/posix-functions/dup.texi: Likewise.
4930         * doc/posix-functions/dup2.texi: Likewise.
4931         * doc/posix-functions/gethostname.texi: Likewise.
4932         * doc/posix-functions/isatty.texi: Likewise.
4933         * doc/posix-functions/lseek.texi: Likewise.
4934         * doc/posix-functions/unlink.texi: Likewise.
4935         * doc/posix-functions/read.texi: Mention the module 'read'.
4936         * doc/posix-functions/write.texi: Mention the effects of the module
4937         'write'.
4939 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
4941         c-dtoastr, c-ldtoastr: new modules
4942         These modules provide the same functionality as the modules
4943         dtoastr and ldtoastr except for the formatting taking place in the
4944         C locale.
4945         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
4946         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
4947         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
4948         defined.  Use c_snprintf and c_strtod/c_strtold instead of
4949         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
4950         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
4951         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
4952         modules/c-ldtoastr-tests: New files.
4953         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
4954         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
4956 2020-06-21  Bruno Haible  <bruno@clisp.org>
4958         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
4959         * lib/tzset.c: Include <stdlib.h>, <string.h>.
4961 2020-06-16  Bruno Haible  <bruno@clisp.org>
4963         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
4964         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
4966 2020-06-16  Bruno Haible  <bruno@clisp.org>
4968         thread, thrd: Avoid a compiler warning.
4969         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
4971 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
4973         windows-thread: Avoid a compiler warning.
4974         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
4975         void.
4976         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
4978 2020-06-15  Bruno Haible  <bruno@clisp.org>
4980         unictype/joininggroup-name: Fix warning on 64-bit mingw.
4981         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
4982         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
4983         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
4984         first.
4986 2020-06-06  Bruno Haible  <bruno@clisp.org>
4988         calloc-gnu tests: Avoid a test failure with clang.
4989         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
4990         'volatile', to defeat compiler optimizations.
4992 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4994         getloadavg: fix double-increment bug
4995         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
4996         Linux without glibc, Android, Cygwin.  This fixes a bug I
4997         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
4998         Problem and fix reported by Semen Verchenko in:
4999         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
5001         tempname: use getrandom, not getentropy
5002         This removes a dependency, as getentropy depends on getrandom.
5003         * lib/tempname.c: Include sys/random.h instead of unistd.h.
5004         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
5005         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
5007 2020-06-01  Bruno Haible  <bruno@clisp.org>
5009         doc: New chapter 'Multithreading'.
5010         * doc/multithread.texi: New file.
5011         * doc/gnulib.texi: Include it.
5013 2020-06-01  Bruno Haible  <bruno@clisp.org>
5015         doc: Move 'Running self-tests under valgrind' section.
5016         * doc/gnulib.texi (Build Infrastructure Modules): Include
5017         valgrind-tests.texi here...
5018         (Miscellaneous Notes): ... not here.
5020 2020-06-01  Bruno Haible  <bruno@clisp.org>
5022         doc: Move 'Visual Studio Compatibility' section.
5023         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
5024         here...
5025         (Build Infrastructure Modules): ... not here.
5027 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5029         doc: improve randomness discussion
5030         Inspired by comments from Jeffrey Walton in:
5031         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
5032         * doc/glibc-functions/getentropy.texi (getentropy):
5033         * doc/glibc-functions/getrandom.texi (getrandom):
5034         Improve discussion of problems with "random" data,
5035         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
5037 2020-06-01  Bruno Haible  <bruno@clisp.org>
5039         doc: Fix Texinfo syntax error.
5040         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
5042 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
5044         doc: Change '.' to '@.' where appropriate.
5045         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
5046         * doc/glibc-functions/fstatfs.texi: Likewise.
5047         * doc/glibc-functions/fts_children.texi: Likewise.
5048         * doc/glibc-functions/fts_read.texi: Likewise.
5049         * doc/glibc-functions/getdirentries.texi: Likewise.
5050         * doc/glibc-functions/mkostemp.texi: Likewise.
5051         * doc/glibc-functions/mkostemps.texi: Likewise.
5052         * doc/glibc-functions/mkstemps.texi: Likewise.
5053         * doc/glibc-functions/preadv.texi: Likewise.
5054         * doc/glibc-functions/pwritev.texi: Likewise.
5055         * doc/glibc-functions/sendfile.texi: Likewise.
5056         * doc/glibc-functions/statfs.texi: Likewise.
5057         * doc/gnulib-intro.texi: Likewise.
5058         * doc/gnulib-tool.texi: Likewise.
5059         * doc/intprops.texi: Likewise.
5060         * doc/lib-symbol-visibility.texi: Likewise.
5061         * doc/licenses-texi.texi: Likewise.
5062         * doc/pastposix-functions/bcmp.texi: Likewise.
5063         * doc/pastposix-functions/bcopy.texi: Likewise.
5064         * doc/pastposix-functions/bzero.texi: Likewise.
5065         * doc/pastposix-functions/ecvt.texi: Likewise.
5066         * doc/pastposix-functions/fcvt.texi: Likewise.
5067         * doc/pastposix-functions/ftime.texi: Likewise.
5068         * doc/pastposix-functions/gcvt.texi: Likewise.
5069         * doc/pastposix-functions/getwd.texi: Likewise.
5070         * doc/pastposix-functions/index.texi: Likewise.
5071         * doc/pastposix-functions/mktemp.texi: Likewise.
5072         * doc/pastposix-functions/rindex.texi: Likewise.
5073         * doc/pastposix-functions/wcswcs.texi: Likewise.
5074         * doc/posix-functions/aio_cancel.texi: Likewise.
5075         * doc/posix-functions/aio_error.texi: Likewise.
5076         * doc/posix-functions/aio_fsync.texi: Likewise.
5077         * doc/posix-functions/aio_read.texi: Likewise.
5078         * doc/posix-functions/aio_return.texi: Likewise.
5079         * doc/posix-functions/aio_suspend.texi: Likewise.
5080         * doc/posix-functions/aio_write.texi: Likewise.
5081         * doc/posix-functions/creat.texi: Likewise.
5082         * doc/posix-functions/ctime.texi: Likewise.
5083         * doc/posix-functions/daylight.texi: Likewise.
5084         * doc/posix-functions/fgetpos.texi: Likewise.
5085         * doc/posix-functions/fopen.texi: Likewise.
5086         * doc/posix-functions/freopen.texi: Likewise.
5087         * doc/posix-functions/fseeko.texi: Likewise.
5088         * doc/posix-functions/fsetpos.texi: Likewise.
5089         * doc/posix-functions/fstatat.texi: Likewise.
5090         * doc/posix-functions/fstatvfs.texi: Likewise.
5091         * doc/posix-functions/ftello.texi: Likewise.
5092         * doc/posix-functions/ftruncate.texi: Likewise.
5093         * doc/posix-functions/getrlimit.texi: Likewise.
5094         * doc/posix-functions/lio_listio.texi: Likewise.
5095         * doc/posix-functions/localtime.texi: Likewise.
5096         * doc/posix-functions/lseek.texi: Likewise.
5097         * doc/posix-functions/mkstemp.texi: Likewise.
5098         * doc/posix-functions/mktime.texi: Likewise.
5099         * doc/posix-functions/open.texi: Likewise.
5100         * doc/posix-functions/openat.texi: Likewise.
5101         * doc/posix-functions/opendir.texi: Likewise.
5102         * doc/posix-functions/pread.texi: Likewise.
5103         * doc/posix-functions/pwrite.texi: Likewise.
5104         * doc/posix-functions/readdir.texi: Likewise.
5105         * doc/posix-functions/readdir_r.texi: Likewise.
5106         * doc/posix-functions/scandir.texi: Likewise.
5107         * doc/posix-functions/seekdir.texi: Likewise.
5108         * doc/posix-functions/setrlimit.texi: Likewise.
5109         * doc/posix-functions/statvfs.texi: Likewise.
5110         * doc/posix-functions/strftime.texi: Likewise.
5111         * doc/posix-functions/telldir.texi: Likewise.
5112         * doc/posix-functions/timezone.texi: Likewise.
5113         * doc/posix-functions/tmpfile.texi: Likewise.
5114         * doc/posix-functions/truncate.texi: Likewise.
5115         * doc/posix-functions/tzname.texi: Likewise.
5116         * doc/posix-functions/wcsftime.texi: Likewise.
5117         * doc/windows-sockets.texi: Likewise.
5119 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5121         getrandom-tests: do not assume GRND_RANDOM yields short read
5122         * tests/test-getrandom.c (main): Omit assertion that
5123         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
5124         when b’s size is 100000.  This assertion fails with Linux kernel
5125         5.6.13, as that kernel ignores the GRND_RANDOM flag.
5126         The separate blocking pool is going away in the Linux kernel, and
5127         they’ve added a flag GRND_INSECURE instead; see:
5128         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
5129         The assertion was iffy anyway; what’s to prevent a kernel from
5130         lazily filling a large buffer with random bytes?
5132         read-file-test: pacify --enable-gcc-warnings
5133         * tests/test-read-file.c (test_read_file): Now static.
5135         tempname: merge from glibc and coreutils
5136         Also, merge in Gnulib’s more-recent methods of making it easier
5137         to share between Gnulib and glibc, and fix a few randomness
5138         glitches.
5139         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
5140         (__set_errno): Remove; libc-config.h does that for us.
5141         Do not include <sys/time.h>.
5142         (__secure_getenv) [_LIBC]: New macro.
5143         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
5144         (RANDOM_BITS): Rewrite.
5145         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
5146         (random_value): New typedef.
5147         (try_file, try_dir, try_nocreate): Move up.
5148         (gen_tempname_len, try_tempname_len): New functions.
5149         (gen_tempname_len): Use a constant array rather than a switch.
5150         (try_tempname_len): Don’t assume string length fits in int.
5151         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
5152         has enough entropy (it’s a bit short).
5153         (__gen_tempname): Rewrite in terms of gen_tempname_len.
5154         (__try_tempname): Rewrite in terms of try_tempname_len.
5155         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
5156         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
5157         Add getentropy, libc-config.
5159 2020-05-31  Bruno Haible  <bruno@clisp.org>
5161         getrandom, getentropy: Mention the crypto/gc-random module.
5162         Suggested by Simon Josefsson in
5163         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
5164         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
5165         crypto/gc-random module.
5166         * doc/glibc-functions/getentropy.texi: Likewise.
5168 2020-05-31  Bruno Haible  <bruno@clisp.org>
5170         getentropy: Enhance tests.
5171         * tests/test-getentropy.c (main): Add one more test.
5172         * tests/test-unistd-c++.cc: Check the signature of getentropy.
5174 2020-05-31  Bruno Haible  <bruno@clisp.org>
5176         getentropy: Work around a macOS and Solaris problem.
5177         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
5178         'getentropy' module.
5179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5180         UNISTD_H_HAVE_SYS_RANDOM_H.
5181         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
5182         UNISTD_H_HAVE_SYS_RANDOM_H.
5183         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
5184         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
5185         problem. List more platforms.
5187 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5189         fnmatch: merge from glibc
5190         Also, merge in Gnulib’s more-recent methods of making it easier
5191         to share between Gnulib and glibc.
5192         * lib/fnmatch.c: Reorder includes to match glibc better.
5193         Include libc-config.h instead of config.h.
5194         Include alloca.h only if _LIBC || HAVE_ALLOCA.
5195         Do not include "../locale/elem-hash.h" if _LIBC.
5196         Define macros for btowc, etc. if _LIBC.  All uses simplified.
5197         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
5198         Include intprops.h, since glibc has it now.
5199         (SIZE_MAX): Remove; use (size_t) -1 instead.
5200         Omit the "Comment out all this code" ifdef, since Gnulib
5201         has never really needed it.
5202         (STREQ): Remove; no longer used.
5203         (__libc_use_alloca, alloca, alloca_account): Define as
5204         needed if !_LIBC.
5205         (ISWCTYPE): Remove; all uses replaced by iswctype.
5206         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
5207         (internal_function): Remove.  All uses removed.
5208         (STRUCT): New macro.
5209         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
5210         (WMEMCMP): New macro.
5211         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
5212         and <locale/weightwc.h>.
5213         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
5214         __builtin_expect.  Check for integer overflow more
5215         systematically.  Account for alloca storage better when
5216         recursive.  Use strnlen instead of strlen for efficiency.
5217         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
5218         (struct STRUCT): New type.
5219         (FCT, EXT): New ENDS and ALLOCA_USED args.
5220         All callers changed.
5221         (FCT): Prefer __glibc_unlikely to __builtin_expect.
5222         Simplify by assuming WIDE_CHAR_SUPPORT.
5223         Copy _LIBC code from glibc without worrying Gnulib compatibility.
5224         Cast cold to UCHAR to avoid signedness warning.
5225         (END): Check for invalid pattern.
5226         (EXT): Improve alloca/malloc checking (taken from glibc),
5227         and improve it some more by using intprops.h and checking
5228         for integer overflow and using bool for booleans.
5229         * lib/libc-config.h (compat_symbol): New macro.
5230         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
5231         acceptable to non-GCC when a trailing semicolon is added.
5232         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
5233         libc-config, strnlen.  Remove alloca.
5235 2020-05-31  Bruno Haible  <bruno@clisp.org>
5237         getrandom: Doc and test tweaks.
5238         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
5239         it sets errno when failing.
5240         * tests/test-getrandom.c (main): Disable the high-quality check on those
5241         platforms on which it fails.
5242         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
5243         Cygwin to the list of platforms that don't have the function. Add a note
5244         about the quality of the result.
5245         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
5246         declaration; this is fixed by module 'getrandom'.
5248 2020-05-31  Bruno Haible  <bruno@clisp.org>
5250         getrandom: Add support for native Windows.
5251         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
5252         <wincrypt.h>.
5253         (CRYPT_VERIFY_CONTEXT): New macro.
5254         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
5255         'A'.
5256         (GetProcAddress): New macro.
5257         (BCryptGenRandomFuncType): New type.
5258         (BCryptGenRandomFunc, initialized): New variables.
5259         (initialize): New function.
5260         (getrandom): On native Windows, use <bcrypt.h> API when available, and
5261         <wincrypt.h> API as fallback.
5262         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
5263         * modules/getrandom (Link): New section.
5264         * modules/getentropy (Link): Likewise.
5265         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
5266         $(LIB_GETRANDOM).
5267         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
5268         $(LIB_GETRANDOM).
5269         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
5270         against $(LIB_GETRANDOM).
5271         * doc/glibc-functions/getrandom.texi: Mention the native Windows
5272         support.
5274 2020-05-31  Bruno Haible  <bruno@clisp.org>
5276         getrandom: Simplify the determination of the random number devices.
5277         Suggested by Paul Eggert in
5278         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
5279         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
5280         macros.
5281         * modules/getrandom (Depends-on): Remove crypto/gc-random.
5283 2020-05-31  Bruno Haible  <bruno@clisp.org>
5285         crypto/gc-random: Fix list of crypto devices for Solaris.
5286         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
5288 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
5290         list: fix GCC warnings
5291         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
5292         (gl_tree_next_node, gl_tree_node_nx_set_value)
5293         (gl_tree_previous_node, gl_tree_next_node):
5294         Mark unused arguments.
5295         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
5296         * lib/gl_anylinked_list2.h (gl_linked_node_value)
5297         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
5299         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
5300         the same variable name in nested scopes.
5302 2020-05-31  Bruno Haible  <bruno@clisp.org>
5304         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
5305         Reported by Akim Demaille in
5306         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
5307         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
5308         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
5309         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
5310         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
5311         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
5313 2020-05-30  Bruno Haible  <bruno@clisp.org>
5315         wmemchr: Relicense under LGPLv2+.
5316         * modules/wmemchr (License): Set to LGPLv2+.
5318 2020-05-30  Bruno Haible  <bruno@clisp.org>
5320         wmempcpy: New module.
5321         Reported by Paul Eggert in
5322         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
5323         * lib/wchar.in.h (wmempcpy): New declaration.
5324         * lib/wmempcpy.c: New file.
5325         * m4/wmempcpy.m4: New file.
5326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
5327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
5328         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
5329         HAVE_WMEMPCPY.
5330         * modules/wmempcpy: New file.
5331         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
5332         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
5333         * modules/mempcpy (Description): Fix typo.
5335 2020-05-30  Bruno Haible  <bruno@clisp.org>
5337         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
5338         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
5340 2020-05-30  Bruno Haible  <bruno@clisp.org>
5342         sys_random: Work around macOS bug.
5343         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
5344         <stdlib.h> before <sys/random.h>.
5345         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5346         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
5347         first.
5348         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
5350 2020-05-30  Bruno Haible  <bruno@clisp.org>
5352         getrandom: Override incompatible system function on Solaris 11.
5353         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
5354         * lib/getrandom.c (getrandom): When the system has getrandom, just
5355         invoke it.
5356         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
5357         system's getrandom function's prototype is not the expected one.
5358         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
5359         REPLACE_GETRANDOM.
5360         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
5361         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
5362         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
5363         EAGAIN.
5364         * doc/glibc-functions/getrandom.texi: Mention the new module and the
5365         Solaris problem.
5367 2020-05-30  Bruno Haible  <bruno@clisp.org>
5369         sys_random: Add C++ tests.
5370         * tests/test-sys_random-c++.cc: New file.
5371         * modules/sys_random-c++-tests: New file.
5372         * modules/sys_random-tests (Depends-on): Depend on it.
5374         sys_random: Add tests.
5375         * tests/test-sys_random.c: New file.
5376         * modules/sys_random-tests: New file.
5378         sys_random: New module.
5379         * lib/sys_random.in.h: Use the common idioms for overridable header
5380         files.
5381         * m4/sys_random_h.m4: New file.
5382         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
5383         * modules/sys_random: New file.
5384         * modules/getrandom (Files): Remove lib/sys_random.in.h.
5385         (Depends-on): Add sys_random.
5386         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
5387         gl_UNISTD_MODULE_INDICATOR.
5388         (Makefile.am): Don't generate sys/random.h here.
5389         * doc/glibc-headers/sys_random.texi: New file.
5390         * doc/gnulib.texi: Include it.
5392 2020-05-30  Bruno Haible  <bruno@clisp.org>
5394         unistd: Remove conflicting declaration of getrandom().
5395         * lib/unistd.in.h (getrandom): Remove declaration.
5396         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
5397         declared.
5398         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
5399         HAVE_GETRANDOM.
5400         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
5401         HAVE_GETRANDOM.
5403 2020-05-30  Bruno Haible  <bruno@clisp.org>
5405         getrandom: Add tests.
5406         * tests/test-getrandom.c: New file.
5407         * modules/getrandom-tests: New file.
5409 2020-05-30  Bruno Haible  <bruno@clisp.org>
5411         crypto/gc-random: Fix link error on MSVC.
5412         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
5413         * modules/crypto/gc-random (Link): New section.
5414         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
5415         $(LIB_GC_RANDOM).
5417 2020-05-30  Bruno Haible  <bruno@clisp.org>
5419         Don't assume that UNICODE is not defined.
5420         Many Windows API functions are defined differently (redirecting to a
5421         function with suffix 'W') if the application defines the macro UNICODE
5422         than by default (redirecting to a function with suffix 'A').
5423         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
5424         variant with suffix 'A'.
5425         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
5426         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
5427         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
5428         * lib/getlogin.c (GetUserName): Likewise.
5429         * lib/getlogin_r.c (GetUserName): Likewise.
5430         * lib/gettimeofday.c (LoadLibrary): Likewise.
5431         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
5432         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
5433         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
5434         * lib/mountlist.c (GetDriveType): Likewise.
5435         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
5436         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
5437         Likewise.
5438         * lib/physmem.c (GetModuleHandle): Likewise.
5439         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5440         PeekMessage, DispatchMessage): Likewise.
5441         * lib/progreloc.c (GetModuleFileName): Likewise.
5442         * lib/putenv.c (SetEnvironmentVariable): Likewise.
5443         * lib/read.c (GetNamedPipeHandleState): Likewise.
5444         * lib/readdir.c (FindNextFile): Likewise.
5445         * lib/relocatable.c (GetModuleFileName): Likewise.
5446         * lib/rename.c (MoveFileEx): Likewise.
5447         * lib/rewinddir.c (FindFirstFile): Likewise.
5448         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5449         PeekMessage, DispatchMessage): Likewise.
5450         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
5451         * lib/socket.c (WSASocket): Likewise.
5452         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
5453         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
5454         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
5455         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
5456         * lib/tmpdir.c (GetTempPath): Likewise.
5457         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
5458         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
5459         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
5460         * lib/windows-cond.c (CreateEvent): Likewise.
5461         * lib/windows-rwlock.c (CreateEvent): Likewise.
5462         * lib/windows-timedmutex.c (CreateEvent): Likewise.
5463         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
5464         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
5465         * lib/write.c (GetNamedPipeHandleState): Likewise.
5467 2020-05-30  Bruno Haible  <bruno@clisp.org>
5469         physmem: Fix compilation errors on MSVC.
5470         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
5471         * modules/physmem (Depends-on): Add unistd.
5473 2020-05-29  Bruno Haible  <bruno@clisp.org>
5475         gnulib-tool: Fix link errors with a particular set of modules on mingw.
5476         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
5477         LDADD a second time, after the second occurrence of libtests.a.
5478         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
5480 2020-05-29  Bruno Haible  <bruno@clisp.org>
5482         fnmatch: Rely on more gnulib modules.
5483         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
5484         wmempcpy, mempcpy.
5485         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
5486         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
5487         HAVE_MEMPCPY are all 1.
5488         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
5489         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
5491 2020-05-29  Bruno Haible  <bruno@clisp.org>
5493         Avoid dynamic lookup of Windows API functions when possible.
5494         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
5495         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
5496         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
5497         (use_win32_p): Define differently.
5498         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
5499         CreateHardLinkFunc, initialized, initialize): Don't define in a build
5500         for Windows XP or higher.
5502 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5504         read-file: disable buffering if RF_SENSITIVE is set
5505         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
5506         Suggested by Glenn Strauss.
5507         (fread_file): Suggest calling setvbuf before calling this
5508         function.  Suggested by Bruno Haible.
5510 2020-05-29  Bruno Haible  <bruno@clisp.org>
5512         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
5513         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
5514         program.
5515         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
5516         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
5517         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
5518         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
5520 2020-05-29  Bruno Haible  <bruno@clisp.org>
5522         Fix compilation error on native Windows (regression from 2020-05-28).
5523         Reported by Daiki Ueno.
5524         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
5525         macro when not using dynamic loading.
5526         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
5527         QueryFullProcessImageNameFunc): Likewise.
5528         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
5529         GetFinalPathNameByHandleFunc): Likewise.
5531 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5533         fopen-gnu-tests: fix "\x" escape usage
5534         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
5536 2020-05-28  Bruno Haible  <bruno@clisp.org>
5538         Avoid dynamic loading of Windows API functions when possible.
5539         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5540         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
5541         * lib/gettimeofday.c (GetProcAddress,
5542         GetSystemTimePreciseAsFileTimeFuncType,
5543         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
5544         define in a build for Windows 8 or higher.
5545         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
5546         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
5547         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
5548         in a build for Windows Vista or higher.
5549         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
5550         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
5551         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
5553 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5555         explicit_bzero-tests: improve -Wmissing-declarations pacification
5556         * tests/test-explicit_bzero.c: Now noinline.
5557         Suggested by Bruno Haible in:
5558         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
5560 2020-05-28  Bruno Haible  <bruno@clisp.org>
5562         Fix build errors due to read-file changes (regression from 2020-05-27).
5563         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
5564         invocation.
5565         * tests/test-sameacls.c (main): Likewise.
5566         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
5567         read_binary_file.
5568         * tests/test-pipe-filter-ii1.c (main): Likewise.
5570 2020-05-28  Bruno Haible  <bruno@clisp.org>
5572         fts: Make more robust in multithreaded applications.
5573         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
5574         * modules/fts (Depends-on): Add 'open'.
5576 2020-05-28  Bruno Haible  <bruno@clisp.org>
5578         relocatable-prog: Make more robust in multithreaded applications.
5579         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
5580         relocatable-prog-wrapper.
5581         (find_executable): Pass an O_CLOEXEC flag to open().
5582         * modules/relocatable-prog (Depends-on): Add 'open'.
5584 2020-05-28  Bruno Haible  <bruno@clisp.org>
5586         getloadavg: Make more robust in multithreaded applications.
5587         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
5588         Simplify use of O_CLOEXEC.
5589         * modules/getloadavg (Depends-on): Add 'open'.
5591 2020-05-28  Bruno Haible  <bruno@clisp.org>
5593         vma-iter: Make more robust in multithreaded applications.
5594         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
5595         open().
5596         * modules/vma-iter (Depends-on): Add 'open'.
5598 2020-05-28  Bruno Haible  <bruno@clisp.org>
5600         truncate: Make more robust in multithreaded applications.
5601         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
5603 2020-05-28  Bruno Haible  <bruno@clisp.org>
5605         pagealign_alloc: Make more robust in multithreaded applications.
5606         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
5607         open().
5608         * modules/pagealign_alloc (Depends-on): Add 'open'.
5610 2020-05-28  Bruno Haible  <bruno@clisp.org>
5612         openat: Make more robust in multithreaded applications.
5613         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
5615 2020-05-28  Bruno Haible  <bruno@clisp.org>
5617         at-internal: Make more robust in multithreaded applications.
5618         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
5619         open().
5621 2020-05-28  Bruno Haible  <bruno@clisp.org>
5623         mountlist: Make more robust in multithreaded applications.
5624         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
5625         open().
5626         * modules/mountlist (Depends-on): Add 'open'.
5628 2020-05-28  Bruno Haible  <bruno@clisp.org>
5630         login_tty: Make more robust in multithreaded applications.
5631         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
5632         * modules/login_tty (Depends-on): Add 'open'.
5634 2020-05-28  Bruno Haible  <bruno@clisp.org>
5636         javacomp: Make more robust in multithreaded applications.
5637         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
5638         open().
5639         * modules/javacomp (Depends-on): Add 'open'.
5641 2020-05-28  Bruno Haible  <bruno@clisp.org>
5643         getprogname: Make more robust in multithreaded applications.
5644         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
5645         * modules/getprogname (Depends-on): Add 'open'.
5647 2020-05-28  Bruno Haible  <bruno@clisp.org>
5649         get_progname_of: Make more robust in multithreaded applications.
5650         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
5651         open().
5652         * modules/get_progname_of (Depends-on): Add 'open'.
5654 2020-05-28  Bruno Haible  <bruno@clisp.org>
5656         get_ppid_of: Make more robust in multithreaded applications.
5657         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
5658         * modules/get_ppid_of (Depends-on): Add 'open'.
5660 2020-05-28  Bruno Haible  <bruno@clisp.org>
5662         get-rusage-as: Make more robust in multithreaded applications.
5663         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
5664         flag to open().
5665         * modules/get-rusage-as (Depends-on): Add 'open'.
5667 2020-05-28  Bruno Haible  <bruno@clisp.org>
5669         crypto/gc: Make more robust in multithreaded applications.
5670         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
5671         * modules/crypto/gc (Depends-on): Add 'open'.
5673 2020-05-28  Bruno Haible  <bruno@clisp.org>
5675         copy-file: Make more robust in multithreaded applications.
5676         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
5677         open().
5679 2020-05-28  Bruno Haible  <bruno@clisp.org>
5681         chown: Make more robust in multithreaded applications.
5682         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
5684 2020-05-28  Bruno Haible  <bruno@clisp.org>
5686         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
5687         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
5689 2020-05-28  Daiki Ueno  <ueno@gnu.org>
5691         fopen-gnu: make 'b' flag can be used with 'e' on Windows
5692         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
5693         specified on Windows.
5694         * tests/test-fopen-gnu.c (DATA): New define.
5695         (main): Add test for reading binary files with an 'e' flag.
5697 2020-05-27  Bruno Haible  <bruno@clisp.org>
5699         Don't assume that UNICODE is not defined.
5700         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
5701         differently if the application defines the macro UNICODE.
5702         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5703         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
5704         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
5705         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
5706         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
5708 2020-05-27  Bruno Haible  <bruno@clisp.org>
5710         Improve pattern for defining _WIN32_WINNT.
5711         Newer versions of the Windows API may not only add, but also remove API
5712         functions. Therefore, when the user is e.g. building for Windows 10, we
5713         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
5714         use of APIs that were present in Windows 8 but removed in Windows 10.
5715         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
5716         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
5717         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
5718         * lib/sethostname.c (_WIN32_WINNT): Likewise.
5719         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
5721 2020-05-27  Bruno Haible  <bruno@clisp.org>
5723         javacomp: Make more robust in multithreaded applications.
5724         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
5725         * modules/javacomp (Depends-on): Add fopen-gnu.
5727 2020-05-27  Bruno Haible  <bruno@clisp.org>
5729         mountlist: Make more robust in multithreaded applications.
5730         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
5731         to fopen.
5732         * modules/mountlist (Depends-on): Add fopen-gnu.
5734 2020-05-27  Bruno Haible  <bruno@clisp.org>
5736         sethostname: Make more robust in multithreaded applications.
5737         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
5738         * modules/sethostname (Depends-on): Add fopen-gnu.
5740 2020-05-27  Bruno Haible  <bruno@clisp.org>
5742         readutmp: Make more robust in multithreaded applications.
5743         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
5744         * modules/readutmp (Depends-on): Add fopen-gnu.
5746 2020-05-27  Bruno Haible  <bruno@clisp.org>
5748         getpass: Make more robust in multithreaded applications.
5749         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
5750         * modules/getpass (Depends-on): Add fopen-gnu.
5752 2020-05-27  Bruno Haible  <bruno@clisp.org>
5754         getloadavg: Make more robust in multithreaded applications.
5755         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
5756         * modules/getloadavg (Depends-on): Add fopen-gnu.
5758 2020-05-27  Bruno Haible  <bruno@clisp.org>
5760         exclude: Make more robust in multithreaded applications.
5761         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
5762         * modules/exclude (Depends-on): Add fopen-gnu.
5764 2020-05-27  Bruno Haible  <bruno@clisp.org>
5766         bitset: Make more robust in multithreaded applications.
5767         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
5768         'e' flag to fopen.
5769         * modules/bitset (Depends-on): Add fopen-gnu.
5771 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5773         read-file: add RF_SENSITIVE flag
5774         * lib/read-file.h (RF_SENSITIVE): New define.
5775         * lib/read-file.c (fread_file, read_file): Take into account of
5776         RF_SENSITIVE flag.
5777         * modules/read-file (Depends-on): Add explicit_bzero.
5778         This adds an alternative behavior of those functions to explicitly
5779         clear the internal memory block when it becomes unused.  This is
5780         useful for reading sensitive information from a file.
5782 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5784         read-file: add flags to modify reading behavior
5785         * lib/read-file.h (RF_BINARY): New define.
5786         (fread_file, read_file): Take FLAGS argument.
5787         (read_binary_file): Remove.
5788         * lib/read-file.c (internal_read_file): Merge into ...
5789         (read_file): ... here.
5790         * modules/read-file-tests (Files): Add "tests/macros.h".
5791         * tests/test-read-file.c (main): Refactor using ASSERT macro.
5792         * NEWS: Mention this change.
5794 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
5796         doc/gnulib-intro.texi: add missing "to" in sentence
5797         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
5798         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
5799         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
5801 2020-05-26  Bruno Haible  <bruno@clisp.org>
5803         count-one-bits: Fix MSVC specific code.
5804         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5805         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
5806         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
5807         using GCC.
5808         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
5809         (__popcnt64): In 32-bit mode, define as an inline function.
5810         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
5812 2020-05-26  Bruno Haible  <bruno@clisp.org>
5814         argz: Avoid name clashes through argz.h.
5815         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5816         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
5817         * lib/argz.h: Don't use __ prefixed identifiers.
5818         (const): Remove definition.
5819         (argz_next): Remove inline definitions.
5821 2020-05-26  Daiki Ueno  <ueno@gnu.org>
5823         read-file: make use of fopen-gnu
5824         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
5825         (read_binary_file): Likewise.
5826         * modules/read-file (Depends-on): Add fopen-gnu.
5828 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5830         getentropy, getrandom: new modules
5831         * MODULES.html.sh (func_all_modules):
5832         * lib/unistd.in.h (getentropy, getrandom):
5833         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
5834         * modules/unistd (unistd.h):
5835         Add support for getentropy, getrandom.
5836         * doc/glibc-functions/getentropy.texi (getentropy):
5837         * doc/glibc-functions/getrandom.texi (getrandom):
5838         These are now fixed on some platforms.
5839         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
5840         * m4/getentropy.m4, m4/getrandom.m4:
5841         * modules/getentropy, modules/getentropy-tests:
5842         * modules/getrandom, modules/getrandom-tests:
5843         * tests/test-getentropy.c, tests/test-getrandom.c:
5844         New files.
5846 2020-05-25  Bruno Haible  <bruno@clisp.org>
5848         Add missing C99 dependencies.
5849         Reported by Paul Smith <psmith@gnu.org> in
5850         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
5851         * modules/assert (Depends-on): Add c99.
5852         * modules/filenamecat-lgpl (Depends-on): Likewise.
5853         * modules/libc-config (Depends-on): Likewise.
5854         * modules/mktime (Depends-on): Likewise.
5855         * modules/random_r (Depends-on): Likewise.
5856         * modules/regex (Depends-on): Likewise.
5857         * modules/scratch_buffer (Depends-on): Likewise.
5858         * modules/timespec-add (Depends-on): Likewise.
5859         * modules/timespec-sub (Depends-on): Likewise.
5860         * modules/verify (Depends-on): Likewise.
5862 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5864         explicit_bzero-tests: pacify -Wmissing-declarations
5865         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
5866         Now static.
5868 2020-05-24  Bruno Haible  <bruno@clisp.org>
5870         fopen-gnu: Add tests.
5871         * tests/test-fopen-gnu.c: New file.
5872         * modules/fopen-gnu-tests: New file.
5874         fopen-gnu: New module.
5875         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
5876         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
5877         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
5878         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
5879         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
5880         * modules/fopen-gnu: New file.
5881         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
5883 2020-05-24  Bruno Haible  <bruno@clisp.org>
5885         open, openat: Really support O_CLOEXEC.
5886         * lib/open.c (open): When have_cloexec is still undecided, do pass a
5887         O_CLOEXEC flag to orig_open.
5888         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
5889         pass a O_CLOEXEC flag to orig_openat.
5890         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
5891         * modules/open-tests (Depends-on): Add fcntl.
5892         * modules/openat-tests (Depends-on): Likewise.
5893         * modules/fcntl-safer-tests (Depends-on): Likewise.
5895 2020-05-24  Bruno Haible  <bruno@clisp.org>
5897         fopen: Fix the trailing slash workaround.
5898         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
5899         write access. Pass the right flags to open().
5900         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
5902 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5904         assure: new macro ‘affirm’
5905         * lib/assure.h: Include verify.h.
5906         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
5907         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
5908         and commentary by Bruno Haible in:
5909         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
5910         * modules/assure (Depends-on:): Add verify.
5912 2020-05-23  Bruno Haible  <bruno@clisp.org>
5914         calloc-gnu: Make test work in non-flat address spaces.
5915         Uses code by Paul Eggert.
5916         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
5917         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
5919 2020-05-23  Bruno Haible  <bruno@clisp.org>
5921         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
5922         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
5923         AC_RUN_IFELSE invocations.
5925 2020-05-23  Bruno Haible  <bruno@clisp.org>
5927         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
5928         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
5929         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
5930         don't have it.
5931         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5932         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
5933         don't have it.
5934         * lib/isnanf-nolibm.h (__has_builtin): New macro.
5935         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
5936         it.
5937         * lib/isnanl-nolibm.h (__has_builtin): New macro.
5938         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
5939         it.
5940         * lib/math.in.h (__has_builtin): New macro.
5941         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
5942         it.
5943         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
5944         it.
5945         (isnan): Don't use the builtins on clang versions that don't have
5946         __builtin_isnanf and __builtin_isnanl.
5948 2020-05-23  Bruno Haible  <bruno@clisp.org>
5950         calloc-gnu: Avoid wrong configure results with clang.
5951         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
5952         'volatile', to defeat compiler optimizations.
5954 2020-05-23  Bruno Haible  <bruno@clisp.org>
5956         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
5957         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
5958         'long double' values by reference, with values taken from a statically
5959         allocated array.
5961 2020-05-23  Bruno Haible  <bruno@clisp.org>
5963         findprog-in: Ignore directories.
5964         Reported by Frederick Eaton via Dmitry Goncharov in
5965         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
5966         * lib/findprog-in.c (find_in_given_path): When the file found is a
5967         directory, set errno to EACCES and, during a PATH search, continue
5968         searching.
5969         * modules/findprog-in (Depends-on): Add sys_stat, stat.
5971 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5973         verify: document ‘assume’ better
5974         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
5976 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
5978         gendocs: Clarify licenses for templates.
5979         * doc/gendocs_template: Add a GNU All-Permissive license notice
5980         and bump Parent-Version.
5981         * doc/gendocs_template_min: Add a GNU All-Permissive license
5982         notice and copy the explanatory comment about the license notice
5983         at the bottom from gendocs_template.
5985 2020-05-21  Bruno Haible  <bruno@clisp.org>
5987         group-member: Relicense under LGPLv2+.
5988         Jim Meyering's approval is in
5989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
5990         Paul Eggert's approval is in
5991         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
5992         Eric Blake's approval is in
5993         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
5994         * modules/group-member (License): Change to LGPLv2+.
5996 2020-05-21  Bruno Haible  <bruno@clisp.org>
5998         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
5999         Reported by Tim Rühsen in
6000         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6001         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
6003 2020-05-21  Bruno Haible  <bruno@clisp.org>
6005         regex: Avoid wrong configure results with "clang -fsanitize=leak".
6006         Reported by Tim Rühsen in
6007         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6008         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
6009         before returning with status 0.
6011 2020-05-21  Bruno Haible  <bruno@clisp.org>
6013         glob: Avoid wrong configure results with "clang -fsanitize=leak".
6014         Reported by Tim Rühsen in
6015         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6016         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
6018 2020-05-21  Bruno Haible  <bruno@clisp.org>
6020         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
6021         Reported by Tim Rühsen in
6022         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6023         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
6024         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
6025         respectively.
6027 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
6029         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
6030         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
6032 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6034         ftoastr: fix ifndef typo
6035         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
6037 2020-05-19  Bruno Haible  <bruno@clisp.org>
6039         havelib: Tweak documentation.
6040         * doc/havelib.texi (Searching for Libraries): Fix typo.
6042 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6044         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
6045         This was needed earlier because modules had to import the main script,
6046         but that is no longer true.  Rename the script so that it is
6047         consistent with all other scripts in gnulib and uses hyphens.
6048         * build-aux/vcs_to_changelog.py: Rename to...
6049         * build-aux/vcs-to-changelog.py: ... this.
6050         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
6051         * modules/vcs-to-changelog: Likewise.
6053 2020-05-17  Bruno Haible  <bruno@clisp.org>
6055         Clarify intended usage of the license file modules.
6056         Reported by Asher Gordon <AsDaGo@posteo.net> in
6057         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
6058         * doc/licenses-texi.texi (License Texinfo sources): Mention the
6059         GNU AGPL. Explain the intended usage of the modules.
6060         * modules/fdl (Notice): Discourage use as a module.
6061         * modules/fdl-1.3 (Notice): Likewise.
6063 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
6065         hash: add hash_xinsert
6066         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
6068 2020-05-16  Bruno Haible  <bruno@clisp.org>
6070         findprog-lgpl: Fix link error (existing since 2008-09-02).
6071         * modules/findprog-lgpl (Makefile.am): Arrange to compile
6072         findprog-lgpl.c, not findprog.c.
6073         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
6074         XNMALLOC.
6076 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
6078         c-stack: pacify -Wunused-result when DEBUG
6079         Problem reported by Marc Nieper-Wißkirchen in:
6080         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
6081         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
6082         Explicitly ignore write failures.
6084 2020-05-13  Jim Meyering  <meyering@fb.com>
6086         announce-gen: improve a comment
6087         * build-aux/announce-gen: Improve comment.
6089 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6091         xalloc: pacify -Wanalyzer-possible-null-argument
6092         Problem reported for GCC 10.1.0 by Bruno Haible in:
6093         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
6094         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
6095         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
6096         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
6098 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6100         careadlinkat: fix GCC 10 workaround
6101         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6102         Massage the code so that it’s closer to what it was before
6103         the GCC 10.1.0 workaround was introduced.  This fixes
6104         a loop when !buffer and the bug workaround is in effect.
6105         Remove unnecessary casts.  Defend in a different way
6106         against (buffer && !buffer_size), by adding at least 1
6107         to buf_size each time through the loop.
6109 2020-05-10  Bruno Haible  <bruno@clisp.org>
6111         doc: Mark HP-UX as unsupported.
6112         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
6114 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6116         careadlinkat: limit GCC workaround
6117         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
6118         10.1.0 and later, since the workaround is pretty bad and the GCC
6119         bug should get fixed.
6121 2020-05-10  Bruno Haible  <bruno@clisp.org>
6123         havelib: Enhance documentation.
6124         * doc/havelib.texi (Searching for Libraries): Mention the bad
6125         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
6127 2020-05-10  Bruno Haible  <bruno@clisp.org>
6129         attribute: Clarify list of attributes.
6130         * lib/attribute.h: Reorder the list of attributes, and group them by
6131         purpose.
6133 2020-05-10  Bruno Haible  <bruno@clisp.org>
6135         string: Fix compilation error in C++ mode.
6136         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
6137         _GL_WARN_ON_USE.
6138         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
6139         instead of _GL_WARN_ON_USE.
6141 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
6143         announce-gen: add support for dist-lzip
6144         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
6146 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6148         manywarnings: port to GCC 10.1
6149         * build-aux/gcc-warning.spec:
6150         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
6151         Add GCC 10.1.0 warnings.
6153         careadlinkat: pacify -Wreturn-local-addr
6154         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6155         Pacify gcc 10’s -Wreturn-local-addr option.
6156         Simplify some of the later code.
6158 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6160         attribute: remove ATTRIBUTE_DEPRECATED
6161         * lib/attribute.h: Improve recently-added comments, mostly
6162         by shortening them (use active voice, etc.).
6163         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
6164         Problem reported by Bruno Haible in:
6165         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
6167 2020-05-09  Bruno Haible  <bruno@clisp.org>
6169         attribute: Add comments.
6170         * lib/attribute.h: Document each macro.
6172 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
6174         bitset: use the attribute module
6175         * modules/bitset: Depend on 'attribute'.
6176         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
6177         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
6178         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
6179         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
6181 2020-05-09  Bruno Haible  <bruno@clisp.org>
6183         c-stack: Fix warning when DEBUG is enabled.
6184         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6185         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
6186         * lib/c-stack.c: Include <stdio.h>.
6188 2020-05-09  Bruno Haible  <bruno@clisp.org>
6190         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
6191         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
6192         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6193         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6194         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6195         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6196         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6197         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6198         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6199         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
6200         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6201         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6202         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6204 2020-05-09  Bruno Haible  <bruno@clisp.org>
6206         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
6207         Reported by Akim Demaille in
6208         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
6209         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
6210         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6211         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6213 2020-05-09  Bruno Haible  <bruno@clisp.org>
6215         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
6216         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
6217         that usually comes from m4/gnulib-common.m4.
6218         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6220 2020-05-09  Bruno Haible  <bruno@clisp.org>
6222         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
6223         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
6224         that usually comes from m4/gnulib-common.m4.
6225         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6226         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6227         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6229 2020-05-09  Bruno Haible  <bruno@clisp.org>
6231         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
6232         * lib/uchar.in.h (char16_t): Define as macro if
6233         GNULIB_OVERRIDES_CHAR16_T.
6234         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
6235         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
6236         (gl_UCHAR_H): Invoke them.
6237         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
6238         GNULIB_OVERRIDES_CHAR32_T.
6239         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
6240         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
6241         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
6242         GNULIB_OVERRIDES_CHAR32_T.
6244 2020-05-09  Bruno Haible  <bruno@clisp.org>
6246         Macro tweaks.
6247         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
6248         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
6250 2020-05-08  Bruno Haible  <bruno@clisp.org>
6252         c32rtomb: Avoid compilation failure on Haiku.
6253         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
6254         inline definitions.
6255         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
6257 2020-05-08  Bruno Haible  <bruno@clisp.org>
6259         mbrtoc32: Avoid compilation failure on Haiku.
6260         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
6261         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
6262         AC_CHECK_FUNCS_ONCE.
6263         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
6265 2020-05-08  Bruno Haible  <bruno@clisp.org>
6267         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
6268         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
6270 2020-05-08  Bruno Haible  <bruno@clisp.org>
6272         list: Update documentation.
6273         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6274         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
6275         * doc/containers.texi (Container data types): Document the new list
6276         operations and their complexity.
6278 2020-05-08  Bruno Haible  <bruno@clisp.org>
6280         ignore-value tests: Use module 'attribute'.
6281         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
6282         * tests/test-ignore-value.c: Include attribute.h.
6283         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
6284         * modules/ignore-value-tests (Depends-on): Add attribute.
6286 2020-05-08  Bruno Haible  <bruno@clisp.org>
6288         uniname/uniname: Use module 'attribute'.
6289         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
6290         * lib/uniname/uninames.h: Regenerated.
6291         * lib/uniname/uniname.c: Include attribute.h.
6292         * modules/uniname/uniname (Depends-on): Add attribute.
6294 2020-05-08  Bruno Haible  <bruno@clisp.org>
6296         c32rtomb: Use module 'attribute'.
6297         * lib/c32rtomb.c: Include attribute.h.
6298         (FALLTHROUGH): Remove macro.
6299         * modules/c32rtomb (Depends-on): Add attribute.
6301 2020-05-08  Bruno Haible  <bruno@clisp.org>
6303         xsize: Use module 'attribute'.
6304         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
6305         * modules/xsize (Depends-on): Add attribute.
6307 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
6309         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
6311         * lib/attribute.h: Minor style fixes.
6313         Fix version-etc glitch on OpenIndiana
6314         Problem reported by Mats Erik Andersson in:
6315         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
6316         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
6317         that now clashes with gnulib-common.h.  All uses changed.
6319 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6321         attribute: new module
6322         This simplifies use of GCC and C2X attributes like ‘deprecated’.
6323         * MODULES.html.sh: Add attribute.
6324         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
6325         * doc/gnulib.texi (Particular Modules): Add Attributes.
6326         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
6327         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
6328         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
6329         * lib/vasnprintf.c:
6330         Include attribute.h, and let it define FALLTHROUGH.
6331         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
6332         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
6333         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
6334         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
6335         This is a copy since Gawk doesn’t use Gnulib.
6336         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
6337         is incompatible with gl_COMMON_BODY’s.  All uses changed.
6338         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
6339         Keep the existing FALLTHROUGH definition since Glibc might use it,
6340         and it does no harm to Gnulib’s FALLTHROUGH.
6341         * lib/fts_.h, lib/inttostr.h:
6342         (__GNUC_PREREQ): Remove; no longer needed.
6343         (__attribute_warn_unused_result__): Remove.  All uses
6344         replaced by _GL_ATTRIBUTE_NODISCARD.
6345         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
6346         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
6347         __attribute__ ((__warn_unused_result__)), for forward
6348         compatibility to C2X.
6349         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
6350         _GL_ATTRIBUTE_NODISCARD.
6351         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
6352         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
6353         replaced by gl_COMMON_BODY’s implementation, which has a
6354         slightly different signature.
6355         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
6356         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
6357         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
6358         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
6359         No doubt all uses should be replaced, at some point.
6360         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
6361         (_Noreturn): Use it.
6362         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
6363         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
6364         (_GL_ATTRIBUTE_COLD)
6365         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
6366         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
6367         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
6368         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
6369         (_GL_ATTRIBUTE_MAYBE_UNUSED)
6370         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
6371         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
6372         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
6373         (_GL_ATTRIBUTE_RETURNS_NONNULL)
6374         (_GL_ATTRIBUTE_SENTINEL): New macros.
6375         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
6376         * modules/fnmatch, modules/freopen-safer, modules/fts:
6377         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
6378         * modules/quotearg, modules/savewd:
6379         * modules/unistdio/u16-u16-vasnprintf:
6380         * modules/unistdio/u16-vasnprintf:
6381         * modules/unistdio/u32-u32-vasnprintf:
6382         * modules/unistdio/u32-vasnprintf:
6383         * modules/unistdio/u8-u8-vasnprintf:
6384         * modules/unistdio/u8-vasnprintf:
6385         * modules/unistdio/ulc-vasnprintf:
6386         * modules/unistr/u8-uctomb, modules/vasnprintf:
6387         (Depends-on:): Add attribute module.
6389 2020-05-03  Bruno Haible  <bruno@clisp.org>
6391         bison: Fix today's commit.
6392         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
6394 2020-05-03  Bruno Haible  <bruno@clisp.org>
6396         list-c++: Add get_first, get_last, set_first, set_last operations.
6397         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
6398         set_first, set_last.
6399         * lib/gl_list.h: Tweak comments.
6401 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
6403         bison: rely on bison's %require to check a version requirement
6404         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
6405         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
6406         enough of not.
6407         So far it is the only know Yacc tool that supports '%require'.
6408         Other yaccs will actually even choke on seeing the -o option after the
6409         input file name.
6410         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
6412 2020-05-02  Bruno Haible  <bruno@clisp.org>
6414         list: Add get_first, get_last, set_first, set_last operations.
6415         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
6416         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
6417         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
6419 2020-05-02  Bruno Haible  <bruno@clisp.org>
6421         list: Remove redundant code for remove_first and remove_last operations.
6422         * lib/gl_list.h (struct gl_list_implementation): Remove fields
6423         remove_first, remove_last.
6424         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
6425         * lib/gl_array_list.c: Revert last change.
6426         * lib/gl_carray_list.c: Likewise.
6427         * lib/gl_anylinked_list2.h: Likewise.
6428         * lib/gl_linked_list.c: Likewise.
6429         * lib/gl_linkedhash_list.c: Likewise.
6430         * lib/gl_anytree_list2.h: Likewise.
6431         * lib/gl_avltree_list.c: Likewise.
6432         * lib/gl_avltreehash_list.c: Likewise.
6433         * lib/gl_rbtree_list.c: Likewise.
6434         * lib/gl_rbtreehash_list.c: Likewise.
6435         * lib/gl_sublist.c: Likewise.
6437 2020-05-02  Bruno Haible  <bruno@clisp.org>
6439         bison-i18n: Add support for cross-compilation.
6440         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
6441         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
6442         via Akim Demaille <akim@lrde.epita.fr>.
6443         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
6444         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
6445         Don't use bison's --print-localedir option when cross-compiling.
6446         Also, fix an error message and a comment.
6448 2020-05-01  Bruno Haible  <bruno@clisp.org>
6450         list: Add remove_first and remove_last operations.
6451         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6452         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
6453         * lib/gl_list.h (struct gl_list_implementation): Add fields
6454         remove_first, remove_last.
6455         (gl_list_remove_first, gl_list_remove_last): New functions.
6456         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
6457         functions, based on gl_array_remove_at.
6458         (gl_array_list_implementation): Implement the new operations.
6459         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
6460         New functions, based on gl_carray_remove_at.
6461         (gl_carray_list_implementation): Implement the new operations.
6462         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
6463         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
6464         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
6465         new operations.
6466         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
6467         Likewise.
6468         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
6469         New functions, based on gl_tree_remove_at.
6470         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
6471         new operations.
6472         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6473         Likewise.
6474         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
6475         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
6476         Likewise.
6477         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
6478         New functions, based on gl_sublist_remove_at.
6479         (gl_sublist_list_implementation): Implement the new operations.
6480         * lib/gl_list.hh (class gl_List): Add methods remove_first,
6481         remove_last.
6482         * tests/test-array_list.c (main): Test also gl_list_remove_first and
6483         gl_list_remove_last.
6484         * tests/test-avltree_list.c (main): Likewise.
6485         * tests/test-avltreehash_list.c (main): Likewise.
6486         * tests/test-carray_list.c (main): Likewise.
6487         * tests/test-linked_list.c (main): Likewise.
6488         * tests/test-linkedhash_list.c (main): Likewise.
6489         * tests/test-rbtree_list.c (main): Likewise.
6490         * tests/test-rbtreehash_list.c (main): Likewise.
6492 2020-05-01  Bruno Haible  <bruno@clisp.org>
6494         parse-datetime: Fix a build failure with an older bison version.
6495         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
6496         parse-datetime.tab.c if a suitable version of bison was not found.
6498 2020-05-01  Bruno Haible  <bruno@clisp.org>
6500         bison: New module.
6501         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
6502         m4/parse-datetime.m4.
6503         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
6504         * modules/bison: New file.
6505         * modules/parse-datetime (Files): Remove m4/bison.m4.
6506         (Depends-on): Add bison.
6508 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
6510         Update users.txt.
6511         * users.txt: Add poke.
6513 2020-04-28  Bruno Haible  <bruno@clisp.org>
6515         posix_spawn_file_actions_addfchdir tests: Enhance test.
6516         * tests/test-posix_spawn5.c: Include findprog.h.
6517         (test): New function, extracted from main.
6518         (main): Invoke it. Also, invoke it with a program name such as
6519         "bin/pwd".
6520         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
6521         findprog.
6523 2020-04-28  Bruno Haible  <bruno@clisp.org>
6525         posix_spawn_file_actions_addchdir tests: Enhance test.
6526         * tests/test-posix_spawn4.c: Include findprog.h.
6527         (test): New function, extracted from main.
6528         (main): Invoke it. Also, invoke it with a program name such as
6529         "bin/pwd".
6530         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
6531         findprog.
6533 2020-04-28  Bruno Haible  <bruno@clisp.org>
6535         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
6536         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
6537         access elements of the wrong union member.
6539 2020-04-27  Bruno Haible  <bruno@clisp.org>
6541         getdate: Remove deprecated module.
6542         * modules/getdate: Remove file.
6543         * doc/getdate.texi: Remove file.
6544         * lib/getdate.h: Remove file.
6545         * NEWS: Mention the removal.
6547 2020-04-27  Bruno Haible  <bruno@clisp.org>
6549         realloc: Remove deprecated module.
6550         * modules/realloc: Remove file.
6551         * NEWS: Mention the removal.
6553 2020-04-27  Bruno Haible  <bruno@clisp.org>
6555         calloc: Remove deprecated module.
6556         * modules/calloc: Remove file.
6557         * NEWS: Mention the removal.
6559 2020-04-27  Bruno Haible  <bruno@clisp.org>
6561         malloc: Remove deprecated module.
6562         * modules/malloc: Remove file.
6563         * NEWS: Mention the removal.
6565 2020-04-27  Bruno Haible  <bruno@clisp.org>
6567         fnmatch-posix: Remove deprecated module.
6568         * modules/fnmatch-posix: Remove file.
6569         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
6570         * NEWS: Mention the removal.
6572 2020-04-27  Bruno Haible  <bruno@clisp.org>
6574         pipe: Remove deprecated module.
6575         * modules/pipe: Remove file.
6576         * lib/pipe.h: Remove file.
6577         * NEWS: Mention the removal.
6579 2020-04-27  Bruno Haible  <bruno@clisp.org>
6581         getopt: Remove deprecated module.
6582         * modules/getopt: Remove file.
6583         * NEWS: Mention the removal.
6585 2020-04-27  Bruno Haible  <bruno@clisp.org>
6587         remove-dest-slash: Remove deprecated module.
6588         * modules/rename-dest-slash: Remove file.
6589         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
6590         Update.
6591         * NEWS: Mention the removal.
6593 2020-04-27  Bruno Haible  <bruno@clisp.org>
6595         unictype/bidicategory-*: Remove deprecated modules.
6596         * modules/unictype/bidicategory-all: Remove file.
6597         * modules/unictype/bidicategory-byname: Remove file.
6598         * modules/unictype/bidicategory-name: Remove file.
6599         * modules/unictype/bidicategory-of: Remove file.
6600         * modules/unictype/bidicategory-test: Remove file.
6601         * MODULES.html.sh (Unicode string functions): Update.
6602         * NEWS: Mention the removals.
6604 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6606         Tune fts for FTS_LOGICAL+FTS_NOSTAT
6607         From a suggestion by Askar Safin in:
6608         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
6609         * lib/fts.c (fts_build): If file types are known, optimize
6610         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
6611         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
6612         non-directories.
6614 2020-04-19  Bruno Haible  <bruno@clisp.org>
6616         vasnprintf: Add support for printing wide characters using escapes.
6617         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
6618         (wctomb_fallback): New function.
6619         (local_wctomb): New function.
6620         (local_wcrtomb): New function or macro.
6621         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
6622         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
6623         %lc.
6625 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6627         fts: remove NOSTAT_LEAF_OPTIMIZATION
6628         It caused ‘find’ and ‘du’ to dump core, and it was useful
6629         only for obsolescent Linux filesystems anyway.  Problem reported in:
6630         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
6631         Quite possibly there is still a serious underlying fts bug with
6632         tight-loop-check and mutating file systems, but if so this patch
6633         should cause the bug to be triggered less often.
6634         * lib/fts.c (enum leaf_optimization): Remove
6635         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
6636         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
6637         (leaf_optimization): Remove special cases for ReiserFS and XFS.
6638         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
6639         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
6640         Remove.  All uses removed.
6642 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6644         explicit_bzero: Improve code style.
6645         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
6647 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6649         explicit_bzero: On native Windows, use SecureZeroMemory().
6650         * lib/explicit_bzero.c: Include <windows.h>.
6651         (explicit_bzero): On native Windows, use SecureZeroMemory.
6653 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6655         explicit_bzero: Use memset_s() when available.
6656         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
6657         (explicit_bzero): Use memset_s when available.
6658         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
6660 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6662         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
6663         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
6664         free() that overwrite the memory with canaries.
6666 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
6668         bootstrap: recommend git submodule update --init
6669         Reported by Bruno Haible.
6670         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
6671         * build-aux/bootstrap: recommand "git submodule update --init"
6672         rather than "git submodule init".
6674 2020-04-12  Bruno Haible  <bruno@clisp.org>
6676         explicit_bzero: Add tests.
6677         * tests/test-explicit_bzero.c: New file.
6678         * modules/explicit_bzero-tests: New file.
6680 2020-04-11  Bruno Haible  <bruno@clisp.org>
6682         explicit_bzero: Relicense under LGPLv2+.
6683         Approved by Paul Eggert.
6684         * modules/explicit_bzero (License): Change to LGPLv2+.
6686 2020-04-10  Bruno Haible  <bruno@clisp.org>
6688         findprog, relocatable-prog: Ignore directories during PATH search.
6689         Reported by Frederick Eaton via Dmitry Goncharov in
6690         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6692         * lib/findprog.c (find_in_path): When the file found in a PATH element
6693         is a directory, continue searching.
6694         * modules/findprog (Depends-on): Add sys_stat, stat.
6695         * modules/findprog-lgpl (Depends-on): Likewise.
6697         * lib/progreloc.c (maybe_executable): When the file found in a PATH
6698         element is a directory, continue searching.
6699         * lib/relocwrapper.c: Update comments.
6700         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
6701         (configure.ac-early): New section.
6703 2020-04-10  Bruno Haible  <bruno@clisp.org>
6705         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
6706         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6707         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
6708         * MODULES.html.sh: In a git-less tarball, use the date of the first
6709         ChangeLog entry.
6711 2020-04-04  Bruno Haible  <bruno@clisp.org>
6713         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
6714         * m4/gettext.m4: Fix comments regarding the gettext library.
6715         * m4/intl-thread-locale.m4: Likewise.
6716         * m4/intlmacosx.m4: Likewise.
6717         * m4/lcmessage.m4: Likewise.
6718         * m4/nls.m4: Likewise.
6719         * m4/po.m4: Likewise.
6720         * m4/progtest.m4: Likewise.
6722 2020-04-04  Jim Meyering  <meyering@fb.com>
6724         maint: remove a stray inter-word space in a 6x-repeated comment
6725         Induce the changes by running this:
6726           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
6727         * build-aux/announce-gen: Change "by  perl" to "by perl".
6728         * build-aux/gitlog-to-changelog: Likewise.
6729         * build-aux/prefix-gnulib-mk: Likewise.
6730         * build-aux/update-copyright: Likewise.
6731         * build-aux/useless-if-before-free: Likewise.
6732         * tests/test-update-copyright.sh: Likewise.
6734 2020-03-28  Bruno Haible  <bruno@clisp.org>
6736         Use module 'filename' instead of module 'dosname'.
6738         * lib/at-func.c: Include filename.h instead of dosname.h.
6739         * lib/unlinkat.c: Likewise.
6740         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
6741         * modules/areadlinkat-with-size (Depends-on): Likewise.
6742         * modules/faccessat (Depends-on): Likewise.
6743         * modules/fchmodat (Depends-on): Likewise.
6744         * modules/fchownat (Depends-on): Likewise.
6745         * modules/fstatat (Depends-on): Likewise.
6746         * modules/mkdirat (Depends-on): Likewise.
6747         * modules/mkfifoat (Depends-on): Likewise.
6748         * modules/readlinkat (Depends-on): Likewise.
6749         * modules/selinux-at (Depends-on): Likewise.
6750         * modules/symlinkat (Depends-on): Likewise.
6751         * modules/unlinkat (Depends-on): Likewise.
6752         * modules/utimensat (Depends-on): Likewise.
6754         * lib/at-func2.c: Include filename.h instead of dosname.h.
6755         * modules/linkat (Depends-on): Add filename. Remove dosname.
6756         * modules/renameatu (Depends-on): Likewise.
6758         * lib/canonicalize.c: Include filename.h instead of dosname.h.
6759         * lib/canonicalize-lgpl.c: Likewise.
6760         * modules/canonicalize (Depends-on): Add filename.
6761         * modules/canonicalize-lgpl (Depends-on): Likewise.
6763         * lib/dirname.h: Include filename.h instead of dosname.h.
6764         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
6766         * lib/fchdir.c: Include filename.h instead of dosname.h.
6767         * modules/fchdir (Depends-on): Add filename. Remove dosname.
6769         * lib/openat.c: Include filename.h instead of dosname.h.
6770         * modules/openat (Depends-on): Add filename. Remove dosname.
6772         * lib/rmdir.c: Include filename.h instead of dosname.h.
6773         * modules/rmdir (Depends-on): Add filename. Remove dosname.
6775         * lib/savewd.c: Include filename.h instead of dosname.h.
6776         * modules/savewd (Depends-on): Add filename. Remove dosname.
6778         * lib/unlink.c: Include filename.h instead of dosname.h.
6779         * modules/unlink (Depends-on): Add filename. Remove dosname.
6781         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
6782         * lib/relocwrapper.c: Update comments.
6784         * modules/lstat (Depends-on): Remove dosname.
6786 2020-03-28  Bruno Haible  <bruno@clisp.org>
6788         dosname: Redirect to 'filename'.
6789         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6790         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
6791         * lib/dosname.h: Remove all definitions. Just include filename.h.
6792         * modules/dosname (Status, Notice): Mark as deprecated.
6793         (Depends-on): Add 'filename'.
6795 2020-03-28  Bruno Haible  <bruno@clisp.org>
6797         dosname: Change IS_RELATIVE_FILE_NAME.
6798         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
6799         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
6800         * NEWS: Mention the change.
6802 2020-03-28  Bruno Haible  <bruno@clisp.org>
6804         filename: Copy some definitions from module 'dosname'.
6805         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
6806         (HAS_DEVICE): Document macro.
6807         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
6808         (IS_ABSOLUTE_FILE_NAME): Consider
6809         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
6810         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
6811         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
6812         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
6813         IS_PATH_WITH_DIR.
6814         (DllMain): Update.
6815         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
6816         IS_PATH_WITH_DIR.
6817         (find_executable): Update.
6818         * NEWS: Document the deprecations.
6820 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6822         getopt-posix: port __GETOPT_PREFIX to macOS
6823         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
6824         Define to work around a problem with asm on macOS (Bug#40205).
6826 2020-03-22  Bruno Haible  <bruno@clisp.org>
6828         MODULES.html.sh: Add support for reproducible builds.
6829         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6830         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
6831         * MODULES.html.sh: Print the date of the last gnulib commit, not the
6832         current date.
6834 2020-03-22  Bruno Haible  <bruno@clisp.org>
6836         Several modules: Depend on stat.
6837         * modules/acl-permissions (Depends-on): Add stat.
6838         * modules/canonicalize (Depends-on): Likewise.
6839         * modules/file-has-acl (Depends-on): Likewise.
6840         * modules/fstat (Depends-on): Likewise.
6841         * modules/fstatat (Depends-on): Likewise.
6842         * modules/glob (Depends-on): Likewise.
6843         * modules/javacomp (Depends-on): Likewise.
6844         * modules/linkat (Depends-on): Likewise.
6845         * modules/mkdir (Depends-on): Likewise.
6846         * modules/pt_chown (Depends-on): Likewise.
6847         * modules/ptsname_r (Depends-on): Likewise.
6848         * modules/readlinkat (Depends-on): Likewise.
6849         * modules/rename (Depends-on): Likewise.
6850         * modules/renameatu (Depends-on): Likewise.
6851         * modules/tmpdir (Depends-on): Likewise.
6852         * modules/utimens (Depends-on): Likewise.
6853         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
6854         * modules/same (Depends-on): Remove stat.
6856 2020-03-22  Bruno Haible  <bruno@clisp.org>
6858         acl-permissions: Improve autoconf macro.
6859         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
6860         more reliably.
6862 2020-03-22  Bruno Haible  <bruno@clisp.org>
6864         file-has-acl: Fix module description.
6865         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
6866         (Depends-on): Depend on acl-permissions unconditionally.
6868 2020-03-21  Bruno Haible  <bruno@clisp.org>
6870         unlink: Ensure errno also on native Windows.
6871         * modules/unlink (Depends-on): Add malloc-posix.
6873 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6875         unlink: fix malloc errno typo
6876         Problem reported by Tim Rühsen in:
6877         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
6878         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
6880 2020-03-16  Bruno Haible  <bruno@clisp.org>
6882         *printf-posix: Fix m4 error (regression from 2020-03-08).
6883         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
6884         brackets in AC_COMPILE_IFELSE invocation.
6886 2020-03-08  Bruno Haible  <bruno@clisp.org>
6888         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
6889         * modules/crypto/af_alg (Depends-on): Add fstat.
6890         * modules/renameatu (Depends-on): Likewise.
6891         * modules/same (Depends-on): Likewise.
6892         * modules/term-style-control (Depends-on): Likewise.
6894 2020-03-08  Bruno Haible  <bruno@clisp.org>
6896         *printf-posix: Document why it's overridden on some glibc systems.
6897         Reported by Adrian Bunk <bunk@stusta.de> in
6898         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
6899         * doc/posix-functions/*printf.texi: Document the problem with the %n
6900         directive on some glibc systems.
6901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
6902         the cross-compilation guesses accordingly.
6904 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6906         open, openat: port to (O_RDWR | O_RDONLY) != 0
6907         Potential portability problem reported by Dan Gohman in:
6908         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
6909         * lib/open.c (open):
6910         * lib/openat.c (rpl_openat):
6911         Don’t assume O_RDONLY is disjoint from O_RDWR.
6913 2020-03-07  Bruno Haible  <bruno@clisp.org>
6915         openat: Fix theoretically possible issue on GNU/Hurd.
6916         Reported by Dan Gohman <sunfish@mozilla.com> in
6917         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
6918         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
6919         ignore the bits that are also set in O_RDONLY.
6921 2020-02-24  Bruno Haible  <bruno@clisp.org>
6923         getloadavg: Don't use /usr/local when cross-compiling on AIX.
6924         Reported by Jens Rehsack <sno@netbsd.org> in
6925         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
6926         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
6927         cross-compiling.
6929 2020-02-24  Bruno Haible  <bruno@clisp.org>
6931         fcntl: Add witness of gnulib override.
6932         Reported by Jens Rehsack <sno@netbsd.org> in
6933         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
6934         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
6935         macros.
6937 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
6939         Update users.txt.
6940         * users.txt: Add datamash, time.
6942 2020-02-23  Bruno Haible  <bruno@clisp.org>
6944         uni*/base: Use 'restrict'.
6945         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
6946         from lib/regex.h.
6947         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
6948         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
6949         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
6950         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
6951         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
6952         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
6953         '_UC_RESTRICT'.
6954         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
6955         u32_conv_to_encoding): Use '_UC_RESTRICT'.
6956         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
6957         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
6958         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
6959         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
6960         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
6961         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
6962         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
6963         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
6964         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
6965         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
6966         '_UC_RESTRICT'.
6967         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
6968         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
6969         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
6970         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
6971         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
6972         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
6973         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
6974         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
6976 2020-02-23  Bruno Haible  <bruno@clisp.org>
6978         glob, spawn: Use improved '_Restrict_' definition.
6979         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
6980         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
6982 2020-02-23  Bruno Haible  <bruno@clisp.org>
6984         crypto/gc: Use 'restrict'.
6985         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
6986         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
6988         crypto/hmac-*: Use 'restrict'.
6989         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
6990         'restrict'.
6991         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
6992         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
6993         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
6994         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
6996         crypto/sm3: Use 'restrict'.
6997         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
6998         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
7000         crypto/*-buffer: Use 'restrict'.
7001         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
7002         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
7004         crypto/sha512-buffer: Use 'restrict'.
7005         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
7006         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
7007         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
7009         crypto/sha256-buffer: Use 'restrict'.
7010         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
7011         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
7012         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
7014         crypto/sha1-buffer: Use 'restrict'.
7015         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
7016         'restrict'.
7017         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
7019         crypto/md5-buffer: Use 'restrict'.
7020         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
7021         'restrict'.
7022         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
7024         crypto/md4: Use 'restrict'.
7025         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
7026         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
7028         crypto/md2: Use 'restrict'.
7029         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
7030         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
7032         crypto/rijndael: Use 'restrict'.
7033         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
7034         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
7035         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
7037         crypto/arctwo: Use 'restrict'.
7038         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
7039         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
7041         crypto/arcfour: Use 'restrict'.
7042         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
7043         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
7045         careadlinkat: Use 'restrict'.
7046         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
7047         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
7048         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
7050         regex-quote: Use 'restrict'.
7051         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
7052         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
7054         system-quote: Use 'restrict'.
7055         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
7056         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
7058         sh-quote: Use 'restrict'.
7059         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
7060         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
7062         quotearg: Use 'restrict'.
7063         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
7064         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
7066         parse-datetime: Use 'restrict'.
7067         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
7068         'restrict'.
7069         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
7071         nstrftime: Use 'restrict'.
7072         * lib/strftime.h (nstrftime): Use 'restrict'.
7073         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
7075         mbstok_r: Use 'restrict'.
7076         * lib/string.in.h (mbstok_r): Use 'restrict'.
7078         xmemcoll: Use 'restrict'.
7079         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
7080         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
7082         memcoll: Use 'restrict'.
7083         * lib/memcoll.h (memcoll): Use 'restrict'.
7084         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
7086         vasnprintf: Use 'restrict'.
7087         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
7088         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
7090         c-vasnprintf: Use 'restrict'.
7091         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
7092         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
7094         c-vsnprintf: Use 'restrict'.
7095         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
7096         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
7098         c-snprintf: Use 'restrict'.
7099         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
7100         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
7102         astrxfrm: Use 'restrict'.
7103         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
7104         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
7106         amemxfrm: Use 'restrict'.
7107         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
7108         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
7110 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7112         fchmodat, lchmod: simplify
7113         It appears that we may have overengineered lchmod and fchmodat,
7114         in that the code was prepared for some hypothetical platforms but
7115         was so complicated that it was hard to understand.  I attempted to
7116         improve the situation by simplifying the code when this
7117         simplification should not hurt on real platforms; we can re-add
7118         complexity later to port to platforms I didn’t know about.
7119         * lib/fchmodat.c (fchmodat):
7120         * lib/lchmod.c (lchmod):
7121         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
7122         around the /proc code that needs it.
7123         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
7124         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
7125         Do not include <config.h> twice.
7126         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
7127         lchmod on any known hosts.
7128         (lchmod): Do not defer to fchmodat, so that the lchmod module
7129         need not depend on the fchmodat module (which is a circular
7130         dependency).  Do not use openat, since ‘open’ suffices.
7131         Coalesce calls to lchmod/chmod.
7132         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
7133         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
7134         * modules/lchmod (Depends-on, configure.ac):
7135         * modules/sys_stat (Depends-on):
7136         Do not worry about replacing lchmod, since that shouldn’t happen.
7137         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
7138         Do not worry about whether lchmod works on non-symlinks,
7139         since every known lchmod works on non-symlinks.
7140         * modules/lchmod (Depends-on):
7141         Remove circular dependency on fchmodat.
7143 2020-02-22  Bruno Haible  <bruno@clisp.org>
7145         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
7146         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
7147         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
7149 2020-02-22  Bruno Haible  <bruno@clisp.org>
7151         Use 'restrict' in all POSIX function declarations.
7152         * lib/iconv.in.h (iconv): Use 'restrict'.
7153         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
7154         * lib/monetary.in.h (strfmon_l): Likewise.
7155         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
7156         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
7157         pthread_mutex_timedlock, pthread_rwlock_init,
7158         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7159         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
7160         * lib/search.in.h (tdelete): Likewise.
7161         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
7162         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
7163         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
7164         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
7165         Likewise.
7166         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
7167         strtoull): Likewise.
7168         * lib/string.in.h (strncat): Likewise.
7169         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
7170         recvfrom): Likewise.
7171         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
7172         * lib/time.in.h (strftime): Likewise.
7173         * lib/unistd.in.h (readlink, readlinkat): Likewise.
7174         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
7175         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
7176         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
7177         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
7178         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
7179         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
7180         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7181         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7182         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7183         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7185         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7186         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7187         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7188         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
7189         other *_h.m4 files.
7190         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
7192 2020-02-22  Bruno Haible  <bruno@clisp.org>
7194         Update NEWS.
7195         * NEWS: Mention the last change.
7197 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7199         chmodat, chownat: new modules
7200         These are split from fchmodat, fchownat.  GNU Emacs needs the
7201         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
7202         lchmodat.  Split the latter two into a new module chmodat.
7203         Similarly for fchownat.  This the same basic idea for why statat
7204         was split from fstatat on 2013-01-23.
7205         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
7206         Rename from FCHMODAT_INLINE.  All uses changed.
7207         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
7208         Rename from FCHOWNAT_INLINE.  All uses changed.
7209         * lib/openat.h:
7210         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
7211         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
7212         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
7213         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
7214         (configure.ac): Remove fchmodat module indicator.
7215         (Makefile.am): Omit chmodat.c.
7216         (Maintainer): Add self.
7217         * modules/fchownat: Similarly, but for chown.
7218         * tests/test-fchownat.c (BASE): Don't define if already defined.
7219         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
7221 2020-02-22  Bruno Haible  <bruno@clisp.org>
7223         users.txt: Add groff.
7224         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
7225         * users.txt: Add groff.
7227 2020-02-22  Bruno Haible  <bruno@clisp.org>
7229         gnulib-tool: Ensure copied files are writable.
7230         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
7231         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
7232         * gnulib-tool (func_ensure_writable): New function.
7233         (func_ln_s, func_hardlink, func_lookup_file, func_import,
7234         func_create_testdir, copy-file): Invoke it after copying a file.
7236 2020-02-22  Bruno Haible  <bruno@clisp.org>
7238         users.txt: Update.
7239         * users.txt: Update URLs to projects that have moved or switched to git.
7240         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
7241         over the summary view. Add gawk.
7243 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7245         largefile: remove _DARWIN_USE_64_BIT_INODE
7246         It’s not needed in currently-supported macOS versions, and was
7247         problematic anyway in MacOS X 10.5 which was the only version that
7248         could use it.  Problem reported by Peter Eisentraut in:
7249         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
7250         * m4/largefile.m4 (AC_SYS_LARGEFILE):
7251         Don’t define _DARWIN_USE_64_BIT_INODE.
7252         This syncs with Autoconf master.
7254         Add ‘extern "C"’ to count-one-bits.h etc.
7255         This ports these .h files to C++.
7256         Problem reported by Simon Marchi in:
7257         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
7258         * lib/count-leading-zeros.h, lib/count-one-bits.h:
7259         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
7261 2020-02-19  Bruno Haible  <bruno@clisp.org>
7263         uninorm/decompose-internal: Avoid "no previous prototype" warning.
7264         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7265         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
7266         * lib/array-mergesort.h: Accept an optional macro definition
7267         STATIC_FROMTO.
7268         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
7270 2020-02-16  Bruno Haible  <bruno@clisp.org>
7272         fchmodat: Make more future-proof.
7273         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
7274         NEED_FCHMODAT_NONSYMLINK_FIX.
7275         (gl_PREREQ_FCHMODAT): New macro.
7276         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
7277         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
7278         without lchmod function.
7279         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
7281 2020-02-16  Bruno Haible  <bruno@clisp.org>
7283         lchmod: Make more future-proof.
7284         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
7285         (gl_PREREQ_LCHMOD): New macro.
7286         * lib/lchmod.c (orig_lchmod): New function.
7287         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
7288         Return EOPNOTSUPP only on Linux and on platforms without lchmod
7289         function.
7290         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
7292         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
7293         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
7295 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7297         xnanosleep: prefer pause, and get remaining time
7298         Problem reported by Vladimir Panteleev in:
7299         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
7300         * lib/xnanosleep.c: Include intprops.h, unistd.h.
7301         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
7302         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
7303         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
7304         * modules/xnanosleep (Depends-on): Add intprops, unistd.
7306 2020-02-16  Bruno Haible  <bruno@clisp.org>
7308         lchmod: Improve cross-compilation guess.
7309         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
7310         cross-compiling, guess depending on the platform.
7312 2020-02-16  Bruno Haible  <bruno@clisp.org>
7314         fstrcmp: Add API to clean up resources.
7315         Reported by Akim Demaille <akim@lrde.epita.fr> in
7316         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
7317         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
7318         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
7320 2020-02-14  Bruno Haible  <bruno@clisp.org>
7322         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
7323         Reported by Christian Biesinger in
7324         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
7325         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
7326         corresponding module is not enabled.
7327         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
7328         prototype if the corresponding module is not enabled.
7330 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
7332         fchmodat, lchmod: port to buggy Linux filesystems
7333         Problem reported by Florian Weimer in:
7334         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
7335         * lib/fchmodat.c (fchmodat):
7336         * lib/lchmod.c (lchmod):
7337         Don’t assume that chmod on the O_PATH-opened fd will do
7338         the right thing on a symbolic link.
7339         * lib/fchmodat.c (fchmodat):
7340         Don’t attempt to special-case
7341         any flag value other than AT_SYMLINK_NOFOLLOW.
7343 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
7345         lchmod: pacify Coverity CID 1491216
7346         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
7347         not complain about unreachable code at the ‘struct stat st;’
7348         declaration.
7350 2020-02-10  Bruno Haible  <bruno@clisp.org>
7352         copysignf: Fix link error on HP-UX with cc.
7353         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
7354         HP-UX, set COPYSIGNF_LIBM to -lm.
7356 2020-02-10  Bruno Haible  <bruno@clisp.org>
7358         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
7359         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
7360         with $(LIB_SEMAPHORE).
7361         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
7362         with $(LIB_SEMAPHORE).
7364 2020-02-10  Bruno Haible  <bruno@clisp.org>
7366         ptsname_r-tests: Avoid unused function warning.
7367         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
7369 2020-02-08  Bruno Haible  <bruno@clisp.org>
7371         lchmod: Add tests.
7372         * tests/test-lchmod.c: New file.
7373         * modules/lchmod-tests: New file.
7375 2020-02-08  Bruno Haible  <bruno@clisp.org>
7377         lchmod: Ensure declaration on HP-UX.
7378         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
7379         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
7381 2020-02-08  Bruno Haible  <bruno@clisp.org>
7383         fchmodat: Strengthen tests.
7384         * tests/test-fchmodat.c (BASE): New macro.
7385         (main): Use it, to avoid conflicts with other unit tests. Verify that
7386         fchmodat changed the file permission bits.
7388 2020-02-08  Bruno Haible  <bruno@clisp.org>
7390         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
7391         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
7392         '#undef __need_system_sys_stat_h'.
7394 2020-02-08  Bruno Haible  <bruno@clisp.org>
7396         fchmodat: Improve cross-compilation guesses.
7397         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
7398         cross-compiling, guess depending on the platform.
7399         * doc/posix-functions/fchmodat.texi: Clarify.
7401 2020-02-08  Bruno Haible  <bruno@clisp.org>
7403         Fix compilation errors in a testdir created with --with-c++-tests.
7404         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
7405         since it does not work any more with g++ >= 4.4.
7407 2020-02-08  Bruno Haible  <bruno@clisp.org>
7409         doc: Update for glibc 2.31.
7410         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
7411         * doc/gnulib.texi: Include it.
7412         * doc/pastposix-functions/h_errno.texi: Update.
7413         * doc/posix-functions/*.texi: Likewise.
7415 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
7417         mountlist: consider smb3 file systems as remote
7418         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
7419         "smb3" as remote.
7421 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7423         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
7424         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
7425         they act like chmod on non-symlinks.
7426         * NEWS:
7427         * doc/glibc-functions/lchmod.texi (lchmod):
7428         * doc/posix-functions/fchmodat.texi (fchmodat):
7429         Mention this.
7430         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
7431         config.h, and undef it after including sys/stat.h the first time.
7432         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
7433         sys/stat.h a second time after defining orig_fchmodat.
7434         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
7435         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
7436         * lib/lchmod.c: New file.
7437         * lib/sys_stat.in.h (fchmodat, lchmod):
7438         Support replacing these functions.
7439         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
7440         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
7441         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
7442         Test that lchmod works on non-symlinks.
7443         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
7444         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
7445         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
7446         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
7447         * modules/lchmod (Files): Add lib/lchmod.c.
7448         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
7449         (configure.ac): Compile lchmod.c if needed.
7450         (lib_SOURCES): Add lchmod.c.
7451         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
7452         and REPLACE_LCHMOD.
7453         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
7454         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
7456 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
7458         mountlist: Consider AFS filesystems as remote
7459         df --local relies on the ME_REMOTE macro to determine if a given
7460         mount entry should be considered "local".  There is special logic
7461         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
7462         kernel's kafs module or AuriStorFS is treated as a local mount.
7463         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
7464         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
7466 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7468         Port _Noreturn to older Clang
7469         Problem reported by Jeffery Walton in:
7470         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
7471         * lib/_Noreturn.h (_Noreturn):
7472         * m4/gnulib-common.m4 (gl_COMMON_BODY):
7473         Assume _Noreturn works in Clang 3.5 and later.
7474         It is documented to work in Clang 3.5:
7475         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
7476         and is not documented in Clang 3.4:
7477         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
7478         Apple sets __clang_version__ to a different value, so use
7479         __apple_build_version__ there.  See:
7480         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
7482 2020-02-04  Pádraig Brady  <P@draigBrady.com>
7484         test-canonicalize: avoid unused function warning
7485         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
7486         with the same guard as that used to protect usage of the null_ptr
7487         function, so that one doesn't get a -Wunused warning.
7488         * tests/test-canonicalize-lgpl.c: Likewise.
7490 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7492         libc-config: port to Apple’s Clang variant
7493         * lib/libc-config.h (__glibc_clang_prereq):
7494         Port to Apple’s Clang variant, which uses a different
7495         numbering scheme for __clang_major__.
7497 2020-02-02  Bruno Haible  <bruno@clisp.org>
7499         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
7500         * doc/containers.texi: Document these new modules.
7502 2020-02-02  Bruno Haible  <bruno@clisp.org>
7504         omap-c++: Add tests.
7505         * tests/test-omap-c++.cc: New file.
7506         * modules/omap-c++-tests: New file.
7508         omap-c++: New module.
7509         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
7510         * modules/omap-c++: New file.
7512 2020-02-02  Bruno Haible  <bruno@clisp.org>
7514         map-c++: Add tests.
7515         * tests/test-map-c++.cc: New file.
7516         * modules/map-c++-tests: New file.
7518         map-c++: New module.
7519         * lib/gl_map.hh: New file, based on lib/gl_map.h.
7520         * modules/map-c++: New file.
7522 2020-02-02  Bruno Haible  <bruno@clisp.org>
7524         oset-c++: Add tests.
7525         * tests/test-oset-c++.cc: New file.
7526         * modules/oset-c++-tests: New file.
7528         oset-c++: New module.
7529         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
7530         * modules/oset-c++: New file.
7532 2020-02-02  Bruno Haible  <bruno@clisp.org>
7534         set-c++: Add tests.
7535         * tests/test-set-c++.cc: New file.
7536         * modules/set-c++-tests: New file.
7538         set-c++: New module.
7539         * lib/gl_set.hh: New file, based on lib/gl_set.h.
7540         * modules/set-c++: New file.
7542 2020-02-02  Bruno Haible  <bruno@clisp.org>
7544         list-c++: Add tests.
7545         * tests/test-list-c++.cc: New file.
7546         * modules/list-c++-tests: New file.
7548         list-c++: New module.
7549         * lib/gl_list.hh: New file, based on lib/gl_list.h.
7550         * modules/list-c++: New file.
7552 2020-02-02  Bruno Haible  <bruno@clisp.org>
7554         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
7555         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
7556         '_Noreturn'.
7557         * lib/sigpipe-die.h (sigpipe_die): Likewise.
7559 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7561         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
7562         On x86_64 with glibc-2.30, gcc 9.2 is giving:
7563           error: argument 2 value '18446744073709551615'
7564           exceeds maximum object size 9223372036854775807
7565           [-Werror=alloc-size-larger-than=]
7566         The details of this restriction are discussed at:
7567         https://stackoverflow.com/q/42574890/4421
7568         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
7570 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7572         sysctl.h: avoid including on glibc
7573         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
7574         * lib/physmem.c: Likewise.
7576 2020-02-02  Bruno Haible  <bruno@clisp.org>
7578         list, set, oset, map, omap: Avoid imperative voice in documentation.
7579         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
7580         in the specification of functions.
7581         * lib/gl_set.h: Likewise.
7582         * lib/gl_oset.h: Likewise.
7583         * lib/gl_map.h: Likewise.
7584         * lib/gl_omap.h: Likewise.
7585         * lib/gl_*.h: Likewise.
7587 2020-02-01  Bruno Haible  <bruno@clisp.org>
7589         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
7590         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
7591         does.
7593 2020-01-29  Bruno Haible  <bruno@clisp.org>
7595         array-map, hash-map, linkedhash-map: Fix module description.
7596         * modules/array-map (Description): Fix description.
7597         * modules/hash-map (Description): Likewise.
7598         * modules/linkedhash-map (Description): Likewise.
7600 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7602         dfa: do not depend on isblank
7603         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
7604         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
7605         * modules/dfa (Depends-on): Remove isblank.
7606         * modules/isblank: Add a module indicator, for lib/dfa.c.
7608         dfa: do not assume 64-bit int
7609         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
7610         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
7611         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
7612         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
7613         Fall back to 32-bit words.
7614         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
7615         of 4 64-bit args.  All uses changed.
7617 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7619         regex: remove limits-h dependency
7620         * modules/regex (Depends-on): Remove limits-h, since the
7621         code no longer depends on ULONG_WIDTH already being defined.
7623         regex: port to non-GCC pre-IEC-60559
7624         Problem reported by Arnold Robbins in:
7625         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
7626         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
7628 2020-01-25  Bruno Haible  <bruno@clisp.org>
7630         c32isxdigit: Add tests.
7631         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
7632         * tests/test-c32isxdigit.sh: New file.
7633         * modules/c32isxdigit-tests: New file.
7635         c32isxdigit: New module.
7636         * lib/c32isxdigit.c: New file.
7637         * modules/c32isxdigit: New file.
7638         * doc/posix-functions/iswxdigit.texi: Mention the new module.
7640 2020-01-25  Bruno Haible  <bruno@clisp.org>
7642         c32isupper: Add tests.
7643         * tests/test-c32isupper.c: New file.
7644         * tests/test-c32isupper.sh: New file.
7645         * modules/c32isupper-tests: New file.
7647         c32isupper: New module.
7648         * lib/c32isupper.c: New file.
7649         * modules/c32isupper: New file.
7650         * doc/posix-functions/iswupper.texi: Mention the new module.
7652 2020-01-25  Bruno Haible  <bruno@clisp.org>
7654         c32isspace: Add tests.
7655         * tests/test-c32isspace.c: New file.
7656         * tests/test-c32isspace.sh: New file.
7657         * modules/c32isspace-tests: New file.
7659         c32isspace: New module.
7660         * lib/c32isspace.c: New file.
7661         * modules/c32isspace: New file.
7662         * doc/posix-functions/iswspace.texi: Mention the new module.
7664 2020-01-25  Bruno Haible  <bruno@clisp.org>
7666         c32ispunct: Add tests.
7667         * tests/test-c32ispunct.c: New file.
7668         * tests/test-c32ispunct.sh: New file.
7669         * modules/c32ispunct-tests: New file.
7671         c32ispunct: New module.
7672         * lib/c32ispunct.c: New file.
7673         * modules/c32ispunct: New file.
7674         * doc/posix-functions/iswpunct.texi: Mention the new module.
7676 2020-01-25  Bruno Haible  <bruno@clisp.org>
7678         c32isprint: Add tests.
7679         * tests/test-c32isprint.c: New file.
7680         * tests/test-c32isprint.sh: New file.
7681         * modules/c32isprint-tests: New file.
7683         c32isprint: New module.
7684         * lib/c32isprint.c: New file.
7685         * modules/c32isprint: New file.
7686         * doc/posix-functions/iswprint.texi: Mention the new module.
7688 2020-01-25  Bruno Haible  <bruno@clisp.org>
7690         c32islower: Add tests.
7691         * tests/test-c32islower.c: New file.
7692         * tests/test-c32islower.sh: New file.
7693         * modules/c32islower-tests: New file.
7695         c32islower: New module.
7696         * lib/c32islower.c: New file.
7697         * modules/c32islower: New file.
7698         * doc/posix-functions/iswlower.texi: Mention the new module.
7700 2020-01-25  Bruno Haible  <bruno@clisp.org>
7702         c32isgraph: Add tests.
7703         * tests/test-c32isgraph.c: New file.
7704         * tests/test-c32isgraph.sh: New file.
7705         * modules/c32isgraph-tests: New file.
7707         c32isgraph: New module.
7708         * lib/c32isgraph.c: New file.
7709         * modules/c32isgraph: New file.
7710         * doc/posix-functions/iswgraph.texi: Mention the new module.
7712 2020-01-25  Bruno Haible  <bruno@clisp.org>
7714         c32isdigit: Add tests.
7715         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
7716         * tests/test-c32isdigit.sh: New file.
7717         * modules/c32isdigit-tests: New file.
7719         c32isdigit: New module.
7720         * lib/c32isdigit.c: New file.
7721         * modules/c32isdigit: New file.
7722         * doc/posix-functions/iswdigit.texi: Mention the new module.
7724 2020-01-25  Bruno Haible  <bruno@clisp.org>
7726         c32iscntrl: Add tests.
7727         * tests/test-c32iscntrl.c: New file.
7728         * tests/test-c32iscntrl.sh: New file.
7729         * modules/c32iscntrl-tests: New file.
7731         c32iscntrl: New module.
7732         * lib/c32iscntrl.c: New file.
7733         * modules/c32iscntrl: New file.
7734         * doc/posix-functions/iswcntrl.texi: Mention the new module.
7736 2020-01-25  Bruno Haible  <bruno@clisp.org>
7738         c32isblank: Add tests.
7739         * tests/test-c32isblank.c: New file.
7740         * tests/test-c32isblank.sh: New file.
7741         * modules/c32isblank-tests: New file.
7743         c32isblank: New module.
7744         * lib/c32isblank.c: New file.
7745         * modules/c32isblank: New file.
7746         * doc/posix-functions/iswblank.texi: Mention the new module.
7748 2020-01-25  Bruno Haible  <bruno@clisp.org>
7750         c32isalpha: Add tests.
7751         * tests/test-c32isalpha.c: New file.
7752         * tests/test-c32isalpha.sh: New file.
7753         * modules/c32isalpha-tests: New file.
7755         c32isalpha: New module.
7756         * lib/c32isalpha.c: New file.
7757         * modules/c32isalpha: New file.
7758         * doc/posix-functions/iswalpha.texi: Mention the new module.
7760 2020-01-25  Bruno Haible  <bruno@clisp.org>
7762         c32isalnum: Add tests.
7763         * tests/test-c32isalnum.c: New file.
7764         * tests/test-c32isalnum.sh: New file.
7765         * modules/c32isalnum-tests: New file.
7767         c32isalnum: New module.
7768         * lib/c32isalnum.c: New file.
7769         * lib/c32is-impl.h: New file.
7770         * modules/c32isalnum: New file.
7771         * doc/posix-functions/iswalnum.texi: Mention the new module.
7773 2020-01-25  Bruno Haible  <bruno@clisp.org>
7775         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
7776         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
7777         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
7778         c32isupper, c32isxdigit): New declarations.
7779         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
7780         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7781         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7782         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7783         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7784         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
7785         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7786         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7787         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7788         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7789         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
7790         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
7791         c32ispunct, c32isspace, c32isupper, c32isxdigit.
7793 2020-01-25  Bruno Haible  <bruno@clisp.org>
7795         mbchar, wctype: Use the corrected iswxdigit function.
7796         * modules/mbchar (Depends-on): Add iswxdigit.
7797         * modules/wctype (Depends-on): Likewise.
7799         iswxdigit: Add tests.
7800         * tests/test-iswxdigit.c: New file.
7801         * tests/test-iswxdigit.sh: New file.
7802         * modules/iswxdigit-tests: New file.
7804         iswxdigit: New module.
7805         * m4/iswxdigit.m4: New file.
7806         * lib/wctype.in.h (iswxdigit): Potentially override.
7807         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
7808         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
7809         * lib/iswxdigit.c: New file.
7810         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
7811         REPLACE_ISWXDIGIT.
7812         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
7813         REPLACE_ISWXDIGIT.
7814         * modules/iswxdigit: New file.
7815         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
7817 2020-01-25  Bruno Haible  <bruno@clisp.org>
7819         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
7820         Reported by John Donoghue <john.david.donoghue@gmail.com> in
7821         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
7822         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
7823         off_t on mingw, invoke _lseeki64 instead of lseek.
7825 2020-01-25  Bruno Haible  <bruno@clisp.org>
7827         iswdigit tests: Avoid test failure on Cygwin.
7828         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
7829         byte sequence, return 0.
7831         iswdigit: Fix test failure on native Windows.
7832         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
7834         mbchar, wctype: Use the corrected iswdigit function.
7835         * modules/mbchar (Depends-on): Add iswdigit.
7836         * modules/wctype (Depends-on): Likewise.
7838         iswdigit: Add tests.
7839         * tests/test-iswdigit.c: New file.
7840         * tests/test-iswdigit.sh: New file.
7841         * modules/iswdigit-tests: New file.
7843         iswdigit: New module.
7844         * m4/iswdigit.m4: New file.
7845         * lib/wctype.in.h (iswdigit): Potentially override.
7846         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
7847         * lib/iswdigit.c: New file.
7848         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
7849         REPLACE_ISWDIGIT.
7850         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
7851         REPLACE_ISWDIGIT.
7852         * modules/iswdigit: New file.
7853         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
7855 2020-01-25  Bruno Haible  <bruno@clisp.org>
7857         hard-locale tests: Make it easy to reuse the musl test.
7858         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
7859         * modules/hard-locale-tests (Files): Add it.
7860         (configure.ac): Invoke gl_MUSL_LIBC.
7862 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7864         regex: port to Gawk on nonstandard platforms
7865         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
7866         This is useful for Gawk, which does not use the Gnulib stdlib-h
7867         module.  Problem reported by Arnold Robbins in:
7868         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
7870 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7872         regex: fix bug with >=16 subexpressions
7873         * lib/regex_internal.h (struct re_backref_cache_entry):
7874         Use bitset_word_t as the type of eps_reachable_subexps_map,
7875         instead of unsigned short int.  This fixes a bug I introduced
7876         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
7877         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
7878         Remove unused member 'unused'.
7880         regex: simplify definition of BITSET_WORD_BITS
7881         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
7882         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
7883         * lib/regex_internal.h (BITSET_WORD_BITS):
7884         * modules/regex (Depends-on): Add limits-h.
7885         Simplify now that we can use ULONG_WIDTH.
7887 2020-01-20  Bruno Haible  <bruno@clisp.org>
7889         mbrtoc32: Add note about FreeBSD 12.
7890         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
7891         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
7892         affected.
7894 2020-01-20  Bruno Haible  <bruno@clisp.org>
7896         unistr/u8-uctomb: Fix warning.
7897         Reported by Andreas Schwab <schwab@suse.de> in
7898         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
7899         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
7900         (u8_uctomb): Add FALLTHROUGH markers.
7902 2020-01-20  Bruno Haible  <bruno@clisp.org>
7904         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
7905         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
7906         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
7907         (glthread_once): Use it.
7909 2020-01-19  Bruno Haible  <bruno@clisp.org>
7911         threadlib: Disable use of weak symbols on FreeBSD 11.
7912         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7913         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
7914         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
7915         against a bug in FreeBSD 11.
7917 2020-01-19  Bruno Haible  <bruno@clisp.org>
7919         iconv_open: Improve z/OS support.
7920         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
7921         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
7922         Remove mapping for EUC-TW.
7924 2020-01-18  Bruno Haible  <bruno@clisp.org>
7926         Rename ~~gnulib.m4 to zzgnulib.m4.
7927         Suggested by Paul Eggert.
7928         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
7929         * gnulib-tool (func_get_filelist): Update.
7930         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
7932 2020-01-18  Bruno Haible  <bruno@clisp.org>
7934         doc: Update license notices.
7935         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
7936         reference to a section or to a "file as part of this distribution".
7938 2020-01-18  Bruno Haible  <bruno@clisp.org>
7940         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
7941         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
7942         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
7943         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
7944         AC_EGREP_CPP.
7946 2020-01-18  Bruno Haible  <bruno@clisp.org>
7948         Ensure Automake does not drop ~~gnulib.m4.
7949         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
7950         * m4/gnulib-common.m4 (gl_COMMON): Require it.
7952 2020-01-18  Bruno Haible  <bruno@clisp.org>
7954         Fix major regression from 2020-01-10.
7955         Reported by Paul Eggert in
7956         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
7957         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
7958         Don't AC_REQUIRE anything.
7959         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
7960         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
7961         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
7962         use ac_compile instead.
7963         (AC_CHECK_DECL): Remove override.
7964         * m4/~~gnulib.m4: New file.
7965         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
7966         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
7968 2020-01-17  Bruno Haible  <bruno@clisp.org>
7969             Paul Eggert  <eggert@cs.ucla.edu>
7971         glob: Fix use-after-free bug.
7972         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7973         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
7974         * lib/glob.c (__glob): Delay freeing dirname until after the use of
7975         end_name.
7977 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7979         vcs-to-changelog: Fix parsing of fndecl without args.
7980         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
7981         for empty arguments.
7983 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7985         vcs-to-changelog: Add documentation.
7986         * doc/vcs-to-changelog.texi: New file.
7987         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
7988         section.
7990 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7992         vcs-to-changelog: Allow loading of custom quirks file.
7993         * build-aux/vcs_to_changelog.py: New commandline option -q.
7995 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7997         vcs-to-changelog: Fix formatting of ChangeLog output.
7998         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
7999         output.
8001 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8003         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
8004         Reported in
8005         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
8006         * build-aux/vcstocl/frontend_c.py: Remove shebang.
8008 2020-01-15  Simon Josefsson  <simon@josefsson.org>
8010         crypto/gc-pbkdf2: New module.
8011         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
8012         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
8013         * lib/gc-pbkdf2.c: New file.
8014         * lib/gc-pbkdf2-sha1.c: Use new interface.
8015         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
8016         * modules/crypto/gc-pbkdf2: New file.
8017         * modules/crypto/gc-pbkdf2-tests: New file.
8018         * tests/test-gc-pbkdf2.c: New file.
8020 2020-01-12  Bruno Haible  <bruno@clisp.org>
8022         c32stombs: Add tests.
8023         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
8024         * tests/test-c32stombs-1.sh: New file, based on
8025         tests/test-c32srtombs-1.sh.
8026         * tests/test-c32stombs-2.sh: New file, based on
8027         tests/test-c32srtombs-2.sh.
8028         * tests/test-c32stombs-3.sh: New file, based on
8029         tests/test-c32srtombs-3.sh.
8030         * tests/test-c32stombs-4.sh: New file, based on
8031         tests/test-c32srtombs-4.sh.
8032         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
8034         c32stombs: New module.
8035         * lib/uchar.in.h (c32stombs): New declaration.
8036         * lib/c32stombs.c: New file.
8037         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
8038         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
8039         * modules/c32stombs: New file.
8040         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
8041         * doc/posix-functions/wcstombs.texi: Mention the new module.
8043 2020-01-11  Jim Meyering  <meyering@fb.com>
8045         perl: require the "warnings" module
8046         * m4/perl.m4: Also "use warnings", so we reject the perl found
8047         on at least one IRIX 6.5 system. Reported by Bruno Haible in
8048         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
8050 2020-01-10  Bruno Haible  <bruno@clisp.org>
8052         Fix major regression from 2020-01-04.
8053         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8054         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
8055         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
8056         AC_DEFUN_ONCE.
8057         (AC_CHECK_DECL): Invoke, not require, it.
8059 2020-01-10  Bruno Haible  <bruno@clisp.org>
8061         c32snrtombs: Add tests.
8062         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
8063         * tests/test-c32snrtombs-1.sh: New file, based on
8064         tests/test-wcsnrtombs1.sh.
8065         * tests/test-c32snrtombs-2.sh: New file, based on
8066         tests/test-wcsnrtombs2.sh.
8067         * tests/test-c32snrtombs-3.sh: New file, based on
8068         tests/test-wcsnrtombs3.sh.
8069         * tests/test-c32snrtombs-4.sh: New file, based on
8070         tests/test-wcsnrtombs4.sh.
8071         * modules/c32snrtombs-tests: New file, based on
8072         modules/wcsnrtombs-tests.
8074         c32snrtombs: New module.
8075         * lib/uchar.in.h (c32snrtombs): New declaration.
8076         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8077         INTERNAL_STATE, WCRTOMB.
8078         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8079         * lib/c32snrtombs.c: New file.
8080         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
8081         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
8082         * modules/c32snrtombs: New file.
8083         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
8084         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8086 2020-01-09  Bruno Haible  <bruno@clisp.org>
8088         c32srtombs: Add tests.
8089         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
8090         * tests/test-c32srtombs-1.sh: New file, based on
8091         tests/test-wcsrtombs1.sh.
8092         * tests/test-c32srtombs-2.sh: New file, based on
8093         tests/test-wcsrtombs2.sh.
8094         * tests/test-c32srtombs-3.sh: New file, based on
8095         tests/test-wcsrtombs3.sh.
8096         * tests/test-c32srtombs-4.sh: New file, based on
8097         tests/test-wcsrtombs4.sh.
8098         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
8100         c32srtombs: New module.
8101         * lib/uchar.in.h (c32srtombs): New declaration.
8102         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8103         INTERNAL_STATE, WCRTOMB.
8104         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8105         * lib/c32srtombs.c: New file.
8106         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
8107         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
8108         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
8109         * modules/c32srtombs: New file.
8110         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
8111         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
8113 2020-01-08  Bruno Haible  <bruno@clisp.org>
8115         c32tob: Make consistent with mbrtoc32.
8116         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
8117         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
8118         use c32rtomb, not wctob.
8119         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
8120         (Depends-on): Add c32rtomb.
8121         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
8123 2020-01-08  Bruno Haible  <bruno@clisp.org>
8125         c32rtomb: Add tests.
8126         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
8127         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
8128         * tests/test-c32rtomb-w32.c: New file, based on
8129         tests/test-wcrtomb-w32.c.
8130         * tests/test-c32rtomb-w32-1.sh: New file, based on
8131         tests/test-wcrtomb-w32-1.sh.
8132         * tests/test-c32rtomb-w32-2.sh: New file, based on
8133         tests/test-wcrtomb-w32-2.sh.
8134         * tests/test-c32rtomb-w32-3.sh: New file, based on
8135         tests/test-wcrtomb-w32-3.sh.
8136         * tests/test-c32rtomb-w32-4.sh: New file, based on
8137         tests/test-wcrtomb-w32-4.sh.
8138         * tests/test-c32rtomb-w32-5.sh: New file, based on
8139         tests/test-wcrtomb-w32-5.sh.
8140         * tests/test-c32rtomb-w32-6.sh: New file, based on
8141         tests/test-wcrtomb-w32-6.sh.
8142         * tests/test-c32rtomb-w32-7.sh: New file, based on
8143         tests/test-wcrtomb-w32-7.sh.
8144         * modules/c32rtomb-tests: New file.
8146         c32rtomb: New module.
8147         * lib/uchar.in.h (c32rtomb): New declaration.
8148         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
8149         * m4/c32rtomb.m4: New file.
8150         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
8151         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
8152         REPLACE_C32RTOMB.
8153         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
8154         HAVE_C32RTOMB, REPLACE_C32RTOMB.
8155         * modules/c32rtomb: New file.
8156         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
8157         * doc/posix-functions/c32rtomb.texi: Document the new module.
8158         * doc/posix-functions/wcrtomb.texi: Mention the new module.
8160 2020-01-08  Bruno Haible  <bruno@clisp.org>
8162         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
8163         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
8164         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
8165         but is not working.
8166         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
8167         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
8168         differ, use the system's mbrtoc32, adding workarounds.
8169         * modules/mbrtoc32 (Depends-on): Add hard-locale.
8170         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
8171         Windows problem.
8172         * lib/btoc32.c: Include <stdio.h>, <string.h>.
8173         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
8174         use mbrtoc32, not btowc.
8175         * modules/btoc32 (Depends-on): Add mbrtoc32.
8176         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
8177         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
8178         * modules/mbsrtoc32s (Depends-on): Update conditions.
8179         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8180         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
8181         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
8182         * modules/mbsnrtoc32s (Depends-on): Update conditions.
8183         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8185 2020-01-07  Bruno Haible  <bruno@clisp.org>
8187         wcrtomb: Make multithread-safe, except possibly on IRIX.
8188         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
8189         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
8190         WCRTOMB_RETVAL_BUG.
8191         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
8192         wctomb only on IRIX.
8194 2020-01-05  Jim Meyering  <meyering@fb.com>
8196         tests: skip thread-using tests when threading is disabled
8197         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
8198         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
8199         of those, so they are skipped in this case.
8200         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
8201         * tests/test-setlocale_null-mt-all.c (main): Likewise.
8202         * tests/test-setlocale_null-mt-one.c (main): Likewise.
8204 2020-01-05  Bruno Haible  <bruno@clisp.org>
8206         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
8207         Reported by Jim Meyering in
8208         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
8209         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
8210         (GNULIB_defined_ptsname_r): New macro.
8211         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
8212         (main): Disable the NULL argument test if canonicalize_file_name does
8213         not come from gnulib.
8214         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
8215         (main): Disable the NULL argument test if canonicalize_file_name does
8216         not come from gnulib.
8217         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
8218         (test_errors): Disable the NULL argument test if ptsname_r does not come
8219         from gnulib.
8221 2020-01-04  Jim Meyering  <meyering@fb.com>
8223         update-copyright: reenable its always-skipped test
8224         * tests/test-update-copyright.sh: Restore the "-pi" options removed
8225         on 2019-06-15. Without those, an internal preliminary test would
8226         fail, causing this test always to be skipped.
8227         Verify that the test is now run and passes via this:
8228           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
8230 2020-01-05  Bruno Haible  <bruno@clisp.org>
8232         mbstoc32s: Add tests.
8233         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
8234         * tests/test-mbstoc32s-1.sh: New file, based on
8235         tests/test-mbsrtoc32s-1.sh.
8236         * tests/test-mbstoc32s-2.sh: New file, based on
8237         tests/test-mbsrtoc32s-2.sh.
8238         * tests/test-mbstoc32s-3.sh: New file, based on
8239         tests/test-mbsrtoc32s-3.sh.
8240         * tests/test-mbstoc32s-4.sh: New file, based on
8241         tests/test-mbsrtoc32s-4.sh.
8242         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
8244         mbstoc32s: New module.
8245         * lib/uchar.in.h (mbstoc32s): New declaration.
8246         * lib/mbstoc32s.c: New file.
8247         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
8248         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
8249         * modules/mbstoc32s: New file.
8250         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
8251         * doc/posix-functions/mbstowcs.texi: Mention the new module.
8253 2020-01-05  Bruno Haible  <bruno@clisp.org>
8255         Tweak recently added tests.
8256         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
8257         * tests/test-mbsrtoc32s.c: Likewise.
8258         * tests/test-mbsnrtoc32s.c: Likewise.
8260 2020-01-04  Bruno Haible  <bruno@clisp.org>
8262         mbsnrtoc32s: Add tests.
8263         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
8264         * tests/test-mbsnrtoc32s-1.sh: New file, based on
8265         tests/test-mbsnrtowcs1.sh.
8266         * tests/test-mbsnrtoc32s-2.sh: New file, based on
8267         tests/test-mbsnrtowcs2.sh.
8268         * tests/test-mbsnrtoc32s-3.sh: New file, based on
8269         tests/test-mbsnrtowcs3.sh.
8270         * tests/test-mbsnrtoc32s-4.sh: New file, based on
8271         tests/test-mbsnrtowcs4.sh.
8272         * modules/mbsnrtoc32s-tests: New file, based on
8273         modules/mbsnrtowcs-tests.
8275         mbsnrtoc32s: New module.
8276         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
8277         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8278         INTERNAL_STATE, MBRTOWC.
8279         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8280         * lib/mbsnrtoc32s.c: New file.
8281         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
8282         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
8283         * modules/mbsnrtoc32s: New file.
8284         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
8285         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
8287 2020-01-04  Bruno Haible  <bruno@clisp.org>
8289         mbsrtoc32s tests: Enhance test.
8290         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
8291         test strings for UTF-8 and GB18030.
8293 2020-01-04  Bruno Haible  <bruno@clisp.org>
8295         mbsrtoc32s: Fix bug.
8296         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
8297         that SMALL_WCHAR_T is defined.
8299 2020-01-04  Bruno Haible  <bruno@clisp.org>
8301         mbsrtoc32s: Add tests.
8302         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
8303         * tests/test-mbsrtoc32s-1.sh: New file, based on
8304         tests/test-mbsrtowcs1.sh.
8305         * tests/test-mbsrtoc32s-2.sh: New file, based on
8306         tests/test-mbsrtowcs2.sh.
8307         * tests/test-mbsrtoc32s-3.sh: New file, based on
8308         tests/test-mbsrtowcs3.sh.
8309         * tests/test-mbsrtoc32s-4.sh: New file, based on
8310         tests/test-mbsrtowcs4.sh.
8311         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
8313         mbsrtoc32s: New module.
8314         * lib/uchar.in.h (mbsrtoc32s): New declaration.
8315         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8316         INTERNAL_STATE, MBRTOWC.
8317         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8318         * lib/mbsrtoc32s.c: New file.
8319         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
8320         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
8321         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
8322         * modules/mbsrtoc32s: New file.
8323         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
8324         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
8326 2020-01-04  Bruno Haible  <bruno@clisp.org>
8328         mbrtowc, mbrtoc32: Tighten dependendies.
8329         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
8330         REPLACE_MBSTATE_T is 1.
8331         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8332         REPLACE_MBSTATE_T is 0.
8333         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
8334         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
8335         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8336         REPLACE_MBSTATE_T is 0.
8338 2020-01-04  Bruno Haible  <bruno@clisp.org>
8340         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
8341         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
8342         * modules/uchar (Files): Add stdint.m4.
8343         (Makefile.am): Substitute SMALL_WCHAR_T.
8344         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
8346 2020-01-04  Bruno Haible  <bruno@clisp.org>
8348         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
8349         Reported by Martin Storsjö <martin@martin.st> in
8350         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
8351         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8352         New macros.
8353         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
8355 2020-01-04  Bruno Haible  <bruno@clisp.org>
8357         btoc32: Add tests.
8358         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
8359         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
8360         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
8361         * modules/btoc32-tests: New file, based on modules/btowc-tests.
8363         btoc32: New module.
8364         * lib/uchar.in.h (btoc32): New declaration.
8365         * lib/btoc32.c: New file.
8366         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
8367         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
8368         * modules/btoc32: New file.
8369         * tests/test-uchar-c++.cc: Test the signature of btoc32.
8370         * doc/posix-functions/btowc.texi: Mention the new module.
8372 2020-01-03  Bruno Haible  <bruno@clisp.org>
8374         uchar tests: Avoid compilation error with HP cc.
8375         * tests/test-uchar.c: Disable a test when HP cc is in use.
8377 2020-01-03  Bruno Haible  <bruno@clisp.org>
8379         mbrtoc32: Add tests.
8380         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
8381         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
8382         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
8383         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
8384         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
8385         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
8386         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
8387         * tests/test-mbrtoc32-w32-1.sh: New file, based on
8388         tests/test-mbrtowc-w32-1.sh.
8389         * tests/test-mbrtoc32-w32-2.sh: New file, based on
8390         tests/test-mbrtowc-w32-2.sh.
8391         * tests/test-mbrtoc32-w32-3.sh: New file, based on
8392         tests/test-mbrtowc-w32-3.sh.
8393         * tests/test-mbrtoc32-w32-4.sh: New file, based on
8394         tests/test-mbrtowc-w32-4.sh.
8395         * tests/test-mbrtoc32-w32-5.sh: New file, based on
8396         tests/test-mbrtowc-w32-5.sh.
8397         * tests/test-mbrtoc32-w32-6.sh: New file, based on
8398         tests/test-mbrtowc-w32-6.sh.
8399         * tests/test-mbrtoc32-w32-7.sh: New file, based on
8400         tests/test-mbrtowc-w32-7.sh.
8401         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
8403         mbrtoc32: New module.
8404         * lib/uchar.in.h (mbrtoc32): New declaration.
8405         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
8406         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
8407         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
8408         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
8409         REPLACE_MBRTOC32.
8410         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
8411         HAVE_MBRTOC32, REPLACE_MBRTOC32.
8412         * modules/mbrtoc32: New file, based on modules/mbrtowc.
8413         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
8414         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
8415         $(LIB_MBRTOWC).
8416         * doc/posix-functions/mbrtoc32.texi: Document the new module.
8417         * doc/posix-functions/mbrtowc.texi: Mention the new module.
8419 2020-01-03  Bruno Haible  <bruno@clisp.org>
8421         mbrtowc: Refactor to share code with mbrtoc32.
8422         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
8423         * lib/mbrtowc-impl-utf8.h: Likewise.
8424         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
8425         mbrtowc-impl.h.
8426         * modules/mbrtowc (Files): Add the new files.
8428 2020-01-03  Jim Meyering  <meyering@fb.com>
8430         doc: fix time.texi wording
8431         * doc/posix-headers/time.texi (time.h): Typo.
8433 2020-01-03  Bruno Haible  <bruno@clisp.org>
8435         mbrtowc: Refactor locale charset dispatching.
8436         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
8437         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
8438         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
8439         localcharset.h, streq.h.
8440         (enc_t): Remove type.
8441         (locale_enc): Remove function.
8442         (cached_locale_enc): Remove variable.
8443         (locale_enc_cached): Remove function.
8444         (mbrtowc): Invoke locale_encoding_classification.
8445         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
8446         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
8447         lc-charset-dispatch.c.
8448         (configure.ac): Arrange to compile lc-charset-dispatch.c.
8450 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8452         doc: mention 32-bit time_t issue
8453         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8454         * doc/posix-headers/time.texi (time.h): Mention 2038.
8456 2020-01-03  Bruno Haible  <bruno@clisp.org>
8458         mbrtowc: Ensure the mbtowc_lock is unique.
8459         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
8460         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
8461         lib/setlocale_null.c.
8462         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
8463         glthread/lock.h. Include mbtowc-lock.h.
8464         (mbtowc_lock): Remove declaration.
8465         (mbrtowc): Use mbtowc_with_lock.
8466         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
8467         threads.h. Set LIB_MBRTOWC.
8468         (gl_PREREQ_MBTOWC_LOCK): New macro.
8469         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
8470         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
8471         (Depends-on): Remove lock.
8472         (configure.ac): Arrange to compile mbtowc-lock.c.
8473         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
8474         * modules/acl (Link): Likewise.
8475         * modules/argmatch (Link): Likewise.
8476         * modules/backup-rename (Link): Likewise.
8477         * modules/backupfile (Link): Likewise.
8478         * modules/closein (Link): Likewise.
8479         * modules/closeout (Link): Likewise.
8480         * modules/copy-file (Link): Likewise.
8481         * modules/csharpcomp (Link): Likewise.
8482         * modules/csharpexec (Link): Likewise.
8483         * modules/dfa (Link): Likewise.
8484         * modules/exclude (Link): Likewise.
8485         * modules/fnmatch (Link): Likewise.
8486         * modules/fnmatch-gnu (Link): Likewise.
8487         * modules/fnmatch-posix (Link): Likewise.
8488         * modules/glob (Link): Likewise.
8489         * modules/human (Link): Likewise.
8490         * modules/javacomp (Link): Likewise.
8491         * modules/javaexec (Link): Likewise.
8492         * modules/javaversion (Link): Likewise.
8493         * modules/mbfile (Link): Likewise.
8494         * modules/mbiter (Link): Likewise.
8495         * modules/mbmemcasecmp (Link): Likewise.
8496         * modules/mbmemcasecoll (Link): Likewise.
8497         * modules/mbrlen (Link): Likewise.
8498         * modules/mbscasecmp (Link): Likewise.
8499         * modules/mbscasestr (Link): Likewise.
8500         * modules/mbschr (Link): Likewise.
8501         * modules/mbscspn (Link): Likewise.
8502         * modules/mbsinit (Link): Likewise.
8503         * modules/mbslen (Link): Likewise.
8504         * modules/mbsncasecmp (Link): Likewise.
8505         * modules/mbsnlen (Link): Likewise.
8506         * modules/mbsnrtowcs (Link): Likewise.
8507         * modules/mbspbrk (Link): Likewise.
8508         * modules/mbspcasecmp (Link): Likewise.
8509         * modules/mbsrchr (Link): Likewise.
8510         * modules/mbsrtowcs (Link): Likewise.
8511         * modules/mbssep (Link): Likewise.
8512         * modules/mbsspn (Link): Likewise.
8513         * modules/mbsstr (Link): Likewise.
8514         * modules/mbstok_r (Link): Likewise.
8515         * modules/mbswidth (Link): Likewise.
8516         * modules/mbuiter (Link): Likewise.
8517         * modules/mkdir-p (Link): Likewise.
8518         * modules/propername (Link): Likewise.
8519         * modules/quote (Link): Likewise.
8520         * modules/quotearg (Link): Likewise.
8521         * modules/quotearg-simple (Link): Likewise.
8522         * modules/regex-quote (Link): Likewise.
8523         * modules/rpmatch (Link): Likewise.
8524         * modules/sh-quote (Link): Likewise.
8525         * modules/system-quote (Link): Likewise.
8526         * modules/trim (Link): Likewise.
8527         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8528         * modules/unistdio/ulc-fprintf (Link): Likewise.
8529         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8530         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8531         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8532         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8533         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8534         * modules/xfreopen (Link): Likewise.
8535         * modules/xmemcoll (Link): Likewise.
8536         * modules/yesno (Link): Likewise.
8537         * modules/regex (Link): Add $(LIB_MBRTOWC).
8538         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
8539         instead of $(LIBTHREAD).
8540         * modules/argmatch-tests (Makefile.am): Likewise.
8541         * modules/closein-tests (Makefile.am): Likewise.
8542         * modules/copy-file-tests (Makefile.am): Likewise.
8543         * modules/dfa-tests (Makefile.am): Likewise.
8544         * modules/fnmatch-tests (Makefile.am): Likewise.
8545         * modules/glob-tests (Makefile.am): Likewise.
8546         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8547         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8548         * modules/mbrtowc-tests (Makefile.am): Likewise.
8549         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8550         * modules/mbscasestr-tests (Makefile.am): Likewise.
8551         * modules/mbschr-tests (Makefile.am): Likewise.
8552         * modules/mbscspn-tests (Makefile.am): Likewise.
8553         * modules/mbsinit-tests (Makefile.am): Likewise.
8554         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8555         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8556         * modules/mbspbrk-tests (Makefile.am): Likewise.
8557         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8558         * modules/mbsrchr-tests (Makefile.am): Likewise.
8559         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8560         * modules/mbsspn-tests (Makefile.am): Likewise.
8561         * modules/mbsstr-tests (Makefile.am): Likewise.
8562         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8563         * modules/quotearg-tests (Makefile.am): Likewise.
8564         * modules/readtokens-tests (Makefile.am): Likewise.
8565         * modules/sh-quote-tests (Makefile.am): Likewise.
8566         * modules/system-quote-tests (Makefile.am): Likewise.
8567         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8568         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8569         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8570         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8571         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8572         * modules/yesno-tests (Makefile.am): Likewise.
8573         * modules/exclude-tests (Makefile.am): Link the programs with
8574         $(LIB_MBRTOWC).
8575         * modules/regex-tests (Makefile.am): Likewise.
8576         * modules/regex-quote-tests (Makefile.am): Likewise.
8578 2020-01-03  Bruno Haible  <bruno@clisp.org>
8580         getopt-posix: Fix compilation failure in testdirs.
8581         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
8582         when the gnulib module 'getopt-posix' is enabled.
8583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
8584         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
8585         module indicator.
8586         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
8588 2020-01-03  Bruno Haible  <bruno@clisp.org>
8590         doc: Mention the 64-bit inode number problem.
8591         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
8592         64-bit inode number problem.
8593         * doc/posix-functions/stat.texi: Mention that this module fixes the
8594         64-bit inode number problem.
8595         * doc/posix-functions/lstat.texi: Likewise.
8596         * doc/posix-functions/fstat.texi: Likewise.
8597         * doc/posix-functions/readdir.texi: Add more details.
8598         * doc/posix-functions/readdir_r.texi: Likewise.
8600 2020-01-02  Bruno Haible  <bruno@clisp.org>
8602         wcrtomb: Add more tests.
8603         * tests/test-wcrtomb-w32.c: Include localcharset.h.
8604         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8605         locale_charset() returns the expected value; otherwise, skip the test.
8606         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
8607         * tests/test-wcrtomb-w32-7.sh: Likewise.
8608         * modules/wcrtomb-tests (Files): Add these files.
8609         (Depends-on): Add localcharset.
8610         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
8612 2020-01-02  Bruno Haible  <bruno@clisp.org>
8614         mbrtowc: Add more tests.
8615         * tests/test-mbrtowc-w32.c: Include localcharset.h.
8616         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8617         locale_charset() returns the expected value; otherwise, skip the test.
8618         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
8619         * tests/test-mbrtowc-w32-7.sh: Likewise.
8620         * modules/mbrtowc-tests (Files): Add these files.
8621         (Depends-on): Add localcharset.
8622         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
8624 2020-01-02  Bruno Haible  <bruno@clisp.org>
8626         mbrtowc: Fix test failures on MSVC (regression by previous commit).
8627         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
8628         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
8629         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
8630         MBRTOWC_STORES_INCOMPLETE_BUG.
8631         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
8633 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8635         doc: mention glibc bug 24269
8636         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
8637         Reformat slightly so that it looks nicer in the Grep manual.
8639 2020-01-02  Bruno Haible  <bruno@clisp.org>
8641         mbrtowc: Don't replace mbstate_t on MSVC.
8642         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
8643         a missing mbsinit function on native Windows.
8644         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
8645         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
8646         MSVC bug.
8647         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
8649 2020-01-02  Bruno Haible  <bruno@clisp.org>
8651         setlocale-null: Avoid crashing the MSVC linker.
8652         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
8653         MSVC.
8655 2020-01-02  Bruno Haible  <bruno@clisp.org>
8657         wchar: Make the HP-UX workaround work on HP-UX 11.31.
8658         * modules/wchar (Depends-on): Add inttypes-incomplete.
8659         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
8660         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
8661         of strtoimax.
8663 2020-01-02  Bruno Haible  <bruno@clisp.org>
8665         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
8666         * lib/mbrtowc.c: Include <stdint.h>.
8667         * modules/mbrtowc (Depends-on): Add stdint.
8669 2020-01-01  Pádraig Brady  <P@draigBrady.com>
8671         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
8672         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
8673         which will auto enable use of openssl, only for >= version 3,
8674         which is newly licensed under the Apache Software License.
8676 2020-01-01  Bruno Haible  <bruno@clisp.org>
8678         mbrtowc: Include function name in macro names.
8679         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
8680         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
8681         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
8682         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
8683         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
8684         C_LOCALE_MAYBE_EILSEQ.
8686 2020-01-01  Bruno Haible  <bruno@clisp.org>
8688         c32tob: New module.
8689         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
8690         (c32tob): New declaration.
8691         * lib/c32tob.c: New file.
8692         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
8693         macros.
8694         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
8695         * modules/uchar (Depends-on): Add snippet/c++defs.
8696         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
8697         uchar.h.
8698         * modules/c32tob: New file.
8699         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
8700         defined.
8701         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
8702         c32tob.
8703         * modules/uchar-c++-tests (Files): Add tests/signature.h.
8704         * doc/posix-functions/wctob.texi: Mention the new module.
8706 2020-01-01  Bruno Haible  <bruno@clisp.org>
8708         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
8709         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
8710         $(LIB_SETLOCALE).
8712 2020-01-01  Bruno Haible  <bruno@clisp.org>
8714         hard-locale tests: Fix a conflict with the C++ tests.
8715         * modules/hard-locale-tests (Makefile.am): Build a program named
8716         'current-locale', not 'locale'.
8718 2020-01-01  Bruno Haible  <bruno@clisp.org>
8720         doc: Update documentation about wchar_t.
8721         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
8722         wchar_t type.
8724 2020-01-01  Bruno Haible  <bruno@clisp.org>
8726         mbrtowc tests: Fix typos.
8727         * tests/test-mbrtowc.c (main): Fix typo.
8728         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
8730 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8732         maint: update copyright notices
8733         Before doing the following changes done by hand, I also ran ‘make
8734         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
8735         to do most of the copyright years automatically.  A few upstream
8736         sources are still in 2019 but these should eventually be changed
8737         automatically too.
8738         * build-aux/declared.sh (func_version):
8739         * build-aux/libtool-next-version (func_version):
8740         * build-aux/run-test (func_version):
8741         Update these notices by hand.  Put just the last year
8742         in output of programs, as per GNU coding standards.
8744 2019-12-31  Bruno Haible  <bruno@clisp.org>
8746         uchar: Add C++ tests.
8747         * tests/test-uchar-c++.cc: New file.
8748         * tests/test-uchar-c++2.cc: New file.
8749         * modules/uchar-c++-tests: New file.
8751         uchar: Add tests.
8752         * tests/test-uchar.c: New file.
8753         * modules/uchar-tests: New file.
8755         uchar: New module.
8756         * lib/uchar.in.h: New file.
8757         * m4/uchar.m4: New file.
8758         * modules/uchar: New file.
8759         * doc/posix-headers/uchar.texi: Mention the new module.
8761 2019-12-30  Jim Meyering  <meyering@fb.com>
8763         localeinfo: ->simple would be wrong for LC_ALL=C
8764         That would lead to using unnecessary and expensive code paths in dfa.c.
8765         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
8766         error that would have made grep many times slower in the C locale.
8767         With this change, and a file created like this:
8768           yes 00 | head -10000000 > in
8769         Running grep as follows becomes more than 40 times faster:
8770           LC_ALL=C grep -Fw 0 in
8772 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
8774         doc: document trouble with back-references
8775         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
8777 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8779         doc: use “back-reference” for \1 etc.
8780         * doc/regex.texi: Consistently spell “back-reference” with
8781         a hyphen, since that’s how POSIX does it.
8783 2019-12-26  Jim Meyering  <meyering@fb.com>
8785         test-framework-sh: tighten an internal grep regexp
8786         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
8787         that helps test for a working printf.
8789 2019-12-26  Bruno Haible  <bruno@clisp.org>
8791         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
8792         Reported by Paul Eggert in
8793         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
8794         Simplification by Jim Meyering.
8795         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
8796         octal escape sequence in a UTF-8 locale.
8798 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
8800         mbrtowc: port better to narrow-wchar_t platforms
8801         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
8802         wchar_t is too narrow to represent all the Unicode characters,
8803         consider a byte sequence for an out-of-wchar_t-range character to
8804         be an encoding error.  This fixes grep’s surrogate-pair test
8805         failure on AIX 7.2.
8807 2019-12-24  Bruno Haible  <bruno@clisp.org>
8809         localcharset: Avoid referencing rpl_setlocale on native Windows.
8810         * lib/localcharset.c (setlocale): Undefine.
8812 2019-12-24  Bruno Haible  <bruno@clisp.org>
8814         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
8815         * m4/semaphore.m4: New file.
8816         * modules/lock-tests (Files): Add it.
8817         (configure.ac): Require gl_SEMAPHORE.
8818         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
8820 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
8822         strptime: fix typo in previous patch
8823         Problem and fix reported by Bruno Haible in:
8824         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
8825         * lib/strptime.c (day_of_the_week): Fix paren bug.
8827 2019-12-24  Bruno Haible  <bruno@clisp.org>
8829         setlocale-null: Make it easy to rely on the lock in another library.
8830         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
8831         defined.
8833 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8835         gethrxtime, mktime, nstrftime, strptime: tweak division performance
8836         Performanced analyzed by Bruno Haible in:
8837         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
8838         * config/srclist.txt: Do not sync mktime.c for now.
8839         * lib/mktime.c (shr, ydhms_diff):
8840         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
8841         * lib/strptime.c (day_of_the_week):
8842         * lib/xtime.h (xtime_sec):
8843         Redo with neither ‘%’ nor conditional branches.
8845 2019-12-23  Bruno Haible  <bruno@clisp.org>
8847         setlocale-null: Export the lock function also on non-Windows platforms.
8848         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
8849         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
8850         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
8851         * modules/setlocale-null (configure.ac): Invoke it.
8852         (Files): Add m4/visibility.m4.
8854 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8856         gethrxtime: fix rounding bug with negative args
8857         Problem reported by Bruno Haible in:
8858         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
8859         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
8860         with negative rounding.  Common platforms can compute / and % with
8861         a single instruction, so the simplified code should be shorter and
8862         faster on these platforms anyway.
8864 2019-12-22  Bruno Haible  <bruno@clisp.org>
8866         gethrxtime: remove incorrect overflow detection
8867         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
8868         integer overflow, as it didn’t suffice.  This reverts the xtime.h
8869         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
8870         cannot now see the need for anyway (even in cases where it works),
8871         as the patch is helpful only when the signs of S and NS disagree,
8872         and all callers pass nonnegative values for S and NS.
8874 2019-12-22  Bruno Haible  <bruno@clisp.org>
8876         setlocale-null: Add standalone include file.
8877         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
8878         * lib/locale.in.h: Include setlocale_null.h.
8879         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
8880         setlocale_null): Remove declarations.
8881         * lib/setlocale_null.c: Include setlocale_null.h.
8882         * lib/localename.c: Likewise.
8883         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
8884         (Depends-on): Add snippet/arg-nonnull.
8885         (Include): Allow either "setlocale_null.h" or <locale.h>.
8887 2019-12-22  Bruno Haible  <bruno@clisp.org>
8889         strfmon_l: Fix test failures on FreeBSD and Cygwin.
8890         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
8891         AC_RUN_IFELSE test.
8892         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
8893         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
8894         problem.
8896 2019-12-22  Bruno Haible  <bruno@clisp.org>
8898         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
8899         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
8900         unconditional AC_LIBOBJ.
8901         * modules/selinux-at: Likewise.
8902         * modules/xmemdup0: Likewise.
8903         * modules/xstrtoll: Likewise.
8905 2019-12-22  Bruno Haible  <bruno@clisp.org>
8907         longlong: Mark module obsolete.
8908         * modules/longlong (Status, Notice): New sections.
8910         stdint: Assume that the compiler supports 'long long'.
8911         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
8912         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
8913         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8914         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
8915         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8916         * modules/stdint (Files): Remove longlong.m4.
8917         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
8918         HAVE_UNSIGNED_LONG_LONG_INT.
8920         inttypes-incomplete: Assume that the compiler supports 'long long'.
8921         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
8922         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
8923         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8924         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
8925         HAVE_LONG_LONG_INT to be 1.
8926         * modules/inttypes-incomplete (Makefile.am): Don't substitute
8927         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
8929         malloca: Assume that the compiler supports 'long long'.
8930         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
8931         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
8932         * modules/malloca (Files): Remove longlong.m4.
8933         * modules/relocatable-prog-wrapper (Files): Likewise.
8935         atoll: Assume that the compiler supports 'long long'.
8936         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
8937         * modules/atoll (Files): Remove longlong.m4.
8939         strtoll: Assume that the compiler supports 'long long'.
8940         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
8941         * modules/strtoll (Files): Remove longlong.m4.
8943         strtoull: Assume that the compiler supports 'long long'.
8944         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
8945         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8946         * modules/strtoull (Files): Remove longlong.m4.
8948         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
8949         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
8950         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8951         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
8952         AC_TYPE_LONG_LONG_INT.
8953         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
8954         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8955         * modules/strtoimax (Files): Remove longlong.m4.
8956         * modules/strtoumax (Files): Likewise.
8958         xstrtoll: Assume that the compiler supports 'long long'.
8959         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
8960         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
8962         vasnprintf: Assume that the compiler supports 'long long'.
8963         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
8964         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
8965         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8966         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
8967         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
8968         require AC_TYPE_LONG_LONG_INT.
8969         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
8970         gl_PREREQ_VASNPRINTF): Likewise.
8971         * modules/vasnprintf (Files): Remove longlong.m4.
8972         * modules/c-vasnprintf (Files): Likewise.
8973         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8974         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8975         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8976         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8977         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8978         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8979         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8981         gethrxtime: Assume that the compiler supports 'long long'.
8982         * lib/xtime.h (xtime_t): Define to 'long long int' always.
8983         (XTIME_PRECISION): Define to 1000000000 always.
8984         (xtime_make, xtime_sec): Optimize accordingly.
8985         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
8986         * modules/gethrxtime (Files): Remove longlong.m4.
8988         integer_length*: Assume that the compiler supports 'long long'.
8989         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
8990         * modules/integer_length (Files): Remove longlong.m4.
8991         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8992         * modules/integer_length_l (Files): Remove longlong.m4.
8993         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8994         * modules/integer_length_ll (Files): Remove longlong.m4.
8995         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
8997         count-one-bits: Assume that the compiler supports 'long long'.
8998         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
8999         * m4/count-one-bits.m4: Remove file.
9000         * modules/count-one-bits (Files): Remove it.
9001         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
9002         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
9003         unconditionally.
9005         count-trailing-zeros: Assume that the compiler supports 'long long'.
9006         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
9007         unconditionally.
9008         * m4/count-trailing-zeros.m4: Remove file.
9009         * modules/count-trailing-zeros (Files): Remove it.
9010         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
9011         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
9012         unconditionally.
9014         count-leading-zeros: Assume that the compiler supports 'long long'.
9015         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
9016         unconditionally.
9017         * m4/count-leading-zeros.m4: Remove file.
9018         * modules/count-leading-zeros (Files): Remove it.
9019         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
9020         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
9021         unconditionally.
9023 2019-12-22  Bruno Haible  <bruno@clisp.org>
9025         localcharset: Update support for OpenBSD.
9026         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
9028 2019-12-21  Bruno Haible  <bruno@clisp.org>
9030         pthread_sigmask: Avoid test failure on NetBSD 8.0.
9031         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
9032         NetBSD.
9033         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
9035 2019-12-21  Bruno Haible  <bruno@clisp.org>
9037         threadlib: Improve code structure.
9038         * m4/threadlib.m4: Reorder macros. Add comments.
9040 2019-12-21  Bruno Haible  <bruno@clisp.org>
9042         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
9043         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
9044         here from m4/threads.m4).
9045         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
9046         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
9047         (gl_STDTHREADLIB): New macro.
9048         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
9049         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
9051 2019-12-21  Bruno Haible  <bruno@clisp.org>
9053         sched_yield: Don't depend on threadlib and yield.
9054         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
9055         LIB_SCHED_YIELD.
9056         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
9057         m4/yield.m4).
9058         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
9059         gl_THREADLIB and gl_YIELD.
9060         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
9061         based on $(LIB_SCHED_YIELD).
9062         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
9063         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9064         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
9065         (Depends-on): Remove threadlib.
9066         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9067         * modules/threads-h (Files): Remove m4/yield.m4.
9068         * modules/pthread-cond-tests (Makefile.am): Link the programs against
9069         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9070         * modules/pthread-mutex-tests (Makefile.am): Likewise.
9071         * modules/pthread-once-tests (Makefile.am): Likewise.
9072         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
9073         * modules/pthread-tss-tests (Makefile.am): Likewise.
9075 2019-12-21  Bruno Haible  <bruno@clisp.org>
9077         threads-h: Don't depend on threadlib.
9078         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
9079         not gl_THREADLIB_EARLY.
9081 2019-12-21  Bruno Haible  <bruno@clisp.org>
9083         nl_langinfo tests: Fix link error (regression from 2019-12-18).
9084         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
9085         with $(LIB_SETLOCALE).
9087 2019-12-21  Bruno Haible  <bruno@clisp.org>
9089         threadlib: Remove unused dependency (left over from 2019-07-06).
9090         * modules/threadlib (Depends-on): Remove havelib.
9092 2019-12-21  Bruno Haible  <bruno@clisp.org>
9094         New convention for multithread-safety tests.
9095         * tests/test-setlocale_null-mt-one.c: Renamed from
9096         tests/test-setlocale_null-one.c.
9097         * tests/test-setlocale_null-mt-all.c: Renamed from
9098         tests/test-setlocale_null-all.c.
9099         * modules/setlocale-null-tests (Files, Makefile.am): Update.
9101 2019-12-21  Bruno Haible  <bruno@clisp.org>
9103         quotearg tests: Fix conflict with hard-locale tests.
9104         * tests/testlocale: Renamed from tests/locale.
9105         * modules/quotearg-tests (Files): Update.
9106         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
9108 2019-12-21  Bruno Haible  <bruno@clisp.org>
9110         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
9111         Reported by Daniel Richard G. in
9112         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
9113         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
9114         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
9115         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
9116         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
9117         alternative to PTHREAD_RWLOCK_INITIALIZER.
9118         * lib/glthread/lock.c: Likewise.
9120 2019-12-21  Bruno Haible  <bruno@clisp.org>
9122         memcmp tests: Work around the clang bug.
9123         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
9124         the clang optimization.
9126 2019-12-20  Bruno Haible  <bruno@clisp.org>
9128         localcharset: Add support for z/OS encoding names.
9129         * lib/localcharset.h: Mention which encodings are used as locale
9130         encodings on z/OS.
9132 2019-12-20  Bruno Haible  <bruno@clisp.org>
9134         iconv_open: Add support for z/OS encoding names.
9135         Reported by Daniel Richard G. in
9136         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
9137         * lib/iconv_open-zos.gperf: New file.
9138         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
9139         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
9140         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
9141         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
9142         * doc/posix-functions/iconv_open.texi: Mention z/OS.
9144 2019-12-20  Bruno Haible  <bruno@clisp.org>
9146         doc: Document the problem of the per-thread locale functions on z/OS.
9147         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
9148         * doc/posix-functions/newlocale.texi: Likewise.
9149         * doc/posix-functions/duplocale.texi: Likewise.
9150         * doc/posix-functions/freelocale.texi: Likewise.
9152 2019-12-20  Bruno Haible  <bruno@clisp.org>
9154         localename, gettext: Fix host_os value for z/OS.
9155         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
9156         cross-configuration code.
9158 2019-12-19  Jim Meyering  <meyering@fb.com>
9160         nstrftime: avoid a shadowing warning
9161         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
9162         to avoid shadowing an "i" declared hundreds of lines above.
9164 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9166         dfa: struct dfamust now uses flexible array
9167         * lib/dfa.c: Include flexmember.h.
9168         (dfamust, dfamustfree): Adjust to struct dfamust change.
9169         This saves a call to malloc+free.
9170         * lib/dfa.h (struct dfamust): Make the final member a
9171         flexible array member.
9172         * modules/dfa (Depends-on): Add flexmember.
9174         dfa: fast->small for array elements
9175         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
9176         since this type is used in arrays.  This change is more for
9177         documentation than for any practical effect, since the two types
9178         are the same on all known platforms.
9180 2019-12-19  Bruno Haible  <bruno@clisp.org>
9182         iconv tests: Test canonicalized, not system-dependent, encoding names.
9183         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
9184         * modules/iconv-tests (Depends-on): Add iconv_open.
9186 2019-12-18  Bruno Haible  <bruno@clisp.org>
9188         localename: Fix test failure on AIX 7.2.
9189         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
9190         locales on AIX.
9191         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
9192         locales on AIX.
9194 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9196         Improve port of AC_C_RESTRICT to Oracle C++
9197         Problem reported by Christian Biesinger in:
9198         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
9199         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
9200         Oracle Developer Studio C++ 12.5 or later.
9202 2019-12-18  Bruno Haible  <bruno@clisp.org>
9204         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
9205         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
9207 2019-12-18  Bruno Haible  <bruno@clisp.org>
9209         localename: Ensure multithread-safety in future changes.
9210         * lib/localename.c (setlocale): Reference the system's setlocale().
9211         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
9212         (gl_locale_name_posix): Likewise.
9213         * modules/localename (Depends-on): Add setlocale-null.
9215 2019-12-18  Bruno Haible  <bruno@clisp.org>
9217         setlocale-null: Make API more useful.
9218         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
9219         callers changed.
9220         (setlocale_null): New declaration.
9221         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
9222         extracted from setlocale_null_unlocked.
9223         (setlocale_null_unlocked): Invoke it.
9224         (setlocale_null_r): Renamed from setlocale_null.
9225         (setlocale_null): New function, extracted from setlocale_mtsafe in
9226         setlocale.c.
9227         * lib/setlocale.c: Don't include <errno.h>.
9228         (setlocale_mtsafe): Invoke setlocale_null.
9229         * lib/setlocale-lock.c: Update comments.
9230         * doc/posix-functions/setlocale.texi: Mention both functions.
9232 2019-12-18  Bruno Haible  <bruno@clisp.org>
9234         localename: Optimize code for native Windows.
9235         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
9236         category (not allowed here).
9238 2019-12-18  Bruno Haible  <bruno@clisp.org>
9240         setlocale: Make calls with NULL argument multithread-safe.
9241         * lib/setlocale.c: Include <errno.h>.
9242         (setlocale_mtsafe): New function.
9243         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
9244         (setlocale_improved): Renamed from rpl_setlocale.
9245         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9246         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
9247         LIB_SETLOCALE.
9248         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
9249         (Link): New section.
9250         * tests/locale.c: Undefine setlocale.
9251         * tests/test-setlocale_null-one.c: Likewise.
9252         * tests/test-setlocale_null-all.c: Likewise.
9253         * modules/setlocale-tests (Makefile.am): Link the test programs with
9254         $(LIB_SETLOCALE).
9255         * modules/astrxfrm-tests (Makefile.am): Likewise.
9256         * modules/btowc-tests (Makefile.am): Likewise.
9257         * modules/c-ctype-tests (Makefile.am): Likewise.
9258         * modules/c-snprintf-tests (Makefile.am): Likewise.
9259         * modules/c-strcase-tests (Makefile.am): Likewise.
9260         * modules/c-vasprintf-tests (Makefile.am): Likewise.
9261         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
9262         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
9263         * modules/dfa-tests (Makefile.am): Likewise.
9264         * modules/duplocale-tests (Makefile.am): Likewise.
9265         * modules/hard-locale-tests (Makefile.am): Likewise.
9266         * modules/localcharset-tests (Makefile.am): Likewise.
9267         * modules/localename-tests (Makefile.am): Likewise.
9268         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9269         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9270         * modules/mbrtowc-tests (Makefile.am): Likewise.
9271         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9272         * modules/mbscasestr-tests (Makefile.am): Likewise.
9273         * modules/mbschr-tests (Makefile.am): Likewise.
9274         * modules/mbscspn-tests (Makefile.am): Likewise.
9275         * modules/mbsinit-tests (Makefile.am): Likewise.
9276         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9277         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9278         * modules/mbspbrk-tests (Makefile.am): Likewise.
9279         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9280         * modules/mbsrchr-tests (Makefile.am): Likewise.
9281         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9282         * modules/mbsspn-tests (Makefile.am): Likewise.
9283         * modules/mbsstr-tests (Makefile.am): Likewise.
9284         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9285         * modules/quotearg-tests (Makefile.am): Likewise.
9286         * modules/regex-tests (Makefile.am): Likewise.
9287         * modules/strfmon_l-tests (Makefile.am): Likewise.
9288         * modules/strtod-tests (Makefile.am): Likewise.
9289         * modules/strtold-tests (Makefile.am): Likewise.
9290         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9291         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9292         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9293         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
9294         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9295         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9296         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9297         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9298         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9299         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9300         * modules/wcrtomb-tests (Makefile.am): Likewise.
9301         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9302         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9303         * modules/wcwidth-tests (Makefile.am): Likewise.
9304         * doc/posix-functions/setlocale.texi: Mention that the multithread-
9305         safety fix is also available in module 'setlocale'.
9307 2019-12-18  Bruno Haible  <bruno@clisp.org>
9309         hard-locale: Make multithread-safe.
9310         * lib/hard-locale.h (hard_locale): Move documentation to here.
9311         * lib/hard-locale.c: Don't include <stdlib.h>.
9312         (GLIBC_VERSION): Remove macro.
9313         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
9314         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
9315         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
9316         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
9317         (Link): New section.
9318         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
9319         $(LIB_HARD_LOCALE).
9321 2019-12-18  Bruno Haible  <bruno@clisp.org>
9323         hard-locale: Avoid test failure on Haiku.
9324         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
9326 2019-12-18  Bruno Haible  <bruno@clisp.org>
9328         setlocale-null: Handle NULL result from setlocale.
9329         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
9330         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
9331         from setlocale or _wsetlocale.
9333 2019-12-18  Bruno Haible  <bruno@clisp.org>
9335         hard-locale: Add test.
9336         * tests/test-hard-locale.c: New file.
9337         * tests/locale.c: New file.
9338         * modules/hard-locale-tests: New file.
9340 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9342         dfa: do not match invalid UTF-8
9343         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
9344         from 5 to 9 tokens; this is needed due to the changes to
9345         add_utf8_anychar.
9346         (charclass_index): 2nd arg is now pointer-to-const.
9347         (add_utf8_anychar): Match only valid UTF-8 byte sequences
9348         instead of allowing overlong encodings or surrogate halves.
9350         dfa: simplify charclass by assuming C99
9351         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
9352         (charclass_word): Now always uint_fast64_t.
9353         (CHARCLASS_PAIR): Remove.
9354         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
9356         fts: tune via calloc
9357         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
9359         dfa: tune via xzalloc
9360         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
9362 2019-12-17  Bruno Haible  <bruno@clisp.org>
9364         localcharset: Fix multithread-safety bug on Windows and OS/2.
9365         * lib/localcharset.h (locale_charset): Clarify when the result becomes
9366         invalid.
9367         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
9368         assemble the result.
9370 2019-12-17  Bruno Haible  <bruno@clisp.org>
9372         localcharset: Optimize code for native Windows.
9373         * lib/localcharset.c (locale_charset): Don't bother calling
9374         setlocale (LC_ALL, NULL) since we're not interested in its result.
9376 2019-12-17  Bruno Haible  <bruno@clisp.org>
9378         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
9379         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
9380         setlocale.
9381         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
9382         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
9383         * modules/nl_langinfo (Depends-on): Add setlocale-null.
9385 2019-12-17  Bruno Haible  <bruno@clisp.org>
9387         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
9388         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
9389         stack-allocated buffer to assemble each result and different static
9390         buffers to return it.
9391         * tests/test-nl_langinfo-mt.c: New file.
9392         * modules/nl_langinfo-tests (Files): Add it.
9393         (Depends-on): Add thread, nanosleep.
9394         (Makefile.am): Build test-nl_langinfo-mt test.
9396 2019-12-17  Bruno Haible  <bruno@clisp.org>
9398         langinfo: Document more details.
9399         * doc/posix-headers/langinfo.texi: List platform details.
9400         * doc/posix-functions/nl_langinfo.texi: Likewise.
9402 2019-12-17  Bruno Haible  <bruno@clisp.org>
9404         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
9405         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
9406         and Martin Storsjö <martin@martin.st>
9407         in <https://savannah.gnu.org/bugs/?57406>.
9408         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
9409         mingw.
9411 2019-12-17  Bruno Haible  <bruno@clisp.org>
9413         glob: Avoid warning on mingw.
9414         Reported by Christian Biesinger <cbiesinger@google.com> in
9415         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
9416         * lib/glob.c (__stat64): Undefine first.
9418 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9420         xalloc: tune xzalloc for fresh allocations
9421         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
9422         because when the memory is freshly allocated from the OS via sbrk
9423         or mmap, calloc can avoid doing the memset.
9425         dfa: new function dfacopysyntax
9426         * lib/dfa.c (struct dfa): Move syntax member later so
9427         that dfacopysyntax can easily clear earlier members.
9428         (dfacopysyntax): New function, used by Gawk.
9430 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9432         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
9433         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
9434         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
9435         if not already defined.
9437         dfa: remove one dependency on MB_CUR_MAX
9438         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
9440         dfa: remove struct lexer_state.cur_mb_len
9441         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
9442         as it’s not needed and the code is simpler without it.
9443         All uses removed.
9445 2019-12-16  Bruno Haible  <bruno@clisp.org>
9447         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
9448         Reported by Arnold Robbins <arnold@skeeve.com>.
9449         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
9450         copied from lib/glthread/lock.h.
9451         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
9452         (setlocale_null_with_lock): If pthread_in_use() is false, use
9453         setlocale_null_unlocked directly.
9454         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
9455         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
9456         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
9457         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
9458         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
9459         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
9461 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9463         dfa: make dfasyntax thread-safe
9464         Problem reported by Bruno Haible in:
9465         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
9466         * lib/dfa.c: Do not include locale.h.
9467         (struct dfa): Remove simple_locale member.
9468         All uses replaced by localeinfo.simple.
9469         (using_simple_locale): Remove; now present (with some
9470         changes) in localeinfo.c.
9471         (dfasyntax): No need to initialize removed member.
9473         localeinfo: record whether locale is simple
9474         * lib/localeinfo.c (using_simple_locale): New function,
9475         copied here from lib/dfa.c but with a change: it uses
9476         strcoll for its heuristic, instead of using setlocale.
9477         This lets it be thread-safe.
9478         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
9480 2019-12-15  Bruno Haible  <bruno@clisp.org>
9482         duplocale: Fix multithread-safety bug on AIX.
9483         * lib/duplocale.c: Don't include <stdlib.h>.
9484         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
9485         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9486         Set LIB_DUPLOCALE.
9487         * modules/duplocale (Depends-on): Add setlocale-null.
9488         (Link): New section.
9489         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
9490         $(LIB_DUPLOCALE).
9492 2019-12-15  Bruno Haible  <bruno@clisp.org>
9494         setlocale-null: Add tests.
9495         * tests/test-setlocale_null.c: New file.
9496         * tests/test-setlocale_null-one.c: New file.
9497         * tests/test-setlocale_null-all.c: New file.
9498         * modules/setlocale-null-tests: New file.
9500         setlocale-null: New module.
9501         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
9502         setlocale_null): New declarations.
9503         * lib/setlocale_null.c: New file.
9504         * lib/setlocale-lock.c: New file.
9505         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
9506         * m4/setlocale_null.m4: New file.
9507         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
9508         GNULIB_SETLOCALE_NULL.
9509         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
9510         * modules/setlocale-null: New file.
9511         * doc/posix-functions/setlocale.texi: Mention the new module.
9513 2019-12-15  Bruno Haible  <bruno@clisp.org>
9515         lock tests: Skip test when no multithreading is enabled.
9516         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
9518 2019-12-14  Bruno Haible  <bruno@clisp.org>
9520         locale, duplocale, localename: Fix last patch.
9521         Reported by Daniel Richard G. in
9522         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
9523         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
9524         Don't define if locale_t does not exist.
9526 2019-12-13  Bruno Haible  <bruno@clisp.org>
9528         locale, duplocale, localename: Fix errors if locale_t does not exist.
9529         Reported by Daniel Richard G. in
9530         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
9531         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
9532         macros.
9533         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
9534         HAVE_NEWLOCALE.
9535         * tests/test-localename.c: Likewise.
9536         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
9537         HAVE_DUPLOCALE.
9538         * tests/test-locale-c++.cc: Likewise.
9540 2019-12-13  Bruno Haible  <bruno@clisp.org>
9542         wcstok: Fix test failure on HP-UX.
9543         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
9544         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
9546 2019-12-12  Bruno Haible  <bruno@clisp.org>
9548         strtod, strtold tests: Avoid test failure on AIX 7.2.
9549         * tests/test-strtod1.c (main): Allow implementations in which ',' and
9550         '.' both are radix characters.
9551         * tests/test-strtold1.c (main): Likewise.
9553 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9555         dfa: prefer ptrdiff_t for API, too
9556         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
9557         but do this only for internal use for now.
9558         * NEWS: Mention the API change.
9559         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
9560         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
9561         values known to be nonnegative.
9562         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
9563         Prefer idx_t or ptrdiff_t to size_t for API.
9564         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
9565         Prefer ptrdiff_t to size_t for API.
9567         stdalign: port to xlclang 16.01
9568         Problem reportd by Bruno Haible in:
9569         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
9570         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
9571         ((__aligned__ (...))) with xlclang, as a top-level
9572         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
9573         xlclang version 16.01.0000.0001; the alignment directive is ignored.
9575 2019-12-12  Bruno Haible  <bruno@clisp.org>
9577         duplocale: Fix test failure on AIX 7.2 with xlclang.
9578         * lib/duplocale.c: Include <stdlib.h>.
9579         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
9580         value.
9582 2019-12-12  Bruno Haible  <bruno@clisp.org>
9584         stddef: Document the AIX xlc issue.
9585         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
9587 2019-12-12  Bruno Haible  <bruno@clisp.org>
9589         duplocale: Don't attempt to override if locale_t does not exist.
9590         Reported by Daniel Richard G. in
9591         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
9592         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
9593         HAVE_DUPLOCALE to 0.
9595 2019-12-12  Bruno Haible  <bruno@clisp.org>
9597         wcwidth: Avoid test failure on AIX 7.2.
9598         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
9599         negative.
9600         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
9602 2019-12-12  Bruno Haible  <bruno@clisp.org>
9604         ilogbl: Work around Cygwin bug.
9605         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
9606         correct.
9607         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
9609 2019-12-12  Bruno Haible  <bruno@clisp.org>
9611         strtold: Work around Cygwin bug.
9612         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
9613         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
9614         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
9615         STRTOLD_HAS_UNDERFLOW_BUG is defined.
9616         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
9618 2019-12-12  Bruno Haible  <bruno@clisp.org>
9620         strtold: Fix autoconf test.
9621         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
9623 2019-12-11  Bruno Haible  <bruno@clisp.org>
9625         fsync tests: Skip test that is known to fail.
9626         * doc/posix-functions/fsync.texi: Update list of platforms.
9627         * tests/test-fsync.c (main): Skip test with read-only file descriptors
9628         that is known to fail on AIX and Cygwin.
9630 2019-12-11  Bruno Haible  <bruno@clisp.org>
9632         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
9633         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
9634         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
9635         HAVE_GETADDRINFO as a C macro.
9636         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
9637         declare as replacement functions.
9638         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
9639         define as no-op overrides.
9640         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
9641         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
9642         * modules/getaddrinfo (Depends-on, configure.ac): Test
9643         REPLACE_GETADDRINFO.
9644         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
9645         problem.
9646         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
9647         convention problems.
9649 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9651         dfa: prefer signed integers for internals
9652         Signed integers can be checked more easily for integer overflow.
9653         * lib/dfa.c (position, struct lexer_state, struct parser_state)
9654         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
9655         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
9656         (nsubtoks, copytoks, closure, alloc_position_set, delete)
9657         (replace, state_index, epsclosure, charclass_context)
9658         (state_separate_contexts, merge_nfa_state, dfaoptimize)
9659         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
9660         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
9661         (comsubs, inboth, allocmust):
9662         Prefer a signed to an unsigned integer when calculating indexes,
9663         unless the integer is part of the external API (a bigger deal,
9664         and to be done later).
9666         dfa: fix index overflow
9667         * lib/dfa.c (compare): Avoid integer overflow when analyzing
9668         very large regular expressions.
9670         dfa: update commentary for previous change
9671         * NEWS: Mention the change.
9672         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
9674 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9676         dfa: separate parse and compile phase
9677         ‘dfamust’ must be called after parsing and before tokens are
9678         reordered, but both are executed in the compilation phase.
9679         Token reordering was introduced in Gnulib commit
9680         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
9681         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
9682         * lib/dfa.c (dfaparse): Change it to global function.
9683         (dfacomp): If first argument is NULL, skip parse.
9684         * lib/dfa.h: (dfaparse): Add a prototype.
9686 2019-12-11  Bruno Haible  <bruno@clisp.org>
9688         unistd tests: Fix link error on MSVC.
9689         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
9690         $(LIB_GETLOGIN).
9692 2019-12-11  Bruno Haible  <bruno@clisp.org>
9694         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
9695         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
9696         and POSIX substitutes are supported in C++ mode.
9697         * NEWS: Likewise.
9699 2019-12-11  Bruno Haible  <bruno@clisp.org>
9701         stddef: Fix compilation error in C++ mode on MSVC.
9702         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
9703         instead, include <cstddef>.
9705 2019-12-11  Bruno Haible  <bruno@clisp.org>
9707         unistd: Fix compilation error in C++ mode on MSVC.
9708         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
9709         does not have <unistd.h>.
9711 2019-12-11  Bruno Haible  <bruno@clisp.org>
9713         locale: Fix compilation error in C++ mode on MSVC.
9714         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
9715         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
9716         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
9717         int_n_sep_by_space): Define as macros on MSVC.
9719 2019-12-11  Bruno Haible  <bruno@clisp.org>
9721         wchar: Fix compilation error in C++ mode on MSVC.
9722         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
9724 2019-12-11  Bruno Haible  <bruno@clisp.org>
9726         pthread-thread: Fix compilation error in C++ mode on MSVC.
9727         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
9728         _GL_CXXALIAS_RPL invocation.
9730 2019-12-08  Bruno Haible  <bruno@clisp.org>
9732         Fix compilation errors in C++ mode on Haiku.
9733         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
9734         non-glibc systems.
9735         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
9736         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9737         posix_spawnattr_setschedparam): Likewise.
9738         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
9739         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9740         * lib/unistd.in.h (usleep): Likewise.
9742 2019-12-08  Bruno Haible  <bruno@clisp.org>
9744         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
9745         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
9746         * modules/fseeko (configure.ac-early): Require it instead of
9747         AC_FUNC_FSEEKO.
9748         * modules/ftello (configure.ac-early): Likewise.
9749         * modules/fflush (configure.ac-early): Likewise.
9751 2019-12-08  Bruno Haible  <bruno@clisp.org>
9753         Fix compilation error in C++ mode on HP-UX 11.
9754         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
9755         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
9757 2019-12-08  Bruno Haible  <bruno@clisp.org>
9759         Fix compilation errors on HP-UX 11/ia64.
9760         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
9761         _GL_FUNCDECL_SYS.
9763 2019-12-08  Bruno Haible  <bruno@clisp.org>
9765         Fix compilation error in C++ mode on OpenBSD.
9766         * lib/signal.in.h (signal): Declare on OpenBSD.
9768 2019-12-08  Bruno Haible  <bruno@clisp.org>
9770         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
9771         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
9772         instead of #error.
9774 2019-12-08  Bruno Haible  <bruno@clisp.org>
9776         Fix compilation errors in C++ mode on FreeBSD.
9777         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
9778         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
9779         * lib/threads.in.h (thrd_exit): Likewise.
9780         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
9782 2019-12-08  Bruno Haible  <bruno@clisp.org>
9784         Fix compilation errors in C++ mode on macOS and FreeBSD.
9785         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
9786         or FreeBSD with clang, use the approach without C preprocessor macro.
9788 2019-12-07  Bruno Haible  <bruno@clisp.org>
9790         Fix compilation errors in C++ mode on AIX with xlclang++.
9791         Reported by Christian Biesinger <cbiesinger@google.com> in
9792         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9793         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
9795 2019-12-07  Bruno Haible  <bruno@clisp.org>
9797         Document compilation error in C++ mode on NetBSD 8.0.
9798         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
9800 2019-12-07  Bruno Haible  <bruno@clisp.org>
9802         Fix compilation errors in C++ mode on Solaris 10.
9803         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
9804         to non-empty on Solaris with a non-GCC compiler.
9805         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
9807 2019-12-07  Bruno Haible  <bruno@clisp.org>
9809         Reword NEWS entry.
9810         * NEWS: Reword the latest NEWS entry.
9812 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
9814         Move xstrtol_fatal to a new xstrtol-error module.
9815         * lib/xstrtol.h: Stop including <getopt.h>.
9816         (xstrtol_fatal): Move ...
9817         * lib/xstrtol-error.h: ... here.  New file.
9818         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
9819         * tests/test-xstrtol.c: Likewise.
9820         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
9821         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
9822         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
9823         * modules/xstrtol-error: New file.
9824         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
9825         * MODULES.html.sh: Add xstrtol-error.
9826         * NEWS: Document the change.
9828 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9830         nstrftime: better width support for %N, %z
9831         * lib/nstrftime.c (width_add, width_add1, width_cpy):
9832         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
9833         a new WIDTH parameter.
9834         (add, add1, cpy): Use these macros.
9835         (width_add): Do not treat digits == 0 as a special case,
9836         do not pad if padding is ‘-’, and do not use a negative width.
9837         (__strftime_internal): Redo formatting of nanoseconds and numeric
9838         timezones to avoid buffer misuse in unusual cases, and so that
9839         widths make more sense.  Add support for widths greater than 9 to
9840         the %N format; they are zero filled on the right.
9841         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
9843 2019-12-05  Bruno Haible  <bruno@clisp.org>
9845         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
9846         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
9847         set REPLACE_ISFINITE to 1.
9848         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
9849         REPLACE_ISINF to 1.
9850         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
9851         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
9852         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9853         * lib/threads.in.h (call_once): Likewise.
9854         * lib/iconv.in.h (iconv): Likewise.
9856 2019-12-05  Bruno Haible  <bruno@clisp.org>
9858         wchar: Add more C++ tests.
9859         Reported by Christian Biesinger <cbiesinger@google.com> in
9860         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9861         * tests/test-wchar-c++3.cc: New file.
9862         * modules/wchar-c++-tests (Files): Add it.
9863         (Makefile.am): Compile it.
9865 2019-12-05  Bruno Haible  <bruno@clisp.org>
9867         Add more C++ tests.
9869         assert-h: Add C++ tests.
9870         * tests/test-assert-h-c++.cc: New file.
9871         * tests/test-assert-h-c++2.cc: New file.
9872         * modules/assert-h-c++-tests: New file.
9873         * modules/assert-h-tests: New file.
9875         ctype: Add C++ tests.
9876         * tests/test-ctype-c++.cc: New file.
9877         * tests/test-ctype-c++2.cc: New file.
9878         * modules/ctype-c++-tests: New file.
9879         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
9881         errno: Add C++ tests.
9882         * tests/test-errno-c++.cc: New file.
9883         * tests/test-errno-c++2.cc: New file.
9884         * modules/errno-c++-tests: New file.
9885         * modules/errno-tests (Depends-on): Add errno-c++-tests.
9887         float: Add C++ tests.
9888         * tests/test-float-c++.cc: New file.
9889         * tests/test-float-c++2.cc: New file.
9890         * modules/float-c++-tests: New file.
9891         * modules/float-tests (Depends-on): Add float-c++-tests.
9893         inttypes: Add more C++ tests.
9894         * tests/test-inttypes-c++2.cc: New file.
9895         * modules/inttypes-c++-tests (Files): Add it.
9896         (Makefile.am): Compile it.
9898         limits-h: Add C++ tests.
9899         * tests/test-limits-h-c++.cc: New file.
9900         * tests/test-limits-h-c++2.cc: New file.
9901         * modules/limits-h-c++-tests: New file.
9902         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
9904         stdarg: Add C++ tests.
9905         * tests/test-stdarg-c++.cc: New file.
9906         * tests/test-stdarg-c++2.cc: New file.
9907         * modules/stdarg-c++-tests: New file.
9908         * modules/stdarg-tests: New file.
9910         stdbool: Add C++ tests.
9911         * tests/test-stdbool-c++.cc: New file.
9912         * tests/test-stdbool-c++2.cc: New file.
9913         * modules/stdbool-c++-tests: New file.
9914         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
9916         stddef: Add C++ tests.
9917         * tests/test-stddef-c++.cc: New file.
9918         * tests/test-stddef-c++2.cc: New file.
9919         * modules/stddef-c++-tests: New file.
9920         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
9922         stdint: Add C++ tests.
9923         * tests/test-stdint-c++.cc: New file.
9924         * tests/test-stdint-c++2.cc: New file.
9925         * modules/stdint-c++-tests: New file.
9926         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
9928         wchar: Add more C++ tests.
9929         * tests/test-wchar-c++2.cc: New file.
9930         * modules/wchar-c++-tests (Files): Add it.
9931         (Makefile.am): Compile it.
9933         wctype-h: Add more C++ tests.
9934         * tests/test-wctype-h-c++2.cc: New file.
9935         * modules/wctype-h-c++-tests (Files): Add it.
9936         (Makefile.am): Compile it.
9938 2019-12-04  Bruno Haible  <bruno@clisp.org>
9940         Fix compilation errors in C++ mode with xlclang++ on AIX.
9941         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
9942         C++ mode on AIX.
9943         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
9944         without C preprocessor macro.
9945         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
9946         _GL_CXXALIAS_SYS.
9947         * lib/threads.in.h (thrd_exit): Likewise.
9949 2019-12-04  Bruno Haible  <bruno@clisp.org>
9951         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
9952         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
9953         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
9955 2019-12-04  Bruno Haible  <bruno@clisp.org>
9957         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
9958         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
9959         _GL_CXXALIASWARN invocation on non-glibc systems.
9960         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
9961         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
9962         iswctype, towlower, towupper): Likewise.
9964 2019-12-03  Bruno Haible  <bruno@clisp.org>
9966         Avoid hassles caused by [[noreturn]] in C++.
9967         Reported by Christian Biesinger <cbiesinger@google.com> in
9968         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
9969         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
9970         * lib/_Noreturn.h: Likewise.
9972 2019-12-02  Bruno Haible  <bruno@clisp.org>
9974         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
9975         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
9976         LIBMULTITHREAD.
9977         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
9978         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
9979         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
9980         gl_THREADLIB.
9981         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
9983 2019-12-02  Bruno Haible  <bruno@clisp.org>
9985         Fix some more link errors with --enable-threads=isoc.
9986         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
9987         * modules/pthread-rwlock (Depends-on): Likewise.
9989 2019-12-02  Bruno Haible  <bruno@clisp.org>
9991         Fix link errors with --enable-threads=posix on AIX.
9992         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
9993         program with $(LIBTHREAD).
9994         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
9995         program with $(LIBTHREAD).
9997 2019-12-02  Bruno Haible  <bruno@clisp.org>
9999         Fix link errors with --enable-threads=posix on AIX.
10000         * modules/mbrtowc (Link): New section.
10001         * modules/acl (Link): Likewise.
10002         * modules/argmatch (Link): Likewise.
10003         * modules/backup-rename (Link): Likewise.
10004         * modules/backupfile (Link): Likewise.
10005         * modules/closein (Link): Likewise.
10006         * modules/closeout (Link): Likewise.
10007         * modules/copy-file (Link): Likewise.
10008         * modules/csharpcomp (Link): Likewise.
10009         * modules/csharpexec (Link): Likewise.
10010         * modules/dfa (Link): Likewise.
10011         * modules/exclude (Link): Likewise.
10012         * modules/fnmatch (Link): Likewise.
10013         * modules/fnmatch-gnu (Link): Likewise.
10014         * modules/fnmatch-posix (Link): Likewise.
10015         * modules/glob (Link): Likewise.
10016         * modules/human (Link): Likewise.
10017         * modules/javacomp (Link): Likewise.
10018         * modules/javaexec (Link): Likewise.
10019         * modules/javaversion (Link): Likewise.
10020         * modules/mbfile (Link): Likewise.
10021         * modules/mbiter (Link): Likewise.
10022         * modules/mbmemcasecmp (Link): Likewise.
10023         * modules/mbmemcasecoll (Link): Likewise.
10024         * modules/mbrlen (Link): Likewise.
10025         * modules/mbscasecmp (Link): Likewise.
10026         * modules/mbscasestr (Link): Likewise.
10027         * modules/mbschr (Link): Likewise.
10028         * modules/mbscspn (Link): Likewise.
10029         * modules/mbsinit (Link): Likewise.
10030         * modules/mbslen (Link): Likewise.
10031         * modules/mbsncasecmp (Link): Likewise.
10032         * modules/mbsnlen (Link): Likewise.
10033         * modules/mbsnrtowcs (Link): Likewise.
10034         * modules/mbspbrk (Link): Likewise.
10035         * modules/mbspcasecmp (Link): Likewise.
10036         * modules/mbsrchr (Link): Likewise.
10037         * modules/mbsrtowcs (Link): Likewise.
10038         * modules/mbssep (Link): Likewise.
10039         * modules/mbsspn (Link): Likewise.
10040         * modules/mbsstr (Link): Likewise.
10041         * modules/mbstok_r (Link): Likewise.
10042         * modules/mbswidth (Link): Likewise.
10043         * modules/mbuiter (Link): Likewise.
10044         * modules/mkdir-p (Link): Likewise.
10045         * modules/propername (Link): Likewise.
10046         * modules/quote (Link): Likewise.
10047         * modules/quotearg (Link): Likewise.
10048         * modules/quotearg-simple (Link): Likewise.
10049         * modules/regex-quote (Link): Likewise.
10050         * modules/rpmatch (Link): Likewise.
10051         * modules/sh-quote (Link): Likewise.
10052         * modules/system-quote (Link): Likewise.
10053         * modules/trim (Link): Likewise.
10054         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10055         * modules/unistdio/ulc-fprintf (Link): Likewise.
10056         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10057         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10058         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10059         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10060         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10061         * modules/xfreopen (Link): Likewise.
10062         * modules/xmemcoll (Link): Likewise.
10063         * modules/yesno (Link): Likewise.
10064         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
10065         * modules/argmatch-tests (Makefile.am): Likewise.
10066         * modules/closein-tests (Makefile.am): Likewise.
10067         * modules/copy-file-tests (Makefile.am): Likewise.
10068         * modules/dfa-tests (Makefile.am): Likewise.
10069         * modules/fnmatch-tests (Makefile.am): Likewise.
10070         * modules/glob-tests (Makefile.am): Likewise.
10071         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10072         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10073         * modules/mbrtowc-tests (Makefile.am): Likewise.
10074         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10075         * modules/mbscasestr-tests (Makefile.am): Likewise.
10076         * modules/mbschr-tests (Makefile.am): Likewise.
10077         * modules/mbscspn-tests (Makefile.am): Likewise.
10078         * modules/mbsinit-tests (Makefile.am): Likewise.
10079         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10080         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10081         * modules/mbspbrk-tests (Makefile.am): Likewise.
10082         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10083         * modules/mbsrchr-tests (Makefile.am): Likewise.
10084         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10085         * modules/mbsspn-tests (Makefile.am): Likewise.
10086         * modules/mbsstr-tests (Makefile.am): Likewise.
10087         * modules/quotearg-tests (Makefile.am): Likewise.
10088         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10089         * modules/readtokens-tests (Makefile.am): Likewise.
10090         * modules/regex-quote-tests (Makefile.am): Likewise.
10091         * modules/sh-quote-tests (Makefile.am): Likewise.
10092         * modules/system-quote-tests (Makefile.am): Likewise.
10093         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10094         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10095         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10096         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10097         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10098         * modules/yesno-tests (Makefile.am): Likewise.
10100 2019-12-02  Bruno Haible  <bruno@clisp.org>
10102         Simplify link sections.
10103         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
10104         * modules/lock (Link): Likewise.
10105         * modules/cond (Link): Likewise.
10106         * modules/tls (Link): Likewise.
10107         * modules/yield (Link): Likewise.
10108         * modules/regex (Link): Likewise.
10109         * modules/localename (Link): Likewise.
10110         * modules/unicase/locale-language (Link): Likewise.
10111         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
10113 2019-12-02  Bruno Haible  <bruno@clisp.org>
10115         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
10116         * tests/test-thread_self.c (main): Disable test on AIX.
10118 2019-12-01  Bruno Haible  <bruno@clisp.org>
10120         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
10121         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
10122         gl_THREADLIB_EARLY_BODY.
10123         (gl_THREADLIB_EARLY_BODY): Invoke it.
10124         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
10125         (gl_THREADLIB_BODY): Invoke it.
10126         (gl_PTHREADLIB): New macro.
10127         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
10128         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
10129         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
10130         * modules/pthread-h (Files): Add threadlib.m4.
10131         (Depends-on): Remove threadlib.
10132         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
10133         and _THREAD_SAFE here.
10134         (Link): Use LIBPTHREAD, not LIBTHREAD.
10135         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
10136         LIBMULTITHREAD.
10137         * modules/pthread-once (Link): Likewise.
10138         * modules/pthread-mutex (Link): Likewise.
10139         * modules/pthread-rwlock (Link): Likewise.
10140         * modules/pthread-cond (Link): Likewise.
10141         * modules/pthread-tss (Link): Likewise.
10142         * modules/pthread-spin (Link): Likewise.
10143         * modules/pthread (Link): Likewise.
10144         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
10145         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
10146         * modules/pthread-once-tests (test_pthread_once1_LDADD,
10147         test_pthread_once2_LDADD): Likewise.
10148         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
10149         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
10150         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
10151         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
10153 2019-12-01  Bruno Haible  <bruno@clisp.org>
10155         cond: State linking requirements.
10156         * modules/cond (Link): New section.
10158 2019-12-01  Bruno Haible  <bruno@clisp.org>
10160         threadlib: Remove unnecessary file (left over from 2019-07-06).
10161         * modules/threadlib (Files): Remove config.rpath.
10163 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
10165         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
10166         Reported by Dagobert Michelsen <dam@opencsw.org> in
10167         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
10168         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
10169         list of strings instead of one string.
10170         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
10171         * pygnulib/GLImport.py (execute): Likewise.
10173 2019-11-27  Bruno Haible  <bruno@clisp.org>
10175         openpty, forkpty: Fix build error on Solaris 11.4.
10176         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
10177         also in <termios.h>.
10178         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
10179         of the function also in <termios.h>.
10180         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
10181         * doc/glibc-functions/forkpty.texi: Likewise.
10183 2019-11-27  Bruno Haible  <bruno@clisp.org>
10185         New options --enable-threads=isoc and --enable-threads=isoc+posix.
10186         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
10187         --enable-threads=isoc and --enable-threads=isoc+posix.
10188         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
10189         When both the ISO C and the POSIX threads API are available, choose
10190         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
10191         --enable-threads=isoc+posix was specified. When only the ISO C threads
10192         API is available and --enable-threads=iso was specified, choose
10193         USE_ISOC_THREADS.
10194         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
10195         USE_ISOC_AND_POSIX_THREADS.
10196         * lib/glthread/lock.c: Likewise.
10197         * lib/glthread/cond.h: Likewise.
10198         * lib/glthread/cond.c: Likewise.
10199         * lib/glthread/tls.h: Likewise.
10200         * lib/glthread/tls.c: Likewise.
10201         * lib/glthread/yield.h: Likewise.
10202         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
10203         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
10204         * lib/glthread/thread.c: Likewise.
10205         * lib/glthread/threadlib.c: Likewise.
10206         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
10207         USE_ISOC_AND_POSIX_THREADS.
10208         * tests/test-cond.c: Consider USE_ISOC_THREADS and
10209         USE_ISOC_AND_POSIX_THREADS.
10210         * tests/test-tls.c: Likewise.
10211         * tests/test-thread_create.c (main): Likewise.
10212         * tests/test-pthread-cond.c: Likewise.
10213         * tests/test-pthread-mutex.c: Likewise.
10214         * tests/test-pthread-once2.c: Likewise.
10215         * tests/test-pthread-rwlock.c: Likewise.
10216         * tests/test-pthread-tss.c: Likewise.
10217         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
10218         USE_POSIX_THREADS.
10220 2019-11-24  Bruno Haible  <bruno@clisp.org>
10222         mbrtowc: Modernize autoconf test.
10223         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
10224         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
10225         try a UTF-8 locale.
10226         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
10228 2019-11-24  Bruno Haible  <bruno@clisp.org>
10230         Fix errors in C++ mode on mingw.
10231         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
10232         instead of _GL_CXXALIAS_SYS.
10233         * lib/signal.in.h (pthread_sigmask): Likewise.
10234         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
10235         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10236         Likewise.
10237         * lib/wchar.in.h (btowc): Likewise.
10239 2019-11-24  Bruno Haible  <bruno@clisp.org>
10241         sys_time: Fix errors in C++ mode on mingw.
10242         * lib/sys_time.in.h (timeval): Restore the redirection
10243         '#define timeval rpl_timeval', for when the symbol timeval is being used
10244         outside the 'gnulib' namespace.
10245         * lib/sys_select.in.h (select): In C++, write 'timeval', not
10246         'struct timeval'.
10248 2019-11-24  Bruno Haible  <bruno@clisp.org>
10250         iswctype: Fix errors in C++ mode on mingw.
10251         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
10252         is 1.
10253         * lib/iswctype.c (iswctype): Add another implementation, for the
10254         GNULIB_defined_wint_t case.
10255         * modules/iswctype (configure.ac): Compile iswctype.c also if
10256         GNULIB_OVERRIDES_WINT_T is 1.
10258 2019-11-24  Bruno Haible  <bruno@clisp.org>
10260         windows-timedmutex: Fix errors in C++ mode on mingw.
10261         * lib/windows-timedmutex.h: Add closing brace.
10263 2019-11-24  Bruno Haible  <bruno@clisp.org>
10265         Fix errors in C++ mode on Cygwin.
10266         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
10267         _GL_CXXALIAS_SYS.
10269 2019-11-24  Bruno Haible  <bruno@clisp.org>
10271         time_r: Fix for mingw (regression from 2019-11-16).
10272         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
10273         AC_LINK_IFELSE test only if the function does not appear to exist.
10275 2019-11-24  Bruno Haible  <bruno@clisp.org>
10277         wcstok: Add tests.
10278         * tests/test-wcstok.c: New file.
10279         * modules/wcstok-tests: New file.
10281 2019-11-24  Bruno Haible  <bruno@clisp.org>
10283         wcstok: Work around wrong signature on native Windows.
10284         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
10285         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
10286         REPLACE_WCSTOK.
10287         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
10288         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
10289         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
10290         * doc/posix-functions/wcstok.texi: Mention the problem.
10292 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10294         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
10295         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
10296         remove workaround for GCC bug 91450 as the bug should be fixed
10297         there too.
10299 2019-11-21  Bruno Haible  <bruno@clisp.org>
10301         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
10302         Reported by Christian Biesinger <cbiesinger@google.com> in
10303         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
10304         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
10305         non-glibc systems.
10306         * lib/locale.in.h (localeconv, setlocale): Likewise.
10307         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
10308         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
10309         rint, round, trunc): Likewise.
10310         * lib/monetary.in.h (strfmon_l): Likewise.
10311         * lib/pthread.in.h (pthread_mutexattr_getrobust,
10312         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
10313         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
10314         pthread_spin_destroy): Likewise.
10315         * lib/signal.in.h (raise, signal): Likewise.
10316         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
10317         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
10318         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
10319         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
10320         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
10321         Likewise.
10322         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
10323         Likewise.
10324         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
10325         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
10326         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
10327         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
10328         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
10329         wcsftime): Likewise.
10330         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
10332 2019-11-21  Bruno Haible  <bruno@clisp.org>
10334         Fix various errors in _GL_CXXALIAS_SYS invocations.
10335         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
10336         _GL_CXXALIAS_SYS.
10337         * lib/pthread.in.h (pthread_mutexattr_gettype,
10338         pthread_mutexattr_getrobust): Likewise.
10339         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
10340         * lib/sys_socket.in.h (recv, send): Likewise.
10341         * lib/unistd.in.h (getdtablesize): Likewise.
10342         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
10343         'struct timeval'.
10345 2019-11-21  Bruno Haible  <bruno@clisp.org>
10347         math tests: Update after 2019-08-28 change.
10348         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
10349         return type of 'bool', not 'int'.
10351 2019-11-21  Bruno Haible  <bruno@clisp.org>
10353         pthread-spin: Fix errors in C++ mode.
10354         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
10355         functions as nonexistent when <pthread.h> exists but does not define
10356         the pthread_spinlock_t type.
10358 2019-11-21  Bruno Haible  <bruno@clisp.org>
10360         pthread-mutex: Fix errors in C++ mode.
10361         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
10362         pthread_mutexattr_getrobust exists. If not, define
10363         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10364         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
10365         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
10366         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10367         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
10368         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
10369         definition.
10371 2019-11-19  Bruno Haible  <bruno@clisp.org>
10373         threads-h tests: Fix typo.
10374         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
10376 2019-11-19  Bruno Haible  <bruno@clisp.org>
10378         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
10379         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
10380         to 'const pthread_attr_t *'.
10381         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
10382         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
10384 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10386         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
10387         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
10388         work around GCC bug 91450 as the bug should be fixed there.
10390 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10392         glob: get closer to glibc glob.c
10393         Omit differences from glibc when the differences don’t matter.
10394         * lib/glob.c [_LIBC]: Include shlib-compat.h.
10395         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
10396         (glob_lstat): New function.
10397         (glob_in_dir): Use it.
10398         (GLOB_ATTRIBUTE): Define to empty if not already defined.
10399         Use changed.
10401 2019-11-18  Bruno Haible  <bruno@clisp.org>
10403         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
10404         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
10405         UINTPTR_MAX): Consider _WIN64.
10406         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
10407         a pointer.
10409 2019-11-18  Bruno Haible  <bruno@clisp.org>
10411         stdint: Fix value of WINT_MAX when we override wint_t.
10412         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
10413         when GNULIB_OVERRIDES_WINT_T is 1.
10415 2019-11-18  Bruno Haible  <bruno@clisp.org>
10417         vcs-to-changelog: New module.
10418         * modules/vcs-to-changelog: New file.
10419         * MODULES.html.sh (func_all_modules): Add it.
10421 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10423         vcs-to-changelog: New script to generate ChangeLog-like output.
10424         Discussion:
10425         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
10426         * build-aux/vcs_to_changelog.py: New file.
10427         * build-aux/vcstocl/frontend_c.py: New file.
10428         * build-aux/vcstocl/misc_util.py: New file.
10429         * build-aux/vcstocl/vcs_git.py: New file.
10431 2019-11-18  Bruno Haible  <bruno@clisp.org>
10433         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
10434         Reported by Keith Marshall <keith@users.osdn.me> in
10435         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
10436         and <https://osdn.net/projects/mingw/ticket/39677>.
10437         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
10438         already been defined by mingw's <crtdefs.h>.
10440 2019-11-18  Bruno Haible  <bruno@clisp.org>
10442         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
10443         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
10444         conditionally enabled.
10446 2019-11-18  Bruno Haible  <bruno@clisp.org>
10448         gc: Mirror libgcrypt.m4 from libgcrypt.
10449         * config/srclistvars.sh (LIBGCRYPT): New variable.
10450         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
10452 2019-11-17  Bruno Haible  <bruno@clisp.org>
10454         locale, localename: Improve z/OS support.
10455         Reported by Daniel Richard G. in
10456         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
10457         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
10458         gl_LOCALE_H.
10459         (gl_LOCALE_H): Require it.
10460         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
10461         defined, don't even check for newlocale, duplocale, freelocale.
10462         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
10463         locale_t is not defined.
10465 2019-11-17  Bruno Haible  <bruno@clisp.org>
10467         havelib: Make libdirstems processing more flexible.
10468         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
10469         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
10470         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
10471         patch from 2017-02-19).
10472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
10473         libdirs, even when the first one exists as a directory.
10475 2019-11-17  Bruno Haible  <bruno@clisp.org>
10477         havelib: Match the bitness when searching for libraries.
10478         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
10479         acl_is_expected_elfclass.
10480         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
10481         file exists, in ELF, also test whether it has the ELF class that
10482         corresponds to the host's bitness.
10484 2019-11-17  Bruno Haible  <bruno@clisp.org>
10486         host-cpu-c-abi: Add support for unknown CPUs.
10487         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
10488         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
10489         32-bit or 64-bit.
10491 2019-11-17  Bruno Haible  <bruno@clisp.org>
10493         havelib: Remove redundant code.
10494         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
10495         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
10497 2019-11-17  Bruno Haible  <bruno@clisp.org>
10499         havelib: Fix a bug in dependency processing.
10500         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
10501         of .la files, don't overwrite the value of additional_libdir for the
10502         next rounds.
10504 2019-11-16  Bruno Haible  <bruno@clisp.org>
10506         wctype-h: When overriding wint_t, override also the related functions.
10507         Reported by Christian Biesinger <cbiesinger@google.com> in
10508         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
10509         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
10510         REPLACE_ISWCNTRL to 1.
10511         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
10512         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
10513         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
10514         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
10515         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
10516         on mingw.
10517         * doc/posix-headers/wctype.texi: Likewise.
10519 2019-11-16  Bruno Haible  <bruno@clisp.org>
10521         time_r: Fix for mingw.
10522         Reported by Christian Biesinger <cbiesinger@google.com> in
10523         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
10524         * lib/time.in.h: On mingw, include <unistd.h>.
10525         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
10526         <time.h>. Test for localtime_r in a way that works when it is defined
10527         as an inline function.
10529 2019-11-13  Bruno Haible  <bruno@clisp.org>
10531         havelib: Revert last change.
10532         * build-aux/config.rpath: Revert last change. We can add msys2 support
10533         when it has been added to libtool.m4 upstream.
10535 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10537         config: add msys support
10538         Requested by Arnold Robbins in:
10539         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
10540         He also requested a change to config.guess, which I’ll forward
10541         upstream.
10542         * build-aux/ar-lib (func_file_conv):
10543         * build-aux/compile (func_file_conv):
10544         * build-aux/config.rpath (wl, with_gnu_ld)
10545         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
10546         Treat msys like cygwin.
10548 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10550         regex: now back in sync with glibc
10551         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
10552         regexec.c got merged into glibc and are now copies again.
10554 2019-10-27  Bruno Haible  <bruno@clisp.org>
10556         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
10557         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
10558         statement.
10559         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
10560         32-bit CPUs.
10562 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10564         timespec-add, timespec-sub: simplify
10565         * lib/timespec-add.c (timespec_add):
10566         * lib/timespec-sub.c (timespec_sub):
10567         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
10568         work on unsigned integers.
10570 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10572         nstrftime: speed up integer overflow checking
10573         * lib/nstrftime.c: Include intprops.h.
10574         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
10575         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
10576         instead of doing it by hand.
10577         * modules/nstrftime (Depends-on): Add intprops.
10579         Port better to GCC under macOS
10580         Work around macOS header that has ‘#define __has_builtin(x) 0’
10581         when compiled by GCC.  Apple really, really doesn’t want you to
10582         use GCC, apparently.  Rroblem reported by Akim Demaille in:
10583         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
10584         The fix is to not trust __has_builtin when being compiled by
10585         recent-enough GCC.
10586         * lib/intprops.h (__has_builtin)
10587         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
10588         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
10589         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
10590         Remove.  All uses removed.
10591         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
10592         directly, if defined and if not newer GCC.
10593         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
10594         New macro, that use __has_builtin directly, if defined and if
10595         not newer GCC.
10596         (assume): Use them.
10598 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
10600         maintainer-makefile: update rule for argmatch.
10601         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
10603 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
10605         bitset: let freeing functions accept NULL.
10606         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
10607         given NULL.
10608         * lib/bitset.h: Document that.
10609         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
10611 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
10613         inttypes: use more-robust test for int range
10614         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
10615         Problem reported by Dagobert Michelsen in:
10616         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
10617         * lib/inttypes.in.h: Rely only on limits.h when checking
10618         int range.
10620 2019-10-15  Bruno Haible  <bruno@clisp.org>
10622         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
10623         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
10624         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
10625         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
10626         term_ostream_set_hyperlink): New functions.
10627         (term_styled_ostream_get_hyperlink_ref,
10628         term_styled_ostream_get_hyperlink_id,
10629         term_styled_ostream_set_hyperlink): New function aliases.
10631 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10633         update-copyright: use en dashes in .texi ranges
10634         * build-aux/update-copyright: Match year ranges like "1998--2019",
10635         which are used in the Autoconf manual.  Also, update ranges in
10636         .tex, .texi, and .texinfo files to use en dashes instead of
10637         hyphens.
10639 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10641         * config/srclist.txt: Remove posix/regex_internal.c for now.
10643 2019-10-13  Bruno Haible  <bruno@clisp.org>
10645         git-version-gen: Allow 'snapshot' as .tarball-version contents.
10646         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
10647         contents to the empty string.
10649 2019-10-12  Bruno Haible  <bruno@clisp.org>
10651         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
10652         * tests/test-intprops.c (main): Disable two more tests when using
10653         HP-UX cc.
10655 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10657         Simplify and regularize regex use of ‘assert’
10658         Also, tell GCC about the asserts even when compiling without
10659         debugging, to give it further optimization opportunities.
10660         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
10661         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
10662         (parse_expression, parse_bracket_exp):
10663         * lib/regex_internal.c (build_wcs_buffer)
10664         (build_wcs_upper_buffer, re_string_reconstruct)
10665         (re_string_context_at):
10666         * lib/regexec.c (re_search_stub, re_copy_regs)
10667         (re_search_internal, prune_impossible_nodes, check_matching)
10668         (check_halt_state_context, set_regs, sift_states_backward)
10669         (build_sifted_states, transit_state_mb, transit_state_bkref)
10670         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
10671         (match_ctx_add_subtop):
10672         Use it instead of plain ‘assert’.
10674 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10676         regex: omit debug assignment when not debugging
10677         * lib/regexec.c (re_search_internal) [!DEBUG]:
10678         Remove unnecessary assignment.
10680         regex: tell compiler there’s at most 256 arcs out
10681         Partly this is to help the reader (and maybe help GCC);
10682         partly this is to pacify Coverity.
10683         * lib/regex_internal.h: Include verify.h.
10684         * lib/regexec.c (group_nodes_into_DFAstates):
10685         Tell the compiler that ndests cannot exceed SBC_MAX.
10686         * modules/regex (Depends-on): Add ‘verify’.
10688         regex: simplify by assuming C99
10689         * config/srclist.txt: Comment out regex_internal.h and regexec.c
10690         temporarily.
10691         * lib/regex_internal.h (lock_define, re_match_context_t):
10692         Simplify by assuming C99 macros and const.
10693         * lib/regexec.c (re_search_internal): Simplify by assuming C99
10694         initializers.  Remove unnecessary assignment, as mctx is now
10695         safely initialized earlier.
10697         regex: avoid copying of uninitialized storage
10698         * config/srclist.txt: Comment out regcomp.c temporarily.
10699         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
10700         Initialize even when not checking for lint, as the behavior is
10701         arguably undefined otherwise and Coverity warns about it.
10703 2019-10-06  Bruno Haible  <bruno@clisp.org>
10705         access tests: Fix test failure when run as root.
10706         * tests/test-access.c: Include root-uid.h.
10707         (geteuid): Define fallback.
10708         (main): Don't expect that writing to a read-only file would fail when
10709         running as root. Also, remove the created files at the end.
10710         * modules/access-tests (Depends-on): Add root-uid.
10711         (configure.ac): Test whether geteuid exists.
10713 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
10715         users.txt: add GNU nano
10716         Nano has been making use of gnulib since March 2017, version 2.8.0.
10718 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10720         bootstrap: simplify debugging of wget failures
10721         Problem reported by Tim Rühsen in:
10722         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
10723         * build-aux/bootstrap (po_download_command_format):
10724         Invoke wget with -nv instead of -q, to make debugging easier.
10726 2019-09-29  Bruno Haible  <bruno@clisp.org>
10728         avltree-list: Fix compilation warning (introduced on 2014-09-16).
10729         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
10730         'const' attribute.
10732 2019-09-29  Bruno Haible  <bruno@clisp.org>
10734         fbufmode: Fix compilation error on glibc >= 2.28 systems.
10735         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
10737 2019-09-28  Bruno Haible  <bruno@clisp.org>
10739         Update comments that refer to POSIX.
10740         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
10741         sentence about trailing slashes.
10742         * lib/fflush.c: Clarify the reasoning.
10743         * tests/test-fflush2.c: Cite the relevant sentence.
10745 2019-09-28  Bruno Haible  <bruno@clisp.org>
10747         access: Document limitations on Windows.
10748         Suggested by Zaretskii <eliz@gnu.org>.
10749         * doc/posix-functions/access.texi: Mention two limitations on Windows.
10751 2019-09-28  Bruno Haible  <bruno@clisp.org>
10753         findprog-in: Fix comment.
10754         Reported by Eli Zaretskii <eliz@gnu.org>.
10755         * lib/findprog.h (find_in_given_path): Extend description of EACCES
10756         condition.
10757         * lib/stat.c (rpl_stat): Fix typo in comment.
10758         * lib/utime.c (_gl_utimens_windows): Likewise.
10760 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10762         Update URLs and associated text
10763         (Thanks to Bruno Haible for proofreading this patch.)
10764         Prefer https: to http: in URLs where either will do, for the usual
10765         security reasons.  I also updated broken and/or moved URLs
10766         discovered during the process. In a few places I had to resort to
10767         archive.org, since I didn't find the originals elsewhere.
10769 2019-09-15  Paul Smith  <psmith@gnu.org>
10770             Bruno Haible  <bruno@clisp.org>
10772         findprog-in: Set errno when the search fails.
10773         * lib/findprog-in.c: Include <errno.h>.
10774         (find_in_given_path): Set errno before returning NULL.
10775         * lib/findprog.h (find_in_given_path): Update comment accordingly.
10776         Define the term "slash".
10778 2019-09-15  Bruno Haible  <bruno@clisp.org>
10780         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
10781         * modules/findprog (Depends-on): Add access.
10782         * modules/findprog-lgpl (Depends-on): Likewise.
10783         * modules/findprog-in (Depends-on): Likewise.
10785 2019-09-15  Bruno Haible  <bruno@clisp.org>
10787         access: Add tests.
10788         * tests/test-access.c: New file.
10789         * modules/access-tests: New file.
10791         access: New module.
10792         * lib/unistd.in.h (access): New declaration.
10793         * lib/access.c: New file.
10794         * m4/access.m4: New file.
10795         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
10796         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
10797         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
10798         REPLACE_ACCESS.
10799         * modules/access: New file.
10800         * tests/test-unistd-c++.cc (access): Check signature.
10801         * doc/posix-functions/access.texi: Mention the new module.
10803 2019-09-15  Bruno Haible  <bruno@clisp.org>
10805         fcntl-h: Fix compilation error of creat.c on MSVC.
10806         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
10807         defined.
10809 2019-09-15  Bruno Haible  <bruno@clisp.org>
10811         creat: Add tests.
10812         * tests/test-creat.c: New file, based on tests/test-open.h.
10813         * modules/creat-tests: New file.
10815         creat: New module.
10816         * lib/fcntl.in.h (creat): New declaration.
10817         * lib/creat.c: New file, based on lib/open.c.
10818         * m4/creat.m4: New file.
10819         * m4/open-slash.m4: New file, extracted from m4/open.m4.
10820         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
10821         Invoke gl_OPEN_TRAILING_SLASH_BUG.
10822         * modules/open (Files): Add m4/open-slash.m4.
10823         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
10824         REPLACE_CREAT.
10825         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
10826         * modules/creat: New file.
10827         * tests/test-fcntl-h-c++.cc (creat): Check signature.
10828         * doc/posix-functions/creat.texi: Mention the new module.
10830 2019-09-15  Bruno Haible  <bruno@clisp.org>
10832         open tests: Enhance test.
10833         * tests/test-open.h (test_open): Test the creation of an executable
10834         regular file. Also improve initial cleanup.
10836 2019-09-15  Bruno Haible  <bruno@clisp.org>
10838         intprops tests: Avoid build failure with HP-UX cc.
10839         * tests/test-intprops.c: Disable a check that makes HP cc choke with
10840         "error 4018: Macro param too large after substitution - use -H option.".
10842 2019-09-14  Bruno Haible  <bruno@clisp.org>
10844         Make autoconf tests work with -Werror=implicit-function-declaration.
10845         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
10846         towupper() declaration.
10847         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
10848         declaration.
10850 2019-09-14  Bruno Haible  <bruno@clisp.org>
10852         findprog-in: Better mimic the system on native Windows.
10853         Reported by Paul Smith <psmith@gnu.org>.
10854         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
10855         non-empty suffixes when the file name already contains a '.'.
10857 2019-09-10  Bruno Haible  <bruno@clisp.org>
10859         wctob: Fix autoconf test.
10860         Based on patch by Florian Weimer <fweimer@redhat.com>.
10861         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
10863 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
10865         xhash: provide hash_xinitialize.
10866         Suggested by Egor Pugin <egor.pugin@gmail.com>
10867         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
10868         * modules/xhash, lib/xhash.c: New.
10869         * lib/hash.h (hash_xinitialize): New.
10871 2019-09-09  Bruno Haible  <bruno@clisp.org>
10873         findprog-in: Make exec optimization optional.
10874         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
10875         (find_in_given_path): Add optimize_for_exec parameter.
10876         * lib/findprog-in.c (find_in_given_path): Likewise.
10878 2019-09-08  Bruno Haible  <bruno@clisp.org>
10880         Add option to assume the best, not the worst, when cross-compiling.
10881         Suggested by Jonas Termansen <sortie@maxsi.org>.
10882         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
10883         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
10884         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
10885         lt_cv_sys_argz_works.
10886         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
10887         ac_cv_func_calloc_0_nonnull.
10888         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
10889         --enable-cross-guesses for gl_cv_func_realpath_works.
10890         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
10891         gl_cv_func_cbrtl_ieee.
10892         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
10893         gl_cv_func_ceil_ieee.
10894         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
10895         gl_cv_func_ceilf_ieee.
10896         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
10897         gl_cv_func_ceill_ieee.
10898         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
10899         ac_cv_func_chown_works.
10900         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
10901         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
10902         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
10903         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
10904         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
10905         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
10906         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
10907         gl_cv_func_expl_works.
10908         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
10909         gl_cv_func_expm1_ieee.
10910         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
10911         gl_cv_func_expm1l_works.
10912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
10913         gl_cv_func_open_directory_works.
10914         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
10915         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
10916         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
10917         gl_cv_func_fchownat_empty_filename_works.
10918         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
10919         gl_cv_func_fdopendir_works.
10920         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
10921         gl_cv_func_floor_ieee.
10922         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
10923         gl_cv_func_floorf_ieee.
10924         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
10925         gl_cv_func_fma_works.
10926         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
10927         gl_cv_func_fmaf_works.
10928         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
10929         gl_cv_func_fmal_works.
10930         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
10931         gl_cv_func_fmod_ieee.
10932         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
10933         gl_cv_func_fmodf_ieee.
10934         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
10935         gl_cv_func_fmodl_ieee.
10936         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
10937         gl_cv_func_fpurge_works.
10938         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
10939         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
10940         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
10941         gl_cv_func_getcwd_null.
10942         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
10943         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
10944         gl_cv_func_working_getdelim.
10945         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
10946         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
10947         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
10948         gl_cv_func_getgroups_works.
10949         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
10950         am_cv_func_working_getline.
10951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
10952         for gl_cv_func_getopt_gnu.
10953         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
10954         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
10955         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
10956         gl_cv_func_hypot_ieee.
10957         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
10958         gl_cv_func_hypotf_ieee.
10959         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
10960         gl_cv_func_hypotl_ieee.
10961         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
10962         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
10963         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
10964         gl_cv_func_link_works.
10965         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
10966         gl_cv_func_linkat_slash.
10967         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
10968         gl_cv_func_log_ieee.
10969         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
10970         gl_cv_func_logf_ieee.
10971         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
10972         gl_cv_func_logl_works.
10973         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
10974         gl_cv_func_log10_ieee.
10975         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
10976         gl_cv_func_log10f_ieee.
10977         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
10978         gl_cv_func_log10l_works.
10979         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
10980         gl_cv_func_log1p_ieee.
10981         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
10982         gl_cv_func_log1pf_ieee.
10983         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
10984         gl_cv_func_log1pl_ieee.
10985         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
10986         gl_cv_func_log2_ieee.
10987         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
10988         gl_cv_func_log2f_ieee.
10989         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
10990         --enable-cross-guesses for
10991         gl_cv_func_lstat_dereferences_slashed_symlink.
10992         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
10993         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
10994         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
10995         gl_cv_C_locale_sans_EILSEQ.
10996         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
10997         gl_cv_func_memchr_works.
10998         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
10999         gl_cv_func_memmem_works_always.
11000         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
11001         gl_cv_func_memmem_works_fast.
11002         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
11003         gl_cv_func_mkdir_trailing_slash_works,
11004         gl_cv_func_mkdir_trailing_dot_works.
11005         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
11006         gl_cv_func_mkfifo_works.
11007         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
11008         gl_cv_func_mknod_works.
11009         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
11010         gl_cv_func_working_mkstemp.
11011         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
11012         gl_cv_func_working_mktime.
11013         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
11014         gl_cv_func_modf_ieee.
11015         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
11016         gl_cv_func_modff_ieee.
11017         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
11018         gl_cv_func_modfl_ieee.
11019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
11020         gl_cv_func_nanosleep.
11021         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
11022         gl_cv_func_perror_works.
11023         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
11024         gl_cv_func_printf_sizes_c99.
11025         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
11026         gl_cv_func_printf_infinite.
11027         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
11028         gl_cv_func_printf_infinite_long_double.
11029         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
11030         gl_cv_func_printf_directive_a.
11031         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
11032         gl_cv_func_printf_directive_f.
11033         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
11034         gl_cv_func_printf_flag_zero.
11035         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
11036         gl_cv_func_printf_enomem.
11037         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
11038         gl_cv_func_snprintf_truncation_c99.
11039         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
11040         gl_cv_func_snprintf_retval_c99.
11041         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
11042         gl_cv_func_snprintf_directive_n.
11043         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
11044         gl_cv_func_vsnprintf_zerosize_c99.
11045         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
11046         gl_cv_func_pselect_detects_ebadf.
11047         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11048         Obey --enable-cross-guesses for
11049         gl_cv_pthread_rwlock_rdlock_prefer_writer.
11050         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
11051         gl_cv_func_ptsname_sets_errno.
11052         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
11053         gl_cv_func_svid_putenv.
11054         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
11055         gl_cv_func_readlink_works.
11056         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
11057         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11058         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
11059         gl_cv_func_re_compile_pattern_working.
11060         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
11061         gl_cv_func_remainder_ieee.
11062         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
11063         gl_cv_func_remainderf_ieee.
11064         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
11065         gl_cv_func_remainderl_ieee.
11066         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
11067         gl_cv_func_rintl_works.
11068         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
11069         gl_cv_func_rmdir_works.
11070         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
11071         gl_cv_func_round_ieee.
11072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
11073         gl_cv_func_roundf_ieee.
11074         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
11075         gl_cv_func_roundl_ieee.
11076         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
11077         gl_cv_func_select_detects_ebadf.
11078         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
11079         gl_cv_func_setenv_works.
11080         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
11081         gl_cv_func_unsetenv_works.
11082         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
11083         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
11084         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
11085         gl_cv_func_sleep_works.
11086         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
11087         gl_cv_func_stat_file_slash.
11088         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
11089         gl_cv_func_stpncpy.
11090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
11091         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
11092         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
11093         gl_cv_func_strcasestr_linear.
11094         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
11095         gl_cv_func_working_strerror.
11096         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
11097         gl_cv_func_strerror_0_works.
11098         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
11099         --enable-cross-guesses for gl_cv_func_strerror_r_works.
11100         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
11101         gl_cv_func_strstr_works_always.
11102         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
11103         gl_cv_func_strstr_linear.
11104         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
11105         gl_cv_func_strtod_works.
11106         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
11107         gl_cv_func_strtold_works.
11108         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
11109         gl_cv_func_symlink_works.
11110         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
11111         gl_cv_func_symlinkat_works.
11112         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
11113         gl_cv_func_trunc_ieee.
11114         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
11115         gl_cv_func_truncf_ieee.
11116         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
11117         gl_cv_func_truncl_ieee.
11118         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
11119         gl_cv_func_tzset_clobber.
11120         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
11121         gl_cv_func_ungetc_works.
11122         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
11123         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
11124         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
11125         gl_cv_func_usleep_works.
11126         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
11127         gl_cv_func_futimesat_works.
11128         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
11129         gl_cv_func_working_utimes.
11130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
11131         gl_cv_func_wcwidth_works.
11132         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
11133         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
11134         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
11135         links for testing. Obey --enable-cross-guesses for
11136         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
11137         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
11139 2019-09-08  Bruno Haible  <bruno@clisp.org>
11141         Clarify that cross-compilation guesses are guesses.
11142         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
11143         cross-compiling.
11145 2019-09-08  Bruno Haible  <bruno@clisp.org>
11147         chown: Fix configure output (regression from 2019-03-23).
11148         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
11149         gl_cv_func_chown_follows_symlink variable.
11151 2019-09-08  Bruno Haible  <bruno@clisp.org>
11153         findprog-in: New module.
11154         Suggested by Paul Smith <psmith@gnu.org>.
11155         * lib/findprog.h (find_in_given_path): New declaration.
11156         * lib/findprog-in.c: New file, based on lib/findprog.c.
11157         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
11158         * modules/findprog-in: New file.
11160 2019-09-08  Bruno Haible  <bruno@clisp.org>
11162         findprog: Remove unused dependency.
11163         * modules/findprog (Depends-on): Remove strdup.
11165 2019-09-08  Bruno Haible  <bruno@clisp.org>
11167         findprog: Remove test that is obsolete since 2006-04-24.
11168         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
11170 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11172         bitset: style changes
11173         * lib/bitset/vector.c (vbitset_resize): Factor computation.
11174         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
11175         xzalloc to xcalloc.
11176         Suggested by Paul Eggert.
11178 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11180         bitset: check memory allocation
11181         Reported by 江 祖铭 (Zu-Ming Jiang).
11182         With help from Paul Eggert.
11183         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
11184         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
11185         instead of realloc.
11186         When shrinking, accept failures.
11187         * lib/bitset/vector.c (vbitset_resize): Likewise.
11189 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11191         scratch_buffer: sync from glibc
11192         * config/srclist.txt: Add the scratch_buffer source
11193         code from glibc, since these should be in sync.
11194         Autoupdate.
11196 2019-09-07  Bruno Haible  <bruno@clisp.org>
11198         doc: Update for glibc 2.30.
11199         * doc/glibc-functions/gettid.texi: New file.
11200         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
11201         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
11202         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
11203         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
11204         * doc/glibc-functions/sem_clockwait.texi: New file.
11205         * doc/glibc-functions/tgkill.texi: New file.
11206         * doc/glibc-functions/twalk_r.texi: New file.
11207         * doc/gnulib.texi: Include them.
11208         (Glibc semaphore.h): New section.
11209         * doc/pastposix-functions/h_errno.texi: Update.
11210         * doc/posix-functions/*.texi: Likewise.
11212 2019-09-06  Bruno Haible  <bruno@clisp.org>
11214         symlink tests: Avoid test failure on Linux with Lustre file system.
11215         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
11216         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
11217         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
11219 2019-09-01  Bruno Haible  <bruno@clisp.org>
11221         gitsub.sh: Add support for shallow-cloning of subdirectories.
11222         * top/gitsub.sh (func_usage): Document allowed git options with
11223         'git pull'.
11224         (func_pull): Accept GIT_OPTIONS argument.
11225         (pull): Parse git options before complaining about too many arguments.
11226         Pass the git options to func_pull.
11228 2019-08-29  Bruno Haible  <bruno@clisp.org>
11230         lock: Fix cross-compilation guesses.
11231         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11232         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
11233         platforms.
11235 2019-08-28  Bruno Haible  <bruno@clisp.org>
11237         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
11238         Reported by Martin Storsjö <martin@martin.st> in
11239         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
11240         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
11241         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
11242         files from GCC 6 or newer, use an override through '#define', because
11243         the inline definitions in the platform's <cmath> cannot be overridden
11244         in another way.
11246 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11248         Revert macOS INT_MULTIPLY_WRAPV patch
11249         Problem reported by Bruno Haible in:
11250         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
11251         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
11252         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11253         Go back to working around the Clang bug on macOS.
11255 2019-08-27  Bruno Haible  <bruno@clisp.org>
11257         libtool-next-version: Fix error output.
11258         * build-aux/libtool-next-version (func_fatal_error): Fix the program
11259         name.
11261 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11263         Speed up INT_MULTIPLY_WRAPV on macOS
11264         Assume that __builtin_mul_overflow works OK with Clang on macOS.
11265         Mattias Engdegård says it’s safe to assume the relevant library
11266         is always available there.
11267         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
11268         New temporary internal macro.
11269         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11270         No need to work around the Clang bug on macOS.
11272 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11274         intprops.h, verify.h: port better to clang
11275         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11276         with Clang.  Problem reported privately by Mattias Engdegård.
11277         Also, insulate intprops.h and verify.h better against each other’s
11278         definitions of __has_builtin on non-Clang hosts.
11279         * lib/intprops.h (__has_builtin): Define a temporary substitute
11280         if __has_builtin is not already defined.
11281         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11282         New temporary internal macros.
11283         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
11284         Now two separate macros, replacing the old
11285         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
11286         __builtin_mul_overflow is like the rest.  All uses changed.
11287         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
11288         Adjust to above changes.
11289         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
11290         longer relevant.  All uses changed.
11291         * lib/verify.h (__has_builtin): Treat like intprops.h,
11292         so that the two .h files do not collide with each other.
11293         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
11294         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
11296 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11298         intprops: say why not Clang __builtin_add_overflow
11299         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
11300         Mention Clang in comment, responding to a query from
11301         Mattias Engdegård.
11303 2019-08-24  Bruno Haible  <bruno@clisp.org>
11305         doc: Document most of the files outside of modules.
11306         * doc/gnulib.texi (Build Infrastructure Files,
11307         Release Management Files): New chapters.
11309 2019-08-24  Bruno Haible  <bruno@clisp.org>
11311         bootstrap: Keep in sync with the 'gettext' module.
11312         Reported by Assaf Gordon in
11313         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
11314         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
11315         * build-aux/po/remove-potcdate.sin: Likewise.
11317 2019-08-24  Bruno Haible  <bruno@clisp.org>
11319         crypto/gc-sha512: Add tests.
11320         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
11321         * modules/crypto/gc-sha512-tests: New file.
11323         crypto/gc-sha256: Add tests.
11324         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
11325         * modules/crypto/gc-sha256-tests: New file.
11327         crypto/gc-sha256, crypto/gc-sha512: New modules.
11328         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
11329         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
11330         (MAX_DIGEST_SIZE): Set to 64.
11331         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
11332         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
11333         (gc_sha256, gc_sha512): New functions.
11334         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
11335         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
11336         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
11338 2019-08-24  Bruno Haible  <bruno@clisp.org>
11340         crypto/gc-sha1 tests: Improve output when the test fails.
11341         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
11342         output.
11344 2019-08-24  Bruno Haible  <bruno@clisp.org>
11346         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
11347         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
11348         LIBGCRYPT_HAS_MD_SM3.
11349         * lib/gc-libgcrypt.c: Include sm3.h.
11350         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
11351         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
11352         implementation if libgcrypt does not support SM3.
11354 2019-08-24  Bruno Haible  <bruno@clisp.org>
11356         crypto/gc-md2: Optimize and clarify code.
11357         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
11358         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
11359         is not needed.
11361 2019-08-24  Bruno Haible  <bruno@clisp.org>
11363         crypto/gc-md2: Add comment.
11364         * lib/gc-libgcrypt.c: Add comment.
11366 2019-08-24  Bruno Haible  <bruno@clisp.org>
11368         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
11369         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
11370         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
11371         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
11372         variable.
11374 2019-08-24  Bruno Haible  <bruno@clisp.org>
11376         crypto/gc: Fix link error with --with-libgcrypt.
11377         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
11378         AC_LIB_HAVE_LINKFLAGS invocation.
11380 2019-08-24  Bruno Haible  <bruno@clisp.org>
11382         crypto/gc: Access the module indicators correctly.
11383         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
11384         * lib/gc-libgcrypt.c: Likewise.
11386 2019-08-24  Bruno Haible  <bruno@clisp.org>
11388         crypto/gc: Fix configuration with --with-libgcrypt.
11389         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
11390         * modules/crypto/gc (Files): Add it.
11391         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
11393 2019-08-24  Bruno Haible  <bruno@clisp.org>
11395         Remove unused file.
11396         * m4/stat-macros.m4: Remove file.
11398 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11400         New strip-trailing-space option for srclist-update
11401         * config/srclist-update (fixfile): Support new option.
11402         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
11403         Use it.
11405 2019-08-20  Eric Blake  <eblake@redhat.com>
11407         accept4: Support SOCK_NONBLOCK, if defined
11408         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
11410         accept4: Fix compilation when native accept4() exists.
11411         Reported by Richard W.M. Jones <rjones@redhat.com> in
11412         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
11413         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
11415 2019-08-18  Bruno Haible  <bruno@clisp.org>
11417         Defeat -flto GCC optimization in math autoconf tests.
11418         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
11419         at <https://savannah.gnu.org/bugs/?56109>.
11420         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
11421         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
11422         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11423         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11424         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11425         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
11426         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11427         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11428         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11429         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11430         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11431         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11433 2019-08-17  Bruno Haible  <bruno@clisp.org>
11435         windows-spin: Implement declared functions.
11436         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
11437         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
11438         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
11439         name.
11441 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11443         intprops: port to Oracle Developer Studio 12.6
11444         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
11445         typos that were in a section not compiled by GCC.
11447 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11449         intprops: support uchar, ushort _WRAPV dests
11450         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
11451         when __builtin_add_overflow etc. and _Generic are not used.
11452         (_GL_INT_OP_WRAPV): Use it to support destinations that
11453         are unsigned char or unsigned short, even in compilers
11454         that lack __typeof__ and are not C11-compatible.
11456         intprops: pacify picky GCC
11457         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
11458         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
11459         possibly-incorrect result.
11460         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
11461         about (A) used as a boolean, when A is an expression like 3 * 4.
11463         intprops: support unsigned *_WRAPV results
11464         Add support for unsigned, unsigned long, and unsigned long long
11465         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
11466         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
11467         bug with unsigned inputs reported by Eli Zaretskii in:
11468         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
11469         * config/srclist.txt: Break the glibc connection for intprops.h
11470         temporarily, while more testing is done in Gnulib-using apps.
11471         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11472         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
11473         Support unsigned results no narrower than unsigned int.  Report
11474         overflow correctly if some arguments are unsigned.
11475         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
11476         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
11477         the right thing with narrow args.
11478         (_GL_INT_OP_CALC1): Remove.  All callers removed.
11479         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
11480         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
11481         * tests/test-intprops.c: Check for bugs and test new behavior.
11483 2019-08-14  Bruno Haible  <bruno@clisp.org>
11485         get_progname_of: New module.
11486         * lib/get_progname_of.h: New file.
11487         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
11488         * lib/getprogname.c (getprogname): Tweak coding style.
11489         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
11490         * modules/get_progname_of: New file.
11492 2019-08-14  Bruno Haible  <bruno@clisp.org>
11494         get_ppid_of: New module.
11495         * lib/get_ppid_of.h: New file.
11496         * lib/get_ppid_of.c: New file.
11497         * modules/get_ppid_of: New file.
11499 2019-08-13  Bruno Haible  <bruno@clisp.org>
11501         libtextstyle-optional tests: Support the NO_COLOR environment variable.
11502         * tests/test-libtextstyle.c (main): Do not emit styling when the
11503         environment variable NO_COLOR is set.
11505 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11507         verify: improve diagnostic quality in recent GCC
11508         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
11509         useful line number containing the top-level caller of the macro.
11510         So, bring back the older way of issuing a diagnostic containing
11511         the top-level call’s arg, so that it is easier to diagnose
11512         ‘verify’ failures with recent GCC.
11513         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
11514         Bring back DIAGNOSTIC arg.  All callers changed.
11515         (verify): Just use _GL_VERIFY.
11517 2019-08-11  Bruno Haible  <bruno@clisp.org>
11519         localcharset: Add more aliases for OS/2.
11520         Based on patch by KO Myung-Hun <komh78@gmail.com> in
11521         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
11522         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
11524 2019-08-10  Eric Blake  <eblake@redhat.com>
11526         configmake: Update advice on usage.
11527         * modules/configmake (Include): No longer necessary to include
11528         last, since configmake.h itself worries about collision avoidance.
11530 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
11532         parse-datetime: fix 'T' military timezone handling
11533         * lib/parse-datetime.y (zone):
11534         follow-up to the previous commit: the 'T' case is handled outside the
11535         conversion table (used as either military timezone UTC-7 or ISO8601
11536         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
11537         timezone letters.
11539 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11541         parse-datetime: fix military timezone letters
11542         Problem and trivial fix reported by Neil Hoggarth in:
11543         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
11544         * lib/parse-datetime.y (military_table):
11545         Do it the right way, not the RFC 822 way.
11547 2019-08-08  Eric Blake  <eblake@redhat.com>
11549         configmake: Avoid namespace pollution issue on mingw.
11550         * modules/configmake (Makefile.am): If the project uses
11551         <winsock2.h>, include that header before defining DATADIR.
11553 2019-07-28  Bruno Haible  <bruno@clisp.org>
11555         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
11556         * tests/test-mbrtowc.c (main): Fix expected value of wc.
11558 2019-07-24  Bruno Haible  <bruno@clisp.org>
11560         pthread-h: Fix definitions of types and macros on mingw.
11561         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
11562         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
11563         not in use.
11564         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
11565         'pthread-once' is not in use.
11566         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
11567         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
11568         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
11569         in use.
11570         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
11571         Define also when module 'pthread-rwlock' is not in use.
11572         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
11573         also when module 'pthread-cond' is not in use.
11574         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
11575         'pthread-tss' is not in use.
11576         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
11577         use.
11579 2019-07-24  Simon Josefsson  <simon@josefsson.org>
11581         crypto/gc: Cope with libgcrypt without SM3.
11582         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
11584 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11586         backupfile: fix resource leak on memory failure
11587         Problem found by Coverity (CID 1484214).
11588         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
11590 2019-07-22  Bruno Haible  <bruno@clisp.org>
11592         Avoid missing-declarations warning in various tests.
11593         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
11594         test6, test_optional, test7, test8, test9, test10, test11, test12,
11595         test13, test14, test15, test_fun): Declare static.
11596         * tests/test-cnd.c (test_cnd_wait): Likewise.
11597         * tests/test-cond.c (test_cond): Likewise.
11599 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
11601         pthread tests: Avoid missing-declarations warning.
11602         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
11604 2019-07-19  Bruno Haible  <bruno@clisp.org>
11606         parse-datetime: Avoid warnings from bison versions >= 3.3.
11607         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
11608         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
11610 2019-07-19  Bruno Haible  <bruno@clisp.org>
11612         parse-datetime: Require Bison 2.4 or newer.
11613         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
11614         Code taken from gettext's intl.m4.
11615         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
11616         of YACC.
11618 2019-07-19  Bruno Haible  <bruno@clisp.org>
11620         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
11621         * lib/areadlink-with-size.c: Include <string.h>.
11622         * lib/areadlinkat-with-size.c: Likewise.
11623         * lib/xgethostname.c: Likewise.
11624         * lib/xgetdomainname.c: Likewise.
11626 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
11628         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
11629         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
11630         "%pure-parser".  The former is available since Bison 2.3b (2008),
11631         while the latter is marked as obsolete since version 3.4 (May 2019).
11633 2019-07-16  Bruno Haible  <bruno@clisp.org>
11635         update-copyright: Make it work again (regression from 2019-06-15).
11636         Reported by Brian C. Lane <bcl@redhat.com>.
11637         * build-aux/update-copyright: Add back the -0777, -p, -i options.
11639 2019-07-14  Bruno Haible  <bruno@clisp.org>
11641         doc: Update info about <pthread.h>.
11642         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
11643         of 'pthread'.
11645 2019-07-14  Bruno Haible  <bruno@clisp.org>
11647         pthread_sigmask tests: Use new multithread modules.
11648         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
11649         glthread/thread.h.
11650         (main_thread, killer_thread): Change type to pthread_t.
11651         (main): Update accordingly.
11652         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
11653         thread.
11655 2019-07-14  Bruno Haible  <bruno@clisp.org>
11657         pthread-tss: Add tests.
11658         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
11659         tests/test-tss.c.
11660         * modules/pthread-tss-tests: New file.
11662 2019-07-14  Bruno Haible  <bruno@clisp.org>
11664         pthread-cond: Add tests.
11665         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
11666         tests/test-cnd.c.
11667         * modules/pthread-cond-tests: New file.
11669 2019-07-14  Bruno Haible  <bruno@clisp.org>
11671         pthread-rwlock: Add tests.
11672         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
11673         * modules/pthread-rwlock-tests: New file.
11675 2019-07-14  Bruno Haible  <bruno@clisp.org>
11677         pthread-mutex: Add tests.
11678         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
11679         tests/test-mtx.c.
11680         * modules/pthread-mutex-tests: New file.
11682 2019-07-14  Bruno Haible  <bruno@clisp.org>
11684         pthread-once: Add tests.
11685         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
11686         tests/test-call_once.c.
11687         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
11688         tests/test-mtx.c.
11689         * modules/pthread-once-tests: New file.
11691 2019-07-14  Bruno Haible  <bruno@clisp.org>
11693         pthread-thread: Add tests.
11694         * tests/test-pthread-thread.c: New file, based on
11695         tests/test-thread_create.c and tests/test-thrd_create.c.
11696         * modules/pthread-thread-tests: New file.
11698 2019-07-14  Bruno Haible  <bruno@clisp.org>
11700         pthread: Turn into a convenience module.
11701         * lib/pthread.in.h: Remove declarations for extern inline functions.
11702         * lib/pthread.c: Remove file.
11703         * modules/pthread (Files): Remove it.
11704         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
11705         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
11706         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
11707         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
11708         GNULIB_PTHREAD.
11709         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
11711 2019-07-14  Bruno Haible  <bruno@clisp.org>
11713         pthread-spin: New module.
11714         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
11715         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
11716         inline definitions.
11717         * lib/pthread-spin.c: New file.
11718         * m4/pthread-spin.m4: New file.
11719         * modules/pthread-spin: New file.
11720         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
11721         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
11722         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
11723         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
11724         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
11726 2019-07-14  Bruno Haible  <bruno@clisp.org>
11728         pthread-tss: New module.
11729         * lib/pthread-tss.c: New file.
11730         * m4/pthread-tss.m4: New file.
11731         * modules/pthread-tss: New file.
11732         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
11733         * doc/posix-functions/pthread_setspecific.texi: Likewise.
11734         * doc/posix-functions/pthread_getspecific.texi: Likewise.
11735         * doc/posix-functions/pthread_key_delete.texi: Likewise.
11737 2019-07-14  Bruno Haible  <bruno@clisp.org>
11739         pthread-cond: New module.
11740         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
11741         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
11742         * lib/pthread-cond.c: New file.
11743         * m4/pthread-cond.m4: New file.
11744         * modules/pthread-cond: New file.
11745         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
11746         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
11747         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
11748         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
11749         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
11750         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
11751         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
11752         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
11754 2019-07-14  Bruno Haible  <bruno@clisp.org>
11756         pthread-rwlock: New module.
11757         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
11758         * m4/pthread-rwlock.m4: New file.
11759         * modules/pthread-rwlock: New file.
11760         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
11761         and the Android problem.
11762         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
11763         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
11764         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
11765         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
11766         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
11767         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
11768         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
11769         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
11770         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
11771         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
11773 2019-07-14  Bruno Haible  <bruno@clisp.org>
11775         pthread-mutex: New module.
11776         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
11777         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
11778         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
11779         pthread_mutex_unlock): Remove inline definitions.
11780         * lib/pthread-mutex.c: New file.
11781         * m4/pthread-mutex.m4: New file.
11782         * modules/pthread-mutex: New file.
11783         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
11784         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
11785         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
11786         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
11787         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11788         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11789         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
11790         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
11791         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
11792         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
11793         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
11794         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
11796 2019-07-14  Bruno Haible  <bruno@clisp.org>
11798         pthread-once: New module.
11799         * lib/pthread-once.c: New file.
11800         * m4/pthread-once.m4: New file.
11801         * modules/pthread-once: New file.
11802         * doc/posix-functions/pthread_once.texi: Mention the new module.
11804 2019-07-14  Bruno Haible  <bruno@clisp.org>
11806         pthread-thread: New module.
11807         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
11808         inline definitions.
11809         * lib/pthread-thread.c: New file.
11810         * m4/pthread-thread.m4: New file.
11811         * modules/pthread-thread: New file.
11812         * doc/posix-functions/pthread_create.texi: Mention the new module.
11813         * doc/posix-functions/pthread_attr_init.texi: Likewise.
11814         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
11815         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
11816         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
11817         * doc/posix-functions/pthread_self.texi: Likewise.
11818         * doc/posix-functions/pthread_equal.texi: Likewise.
11819         * doc/posix-functions/pthread_detach.texi: Likewise.
11820         * doc/posix-functions/pthread_join.texi: Likewise.
11821         * doc/posix-functions/pthread_exit.texi: Likewise.
11823 2019-07-14  Bruno Haible  <bruno@clisp.org>
11825         pthread-h: Prepare for adding new modules.
11826         * lib/pthread.in.h: Define the types and macros for each of the
11827         facilities separately.
11828         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
11829         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11830         HAVE_PTHREAD_PROCESS_SHARED.
11831         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
11832         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11833         HAVE_PTHREAD_PROCESS_SHARED.
11834         * modules/pthread-h (Makefile.am): Substitute
11835         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
11836         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
11838 2019-07-14  Bruno Haible  <bruno@clisp.org>
11840         pthread-h: Add declarations of essential pthread functions.
11841         * lib/pthread.in.h: Include snippets.
11842         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
11843         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
11844         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
11845         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
11846         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
11847         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
11848         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
11849         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
11850         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
11851         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
11852         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
11853         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
11854         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
11855         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
11856         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
11857         pthread_key_create, pthread_setspecific, pthread_getspecific,
11858         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
11859         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
11860         declarations.
11861         (pthread_mutex_timedlock): Move declaration.
11862         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
11863         declared.
11864         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
11865         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
11866         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
11867         HAVE_* and REPLACE_* variables for the new functions.
11868         * modules/pthread-h (Depends-on): Add snippet/c++defs,
11869         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
11870         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
11871         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
11872         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
11873         variables for the new functions. Split the sed script, to avoid the
11874         limit of 99 commands of HP-UX sed.
11875         * tests/test-pthread-c++.cc: Check the signature of the new functions.
11877 2019-07-14  Bruno Haible  <bruno@clisp.org>
11879         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
11880         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
11881         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
11882         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
11883         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
11884         * modules/pthread-h (Depends-on): Add threadlib.
11885         (Link): Change to $(LIBTHREAD).
11886         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
11887         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
11889 2019-07-14  Bruno Haible  <bruno@clisp.org>
11891         pthread-h: Add C++ tests.
11892         * tests/test-pthread-c++.cc: New file.
11893         * modules/pthread-h-c++-tests: New file.
11895 2019-07-14  Bruno Haible  <bruno@clisp.org>
11897         pthread-h: Add tests.
11898         * tests/test-pthread.c: New file.
11899         * modules/pthread-h-tests: New file.
11901 2019-07-14  Bruno Haible  <bruno@clisp.org>
11903         pthread-h: New module.
11904         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
11905         is 1.
11906         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
11907         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
11908         <pthread.h> pollutes the namespace; instead, prepare for generating a
11909         pthread.h always. Substitute HAVE_PTHREAD_H here.
11910         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
11911         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
11912         * modules/pthread-h: New file, based on modules/pthread.
11913         * modules/pthread: Rely on 'pthread-h'.
11914         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
11915         Update.
11916         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
11917         pthread.
11919 2019-07-14  Bruno Haible  <bruno@clisp.org>
11921         sched_yield: New module.
11922         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
11923         (sched_yield): New declaration.
11924         * lib/sched_yield.c: New file.
11925         * m4/sched_yield.m4: New file.
11926         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
11927         provide a replacement sched.h always. Test whether sched_yield is
11928         declared.
11929         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
11930         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
11931         (Makefile.am): Provide a replacement sched.h always. Substitute
11932         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
11933         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
11934         * modules/sched_yield: New file.
11935         * doc/posix-functions/sched_yield.texi: Mention the new module.
11937 2019-07-14  Bruno Haible  <bruno@clisp.org>
11939         windows-spin: New module.
11940         * lib/windows-spin.h: New file.
11941         * lib/windows-spin.c: New file.
11942         * modules/windows-spin: New file.
11944 2019-07-14  Bruno Haible  <bruno@clisp.org>
11946         windows-timedrwlock: New module.
11947         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
11948         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
11949         windows-cond.c.
11950         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
11951         redefinition conflict with windows-timedrwlock.h.
11952         * modules/windows-timedrwlock: New file.
11954 2019-07-14  Bruno Haible  <bruno@clisp.org>
11956         windows-rwlock: New module.
11957         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
11958         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
11959         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
11960         windows-initguard.h.
11961         (gl_rwlock_t): Define using glwthread_rwlock_t.
11962         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
11963         (glthread_rwlock_init): Define using glwthread_rwlock_init.
11964         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
11965         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
11966         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
11967         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
11968         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
11969         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
11970         glthread_rwlock_destroy_func): Remove declarations.
11971         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
11972         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
11973         gl_waitqueue_notify_all, glthread_rwlock_init_func,
11974         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
11975         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
11976         functions.
11977         * modules/windows-rwlock: New file.
11978         * modules/lock (Depends-on): Add windows-rwlock.
11980 2019-07-14  Bruno Haible  <bruno@clisp.org>
11982         windows-thread: Add support for creating a thread in detached state.
11983         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
11984         (glwthread_thread_create): Add attr argument.
11985         * lib/windows-thread.c (glwthread_thread_create): Likewise.
11986         * lib/glthread/thread.h (glthread_create): Update.
11987         * lib/thrd.c (thrd_create): Update.
11989 2019-07-14  Bruno Haible  <bruno@clisp.org>
11991         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
11992         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
11993         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
11994         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
11995         * lib/windows-mutex.h: Update.
11996         * lib/windows-recmutex.h: Likewise.
11997         * lib/windows-timedmutex.h: Likewise.
11998         * lib/windows-timedrecmutex.h: Likewise.
11999         * lib/windows-cond.h: Likewise.
12000         * lib/glthread/lock.h: Likewise.
12001         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
12002         lib/windows-spinlock.h.
12003         * modules/windows-recmutex (Files): Likewise.
12004         * modules/windows-timedmutex (Files): Likewise.
12005         * modules/windows-timedrecmutex (Files): Likewise.
12006         * modules/windows-cond (Files): Likewise.
12007         * modules/threads-h (Files): Likewise.
12009 2019-07-14  Bruno Haible  <bruno@clisp.org>
12011         doc: Fix info about pthread API in HP-UX.
12012         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
12014 2019-07-14  Bruno Haible  <bruno@clisp.org>
12016         threads-h: Fix generation of threads.h.
12017         * modules/threads-h (Makefile.am): Insert the required header file
12018         snippets.
12020 2019-07-09  Bruno Haible  <bruno@clisp.org>
12022         striconveh test: Fix a compilation failure when iconv is not available.
12023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12024         * tests/test-striconveh.c (main): Move iconv_close invocations inside
12025         HAVE_ICONV.
12027 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
12029         argmatch: adjust columns for help2man.
12030         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
12031         requires column 20 or more, return 20.
12033 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12035         areadlink-with-size: avoid realloc when size==0
12036         * lib/areadlink-with-size.c (areadlink_with_size):
12037         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
12038         Reallocate at the end to the actual size, to avoid memory waste,
12039         as suggested by Bruno Haible.  But when the guessed size is zero -
12040         useful when the size is unknown - do the initial small readlink
12041         into the stack, to avoid that realloc in the usual case.
12043 2019-07-06  Pádraig Brady  <P@draigBrady.com>
12045         areadlink-with-size: guess a buffer size with 0 size
12046         The size is usually taken from st_size, which can be zero,
12047         resulting in inefficient operation.
12048         Instead let zero select an initial memory allocation
12049         of 128 bytes, which most symlinks fit within.
12050         * lib/areadlink-with-size.c (areadlink_with_size):
12051         Start with a 128 byte buffer, for SIZE == 0.
12052         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
12054 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
12056         Replace manually crafted hex regexes with [:xdigit:]
12057         * build-aux/gitlog-to-changelog (parse_amend_file)
12058         (git_dir_option):
12059         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
12060         This patch is backported from Emacs (Bug#36167).
12062 2019-07-06  Bruno Haible  <bruno@clisp.org>
12064         error: Fix documentation.
12065         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
12066         module provides.
12067         * doc/glibc-functions/error_message_count.texi: Likewise.
12068         * doc/glibc-functions/error_one_per_line.texi: Likewise.
12069         * doc/glibc-functions/error_print_progname.texi: Likewise.
12071 2019-07-06  Bruno Haible  <bruno@clisp.org>
12073         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
12074         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
12075         and older is unsupported.
12076         * doc/**/*.texi: Update.
12078 2019-07-06  Bruno Haible  <bruno@clisp.org>
12080         doc: Remove documentation of Linux libc5 as a supported platform.
12081         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
12082         to Linux libc5.
12083         * doc/posix-functions/iswalpha.texi: Likewise.
12084         * doc/posix-functions/iswblank.texi: Likewise.
12085         * doc/posix-functions/iswcntrl.texi: Likewise.
12086         * doc/posix-functions/iswdigit.texi: Likewise.
12087         * doc/posix-functions/iswgraph.texi: Likewise.
12088         * doc/posix-functions/iswlower.texi: Likewise.
12089         * doc/posix-functions/iswprint.texi: Likewise.
12090         * doc/posix-functions/iswpunct.texi: Likewise.
12091         * doc/posix-functions/iswspace.texi: Likewise.
12092         * doc/posix-functions/iswupper.texi: Likewise.
12093         * doc/posix-functions/iswxdigit.texi: Likewise.
12094         * doc/posix-functions/snprintf.texi: Likewise.
12095         * doc/posix-functions/vsnprintf.texi: Likewise.
12097 2019-07-06  Bruno Haible  <bruno@clisp.org>
12099         doc: Remove documentation of Tandem/NSK as a supported platform.
12100         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
12101         Tandem/NSK.
12102         * doc/**/*.texi: Update.
12104 2019-07-06  Bruno Haible  <bruno@clisp.org>
12106         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
12107         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
12108         and older is unsupported.
12109         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
12110         Mac OS X 10.4 and older.
12111         * doc/posix-functions/asinl.texi: Likewise.
12112         * doc/posix-functions/atanl.texi: Likewise.
12113         * doc/posix-functions/cosl.texi: Likewise.
12114         * doc/posix-functions/expl.texi: Likewise.
12115         * doc/posix-functions/frexpl.texi: Likewise.
12116         * doc/posix-functions/gettimeofday.texi: Likewise.
12117         * doc/posix-functions/logl.texi: Likewise.
12118         * doc/posix-functions/mkstemp.texi: Likewise.
12119         * doc/posix-functions/sinl.texi: Likewise.
12120         * doc/posix-functions/sqrtl.texi: Likewise.
12121         * doc/posix-functions/tanl.texi: Likewise.
12122         * doc/posix-functions/wcswidth.texi: Likewise.
12123         * doc/**/*.texi: Update.
12125 2019-07-06  Bruno Haible  <bruno@clisp.org>
12127         doc: Remove documentation of AIX 4 as a supported platform.
12128         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
12129         unsupported.
12130         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
12131         workarounds.
12132         * doc/posix-functions/strnlen.texi: Likewise.
12133         * doc/posix-headers/inttypes.texi: Likewise.
12134         * doc/**/*.texi: Update.
12136 2019-07-06  Bruno Haible  <bruno@clisp.org>
12138         doc: Remove documentation of HP-UX 10 as a supported platform.
12139         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
12140         unsupported.
12141         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
12142         workarounds.
12143         * doc/posix-functions/gmtime_r.texi: Likewise.
12144         * doc/posix-functions/localtime_r.texi: Likewise.
12145         * doc/posix-functions/mkstemp.texi: Likewise.
12146         * doc/**/*.texi: Update.
12148 2019-07-06  Bruno Haible  <bruno@clisp.org>
12150         doc: Remove documentation of Interix 3.5 as a supported platform.
12151         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
12152         unsupported.
12153         * doc/posix-functions/select.texi: Don't mention Interix specific
12154         workarounds.
12155         * doc/posix-headers/signal.texi: Likewise.
12156         * doc/**/*.texi: Update.
12158 2019-07-06  Bruno Haible  <bruno@clisp.org>
12160         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
12161         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
12162         unsupported.
12163         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
12164         workarounds.
12165         * doc/posix-functions/nl_langinfo.texi: Likewise.
12166         * doc/posix-functions/remainder.texi: Likewise.
12167         * doc/posix-functions/towlower.texi: Likewise.
12168         * doc/posix-functions/towupper.texi: Likewise.
12169         * doc/posix-functions/vsnprintf.texi: Likewise.
12170         * doc/posix-functions/wcscat.texi: Likewise.
12171         * doc/posix-functions/wcschr.texi: Likewise.
12172         * doc/posix-functions/wcscmp.texi: Likewise.
12173         * doc/posix-functions/wcscpy.texi: Likewise.
12174         * doc/posix-functions/wcscspn.texi: Likewise.
12175         * doc/posix-functions/wcslen.texi: Likewise.
12176         * doc/posix-functions/wcsncat.texi: Likewise.
12177         * doc/posix-functions/wcsncmp.texi: Likewise.
12178         * doc/posix-functions/wcsncpy.texi: Likewise.
12179         * doc/posix-functions/wcspbrk.texi: Likewise.
12180         * doc/posix-functions/wcsrchr.texi: Likewise.
12181         * doc/posix-functions/wcsspn.texi: Likewise.
12182         * doc/posix-headers/langinfo.texi: Likewise.
12183         * doc/posix-headers/signal.texi: Likewise.
12184         * doc/posix-headers/wchar.texi: Likewise.
12185         * doc/posix-headers/wctype.texi: Likewise.
12186         * doc/**/*.texi: Update.
12188 2019-07-05  Bruno Haible  <bruno@clisp.org>
12190         doc: Remove documentation of OSF/1 as supported platform.
12191         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
12192         unsupported.
12193         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
12194         workarounds.
12195         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
12196         * doc/glibc-functions/ptsname_r.texi: Likewise.
12197         * doc/posix-functions/ceil.texi: Likewise.
12198         * doc/posix-functions/ceilf.texi: Likewise.
12199         * doc/posix-functions/ceill.texi: Likewise.
12200         * doc/posix-functions/fchdir.texi: Likewise.
12201         * doc/posix-functions/floor.texi: Likewise.
12202         * doc/posix-functions/floorf.texi: Likewise.
12203         * doc/posix-functions/fmod.texi: Likewise.
12204         * doc/posix-functions/fmodf.texi: Likewise.
12205         * doc/posix-functions/fmodl.texi: Likewise.
12206         * doc/posix-functions/log.texi: Likewise.
12207         * doc/posix-functions/logf.texi: Likewise.
12208         * doc/posix-functions/logl.texi: Likewise.
12209         * doc/posix-functions/log10.texi: Likewise.
12210         * doc/posix-functions/log10f.texi: Likewise.
12211         * doc/posix-functions/log10l.texi: Likewise.
12212         * doc/posix-functions/log2.texi: Likewise.
12213         * doc/posix-functions/log2f.texi: Likewise.
12214         * doc/posix-functions/log2l.texi: Likewise.
12215         * doc/posix-functions/mbrtowc.texi: Likewise.
12216         * doc/posix-functions/recv.texi: Likewise.
12217         * doc/posix-functions/recvfrom.texi: Likewise.
12218         * doc/posix-functions/remainder.texi: Likewise.
12219         * doc/posix-functions/remainderf.texi: Likewise.
12220         * doc/posix-functions/remainderl.texi: Likewise.
12221         * doc/posix-functions/round.texi: Likewise.
12222         * doc/posix-functions/roundf.texi: Likewise.
12223         * doc/posix-functions/roundl.texi: Likewise.
12224         * doc/posix-functions/send.texi: Likewise.
12225         * doc/posix-functions/sendto.texi: Likewise.
12226         * doc/posix-functions/setenv.texi: Likewise.
12227         * doc/posix-functions/snprintf.texi: Likewise.
12228         * doc/posix-functions/tcgetsid.texi: Likewise.
12229         * doc/posix-functions/trunc.texi: Likewise.
12230         * doc/posix-functions/truncf.texi: Likewise.
12231         * doc/posix-functions/truncl.texi: Likewise.
12232         * doc/posix-functions/ttyname_r.texi: Likewise.
12233         * doc/posix-functions/unsetenv.texi: Likewise.
12234         * doc/posix-functions/wcsrtombs.texi: Likewise.
12235         * doc/posix-headers/sys_select.texi: Likewise.
12236         * doc/posix-headers/wchar.texi: Likewise.
12237         * doc/posix-headers/wctype.texi: Likewise.
12238         * doc/**/*.texi: Update.
12240 2019-07-05  Bruno Haible  <bruno@clisp.org>
12242         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
12243         * doc/**/*.texi: Update.
12245 2019-07-05  Bruno Haible  <bruno@clisp.org>
12247         doc: Remove documentation of Solaris 8 and older as supported platforms.
12248         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
12249         unsupported.
12250         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
12251         workarounds.
12252         * doc/posix-functions/memcmp.texi: Likewise.
12253         * doc/posix-functions/rename.texi: Likewise.
12254         * doc/posix-functions/tzset.texi: Likewise.
12255         * doc/posix-headers/wctype.texi: Likewise.
12256         * doc/**/*.texi: Update.
12258 2019-07-05  Bruno Haible  <bruno@clisp.org>
12260         doc: Remove documentation of Interix 3.5 as a supported platform.
12261         * doc/**/*.texi: Update.
12263 2019-07-05  Bruno Haible  <bruno@clisp.org>
12265         doc: Remove documentation of BeOS as a supported platform.
12266         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
12267         unsupported.
12268         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
12269         * doc/posix-functions/getdelim.texi: Likewise.
12270         * doc/**/*.texi: Update.
12272 2019-07-05  Bruno Haible  <bruno@clisp.org>
12274         thread, lock, cond, tls: Remove support for Pth threads.
12275         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12276         --enable-threads=pth any more.
12277         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
12278         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
12279         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
12280         threads and ISO C11 threads.
12281         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
12282         * lib/glthread/lock.h: Likewise.
12283         * lib/glthread/lock.c: Likewise.
12284         * lib/glthread/cond.h: Likewise.
12285         * lib/glthread/cond.c: Likewise.
12286         * lib/glthread/tls.h: Likewise.
12287         * lib/glthread/tls.c: Likewise.
12288         * lib/glthread/yield.h: Likewise.
12289         * lib/regex_internal.h: Likewise.
12290         * tests/test-thread_create.c: Likewise.
12291         * tests/test-lock.c: Likewise.
12292         * tests/test-cond.c: Likewise.
12293         * tests/test-tls.c: Likewise.
12294         * tests/test-rwlock1.c: Don't include glthread/yield.h.
12295         (main): Sleep without calling gl_thread_yield.
12297 2019-07-05  Bruno Haible  <bruno@clisp.org>
12299         thread, lock, cond, tls: Remove support for old Solaris threads.
12300         Solaris >= 2.5.1 has POSIX threads.
12301         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12302         --enable-threads=solaris any more.
12303         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
12304         * lib/glthread/thread.c: Update comment.
12305         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
12306         * lib/glthread/lock.h: Likewise.
12307         * lib/glthread/lock.c: Likewise.
12308         * lib/glthread/cond.h: Likewise.
12309         * lib/glthread/cond.c: Likewise.
12310         * lib/glthread/tls.h: Likewise.
12311         * lib/glthread/tls.c: Likewise.
12312         * lib/glthread/yield.h: Likewise.
12313         * lib/regex_internal.h: Likewise.
12314         * tests/test-thread_create.c: Likewise.
12315         * tests/test-lock.c: Likewise.
12316         * tests/test-cond.c: Likewise.
12317         * tests/test-tls.c: Likewise.
12319 2019-07-05  Bruno Haible  <bruno@clisp.org>
12321         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
12322         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
12323         needed size is equal to the allocated size.
12324         * lib/getcwd.c (__getcwd): Likewise.
12326 2019-07-05  Bruno Haible  <bruno@clisp.org>
12328         xgetdomainname: Don't return an excessive memory allocation.
12329         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
12330         before returning it.
12332 2019-07-05  Bruno Haible  <bruno@clisp.org>
12334         xgethostname: Don't return an excessive memory allocation.
12335         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
12336         returning it.
12338 2019-07-05  Bruno Haible  <bruno@clisp.org>
12340         areadlinkat-with-size: Don't return an excessive memory allocation.
12341         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
12342         before returning it.
12344 2019-07-05  Bruno Haible  <bruno@clisp.org>
12346         areadlink-with-size: Don't return an excessive memory allocation.
12347         Reported by Andreas Dilger <adilger@whamcloud.com>.
12348         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
12349         before returning it.
12351 2019-07-03  Bruno Haible  <bruno@clisp.org>
12353         renameatu: Fix test failure on MSVC.
12354         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
12355         empty string.
12357 2019-07-03  Bruno Haible  <bruno@clisp.org>
12359         mbrtowc: Fix invalid use of mbtowc() on MSVC.
12360         * lib/mbrtowc.c: Include glthread/lock.h.
12361         (mbtowc_lock): New variable.
12362         (mbrtowc): Treat UTF-8 encoding without locking. For the other
12363         encodings, explicitly reset the internal state of mbtowc, and protect
12364         this through a lock.
12365         * modules/mbrtowc (Depends-on): Add lock.
12367 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
12369         argmatch: don't define _ in the header.
12370         Reported by Jim Meyering.
12371         * lib/argmatch.h (N_, _): Don't define.
12372         Use gettext instead.
12373         * lib/argmatch.h (_): Define.
12374         * tests/test-argmatch.c (N_): Define.
12376 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12378         verify: document ‘assume’ better
12379         * lib/verify.h: Reword doc (Bug#36370).
12381 2019-07-02  Bruno Haible  <bruno@clisp.org>
12383         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
12384         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
12385         "CPutf8".
12386         * lib/nl_langinfo.c (ctype_codeset): Likewise.
12388 2019-07-02  Bruno Haible  <bruno@clisp.org>
12390         getcwd: Fix crash when invoked with size = 0 on MSVC.
12391         * lib/getcwd.c: Include msvc-inval.h.
12392         (getcwd_nothrow): New function/macro.
12393         (getcwd_system): New macro.
12394         (__getcwd): Use it instead of getcwd.
12395         * modules/getcwd (Depends-on): Add msvc-inval.
12396         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
12398 2019-07-02  Bruno Haible  <bruno@clisp.org>
12400         nonblocking-pipe tests: Fix test failure on MSVC.
12401         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
12402         native Windows.
12404 2019-07-02  Bruno Haible  <bruno@clisp.org>
12406         usleep: Implement with millisecond resolution on native Windows.
12407         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
12408         * doc/pastposix-functions/usleep.texi: Update accordingly.
12410 2019-07-02  Bruno Haible  <bruno@clisp.org>
12412         lstat tests: Fix test failure on MSVC.
12413         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
12414         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12416 2019-07-02  Bruno Haible  <bruno@clisp.org>
12418         stat tests: Fix test failure on MSVC.
12419         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
12420         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12422 2019-07-02  Bruno Haible  <bruno@clisp.org>
12424         getaddrinfo tests: Fix test failure on MSVC.
12425         * tests/test-getaddrinfo.c: Include sockets.h.
12426         (main): Invoke gl_sockets_startup.
12427         * modules/getaddrinfo-tests (Depends-on): Add sockets.
12429 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
12431         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
12432         * lib/poll.c: Call Windows native select() with Windows native timeval.
12434 2019-06-30  Bruno Haible  <bruno@clisp.org>
12436         argmatch: Fix compilation errors.
12437         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
12438         * tests/test-argmatch.c (main): Update after last-minute function names
12439         change.
12441 2019-06-30  Bruno Haible  <bruno@clisp.org>
12443         Include <stdlib.h> when needed.
12444         * lib/cnd.c: Include <stdlib.h>, needed for abort().
12445         * lib/fcntl.c: Likewise.
12446         * lib/mbscasestr.c: Likewise.
12447         * lib/mbssep.c: Likewise.
12448         * lib/mbsstr.c: Likewise.
12449         * lib/openat.c: Include <stdlib.h>, needed for free().
12450         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
12451         abort().
12453 2019-06-30  Bruno Haible  <bruno@clisp.org>
12455         Include <stdlib.h> when needed.
12456         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
12457         * lib/faccessat.c: Likewise.
12458         * lib/fchmodat.c: Likewise.
12459         * lib/fchownat.c: Likewise.
12460         * lib/fstatat.c: Likewise.
12461         * lib/mkfifoat.c: Likewise.
12462         * lib/mknodat.c: Likewise.
12463         * lib/readlinkat.c: Likewise.
12464         * lib/symlinkat.c: Likewise.
12465         * lib/utimensat.c: Likewise.
12466         * lib/mkdirat.c: Likewise. Include also the specification header.
12468 2019-06-30  Bruno Haible  <bruno@clisp.org>
12470         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
12471         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
12472         from gl_PREREQ_SYS_H_SOCKET.
12473         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
12474         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
12475         gl_PREREQ_SYS_H_WS2TCPIP.
12476         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
12477         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
12478         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
12480 2019-06-30  Bruno Haible  <bruno@clisp.org>
12482         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
12483         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
12484         REPLACE_INET_NTOP to 1 always.
12485         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
12486         REPLACE_INET_PTON to 1 always.
12488 2019-06-30  Bruno Haible  <bruno@clisp.org>
12490         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
12491         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
12492         not REPLACE_INET_NTOP.
12494 2019-06-30  Bruno Haible  <bruno@clisp.org>
12496         poll: Add comment.
12497         * lib/poll.c: Add comment about WSAPoll.
12499 2019-06-30  Bruno Haible  <bruno@clisp.org>
12501         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
12502         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
12503         * lib/poll.in.h: Include <winsock2.h>.
12504         (POLL*, pollfd): Override on native Windows.
12505         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12506         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
12507         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12509 2019-06-28  Bruno Haible  <bruno@clisp.org>
12511         accept4: Fix compilation error on OpenIndiana.
12512         Reported by Michal Nowak <mnowak@startmail.com>
12513         via Mark H Weaver <mhw@netris.org>.
12514         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
12515         whether it exists as a function.
12517 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
12519         strverscmp: sync from glibc
12520         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
12521         comments, include libc-config.h, define __strverscmp to be
12522         strverscmp, and don’t assume types line uint8_t and int8_t that
12523         that C99 doesn’t guarantee.
12524         [!_LIBC]: Include libc-config.h; define __strverscmp.
12525         Include stdint.h.
12526         (__strverscmp): Assume C99.  Use uint_least8_t
12527         and int_least8_t instead of unsigned char and signed char.
12528         * modules/strverscmp (Depends-on): Add libc-config, stdint.
12530 2019-06-25  Bruno Haible  <bruno@clisp.org>
12532         tss tests: Add tests for destructors and races.
12533         * tests/test-tss.c (worker_thread): Fix typo in debug message.
12534         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
12535         functions.
12536         (main): Invoke them.
12537         * modules/tls-tests (Depends-on): Add mtx.
12539 2019-06-25  Bruno Haible  <bruno@clisp.org>
12541         tls tests: Add tests for destructors and races.
12542         * tests/test-tls.c: Include glthread/lock.h.
12543         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
12544         functions.
12545         (main): Invoke them.
12546         * modules/tls-tests (Depends-on): Add lock.
12548 2019-06-25  Bruno Haible  <bruno@clisp.org>
12550         windows-tls: Implement TLS key destructors for native Windows.
12551         * lib/windows-tls.h (glwthread_tls_process_destructors): New
12552         declaration.
12553         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
12554         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
12555         (dtor_table_init_once, dtor_table_lock: New variables.
12556         (struct dtor): New type.
12557         (dtor_table, dtors_count, dtors_used, dtors_allocated,
12558         dtor_processing_threads): New variables.
12559         (dtor_table_initialize, dtor_table_ensure_initialized,
12560         dtor_table_shrink_used, glwthread_tls_process_destructors): New
12561         functions.
12562         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
12563         handle non-NULL destructors.
12564         * modules/windows-tls (Depends-on): Add windows-once.
12565         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
12566         Use the functions declared in windows-tls.h.
12567         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
12568         GLWTHREAD_DESTRUCTOR_ITERATIONS.
12569         * lib/windows-thread.c: Include windows-tls.h.
12570         (wrapper_func, glwthread_thread_exit): Invoke
12571         glwthread_tls_process_destructors.
12572         * modules/windows-thread (Depends-on): Add windows-tls.
12574 2019-06-25  Bruno Haible  <bruno@clisp.org>
12576         threadlib: Avoid autoconf warning "was expanded before it was required".
12577         * modules/threadlib (configure.ac): Require gl_THREADLIB.
12579 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
12581         argmatch: remove duplicate const qualifier
12582         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
12584 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12586         unistd: stddef.h and sys/types.h namespace cleanup
12587         * lib/unistd.in.h [__GLIBC__]:
12588         Do not include stddef.h or sys/types.h.
12589         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
12590         supposed to declare off_t and ssize_t.  Problem found when looking
12591         at why @GNULIB_PWRITE@ was different from the newly-added
12592         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
12594 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12596         maintainer-makefile: restore portability to non-GNU awks
12597         Reported by Tim Rühsen.
12598         * top/maint.mk (AWK): New variable.  Use it.
12599         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
12601 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12603         Document setvbuf _IOLBF problem
12604         * doc/posix-functions/setvbuf.texi (setvbuf):
12605         Document MS-Windows portability problem with _IOLBF.
12607         Document lseek SEEK_DATA/SEEK_HOLE
12608         * doc/posix-functions/lseek.texi (lseek):
12609         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
12611 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12613         argmatch: put all the docs member last.
12614         Reported by Bruno Haible.
12615         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
12616         member before the docs done.
12617         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
12619 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
12621         argmatch: add support to generate the usage message.
12622         * lib/argmatch.c: Move some #includes and gettext support to...
12623         * lib/argmatch.h: here.
12624         (ARGMATCH_DEFINE_GROUP): New macro.
12625         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
12626         (argmatch_backup_group): New.
12627         (CHECK): New.
12628         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
12629         argmatch_backup_argument and argmatch_backup_usage.
12630         * modules/argmatch: We depend on c99.
12631         * doc/argmatch.texi (Recognizing Option Arguments): New.
12632         * doc/gnulib.texi: Use it.
12634 2019-06-21  Bruno Haible  <bruno@clisp.org>
12636         thrd: Add comment.
12637         * lib/thrd.c (pthread_main_func): Add comment.
12639 2019-06-21  Bruno Haible  <bruno@clisp.org>
12641         threads-h: Define 'thread_local' if and only if it actually works.
12642         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
12643         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
12644         Oracle Solaris Studio C. Compile a simple program, to see whether
12645         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
12646         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
12647         * lib/threads.in.h (thread_local): Undefine if it does not work.
12648         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
12649         (Link): Mention LIBTHREADLOCAL.
12650         * tests/test-threads.c: Don't check that thread_local is defined.
12651         * tests/test-thread_local.c: New file.
12652         * modules/threads-h-tests (Files): Add it and macros.h.
12653         (Depends-on): Add thrd and stdint.
12654         (configure.ac): Test whether 'alarm' is declared.
12655         (Makefile.am): Arrange to build and link test-thread_local.
12656         * doc/posix-headers/threads.texi: Mention the platforms that don't
12657         support 'thread_local'.
12659 2019-06-20  Bruno Haible  <bruno@clisp.org>
12661         threads-h: Simplify link dependencies.
12662         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
12663         Don't set LTLIBSTDTHREAD.
12664         * modules/thrd (Link): Simplify accordingly.
12665         * modules/mtx (Link): Likewise.
12666         * modules/cnd (Link): Likewise.
12667         * modules/tss (Link): Likewise.
12668         * modules/threads (Link): Likewise.
12670 2019-06-20  Bruno Haible  <bruno@clisp.org>
12672         threads-h: Fix link error on FreeBSD 11.
12673         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
12674         also with -lpthread.
12676 2019-06-20  Bruno Haible  <bruno@clisp.org>
12678         threadlib: Fix typo (regression from today).
12679         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
12681 2019-06-20  Bruno Haible  <bruno@clisp.org>
12683         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
12684         * lib/windows-thread.c: Include <errno.h>.
12685         * lib/windows-tls.c: Likewise.
12687 2019-06-20  Bruno Haible  <bruno@clisp.org>
12689         tss tests: Small improvement.
12690         * tests/test-tss.c (test_tss): Pass a different id to each thread.
12692 2019-06-20  Bruno Haible  <bruno@clisp.org>
12694         threads: New module.
12695         * modules/threads: New file.
12697 2019-06-20  Bruno Haible  <bruno@clisp.org>
12699         tss: Add tests.
12700         * tests/test-tss.c: New file, based on tests/test-tls.c.
12701         * modules/tss-tests: New file.
12703 2019-06-20  Bruno Haible  <bruno@clisp.org>
12705         cnd: Add tests.
12706         * tests/test-cnd.c: New file, based on tests/test-cond.c.
12707         * modules/cnd-tests: New file.
12709 2019-06-20  Bruno Haible  <bruno@clisp.org>
12711         mtx: Add tests.
12712         * tests/test-mtx.c: New file, based on tests/test-lock.c.
12713         * tests/test-call_once.c: New file, based on tests/test-once.c.
12714         * modules/mtx-tests: New file.
12716 2019-06-20  Bruno Haible  <bruno@clisp.org>
12718         thrd: Add tests.
12719         * tests/test-thrd_create.c: New file, based on
12720         tests/test-thread_create.c.
12721         * tests/test-thrd_current.c: New file, based on
12722         tests/test-thread_self.c.
12723         * modules/thrd-tests: New file.
12725 2019-06-20  Bruno Haible  <bruno@clisp.org>
12727         tss: New module.
12728         * lib/tss.c: New file.
12729         * modules/tss: New file.
12730         * doc/posix-functions/tss_create.texi: Mention the new module.
12731         * doc/posix-functions/tss_set.texi: Likewise.
12732         * doc/posix-functions/tss_get.texi: Likewise.
12733         * doc/posix-functions/tss_delete.texi: Likewise.
12735 2019-06-20  Bruno Haible  <bruno@clisp.org>
12737         cnd: New module.
12738         * lib/cnd.c: New file.
12739         * modules/cnd: New file.
12740         * doc/posix-functions/cnd_init.texi: Mention the new module.
12741         * doc/posix-functions/cnd_wait.texi: Likewise.
12742         * doc/posix-functions/cnd_timedwait.texi: Likewise.
12743         * doc/posix-functions/cnd_signal.texi: Likewise.
12744         * doc/posix-functions/cnd_broadcast.texi: Likewise.
12745         * doc/posix-functions/cnd_destroy.texi: Likewise.
12747 2019-06-20  Bruno Haible  <bruno@clisp.org>
12749         mtx: New module.
12750         * lib/mtx.c: New file.
12751         * modules/mtx: New file.
12752         * doc/posix-functions/call_once.texi: Mention the new module.
12753         * doc/posix-functions/mtx_init.texi: Likewise.
12754         * doc/posix-functions/mtx_lock.texi: Likewise.
12755         * doc/posix-functions/mtx_trylock.texi: Likewise.
12756         * doc/posix-functions/mtx_timedlock.texi: Likewise.
12757         * doc/posix-functions/mtx_unlock.texi: Likewise.
12758         * doc/posix-functions/mtx_destroy.texi: Likewise.
12760 2019-06-20  Bruno Haible  <bruno@clisp.org>
12762         thrd: New module.
12763         * lib/thrd.c: New file.
12764         * m4/thrd.m4: New file.
12765         * modules/thrd: New file.
12766         * doc/posix-functions/thrd_current.texi: Mention the new module.
12767         * doc/posix-functions/thrd_detach.texi: Likewise.
12768         * doc/posix-functions/thrd_equal.texi: Likewise.
12769         * doc/posix-functions/thrd_exit.texi: Likewise.
12770         * doc/posix-functions/thrd_sleep.texi: Likewise.
12771         * doc/posix-functions/thrd_yield.texi: Likewise.
12772         * doc/posix-functions/thrd_create.texi: Mention the new module and the
12773         AIX bug.
12774         * doc/posix-functions/thrd_join.texi: Mention the new module and the
12775         AIX and Solaris bugs.
12777 2019-06-20  Bruno Haible  <bruno@clisp.org>
12779         threads-h: Add tests.
12780         * tests/test-threads.c: New file.
12781         * modules/threads-h-tests: New file.
12782         * tests/test-threads-c++.cc: New file.
12783         * modules/threads-h-c++-tests: New file.
12785 2019-06-20  Bruno Haible  <bruno@clisp.org>
12787         threads-h: New module.
12788         * lib/threads.in.h: New file.
12789         * m4/threads.m4: New file.
12790         * m4/yield.m4 (gl_YIELD): Update comment.
12791         * modules/threads-h: New file.
12792         * modules/yields (configure.ac): Use AC_REQUIRE.
12793         * doc/posix-headers/threads.texi: Mention the new module and the AIX
12794         bugs.
12796 2019-06-20  Bruno Haible  <bruno@clisp.org>
12798         windows-thread: New module.
12799         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
12800         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
12801         * lib/glthread/thread.h: Include windows-thread.h.
12802         (gl_thread_t): Define using glwthread_thread_t.
12803         (glthread_create): Define using glwthread_thread_create.
12804         (glthread_join): Define using glwthread_thread_join.
12805         (gl_thread_self): Define using glwthread_thread_self.
12806         (gl_thread_exit): Define using glwthread_thread_exit.
12807         (glthread_create_func, glthread_join_func, gl_thread_self_func,
12808         gl_thread_exit_func): Remove declarations.
12809         * lib/glthread/thread.c (self_key): Remove variable.
12810         (do_init_self_key, init_self_key): Remove functions.
12811         (struct gl_thread_struct): Remove type.
12812         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
12813         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
12814         functions.
12815         * modules/windows-thread: New file.
12816         * modules/thread (Depends-on): Add windows-thread.
12818 2019-06-20  Bruno Haible  <bruno@clisp.org>
12820         windows-tls: New module.
12821         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
12822         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
12823         * lib/glthread/tls.h: Include windows-tls.h.
12824         (gl_tls_key_t): Define using glwthread_tls_key_t.
12825         * modules/windows-tls: New file.
12826         * modules/tls (Depends-on): Add windows-tls.
12828 2019-06-20  Bruno Haible  <bruno@clisp.org>
12830         windows-cond: New module.
12831         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
12832         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
12833         * lib/glthread/cond.h: Include windows-cond.h.
12834         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
12835         (gl_cond_t): Define using glwthread_cond_t.
12836         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
12837         (glthread_cond_init): Define using glwthread_cond_init.
12838         (glthread_cond_wait): Define using glwthread_cond_wait.
12839         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
12840         (glthread_cond_signal): Define using glwthread_cond_signal.
12841         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
12842         (glthread_cond_destroy): Define using glwthread_cond_destroy.
12843         (glthread_cond_init_func, glthread_cond_wait_func,
12844         glthread_cond_timedwait_func, glthread_cond_signal_func,
12845         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12846         declarations.
12847         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
12848         types.
12849         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
12850         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
12851         glthread_cond_init_func, glthread_cond_wait_func,
12852         glthread_cond_timedwait_func, glthread_cond_signal_func,
12853         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12854         functions.
12855         * modules/windows-cond: New file.
12856         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
12858 2019-06-20  Bruno Haible  <bruno@clisp.org>
12860         windows-timedrecmutex: New module.
12861         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
12862         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
12863         * modules/windows-timedrecmutex: New file.
12865 2019-06-20  Bruno Haible  <bruno@clisp.org>
12867         windows-timedmutex: New module.
12868         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
12869         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
12870         * modules/windows-timedmutex: New file.
12872 2019-06-20  Bruno Haible  <bruno@clisp.org>
12874         windows-recmutex: New module.
12875         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
12876         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
12877         * lib/glthread/lock.h: Include windows-recmutex.h.
12878         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
12879         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
12880         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
12881         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
12882         (glthread_recursive_lock_unlock): Define using
12883         glwthread_recmutex_unlock.
12884         (glthread_recursive_lock_destroy): Define using
12885         glwthread_recmutex_destroy.
12886         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
12887         glthread_recursive_lock_unlock_func,
12888         glthread_recursive_lock_destroy_func): Remove declarations.
12889         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
12890         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
12891         glthread_recursive_lock_destroy_func): Remove functions.
12892         * modules/windows-recmutex: New file.
12893         * modules/lock (Depends-on): Add windows-recmutex.
12895 2019-06-20  Bruno Haible  <bruno@clisp.org>
12897         windows-mutex: New module.
12898         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
12899         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
12900         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
12901         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
12902         (gl_spinlock_t): Remove type.
12903         (gl_lock_t): Define using glwthread_mutex_t.
12904         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
12905         (glthread_lock_init): Define using glwthread_mutex_init.
12906         (glthread_lock_lock): Define using glwthread_mutex_lock.
12907         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
12908         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
12909         (glthread_lock_init_func, glthread_lock_lock_func,
12910         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12911         declarations.
12912         Use glwthread_spinlock_t instead of gl_spinlock_t.
12913         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
12914         GLWTHREAD_SPINLOCK_INIT.
12915         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
12916         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12917         functions.
12918         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
12919         gl_spinlock_t.
12920         * modules/windows-mutex: New file.
12921         * modules/lock (Depends-on): Add windows-mutex.
12923 2019-06-20  Bruno Haible  <bruno@clisp.org>
12925         windows-once: New module.
12926         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
12927         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
12928         * lib/glthread/lock.h: Include windows-once.h.
12929         (gl_once_t): Define using glwthread_once_t.
12930         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
12931         (glthread_once): Define using glwthread_once.
12932         (glthread_once_func): Remove declaration.
12933         * lib/glthread/lock.c (glthread_once_func): Remove function.
12934         * modules/windows-once: New file.
12935         * modules/lock (Depends-on): Add windows-once.
12937 2019-06-20  Bruno Haible  <bruno@clisp.org>
12939         lock, cond: Avoid possible counter wraparound on Windows.
12940         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
12941         field of the guard unchanged if it was already positive.
12942         (glthread_rwlock_rdlock_func): Likewise.
12943         (glthread_rwlock_wrlock_func): Likewise.
12944         (glthread_recursive_lock_lock_func): Likewise.
12945         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
12946         (glthread_cond_timedwait_func): Likewise.
12948 2019-06-20  Bruno Haible  <bruno@clisp.org>
12950         cond: Make glthread_cond_timedwait more reliable on Windows.
12951         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
12952         condition variable before looking at the current time.
12954 2019-06-20  Bruno Haible  <bruno@clisp.org>
12956         pthread_mutex_timedlock: New module.
12957         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
12958         new declaration.
12959         * lib/pthread_mutex_timedlock.c: New file.
12960         * m4/pthread_mutex_timedlock.m4: New file.
12961         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
12962         whether pthread_mutex_timedlock is declared.
12963         (gl_PTHREAD_MODULE_INDICATOR): New macro.
12964         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
12965         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
12966         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
12967         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
12968         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
12969         * modules/pthread_mutex_timedlock: New file.
12970         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
12971         module.
12973 2019-06-20  Bruno Haible  <bruno@clisp.org>
12975         thread, lock, cond, tls: Recognize C11 multithreaded applications.
12976         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
12977         * lib/glthread/thread.h (c11_threads_in_use): New macro.
12978         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12979         * lib/glthread/lock.h (c11_threads_in_use): New macro.
12980         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12981         * lib/glthread/cond.h (c11_threads_in_use): New macro.
12982         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12983         * lib/glthread/tls.h (c11_threads_in_use): New macro.
12984         (pthread_in_use, pth_in_use, thread_in_use): Use it.
12986 2019-06-20  Bruno Haible  <bruno@clisp.org>
12988         tls tests: Small improvements.
12989         * tests/test-tls.c: Include <stdint.h>.
12990         (worker_thread): Avoid gcc warning on 64-bit mingw.
12991         (test_tls): Pass a different id to each thread.
12992         * modules/tls-tests (Depends-on): Add stdint.
12994 2019-06-20  Bruno Haible  <bruno@clisp.org>
12996         cond tests: Simplify.
12997         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
12999 2019-06-20  Bruno Haible  <bruno@clisp.org>
13001         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
13002         * tests/test-lock.c (test_once): Don't reference fire_signal if
13003         !ENABLE_LOCKING.
13005 2019-06-19  Bruno Haible  <bruno@clisp.org>
13007         nanosleep: Relicense under LGPLv2+.
13008         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
13009         * modules/nanosleep (License): Change to LGPLv2+.
13011 2019-06-19  Bruno Haible  <bruno@clisp.org>
13013         Reorder pieces of header in perl scripts.
13014         The desired order is
13015         - Prologue part 1 (2 lines with #!)
13016         - Program short description
13017         - Copyright and license notice
13018         - Written-by notice
13019         - Program short description (optional)
13020         - Program long description (optional)
13021         - Prologue part 2
13022         - Time stamp
13023         - Code
13024         Reported by Paul Eggert.
13025         * build-aux/announce-gen: Reorder header.
13026         * build-aux/gitlog-to-changelog: Likewise.
13027         * build-aux/useless-if-before-free: Likewise.
13028         * build-aux/prefix-gnulib-mk: Add copyright notice and short
13029         description.
13030         * build-aux/update-copyright: Likewise. Add short description. Bump
13031         time-stamp-line-limit to 200.
13033 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13035         verify-tests: work around xlc bug
13036         Problem reported by Bruno Haible in:
13037         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
13038         * tests/test-verify.c (item): Move the arithmetic inside the
13039         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
13041 2019-06-16  Bruno Haible  <bruno@clisp.org>
13043         Restore Emacs time-stamp hook applicability.
13044         Reported by Darshit Shah <darnir@gnu.org>.
13045         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
13046         * build-aux/announce-gen: Likewise.
13047         * build-aux/gitlog-to-changelog: Likewise.
13048         * build-aux/prefix-gnulib-mk: Likewise.
13049         * build-aux/update-copyright: Likewise.
13051 2019-06-15  Bruno Haible  <bruno@clisp.org>
13053         Fix scripts to have valid executable format on Alpine Linux.
13054         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13055         Idea by Paul Eggert.
13056         * build-aux/useless-if-before-free: Use a prologue that starts with
13057         '#!/bin/sh'.
13058         * build-aux/announce-gen: Likewise.
13059         * build-aux/gitlog-to-changelog: Likewise.
13060         * build-aux/prefix-gnulib-mk: Likewise.
13061         * build-aux/update-copyright: Likewise.
13062         * tests/test-update-copyright.sh: Update test program accordingly.
13064 2019-06-10  Bruno Haible  <bruno@clisp.org>
13066         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
13067         Reported by Nikita Ermakov <arei@altlinux.org> in
13068         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
13069         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
13070         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
13072 2019-06-10  Bruno Haible  <bruno@clisp.org>
13074         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
13075         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13076         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
13077         a copy of the path argument.
13078         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13079         it.
13081 2019-06-10  Bruno Haible  <bruno@clisp.org>
13083         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
13084         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
13085         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13086         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
13087         a copy of the path argument.
13088         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13089         it.
13091 2019-06-10  Bruno Haible  <bruno@clisp.org>
13093         posix_spawn_file_actions_addfchdir: Add tests.
13094         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
13095         * tests/test-posix_spawn5.c: New file.
13096         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
13098 2019-06-10  Bruno Haible  <bruno@clisp.org>
13100         posix_spawn_file_actions_addfchdir: New module.
13101         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
13102         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
13103         union member 'fchdir_action'.
13104         * lib/spawn_faction_addfchdir.c: New file.
13105         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
13106         * m4/posix_spawn_faction_addfchdir.m4: New file.
13107         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13108         'posix_spawn_file_actions_addfchdir' is present and whether
13109         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
13110         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13111         posix_spawn_file_actions_addfchdir is declared.
13112         (gl_SPAWN_H_DEFAULTS): Initialize
13113         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13114         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13115         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13116         * modules/spawn (Makefile.am): Substitute
13117         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13118         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13119         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13120         * modules/posix_spawn_file_actions_addfchdir: New file.
13121         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
13122         signature.
13123         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13124         * doc/posix-functions/posix_spawnp.texi: Likewise.
13125         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
13126         Likewise.
13128 2019-06-10  Bruno Haible  <bruno@clisp.org>
13130         doc: Document existence of posix_spawn_file_actions_addchdir module.
13131         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
13132         the posix_spawn_file_actions_addchdir module.
13134 2019-06-10  Bruno Haible  <bruno@clisp.org>
13136         posix_spawn-internal: Fix module description.
13137         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
13138         from here...
13139         * modules/posix_spawnp (configure.ac): ... and here...
13140         * modules/posix_spawn-internal (configure.ac): ... to here.
13142 2019-06-10  Bruno Haible  <bruno@clisp.org>
13144         doc: Update and improve documentation of glibc functions.
13145         This is a series of commits that
13146         - updates the documentation to the state of glibc 2.29,
13147         - adds references to Linux man pages and glibc documentation,
13148         - marks Linux specific functions as such.
13149         These are the commits:
13150         doc: Update after removal of crypt functions from glibc 2.28.
13151         doc: Remove mention of function vm86 (does not exist on x86_64).
13152         doc: Remove mention of functions that are gone from glibc.
13153         doc: Mention that glibc no longer provides h_errno.
13154         doc: Mention the availability of specific functions in glibc versions.
13155         doc: Mention eaccess.
13156         doc: Add references to Linux man pages.
13157         doc: Add references to glibc documentation.
13158         doc: Mention inotify_* functions.
13159         doc: Mention ppoll.
13160         doc: Mention sched_getcpu.
13161         doc: Mention sync_file_range.
13162         doc: Mention epoll_pwait.
13163         doc: Mention eventfd, eventfd_read, eventfd_write.
13164         doc: Mention signalfd.
13165         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
13166         doc: Mention epoll_create1.
13167         doc: Mention getauxval.
13168         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
13169         doc: Mention nextdown, nextup.
13170         doc: Mention more ISO TS 18661-1 <math.h> functions.
13171         doc: Mention ISO TS 18661-1 <fenv.h> functions.
13172         doc: Mention getrandom, getentropy.
13173         doc: Mention strfromf, strfromd, strfroml.
13174         doc: Mention preadv2, pwritev2.
13175         doc: Mention copy_file_range.
13176         doc: Mention memfd_create.
13177         doc: Mention mlock2.
13178         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
13179         doc: Mention more ISO TS 18661-1 <math.h> functions.
13180         doc: Mention renameat2.
13181         doc: Mention statx.
13182         doc: Mention the ISO C11 multithreading header and functions.
13183         doc: Mention getcpu.
13184         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
13185         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
13186         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
13187         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
13188         doc: Some glibc functions also exist on Solaris 11.
13189         doc: Some glibc functions also exist on Solaris 11.4.
13190         doc: Some glibc functions also exist on FreeBSD.
13191         doc: Some glibc functions also exist on BeOS.
13192         doc: Some glibc functions also exist on Haiku.
13193         doc: Mark functions which exist only on Linux.
13194         doc: Mark functions which exist only on Linux and illumos.
13196 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13198         copy-file: fix typo
13199         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
13201         copy-file-range: simplify into a stub
13202         Based on a comment by Florian Weimer in:
13203         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
13204         It turns out that Emacs (which will use this module) won’t need an
13205         emulation and I suspect other programs won’t either, because these
13206         programs will need to fall back on read+write anyway.  Perhaps I
13207         am wrong and other programs will be able to use an emulation; if
13208         so, this patch can be reverted.
13209         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
13210         Just call it copy_file_range.
13211         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
13212         Check via AC_LINK_IFELSE.
13213         * modules/copy-file-range (Depends-on): Remove modules no longer used.
13215 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13217         copy-file: prefer copy_file_range
13218         * lib/copy-file.c: Do not include xalloc.h.
13219         (qcopy_file_preserving): Allocate a buffer only if
13220         copy_file_range does not suffice.  If the allocation fails
13221         don't give up; just use a small stack-based buffer.
13222         Prefer copy_file_range if it works.
13223         * modules/copy-file (Depends-on): Add copy-file-range.
13224         Remove xalloc.
13226         copy-file-range: new module
13227         * MODULES.html.sh: Add copy-file-range.
13228         * lib/copy-file-range.c, m4/copy-file-range.m4:
13229         * modules/copy-file-range: New files.
13230         * lib/unistd.in.h (copy_file_range): Declare.
13231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
13232         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
13233         * modules/unistd (unistd.h): Substitute them.
13235 2019-05-28  Bruno Haible  <bruno@clisp.org>
13237         binary-io: Attempted use of O_BINARY on consoles no longer fails.
13238         Reported by KO Myung-Hun <komh78@gmail.com> in
13239         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
13240         * lib/binary-io.h (__gl_setmode_check): Remove function.
13241         (set_binary_mode): Declare as notinline on DJGPP and EMX.
13242         * lib/binary-io.c (__gl_setmode_check): Remove function.
13243         (set_binary_mode): Define here on DJGPP and EMX. Inline
13244         __gl_setmode_check. In case of a tty, don't return an error code.
13246 2019-05-28  James Youngman  <jay@gnu.org>
13248         dirent-safer: Make opendir_safer usable from C++.
13249         * lib/dirent-safer.h: use extern "C".
13251 2019-05-28  James Youngman  <jay@gnu.org>
13253         canonicalize: Make canonicalize_filename_mode usable from C++.
13254         * lib/canonicalize.h: use extern "C".
13256 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
13258         prefix-gnulib-mk: Fix CPPFLAGS migration.
13259         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
13260         _a part of the library name.
13262 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13264         flexmember: update comments again
13265         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
13267         flexmember: update comment
13268         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
13270 2019-05-20  Bruno Haible  <bruno@clisp.org>
13272         setlocale: Improve fallback on macOS.
13273         * lib/setlocale.c (search): Optimize away a redundant strcmp()
13274         invocation.
13275         (locales_with_principal_territory): New array.
13276         (langcmp, get_main_locale_with_same_language): New functions.
13277         (locales_with_principal_language): New array.
13278         (terrcmp, get_main_locale_with_same_territory): New functions.
13279         (rpl_setlocale): When setlocale_single failed, try again with a locale
13280         that is more likely to exist. Don't warn if the environment variable
13281         SETLOCALE_VERBOSE is not set.
13283 2019-05-19  Bruno Haible  <bruno@clisp.org>
13285         localename: Fix default on macOS.
13286         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
13287         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
13288         (gl_locale_name_environ, gl_locale_name_default): Remove code for
13289         HAVE_CFLOCALECOPYCURRENT.
13290         * lib/localename.h (gl_locale_name_default): Update.
13292 2019-05-19  Karl Berry  <karl@freefriends.org>
13294         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
13295         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
13296         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
13298 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
13300         maintainer-makefile: catch uses of $< in non-implicit rules
13301         * top/maint.mk (sc_prohibit_magic_number_exit): New.
13303 2019-05-18  Bruno Haible  <bruno@clisp.org>
13305         threadlib: Provide an easy way to avoid mingw's winpthreads library.
13306         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
13307         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
13308         gl_use_threads accordingly.
13310 2019-05-18  Bruno Haible  <bruno@clisp.org>
13312         pthread_sigmask: Fix compilation error with --enable-threads=windows.
13313         Reported by Tim Rühsen in
13314         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
13315         and Michele Locati in
13316         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
13317         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
13318         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
13319         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
13320         in use and regardless which threads API is chosen.
13322 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13324         close-stream, closein, closeout: simplify
13325         I noticed this opportunity for simplification while drafting a
13326         new, related module that I haven’t had time to finish yet.
13327         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
13328         * modules/close-stream (Files): Remove m4/close-stream.m4.
13329         (configure.ac): Omit gl_CLOSE_STREAM.
13330         * modules/closein (Files): Remove m4/closein.m4
13331         (configure.ac): Omit gl_CLOSEIN.
13332         * modules/closeout (Files): Remove m4/closeout.m4.
13333         (configure.ac): Omit gl_CLOSEOUT.
13335 2019-05-12  Bruno Haible  <bruno@clisp.org>
13337         libtool-next-version: New program.
13338         * build-aux/libtool-next-version: New file.
13340 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
13341             Bruno Haible  <bruno@clisp.org>
13343         version-etc: Ease translation.
13344         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
13345         URLs and formatting newlines out of translatable string.
13347 2019-05-11  Bruno Haible  <bruno@clisp.org>
13349         gnupload: Explain how to create symlinks.
13350         * build-aux/gnupload (usage): Add an example that creates symlinks.
13352 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13354         fpucw: port to gcc -pedantic
13355         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
13356         Use __extension__ if using ({ ... }).
13358         crypto/af_alg: port to strict C compilers
13359         * lib/af_alg.c: Include af_alg.h regardless, so that the
13360         compilation unit is nonempty.
13362 2019-05-10  Bruno Haible  <bruno@clisp.org>
13364         base64: Avoid false positive warning from Coverity.
13365         Reported by Kamil Dudka <kdudka@redhat.com>.
13366         Idea by Paul Eggert.
13367         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
13368         '& 0x3f' to the array index expressions. This convinces Coverity that
13369         there is no out-of-bounds array reference, regardless of the input.
13371 2019-05-09  Bruno Haible  <bruno@clisp.org>
13373         gettext: Update to gettext 0.20.
13374         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
13375         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
13376         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
13377         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
13378         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
13379         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
13380         (configure.ac): Request infrastructure compatible with gettext 0.20.
13381         * m4/glibc2.m4: Remove file.
13382         * m4/intdiv0.m4: Remove file.
13383         * m4/intl.m4: Remove file.
13384         * m4/intldir.m4: Remove file.
13385         * m4/intmax.m4: Remove file.
13386         * m4/printf-posix.m4: Remove file.
13387         * m4/uintmax_t.m4: Remove file.
13388         * m4/gettext.m4: Update from gettext 0.20.
13389         * m4/po.m4: Likewise.
13391 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13393         verify: remove verify_true
13394         * NEWS: Mention this.
13395         * lib/verify.h (verify_true): Remove.
13396         * tests/test-verify.c (item): Test verify_expr, not verify_true.
13398         Support C2X and C++17 static_assert
13399         C2X and C++17 finally added support for a simple, single-argument
13400         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
13401         doing back in 2005.  Implement static_assert on older platforms.
13402         The only remaining advantage of ‘verify’ is a shorter name.
13403         * doc/posix-headers/assert.texi (assert.h):
13404         * doc/verify.texi (Compile-time Assertions):
13405         Modernize for C2X and C++17.
13406         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
13407         New macros.
13408         (_GL_HAVE__STATIC_ASSERT): Remove.
13409         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
13410         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
13411         string.  All callers changed.
13412         (_GL_VERIFY): Require 3 or more args, of which only the first 2
13413         are used.  All callers changed.
13414         (_Static_assert): Allow either 1 or 2 args, and define if
13415         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
13416         !_GL_HAVE__STATIC_ASSERT.
13417         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
13418         of defining if !_GL_HAVE_STATIC_ASSERT.
13419         (verify_expr, verify): Don’t bother trying to copy the expression
13420         into the diagnostic, since 1-argument static_assert doesn’t.
13421         (verify): Prefer 1-argument _Static_assert if it works.
13422         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
13424 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13426         Fix _GL_HAVE__STATIC_ASSERT typo
13427         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
13428         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
13430 2019-05-05  Bruno Haible  <bruno@clisp.org>
13432         wcwidth: Ensure width 1, not 2, for ambiguous characters.
13433         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
13434         via Akim Demaille <akim.demaille@gmail.com>.
13435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
13436         en_US.UTF-8 locale, since that is more likely to be present than an
13437         fr_FR.UTF-8 locale.
13438         * tests/test-wcwidth.c (main): Check the width of U+2202.
13439         * doc/posix-functions/wcwidth.texi: Mention the issue.
13441 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13443         Port manywarnings to GCC 9
13444         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
13445         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
13446         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
13447         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
13448         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
13449         --help=warnings output.
13450         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
13451         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
13452         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
13454 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13456         Sync lib/mktime-internal.h from glibc
13457         * config/srclist.txt: Add entry for lib/mktime-internal.h.
13458         * lib/mktime-internal.h: Autoupdate.
13460 2019-04-28  Bruno Haible  <bruno@clisp.org>
13462         tls tests: Prevent that the test takes too long.
13463         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
13464         (main): Let the test fail if it takes more than 10 minutes.
13465         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
13467 2019-04-27  Bruno Haible  <bruno@clisp.org>
13469         lock tests: Prevent that the test takes too long.
13470         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
13471         (main): Let the test fail if it takes more than 10 minutes.
13472         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
13474 2019-04-27  Bruno Haible  <bruno@clisp.org>
13476         localename: Fix crash on mingw (regression from 2018-11-23).
13477         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
13478         locale name that is null.
13480 2019-04-27  Bruno Haible  <bruno@clisp.org>
13482         Fix gcc warnings on 64-bit mode mingw.
13483         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
13484         * lib/gl_array_list.c: Likewise.
13485         * lib/gl_array_map.c: Likewise.
13486         * lib/gl_array_set.c: Likewise.
13487         * lib/gl_carray_list.c: Likewise.
13488         * lib/gl_sublist.c: Likewise.
13489         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
13490         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
13491         * lib/gl_hash_map.c (uintptr_t): Likewise.
13492         * lib/gl_hash_set.c (uintptr_t): Likewise.
13493         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
13494         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
13495         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
13496         * lib/iconv.c (uintptr_t): Likewise.
13497         * lib/iconv_close.c (uintptr_t): Likewise.
13498         * tests/test-lock.c: Include <stdint.h>.
13499         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
13500         'long'.
13501         * modules/clean-temp (Depends-on): Add stdint.
13502         * modules/array-list (Depends-on): Likewise.
13503         * modules/array-map (Depends-on): Likewise.
13504         * modules/array-set (Depends-on): Likewise.
13505         * modules/carray-list (Depends-on): Likewise.
13506         * modules/sublist (Depends-on): Likewise.
13507         * modules/lock-tests (Depends-on): Likewise.
13509 2019-04-27  Bruno Haible  <bruno@clisp.org>
13511         error: Tweak indentation.
13512         * lib/error.c: Correct indentation.
13514 2019-04-27  Bruno Haible  <bruno@clisp.org>
13516         term-style-control: Fix gcc warning on mingw.
13517         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
13518         of i.
13520 2019-04-26  Bruno Haible  <bruno@clisp.org>
13522         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
13523         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
13525 2019-04-26  Bruno Haible  <bruno@clisp.org>
13527         relocatable-prog: Fix gcc warning on mingw.
13528         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
13529         on EMX.
13531 2019-04-02  Bruno Haible  <bruno@clisp.org>
13533         gitsub.sh: New file.
13534         * top/gitsub.sh: New file.
13536 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
13538         argmatch: use void* for raw memory pointers
13539         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
13540         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
13541         to "values", keep char* for strings.
13543 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
13545         prefix-gnulib-mk: fix the support for gnulib-po
13546         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
13547         Don't touch HAVE_* variables.
13548         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
13550 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
13552         di-set: allow free with 'ino_map' being NULL.
13553         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
13554         is NULL.  Bug introduced in commit 3703dbbe88dd.
13555         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
13556         as a test.
13558 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
13560         * lib/str-two-way.h: Fix comment typo.
13562 2019-04-13  Bruno Haible  <bruno@clisp.org>
13564         x-to-1: Restore ability to use original calling convention.
13565         * build-aux/x-to-1.in: Add comments. Accept the original form of
13566         HELP2MAN argument as well as the form expected since 2012-12-12.
13568 2019-04-13  Bruno Haible  <bruno@clisp.org>
13570         x-to-1: Avoid failure due to missing perl modules.
13571         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
13572         needs are installed.
13574 2019-04-13  Bruno Haible  <bruno@clisp.org>
13576         openmp-init: New module.
13577         * modules/openmp-init: New file.
13578         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
13579         the changes from 2019-04-09.
13581 2019-04-12  Bruno Haible  <bruno@clisp.org>
13583         signbit: Fix compilation error when gnulib's math.h exists twice.
13584         * lib/math.in.h (GNULIB_defined_signbit): New macro.
13586 2019-04-12  Bruno Haible  <bruno@clisp.org>
13588         openmp: Fix compilation error on platforms without OpenMP.
13589         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
13591 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
13593         mountlist: make parsing /proc/self/mountinfo more robust
13594         Cater for the following issues with mountinfo parsing (the first
13595         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
13596         in <https://bugs.gnu.org/35137>).
13597         1. The fields source, target, mntroot and fstype may contain characters
13598         like '\r'; sscanf(3) fails to read such values with the %s format
13599         specifier because it would stop at such characters.
13600         Example: "mount -t tmpfs tmpfs /foo^Mbar".
13601         The only true separator in that file is the ' ' character.
13602         2. The source field may be an empty string, which happens e.g. with
13603         "mount -t tmpfs '' /target".
13604         3. The fstype field may contain mangled characters as well which need
13605         unescaping.
13606         * lib/mountlist.c (terminate_at_blank): Add utility function.
13607         (read_file_system_list): In the block trying to read the mountinfo file,
13608         avoid using sscanf(3) with %s format; instead, parse the above fields
13609         separated by spaces one by one.
13610         This also handles the case when the source field is an empty string.
13611         Unescape the fstype field.
13613 2019-04-09  Bruno Haible  <bruno@clisp.org>
13615         openmp: Add workaround for 32-bit programs on AIX.
13616         * lib/omp.in.h: New file.
13617         * lib/omp-init.c: New file, based on lib/nproc.c.
13618         * m4/omp_h.m4: New file.
13619         * modules/openmp (Files): Add them.
13620         (Depends-on): Add include_next, c-ctype, setenv.
13621         (configure.ac): Invoke gl_OMP_H.
13622         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
13623         (Include): Mention <omp.h>.
13625 2019-04-09  Bruno Haible  <bruno@clisp.org>
13627         nproc: Fix return value for privileged processes.
13628         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
13629         getpid().
13631 2019-04-07  Bruno Haible  <bruno@clisp.org>
13633         Add copyright notices in several files.
13634         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
13635         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
13636         * lib/libunistring.valgrind: Likewise.
13637         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
13638         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
13639         * lib/memchr.valgrind: Likewise.
13640         * lib/memchr2.valgrind: Likewise.
13641         * lib/rawmemchr.valgrind: Likewise.
13642         * lib/relocatable.valgrind: Likewise.
13643         * lib/strchrnul.valgrind: Likewise.
13645 2019-03-25  Bruno Haible  <bruno@clisp.org>
13647         term-style-control tests: Fix link error.
13648         Reported by Tom G. Christensen in
13649         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
13650         * modules/term-style-control-tests (Makefile.am): Link
13651         test-term-style-control-hello and test-term-style-control-yes against
13652         LIBINTL.
13654 2019-03-24  Bruno Haible  <bruno@clisp.org>
13656         term-style-control: Add tests.
13657         * tests/test-term-style-control-hello.c: New file.
13658         * tests/test-term-style-control-yes.c: New file.
13659         * modules/term-style-control-tests: New file.
13661         term-style-control: New module.
13662         * lib/term-style-control.h: New file, based on libtextstyle's
13663         term-ostream.oo.h and term-ostream.oo.c.
13664         * lib/term-style-control.c: New file, based on libtextstyle's
13665         term-ostream.oo.c.
13666         * modules/term-style-control: New file.
13668 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13670         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
13671         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
13672         C++98 appears to be supported by Clang, but not by GCC nor ICC.
13674 2019-03-23  Bruno Haible  <bruno@clisp.org>
13676         Support cross-compilation to musl libc.
13677         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
13678         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
13679         musl libc.
13680         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13681         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
13682         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13683         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13684         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13685         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
13686         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13687         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
13688         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13689         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13690         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
13691         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
13692         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13693         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13694         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
13695         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
13696         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
13697         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13698         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
13699         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13700         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13701         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13702         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
13703         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13704         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
13705         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
13706         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
13707         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
13708         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
13709         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
13710         * m4/log.m4 (gl_FUNC_LOG): Likewise.
13711         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
13712         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
13713         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
13714         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
13715         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
13716         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
13717         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
13718         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
13719         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
13720         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
13721         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
13722         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
13723         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13724         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
13725         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
13726         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
13727         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
13728         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
13729         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
13730         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
13731         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
13732         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13733         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
13734         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13735         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
13736         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
13737         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
13738         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
13739         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
13740         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13741         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13742         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13743         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
13744         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13745         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13746         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13747         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
13748         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13749         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
13750         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13751         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13752         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13753         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
13754         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
13755         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13756         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13759 2019-03-23  Bruno Haible  <bruno@clisp.org>
13761         posix_spawn_file_actions_*: Document musl libc bugs.
13762         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
13763         the bug.
13764         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
13765         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
13766         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
13767         cross-compiling to a musl system, guess no.
13768         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
13769         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
13771 2019-03-23  Bruno Haible  <bruno@clisp.org>
13773         futimens: Document musl libc bug.
13774         * doc/posix-functions/futimens.texi: Mention the bug.
13775         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
13776         cross-compiling, guess no on glibc and musl systems.
13778 2019-03-23  Bruno Haible  <bruno@clisp.org>
13780         Clarify that cross-compilation guesses are guesses.
13781         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
13782         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
13783         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
13784         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
13785         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
13786         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
13787         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
13788         gl_cv_glob_lists_symlinks.
13789         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
13790         'guessing ' to ac_cv_func_malloc_0_nonnull.
13791         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
13792         'guessing ' to ac_cv_func_realloc_0_nonnull.
13793         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
13794         'guessing ' to gl_cv_func_poll.
13795         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
13796         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
13797         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
13799 2019-03-23  Bruno Haible  <bruno@clisp.org>
13801         strtold: Fix typo.
13802         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
13804 2019-03-23  Bruno Haible  <bruno@clisp.org>
13806         noreturn: In C++ mode with clang, use _Noreturn as fallback.
13807         Reported by Akim Demaille.
13808         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
13809         [[noreturn]] would not work, use _Noreturn instead.
13811 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13813         libtextstyle-optional: Fix compiler warnings.
13814         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
13815         as unused.
13817 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13819         bitset: fix memory leaks
13820         Reported by Bruno Haible.
13821         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
13822         * lib/bitset/vector.c (vbitset_free): New.
13823         (vbitset_vtable): Use it.
13825 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13827         bitset: minor changes
13828         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
13829         * lib/bitset/table.c: Formatting changes.
13830         Remove useless braces.
13831         Prefer using else in cascades of if/else-if with returns.
13832         * lib/bitset/vector.c: Reduce scopes.
13834 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13836         bitset: expose bitset_resize
13837         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
13838         * tests/test-bitset.c (check_attributes): Check bitset_resize.
13839         (main): Use a variable bitset as reference, since fixed does not support resize.
13841 2019-03-19  Bruno Haible  <bruno@clisp.org>
13843         doc: Document the 'stdnoreturn' and 'noreturn' modules.
13844         Reported by Akim Demaille.
13845         * doc/noreturn.texi: New file.
13846         * doc/gnulib.texi: Include it.
13848 2019-03-19  Bruno Haible  <bruno@clisp.org>
13850         doc: Document how to use 'static inline'.
13851         * doc/static-inline.texi: New file.
13852         * doc/gnulib.texi: Include it.
13854 2019-03-19  Bruno Haible  <bruno@clisp.org>
13856         libtextstyle-optional: Add tests.
13857         * tests/test-libtextstyle.c: New file, based on libtextstyle's
13858         adhoc-tests/hello.c.
13859         * tests/test-libtextstyle-default.css: New file, copied from
13860         libtextstyle's adhoc-tests/hello-default.css.
13861         * modules/libtextstyle-optional-tests: New file.
13863         libtextstyle-optional: New module.
13864         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
13865         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
13866         * modules/libtextstyle-optional: New file.
13868 2019-03-19  Bruno Haible  <bruno@clisp.org>
13870         c-stack: Make signal handlers more reliable.
13871         * lib/c-stack.c (progname): New variable.
13872         (die): Use it.
13873         (c_stack_action): Initialize it.
13874         (segv_handler): Save and restore errno.
13876 2019-03-19  Bruno Haible  <bruno@clisp.org>
13878         Help making signal handlers more reliable.
13879         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
13880         _GL_ASYNC_SAFE into config.h.
13881         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
13882         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
13883         argument.
13884         * lib/fatal-signal.c (action_t, uninstall_handlers,
13885         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
13886         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
13887         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
13888         _GL_ASYNC_SAFE.
13889         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
13890         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
13892 2019-03-18  Bruno Haible  <bruno@clisp.org>
13894         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
13895         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
13896         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
13898 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13900         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
13901         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
13902         GCC 4.8.
13904 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
13906         fts: minor simplification
13907         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
13909 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13911         bitset, timevar: Depend on c99.
13912         Reported by Bruno Haible.
13913         * modules/bitset, modules/timevar (Depends-on): Add c99.
13915 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13917         bitset: a bit (...) more tests
13918         * tests/test-bitset.c (check_attributes): Check zero and ones.
13920 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13922         bitset: fix overflows.
13923         Reported by Bruno Haible.
13924         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
13925         * lib/bitset/table.c (tbitset_test): last_bit is the position of
13926         the bit in the array of bitset_word, so be sure to take its modulo
13927         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
13928         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
13930 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
13932         bitset: style changes.
13933         * lib/bitset/table.c: Use NULL, not 0, for pointers.
13934         Formatting changes.
13935         (tbitset_list): Reduce scopes.
13937 2019-03-16  Bruno Haible  <bruno@clisp.org>
13939         fatal-signal: Pass the signal number to the action.
13940         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
13941         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
13942         (fatal_signal_handler): Pass the signal number to the action.
13943         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
13944         signal number as parameter.
13945         (create_temp_dir): Update.
13946         * lib/wait-process.c (cleanup_slaves_action): New function.
13947         (register_slave_subprocess): Update at_fatal_signal invocation.
13948         * NEWS: Mention the change.
13950 2019-03-16  Bruno Haible  <bruno@clisp.org>
13952         fatal-signal: Add function that lists the fatal signals.
13953         * lib/fatal-signal.h (get_fatal_signals): New declaration.
13954         * lib/fatal-signal.c (get_fatal_signals): New function.
13956 2019-03-14  Bruno Haible  <bruno@clisp.org>
13958         isatty: Make it return true in Cygwin consoles on native Windows.
13959         * lib/isatty.c: Include <string.h>.
13960         (GetProcAddress): New macro.
13961         (GetNamedPipeClientProcessIdFuncType): New type.
13962         (GetNamedPipeClientProcessIdFunc): New variable.
13963         (QueryFullProcessImageNameFuncType): New type.
13964         (QueryFullProcessImageNameFunc): New variable.
13965         (initialized): New variable.
13966         (initialize): New function.
13967         (IsCygwinConsoleHandle): New function.
13968         (isatty): Invoke it.
13969         * doc/posix-functions/isatty.texi: Mention the issue.
13971 2019-03-14  Bruno Haible  <bruno@clisp.org>
13973         all: Update URLs to msdn.microsoft.com.
13974         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
13975         was moved to docs.microsoft.com.
13977 2019-03-13  Bruno Haible  <bruno@clisp.org>
13979         gnulib-tool: Clarify the coding style.
13980         Suggested by Pavel Raiskup <praiskup@redhat.com>.
13981         * gnulib-tool: Add comment about coding style.
13983 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
13985         strtod: fix clash with strtold
13986         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
13987         * lib/strtod.c (compute_minus_zero, minus_zero):
13988         Simplify by remving the macro / external variable,
13989         and having just a function.  User changed.  This avoids
13990         the need for an external variable that might clash.
13992 2019-03-10  Bruno Haible  <bruno@clisp.org>
13994         alloca-opt: Fix conflict mingw's new <alloca.h> file.
13995         Reported by Eli Zaretskii <eliz@gnu.org>.
13996         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
13997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
13998         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
14000 2019-03-10  Bruno Haible  <bruno@clisp.org>
14002         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
14003         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
14004         is in use.
14005         * tests/test-printf-posix2.c: Likewise.
14007 2019-03-10  Bruno Haible  <bruno@clisp.org>
14009         uninorm tests: Free allocated memory.
14010         * tests/uninorm/test-u32-normalize-big.h
14011         (struct normalization_test_file): Remove 'const' from allocated member.
14012         (free_normalization_test_file): New declaration.
14013         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
14014         memory.
14015         (free_normalization_test_file): New function.
14016         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
14017         'struct normalization_test_file' contents.
14018         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
14019         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
14020         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
14022 2019-03-10  Bruno Haible  <bruno@clisp.org>
14024         di-set: Fix memory leak.
14025         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
14026         not free().
14028 2019-03-10  Bruno Haible  <bruno@clisp.org>
14030         tests: Free allocated memory.
14031         Reported by <deltatau@protonmail.com> via Assaf Gordon.
14032         * tests/test-astrxfrm.c (main): Free allocated memory.
14033         * tests/test-bitset.c (compare, check_attributes): Free allocated
14034         bitsets.
14035         * tests/test-filenamecat.c (main): Free allocated memory.
14036         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
14037         * tests/test-freadptr.c (main): Likewise.
14038         * tests/test-freadptr2.c (main): Free allocated memory.
14039         * tests/test-freadseek.c (main): Likewise.
14040         * tests/test-gc-arcfour.c (main): Close allocated context.
14041         * tests/test-gc-arctwo.c (main): Likewise.
14042         * tests/test-gc-des.c (main): Close all allocated contexts.
14043         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
14044         * tests/test-pipe-filter-ii1.c (main): Likewise.
14045         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
14046         allocated file actions.
14047         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
14048         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
14049         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
14050         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
14051         * tests/test-strfmon_l.c (main): Free allocated locales.
14052         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
14053         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
14054         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14055         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14056         * tests/unistr/test-chr.h (main): Free input32.
14057         * tests/unistr/test-strchr.h (test_strchr): Likewise.
14059 2019-03-10  Bruno Haible  <bruno@clisp.org>
14061         tests: Prepare for using valgrind.
14062         * tests/*.sh: Invoke all test programs through ${CHECKER}.
14063         * tests/*/*.sh: Likewise.
14064         * tests/test-freadptr.c (main): Update accordingly.
14065         * tests/test-freadseek.c (main): Likewise.
14067 2019-03-09  Bruno Haible  <bruno@clisp.org>
14069         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
14070         * lib/get-rusage-as.c (get_rusage_as): When compiled by
14071         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
14072         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
14073         before exiting.
14075 2019-03-09  Jim Meyering  <meyering@fb.com>
14077         test-userspec.c: don't print NULL
14078         * tests/test-userspec.c (main): A test release of gcc,
14079         9.0.1 20190310, warned that this test would attempt to
14080         print a NULL pointer via a %s printf format.  Fix that
14081         and remove the unnecessary preceding "!diag" conjunct.
14082         Also add a comment.
14084 2019-03-03  Bruno Haible  <bruno@clisp.org>
14086         getloadavg: Write NULL for the null pointer.
14087         Reported by Michal Privoznik <mprivozn@redhat.com>.
14088         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
14090 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
14092         alloca, tsearch-tests: Write NULL for the null pointer.
14093         * lib/alloca.c (i00afunc): Write NULL instead of 0.
14094         * tests/test-tsearch.c (mangle_tree): Likewise.
14096 2019-03-09  Bruno Haible  <bruno@clisp.org>
14098         strfmon_l: Fix -fsanitize=address finding.
14099         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
14100         <string.h>.
14101         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
14102         (directive_t, directives_t): New types.
14103         (fmon_parse): New function.
14104         (rpl_strfmon_l): Don't call va_arg more often than needed for the
14105         format string. Consume 'long double' arguments in places where the
14106         format string indicates so.
14107         * modules/strfmon_l (Depends-on): Add 'stdbool'.
14109 2019-03-09  Bruno Haible  <bruno@clisp.org>
14111         crypto/des: Fix undefined behaviour.
14112         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
14113         shift operations on 'int'.
14115 2019-03-09  Bruno Haible  <bruno@clisp.org>
14117         Fix undefined behaviour.
14118         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
14119         'unsigned int', to avoid shift operations on 'int'.
14120         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
14121         * tests/test-count-leading-zeros.c (main): Use a random number that has
14122         as many bits as TYPE, not only 2*15 or 2*31 bits.
14123         * tests/test-count-trailing-zeros.c (main): Likewise.
14124         * tests/test-count-one-bits.c (main): Likewise.
14125         * tests/test-memmem.c: Don't include "null-ptr.h".
14126         (main): Use zerosize_ptr() instead of null_ptr().
14127         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
14129 2019-03-08  Bruno Haible  <bruno@clisp.org>
14131         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
14132         Reported by Jeffrey Walton <noloader@gmail.com>.
14133         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
14134         invoke memset with a zero size.
14135         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14136         Likewise.
14137         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14138         Adjust accordingly.
14140 2019-03-08  Bruno Haible  <bruno@clisp.org>
14142         unistr/*, uniconv/*: Fix undefined behaviour.
14143         Reported by Jeffrey Walton <noloader@gmail.com>.
14144         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
14145         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
14146         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14147         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14149 2019-03-08  Bruno Haible  <bruno@clisp.org>
14151         unistr/u8-cmp: Fix undefined behaviour.
14152         Reported by Jeffrey Walton <noloader@gmail.com>.
14153         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
14155 2019-03-08  Bruno Haible  <bruno@clisp.org>
14157         unictype/numeric: Fix undefined behaviour.
14158         Reported by Jeffrey Walton <noloader@gmail.com>.
14159         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
14160         on shift overflow, caught by "gcc -fsanitize=undefined".
14161         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
14162         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14163         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14165 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14167         git-version-gen: fix --version copyright year
14168         * build-aux/git-version-gen, build-aux/move-if-change (version):
14169         --version output copyright year is now taken from script year,
14170         so that it no longer needs to be updated by hand.
14172 2019-03-04  Bruno Haible  <bruno@clisp.org>
14174         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
14175         This approach supports relocatable installation of shared libraries
14176         which depend on other shared libraries from the same package.
14177         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14178         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
14179         wrapper around the original LIBTOOL.
14180         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
14181         token '@loader_path' instead of '$ORIGIN'.
14182         * build-aux/libtool-reloc: New file.
14183         * modules/relocatable-prog (Files): Add it.
14184         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14185         the recent changes. Document the need to set the *_LDFLAGS of libraries.
14186         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
14187         Makefile.am, not in configure.ac.
14189 2019-03-04  Bruno Haible  <bruno@clisp.org>
14191         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
14192         * build-aux/install-reloc: Revert change.
14193         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14195 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14197         nstrftime: support the ‘+’ flag
14198         * lib/nstrftime.c (add, __strftime_internal):
14199         Add support for the ‘+’ flag introduced in POSIX.1-2017.
14200         (__strftime_internal): New arg ‘width’.  All uses changed.
14201         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
14203 2019-02-24  Bruno Haible  <bruno@clisp.org>
14205         relocatable-prog: Improve verbose output.
14206         * build-aux/install-reloc (func_verbose): Escape characters that would
14207         be interpreted by the shell.
14209 2019-02-24  Bruno Haible  <bruno@clisp.org>
14211         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
14212         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
14213         "sys/stat.h".
14214         * lib/lstat.c: Likewise.
14215         * lib/fstat.c: Likewise.
14216         * lib/fstatat.c: Likewise.
14218 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
14220         long-options: add parse_gnu_standard_options_only
14221         Discussed in https://bugs.gnu.org/33468 .
14223         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
14224         (parse_gnu_standard_options_only): Add function to process
14225         the GNU default options --help and --version and fail for
14226         any other unknown long or short option. See
14227         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
14228         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
14229         * modules/long-options (depends-on): Add stdbool, exitfail.
14230         * top/maint.mk (sc_prohibit_long_options_without_use): Update
14231         syntax-check rule, add new function name.
14233 2019-02-23  Bruno Haible  <bruno@clisp.org>
14235         relocatable-prog: Update documentation.
14236         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14237         the recent changes.
14239 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14241         nstrftime: tweak arg order
14242         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
14243         All callers changed.  Suggested by TAMUKI Shoichi in:
14244         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
14246 2019-02-23  Bruno Haible  <bruno@clisp.org>
14248         relocatable-prog: Use wrapper-free installation also on Mac OS X.
14249         Reported by Paul Smith <psmith@gnu.org>.
14250         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
14251         (func_relativize): New function, from gnulib-tool.
14252         Handle mode 'macosx' through invocations of 'otool' and
14253         'install_name_tool'.
14254         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14255         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
14256         'install-reloc' invocation with mode 'macosx'.
14258 2019-02-23  Bruno Haible  <bruno@clisp.org>
14260         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
14261         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14262         Hurd with glibc >= 2.27.
14264 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14266         nstrftime: merge glibc strftime changes
14267         This incorporates:
14268         2019-02-11 Fix a few whitespace arrangement inconsistencies
14269         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
14270         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
14271         2019-01-11 strftime: use the "L_" macro with character literals
14272         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
14273         callers changed.  Default width of %Ey is now 2.  This is needed
14274         for proper handling of Japanese dates starting on 2019-05-01.
14276 2019-02-19  Bruno Haible  <bruno@clisp.org>
14278         relocatable-prog: Use $ORIGIN trick on more platforms.
14279         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14280         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
14281         Solaris >= 10, Haiku. But don't use it on Android.
14282         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
14283         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
14285 2019-02-19  Bruno Haible  <bruno@clisp.org>
14287         progreloc: Speed up executable lookup on various platforms.
14288         * lib/progreloc.c: Include <errno.h>.
14289         (safe_read, full_read): New functions.
14290         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
14291         prefer the information from the /proc file system to a PATH search.
14293 2019-02-19  Bruno Haible  <bruno@clisp.org>
14295         progreloc: Simplify code for Android.
14296         * lib/progreloc.c (executable_fd): Don't define on Android.
14297         (maybe_executable, find_executable): Don't use executable_fd on Android.
14299 2019-02-15  Bruno Haible  <bruno@clisp.org>
14301         gnulib-tool: Support --import with just a few tests, not --with-tests.
14302         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
14303         'inctests' when generating files; use 'inctests' only for computing the
14304         transitive closure.
14306 2019-02-14  Bruno Haible  <bruno@clisp.org>
14308         gnulib-tool: Improve handling of multiple --local-dir options.
14309         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
14310         options work.
14311         * gnulib-tool (func_path_prepend): Remove function.
14312         (func_path_foreach): Make IFS handling more robust.
14313         (local_gnulib_path): Collect --local-dir values using func_path_append,
14314         not func_path_prepend.
14315         (func_determine_path_separator): Make IFS handling more robust.
14316         (func_lookup_file_cb): New function.
14317         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
14318         func_lookup_local_file. Apply the patches in the reverse order of their
14319         origin in $local_gnulib_path.
14320         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
14321         * NEWS: Mention that the first --local-dir option is the one with
14322         highest priority.
14324 2019-02-10  Bruno Haible  <bruno@clisp.org>
14326         libtextstyle: New module.
14327         * m4/libtextstyle.m4: New file.
14328         * modules/libtextstyle: New file.
14330 2019-02-05  Bruno Haible  <bruno@clisp.org>
14332         declared.sh: Fix bug with variables of pointer type.
14333         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
14334         before the symbol to be omitted if the preceding character is a '*'.
14336 2019-02-04  Bruno Haible  <bruno@clisp.org>
14338         Add script for running tests under valgrind.
14339         * build-aux/run-test: New file, from GNU libunistring.
14340         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
14341         as well.
14343 2019-02-04  Bruno Haible  <bruno@clisp.org>
14345         declared.sh: Fix --version output.
14346         * build-aux/declared.sh (func_version): Update package name.
14348 2019-02-03  Bruno Haible  <bruno@clisp.org>
14350         Add script for determining the set of symbols to export from a library.
14351         * build-aux/declared.sh: New file, from GNU libunistring.
14352         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
14353         Mention it.
14355 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14357         vla: add commentary about VLA_ELEMS
14358         * lib/vla.h (VLA_ELEMS): Add commentary,
14359         some inspired by Bruno Haible’s proposal in:
14360         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
14362         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
14363         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
14364         assume the C99 signatures for strtod and strtold.  Programs that
14365         require stricter adherence to C99 should also use the strtod and
14366         strtold modules as needed, and we no longer need the
14367         HAVE_C99_STRTOLD macro.
14368         * NEWS: Mention this.
14369         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
14370         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
14371         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
14372         (Files): Remove m4/c-strtod.m4.
14373         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
14374         exists.
14376 2019-02-02  Bruno Haible  <bruno@clisp.org>
14378         fma: Improve code style.
14379         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
14381 2019-02-02  Colin Watson  <cjwatson@debian.org>
14383         *-map tests: Fix compilation error.
14384         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
14385         * tests/test-hash_map.c: Likewise.
14386         * tests/test-linkedhash_map.c: Likewise.
14388 2019-01-31  Bruno Haible  <bruno@clisp.org>
14390         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
14391         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
14392         GNULIB_defined_strtold_function): New macros.
14393         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
14394         (STRTOD): Ignore HAVE_C99_STRTOLD.
14395         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
14396         deemed buggy. But do use it on platforms where uselocale exists and is
14397         usable.
14398         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
14399         deemed buggy. On platforms where uselocale exists and is usable, use
14400         uselocale and strtod/strtold.
14401         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
14402         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
14403         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
14404         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
14405         (Depends-on): Add strtod.
14406         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
14407         (Depends-on): Add strtold.
14409 2019-01-31  Bruno Haible  <bruno@clisp.org>
14411         strtod, strtold: Use the locale's decimal point.
14412         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
14413         (decimal_point_char): New function, copied from lib/vasnprintf.c.
14414         (parse_number): Add a radixchar argument. Use it instead of '.'.
14415         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
14416         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
14417         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
14418         * tests/test-strtod1.c: New file.
14419         * tests/test-strtod1.sh: New file.
14420         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
14421         locale-fr.m4 and its dependencies.
14422         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14423         (Makefile.am): Arrange to compile test-strtod1.c and run
14424         test-strtod1.sh.
14425         * tests/test-strtold1.c: New file.
14426         * tests/test-strtold1.sh: New file.
14427         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
14428         locale-fr.m4 and its dependencies.
14429         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14430         (Makefile.am): Arrange to compile test-strtold1.c and run
14431         test-strtold1.sh.
14433 2019-01-31  Bruno Haible  <bruno@clisp.org>
14435         strtod, strtold tests: Simplify tests.
14436         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
14437         * tests/test-strtold.c (main): Likewise.
14439 2019-01-31  Bruno Haible  <bruno@clisp.org>
14441         strtod, strtold: Avoid unnecessary rounding errors.
14442         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
14443         decimal to DOUBLE conversion.
14445 2019-01-31  Bruno Haible  <bruno@clisp.org>
14447         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
14448         * lib/strtod.c (STRTOD): When there is an extra character after the
14449         exponent marker 'p', reparse the number.
14450         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
14451         * doc/posix-functions/strtold.texi: Likewise.
14453 2019-01-29  Bruno Haible  <bruno@clisp.org>
14455         strtold: Add tests.
14456         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
14457         * modules/strtold-tests: New file.
14459 2019-01-29  Bruno Haible  <bruno@clisp.org>
14461         strtold: New module.
14462         * lib/stdlib.in.h (strtold): New declaration.
14463         * lib/strtold.c: New file.
14464         * lib/strtod.c: Consider USE_LONG_DOUBLE.
14465         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
14466         USE_LDEXP): New macros.
14467         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
14468         USE_LONG_DOUBLE.
14469         (underlying_strtod): Remove function. Replace with some macros.
14470         Re-add the code for a missing underlying function that was removed on
14471         2013-02-19.
14472         * m4/strtold.m4: New file.
14473         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
14474         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
14475         REPLACE_STRTOLD.
14476         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
14477         REPLACE_STRTOLD.
14478         * modules/strtold: New file.
14479         * doc/posix-functions/strtold.texi: Document the new module.
14481 2019-01-29  Bruno Haible  <bruno@clisp.org>
14483         strtod: Fix compilation error on IRIX 6.5.
14484         * modules/strtod (Depends-on): Add 'math'.
14486 2019-01-28  Bruno Haible  <bruno@clisp.org>
14488         Fix build error when building a shared libunistring on Android.
14489         * tests/uninorm/test-nfc.c (n): Don't define on Android.
14490         (main): Add 'volatile', to defeat a GCC optimization that would
14491         eliminate the reference.
14492         * tests/uninorm/test-nfd.c (n): Don't define on Android.
14493         (main): Add 'volatile', to defeat a GCC optimization that would
14494         eliminate the reference.
14495         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
14496         (main): Add 'volatile', to defeat a GCC optimization that would
14497         eliminate the reference.
14498         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
14499         (main): Add 'volatile', to defeat a GCC optimization that would
14500         eliminate the reference.
14502 2019-01-27  Bruno Haible  <bruno@clisp.org>
14504         Avoid build errors due to wrong references between modules.
14505         * lib/uninorm/canonical-decomposition.c: Include
14506         "uninorm/decomposition-table.h", not "decomposition-table.h".
14507         * lib/uninorm/decomposition.c: Likewise.
14508         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
14509         not "decompose-internal.h".
14510         * lib/uninorm/u16-normalize.c: Likewise.
14511         * lib/uninorm/u32-normalize.c: Likewise.
14512         * lib/uninorm/uninorm-filter.c: Likewise.
14513         * lib/uninorm/nfkc.c: Likewise.
14514         * lib/uninorm/nfkd.c: Likewise.
14515         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
14516         "caseprop.h".
14517         * lib/unicase/u8-ct-totitle.c: Likewise.
14518         * lib/unicase/u8-prefix-context.c: Likewise.
14519         * lib/unicase/u8-suffix-context.c: Likewise.
14520         * lib/unicase/u16-casemap.c: Likewise.
14521         * lib/unicase/u16-ct-totitle.c: Likewise.
14522         * lib/unicase/u16-prefix-context.c: Likewise.
14523         * lib/unicase/u16-suffix-context.c: Likewise.
14524         * lib/unicase/u32-casemap.c: Likewise.
14525         * lib/unicase/u32-ct-totitle.c: Likewise.
14526         * lib/unicase/u32-prefix-context.c: Likewise.
14527         * lib/unicase/u32-suffix-context.c: Likewise.
14528         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
14529         "unicasemap.h".
14530         * lib/unicase/u8-toupper.c: Likewise.
14531         * lib/unicase/u8-ct-tolower.c: Likewise.
14532         * lib/unicase/u8-ct-toupper.c: Likewise.
14533         * lib/unicase/u16-tolower.c: Likewise.
14534         * lib/unicase/u16-toupper.c: Likewise.
14535         * lib/unicase/u16-ct-tolower.c: Likewise.
14536         * lib/unicase/u16-ct-toupper.c: Likewise.
14537         * lib/unicase/u32-tolower.c: Likewise.
14538         * lib/unicase/u32-toupper.c: Likewise.
14539         * lib/unicase/u32-ct-tolower.c: Likewise.
14540         * lib/unicase/u32-ct-toupper.c: Likewise.
14541         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
14542         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
14543         * lib/unicase/u16-ct-casefold.c: Likewise.
14544         * lib/unicase/u32-ct-casefold.c: Likewise.
14546 2019-01-27  Bruno Haible  <bruno@clisp.org>
14548         gperf: Fix error when this module is required by some test module.
14549         * modules/gperf (Applicability): Set to 'all'.
14551 2019-01-27  Bruno Haible  <bruno@clisp.org>
14553         tmpfile: Add support for Android.
14554         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
14555         works.
14556         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
14557         Android.
14558         * modules/tmpfile (Depends-on): Add 'stdbool'.
14559         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
14560         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
14562 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
14564         bitsetv: allow free on NULL.
14565         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
14567 2019-01-27  Bruno Haible  <bruno@clisp.org>
14569         test-framework-sh: Improve maintainability.
14570         * tests/init.sh: Clarify what belongs together. Reorder definitions.
14572 2019-01-27  Bruno Haible  <bruno@clisp.org>
14574         tests: Don't assume that /tmp exists.
14575         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
14576         * tests/test-copy-acl-1.sh: Likewise.
14577         * tests/test-file-has-acl-1.sh: Likewise.
14578         * tests/test-copy-file-1.sh: Likewise.
14580 2019-01-27  Bruno Haible  <bruno@clisp.org>
14582         tests: Accommodate a shell that is not in /bin/sh.
14583         * tests/init.sh (setup_): Set srcdir and builddir.
14584         (BOURNE_SHELL): New variable.
14585         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
14586         * modules/file-has-acl-tests (Depends-on): Likewise.
14587         * modules/copy-file-tests (Depends-on): Likewise.
14588         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
14589         scripts through $BOURNE_SHELL.
14590         * tests/test-set-mode-acl-2.sh: Likewise.
14591         * tests/test-copy-acl-1.sh: Likewise.
14592         * tests/test-copy-acl-2.sh: Likewise.
14593         * tests/test-file-has-acl-1.sh: Likewise.
14594         * tests/test-file-has-acl-2.sh: Likewise.
14595         * tests/test-copy-file-1.sh: Likewise.
14596         * tests/test-copy-file-2.sh: Likewise.
14597         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
14598         invoker.
14599         * tests/test-copy-acl.sh (builddir): Likewise.
14600         * tests/test-file-has-acl.sh (builddir): Likewise.
14601         * tests/test-copy-file.sh (builddir): Likewise.
14602         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
14603         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
14604         * tests/test-vc-list-files-git.sh: Likewise.
14606 2019-01-27  Bruno Haible  <bruno@clisp.org>
14608         tests: Fix some "unused variable" warnings.
14609         * tests/test-fts.c (fts_dealloc): Remove unused variable.
14610         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
14611         * tests/test-striconveh.c (main): Move some variable into the
14612         '#if HAVE_ICONV'.
14613         * tests/test-striconveha.c (main): Likewise.
14614         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14615         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14616         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14617         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
14618         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14619         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14620         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14621         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14622         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14623         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
14624         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
14625         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
14626         * tests/test-tsearch.c (main): Move some variable into the
14627         '#if HAVE_INITSTATE'.
14629 2019-01-27  Bruno Haible  <bruno@clisp.org>
14631         unigbrk/uc-grapheme-breaks: Fix build failure.
14632         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
14633         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
14635 2019-01-27  Bruno Haible  <bruno@clisp.org>
14637         mountlist: Merge two .m4 files.
14638         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
14639         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
14640         * m4/ls-mntd-fs.m4: Remove file.
14641         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
14643 2019-01-27  Bruno Haible  <bruno@clisp.org>
14645         tests: Enable Linux specific tests on Android.
14646         * tests/test-flock.c (main): Treat Android like Linux.
14647         * tests/test-openat-safer.c (main): Likewise.
14649 2019-01-27  Bruno Haible  <bruno@clisp.org>
14651         relocatable-prog: Use Linux code on Android.
14652         * lib/progreloc.c: Treat Android like Linux.
14654 2019-01-26  Bruno Haible  <bruno@clisp.org>
14656         getloadavg: Add support for Android.
14657         * lib/getloadavg.c: Treat Android like Linux.
14659 2019-01-26  Bruno Haible  <bruno@clisp.org>
14661         vma-iter: Add support for Android.
14662         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
14663         * lib/vma-iter.c: Treat Android like Linux.
14664         * lib/get-rusage-data.c (get_rusage_data): Likewise.
14666 2019-01-26  Bruno Haible  <bruno@clisp.org>
14668         fts: Optimize on Android.
14669         * lib/fts.c: Treat Android like Linux.
14671 2019-01-26  Bruno Haible  <bruno@clisp.org>
14673         fts: Add support for Android.
14674         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
14675         defined by this module and the ones in libc.
14676         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
14678 2019-01-26  Bruno Haible  <bruno@clisp.org>
14680         mountlist: Use Linux code on Android.
14681         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
14682         (unescape_tab, read_file_system_list): Enable Linux code on Android
14683         as well.
14684         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
14685         and endmntent.
14686         * modules/mountlist (Depends-on): Add 'getline'.
14688 2019-01-26  Bruno Haible  <bruno@clisp.org>
14690         localename tests: Fix test failure on Android.
14691         * modules/localename-tests (Depends-on): Add 'setlocale'.
14693 2019-01-26  Bruno Haible  <bruno@clisp.org>
14695         mountlist: Port better to Android.
14696         * lib/mountlist.c (MOUNTED): Redefine on Android.
14697         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
14698         Android.
14700 2019-01-26  Bruno Haible  <bruno@clisp.org>
14702         striconveh: Fix use of uninitialized iconv_t.
14703         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
14704         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
14705         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
14707 2019-01-26  Bruno Haible  <bruno@clisp.org>
14709         nonblocking-socket-tests: Fix test failure on Android 4.3.
14710         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
14711         also on Android.
14713 2019-01-26  Bruno Haible  <bruno@clisp.org>
14715         sh-filename: Add support for Android 4.3.
14716         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
14718 2019-01-26  Bruno Haible  <bruno@clisp.org>
14720         ptsname_r: Work around bug on Android 4.3.
14721         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
14722         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
14723         correct.
14724         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
14725         is defined, just fix the return value.
14726         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
14727         The behaviour of musl libc is nothing to be "fixed", since it is
14728         compliant with the next POSIX standard.
14730 2019-01-26  Bruno Haible  <bruno@clisp.org>
14732         ttyname_r: Work around bug on Android 4.3.
14733         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
14734         * lib/ttyname_r.c (ttyname_r): Implement for Android.
14735         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
14736         * doc/posix-functions/ttyname.texi: Likewise.
14738 2019-01-25  Bruno Haible  <bruno@clisp.org>
14740         getprogname: Port to Android 4.3.
14741         * lib/getprogname.c (getprogname): On Android, take only the last
14742         component of __progname.
14744 2019-01-25  Bruno Haible  <bruno@clisp.org>
14746         wcrtomb: Work around bug on Android 4.3.
14747         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
14748         the C locale.
14749         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
14750         which does not have the 'wctomb' function.
14751         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
14752         * tests/test-wcrtomb.c (main): Accept argument '5'.
14753         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
14755 2019-01-25  Bruno Haible  <bruno@clisp.org>
14757         setlocale: Work around bug on Android 4.3.
14758         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
14759         the "C" locale.
14760         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
14761         * doc/posix-functions/setlocale.texi: Mention the Android bug.
14763 2019-01-24  Bruno Haible  <bruno@clisp.org>
14765         memchr: Work around bug on Android <= 5.0.
14766         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
14767         * doc/posix-functions/memchr.texi: Mention the Android bug.
14769 2019-01-24  Bruno Haible  <bruno@clisp.org>
14771         random: Fix compilation error on Android 4.3.
14772         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
14773         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
14774         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
14775         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
14776         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
14778         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14779         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
14780         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14781         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
14782         REPLACE_INITSTATE, REPLACE_SETSTATE.
14783         * doc/posix-functions/random.texi: Correct the description of the
14784         situation on Android.
14785         * doc/posix-functions/srandom.texi: Likewise.
14786         * doc/posix-functions/rand.texi: Likewise.
14787         * doc/posix-functions/srand.texi: Likewise.
14789 2019-01-24  Bruno Haible  <bruno@clisp.org>
14791         mbtowc: Fix compilation error on Android 4.3.
14792         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
14793         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
14794         HAVE_MBTOWC.
14795         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
14796         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
14797         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
14798         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
14799         * doc/posix-functions/mbtowc.texi: Mention the change.
14801 2019-01-24  Bruno Haible  <bruno@clisp.org>
14803         fdatasync: Fix compilation error on Android 4.3.
14804         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
14805         test whether fdatasync() exists.
14807 2019-01-24  Bruno Haible  <bruno@clisp.org>
14809         unlinkat: Fix compilation error on Android 4.3.
14810         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
14811         also on Android.
14812         * doc/posix-functions/unlinkat.texi: Mention the issue.
14814 2019-01-24  Bruno Haible  <bruno@clisp.org>
14816         renameat: Fix compilation error on Android 4.3.
14817         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
14818         * doc/posix-functions/renameat.texi: Mention the issue.
14820 2019-01-24  Bruno Haible  <bruno@clisp.org>
14822         fchownat: Fix compilation error on Android 4.3.
14823         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
14824         use.
14825         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
14826         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
14827         * doc/posix-functions/fchownat.texi: Mention the issue.
14829 2019-01-23  Bruno Haible  <bruno@clisp.org>
14831         gnulib-tool: Support running testdirs on Android.
14832         * build-aux/test-driver.diff: New file.
14833         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
14834         build-aux/test-driver after running automake.
14836 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14838         relocatable-prog: avoid warnings from Automake
14839         * modules/relocatable-prog: Don't declare PHONY dependencies in
14840         Automake conditionals.
14842 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14844         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
14845         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
14847 2019-01-23  Bruno Haible  <bruno@clisp.org>
14849         threadlib: Revert commit from 2018-06-25. We now have a better fix.
14850         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
14851         preceding -Wl,--as-needed option. Don't check whether the linker
14852         supports --as-needed/--no-as-needed and --push-state/--pop-state.
14854 2019-01-23  Bruno Haible  <bruno@clisp.org>
14856         thread: Force linking with -lpthread, even when --as-needed is in use.
14857         Reported by Richard W.M. Jones <rjones@redhat.com> in
14858         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
14859         * lib/glthread/thread.h (pthread_create): Don't declare weak.
14861 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
14862             Bruno Haible  <bruno@clisp.org>
14864         relocatable: avoid compiler warnings (-Wshadow)
14865         * lib/relocatable.c (compute_curr_prefix): Rename local variables
14866         to avoid name collisions with global variables.
14868 2019-01-22  Bruno Haible  <bruno@clisp.org>
14870         vasnprintf: Don't use %n on Android.
14871         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
14872         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
14873         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
14875 2019-01-22  Bruno Haible  <bruno@clisp.org>
14877         *printf: Support cross-compilation to Android.
14878         * m4/printf.m4: Add cross-compilation guesses for Android.
14880 2019-01-21  Bruno Haible  <bruno@clisp.org>
14882         diacrit: Mark deprecated.
14883         * modules/diacrit (Status, Notice): Mark as deprecated.
14884         * NEWS: Mention it.
14886 2019-01-20  Bruno Haible  <bruno@clisp.org>
14888         rintl: Override broken implementation on NetBSD.
14889         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
14890         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
14891         REPLACE_RINTL.
14892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
14893         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
14894         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
14895         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
14897 2019-01-20  Bruno Haible  <bruno@clisp.org>
14899         log10l: Work around inaccurate implementation on NetBSD.
14900         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
14901         * lib/log10l.c: Comment out too simplistic override.
14902         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
14904 2019-01-20  Bruno Haible  <bruno@clisp.org>
14906         logl: Work around inaccurate implementation on NetBSD.
14907         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
14908         * lib/logl.c: Comment out unused code.
14909         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
14911 2019-01-20  Bruno Haible  <bruno@clisp.org>
14913         expm1l: Work around inaccurate implementation on NetBSD.
14914         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
14915         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
14916         REPLACE_EXPM1L.
14917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
14918         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
14919         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
14920         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
14922 2019-01-20  Bruno Haible  <bruno@clisp.org>
14924         expl: Work around inaccurate implementation on NetBSD.
14925         * lib/math.in.h (expl): Test also REPLACE_EXPL.
14926         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
14927         REPLACE_EXPL.
14928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
14929         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
14930         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
14931         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
14933 2019-01-20  Bruno Haible  <bruno@clisp.org>
14935         exp2l: Work around inaccurate implementation on NetBSD.
14936         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
14937         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
14939 2019-01-20  Bruno Haible  <bruno@clisp.org>
14941         floor, floorl: Avoid autoconf warnings.
14942         * modules/floor (configure.ac): Use AC_REQUIRE.
14943         * modules/floorl (configure.ac): Likewise.
14945 2019-01-20  Bruno Haible  <bruno@clisp.org>
14947         Defeat current GCC optimizations in math autoconf tests.
14948         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
14949         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14950         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14951         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14952         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14953         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14954         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14955         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14956         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14957         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14958         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14959         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14960         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14961         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14962         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
14963         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
14964         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
14965         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14966         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14967         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14968         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14969         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14970         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14971         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14972         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14973         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14974         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14975         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14976         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14977         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14978         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14979         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14980         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14981         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14982         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14983         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14984         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14985         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14987 2019-01-19  Pádraig Brady  <P@draigBrady.com>
14989         gettext: support disabling use of VLAs
14990         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
14992 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
14994         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
14995         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
14997 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
14999         fcntl: Fix syntax error (regression from 2018-10-05).
15000         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
15002 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15004         relocatable: improve documentation.
15005         * doc/relocatable-maint.texi (Supporting Relocation): For
15006         substitutions performed by config.status, we need more variables
15007         (for instance datarootdir defaults to '${prefix}/share' so we need
15008         prefix).
15010 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15012         backup: update dependencies
15013         * modules/backup-rename (Depends-on): It now depends on opendirat
15014         instead of opendir.  It also uses stdint, and xalloc-oversized.
15015         But no longer dirfd.
15016         * modules/backupfile (Depends-on): Add xalloc-oversized.
15018 2019-01-13  Bruno Haible  <bruno@clisp.org>
15020         getcwd: Fix test failure when building on a Linux 9p file system.
15021         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
15022         EINVAL from mkdir like ENAMETOOLONG.
15023         * tests/test-getcwd.c (test_long_name): Likewise.
15025 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
15027         Fix typos found by codespell.
15028         * lib/*.[hc]: Fix typos in comments.
15029         * pygnulib/*.py: Fix typos in error messages and comments.
15031 2019-01-12  Bruno Haible  <bruno@clisp.org>
15033         doc: Fix documentation about container data types.
15034         Reported by Werner Lemberg <wl@gnu.org>.
15035         * doc/containers.texi (Container data types): Fix typo.
15037 2019-01-10  Bruno Haible  <bruno@clisp.org>
15039         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
15040         Reported by Reuben Thomas <rrt@sc3d.org>.
15041         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
15043 2019-01-06  Bruno Haible  <bruno@clisp.org>
15045         maintainer-makefile: Make the configure.ac section optional.
15046         * top/maint.mk (GREP, SED): Define if not defined.
15048 2019-01-06  Bruno Haible  <bruno@clisp.org>
15050         localename: Assume setlocale function.
15051         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
15052         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
15054 2019-01-06  Bruno Haible  <bruno@clisp.org>
15056         doc: Add documentation about container data types.
15057         * doc/containers.texi: New file.
15058         * doc/gnulib.texi (Particular Modules): Include it.
15060 2019-01-06  Bruno Haible  <bruno@clisp.org>
15062         doc: Update documentation about 'progname' module.
15063         * doc/progname.texi: Rename from doc/error.texi. Change node name and
15064         title. Rewrite.
15065         * doc/gnulib.texi (Particular Modules): Update.
15067 2019-01-06  Bruno Haible  <bruno@clisp.org>
15069         doc: Document the xstdopen and *-safer modules.
15070         * doc/xstdopen.texi: New file.
15071         * doc/gnulib.texi (Particular Modules): Include it.
15073 2019-01-06  Bruno Haible  <bruno@clisp.org>
15075         xstdopen: Add tests.
15076         * tests/test-xstdopen.c: New file.
15077         * tests/test-xstdopen.sh: New file.
15078         * modules/xstdopen-tests: New file.
15080         xstdopen: New module.
15081         * lib/xstdopen.h: New file.
15082         * lib/xstdopen.c: New file.
15083         * modules/xstdopen: New file.
15085 2019-01-06  Bruno Haible  <bruno@clisp.org>
15087         stdopen: Fix compilation error with IRIX cc.
15088         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
15090 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15092         xfreopen need not include stdio--.h
15093         * lib/xfreopen.c: Do not include stdio--.h.
15095         xfreopen need not depend on freopen-safer
15096         * modules/xfreopen (Depends-on):
15097         Depend on freopen, not freopen-safer.
15099         stdopen: modernize and simplify
15100         * lib/stdopen.c: Update copyright date
15101         Do not include sys/types.h; no longer needed these days.
15102         (stdopen): Use C99-style decl in loop.  Return int errno
15103         value, rather than just a bool.  Do not worry about fd mismatches,
15104         since the caller cares only if 0, 1, 2 are occupied.
15105         * lib/stdopen.h: No need to include <stdbool.h>.
15106         * m4/stdopen.m4: Remove.
15107         * modules/stdopen: New file.
15109         stdopen: copy from last use in coreutils
15110         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
15111         New files, taken from their last commit in coreutils
15112         2007-07-23T12:35:58Z!jim@meyering.net
15113         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
15115 2019-01-05  Bruno Haible  <bruno@clisp.org>
15117         argp: Don't pass an invalid argument to dgettext().
15118         Reported by He X <xw897002528@gmail.com>.
15119         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
15120         dgettext().
15122 2019-01-05  Bruno Haible  <bruno@clisp.org>
15124         argp: Don't pass an invalid argument to dgettext().
15125         Reported by He X <xw897002528@gmail.com>.
15126         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
15127         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
15128         dgettext().
15130 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15132         stdioext: port to newer 32-bit Android
15133         Problem reported by Tom Yan in:
15134         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
15135         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
15136         (fp_) [__ANDROID__]: Use it.
15138 2019-01-04  Bruno Haible  <bruno@clisp.org>
15140         lock: Fix link error with --enable-threads=pth.
15141         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
15142         Mark as weak.
15144 2019-01-04  Bruno Haible  <bruno@clisp.org>
15146         Fix link errors in unit tests.
15147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15148         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
15149         * modules/array-map-tests (Makefile.am): Link test-array_map against
15150         libintl.
15151         * modules/array-set-tests (Makefile.am): Link test-array_set against
15152         libintl.
15153         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
15154         libintl.
15155         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
15156         libintl.
15157         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
15158         against libintl.
15159         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
15160         against libintl.
15162 2019-01-04  Bruno Haible  <bruno@clisp.org>
15164         Fix incorrect 'Link' sections.
15165         * modules/regex (Link): Mention the link requirement of module 'lock'.
15166         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
15168 2019-01-04  Bruno Haible  <bruno@clisp.org>
15170         Fix some 'Link' sections.
15171         * modules/c-stack (Link): Add link directive from the 'gettext-h'
15172         dependency.
15173         * modules/getaddrinfo (Link): Likewise.
15175 2019-01-04  Bruno Haible  <bruno@clisp.org>
15177         Remove redundant 'Link' sections.
15178         * modules/canon-host (Link): Remove section.
15179         * modules/timevar (Link): Likewise.
15181 2019-01-04  Bruno Haible  <bruno@clisp.org>
15183         Remove incorrect 'Link' sections.
15184         * modules/acl (Link): Remove section. Use combined 'Link' sections from
15185         the dependencies instead.
15186         * modules/crypto/md5 (Link): Likewise.
15187         * modules/crypto/sha1 (Link): Likewise.
15188         * modules/crypto/sha256 (Link): Likewise.
15189         * modules/crypto/sha512 (Link): Likewise.
15190         * modules/faccessat (Link): Likewise.
15191         * modules/fdutimensat (Link): Likewise.
15192         * modules/iconv_open-utf (Link): Likewise.
15193         * modules/propername (Link): Likewise.
15194         * modules/qacl (Link): Likewise.
15195         * modules/unicodeio (Link): Likewise.
15196         * modules/utimecmp (Link): Likewise.
15197         * modules/utimensat (Link): Likewise.
15198         * modules/xstriconv (Link): Likewise.
15199         * modules/xstriconveh (Link): Likewise.
15201 2019-01-04  Bruno Haible  <bruno@clisp.org>
15203         gnulib-tool: New option --extract-recursive-link-directive.
15204         * gnulib-tool (func_usage): Document the new options
15205         --extract-recursive-dependencies, --extract-recursive-link-directive.
15206         (func_verify_module): Document output variables.
15207         (func_get_dependencies_recursively): New function.
15208         (func_get_link_directive_recursively): New function.
15209         Use them to implement the new options
15210         --extract-recursive-dependencies, --extract-recursive-link-directive.
15211         * doc/gnulib-tool.texi (Link-time requirements): New section.
15213 2019-01-04  Bruno Haible  <bruno@clisp.org>
15215         Clarify meaning of 'Link' section in module description.
15216         * doc/gnulib.texi (Module description): Clarify the meaning of the
15217         'Link' section versus the one of the dependencies.
15218         * NEWS: Mention the change.
15220 2019-01-04  Bruno Haible  <bruno@clisp.org>
15222         pselect: Fix module description.
15223         * modules/pselect (Link): Put one link option per line.
15225 2019-01-04  Bruno Haible  <bruno@clisp.org>
15227         cosl: Fix module description.
15228         * modules/cosl (Link): Fix typo.
15229         * modules/mathl (configure.ac): Likewise.
15231 2019-01-04  Bruno Haible  <bruno@clisp.org>
15233         c-xvasprintf: Fix module dependencies.
15234         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
15236 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
15238         bootstrap: die when some submodules are not initialized
15239         * build-aux/bootstrap: Make sure all submodules are initialized.
15241 2019-01-04  Bruno Haible  <bruno@clisp.org>
15243         bitsetv: Fix module dependencies.
15244         * lib/bitsetv.c: Include xalloc.h.
15245         * modules/bitsetv (Depends-on): Add 'xalloc'.
15247 2019-01-04  Bruno Haible  <bruno@clisp.org>
15249         xmemdup0: Remove redundant code.
15250         * lib/xmemdup0.h (xalloc_die): Remove declaration.
15252 2019-01-04  Bruno Haible  <bruno@clisp.org>
15254         backupfile: Fix module dependencies.
15255         * modules/backupfile (Depends-on): Add 'xalloc'.
15257 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15259         bitset, crypto/gc: fix conflicts with Solaris 11
15260         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
15261         avoid clash with Solaris 11 <sys/bitset.h>.
15262         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
15263         with Solaris 11 <xorg/gc.h>.
15265 2019-01-04  Bruno Haible  <bruno@clisp.org>
15267         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
15268         Reported by Andy Fiddaman <andy@omniosce.org>.
15269         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
15271 2019-01-03  Eric Blake  <eblake@redhat.com>
15273         maintainer-makefile: fix typo in previous patch
15274         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
15275         of Roman's work.
15277 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
15279         maintainer-makefile: prefer $(GREP) over grep
15280         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
15281         defined.
15282         * top/maint.mk: Use it everywhere.
15284         maintainer-makefile: split long argument lines
15285         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
15286         it would be too long for exec limits on BSD.
15288 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15290         mkfifo: bring back HAVE_MKFIFO macro
15291         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
15292         Problem reported by Andrew Janke in:
15293         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
15295 2018-12-21  Bruno Haible  <bruno@clisp.org>
15297         Assume Autoconf >= 2.63.
15298         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
15299         versions < 2.60.
15301 2018-12-21  Bruno Haible  <bruno@clisp.org>
15303         memcmp: Mention the clang bug.
15304         * tests/test-memcmp.c: Add comment about a known test failure.
15305         * doc/posix-functions/memcmp.texi: Mention the clang bug.
15307 2018-12-20  Jim Meyering  <meyering@fb.com>
15309         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
15310         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
15311           echo '123-x'|LC_ALL=C grep -E '.\bx'
15312         The goal is to revert the first, but reverting it requires to restore
15313         the function deleted in the second. I ran this to restore the deleted
15314         function:
15315           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
15316             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
15317             | patch -R -p1
15318         * lib/dfa.c (charclass_context): Restore deleted function.
15319         Reverting the primary commit removes this change:
15320         dfa: Simplify a building state
15321         * lib/dfa.c (build_state): Simplify a building state.
15323 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15325         version-etc: allow zero authors
15326         * lib/version-etc.c (version_etc_arn): If no authors are given,
15327         omit authorship info instead of dumping core.
15329 2018-12-19  Bruno Haible  <bruno@clisp.org>
15331         lchown tests: Be more permissive regarding errno values.
15332         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
15333         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
15334         alternative to ENOSYS.
15335         * modules/lchown-tests (Depends-on): Add 'errno'.
15336         * modules/fchownat-tests (Depends-on): Likewise.
15338 2018-12-18  Bruno Haible  <bruno@clisp.org>
15340         duplocale: Avoid test failure on AIX 7.
15341         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
15342         (configure.ac): Invoke gt_FUNC_USELOCALE.
15343         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
15344         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
15345         works.
15347 2018-12-18  Bruno Haible  <bruno@clisp.org>
15349         localename: Fix test failure on AIX 7.
15350         Reported by Assaf Gordon in
15351         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
15352         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
15353         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
15354         instead of ac_cv_func_uselocale.
15355         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
15356         HAVE_USELOCALE.
15357         * lib/localename-table.h: Likewise.
15358         * lib/localename-table.c: Likewise.
15359         * tests/test-localename.c: Likewise.
15360         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
15362 2018-12-18  Bruno Haible  <bruno@clisp.org>
15364         localename: Update comments regarding Cygwin.
15365         * lib/localename.c: Update comment.
15366         * doc/posix-functions/uselocale.texi: Update platforms list.
15367         * doc/posix-functions/newlocale.texi: Likewise.
15368         * doc/posix-functions/duplocale.texi: Likewise.
15369         * doc/posix-functions/freelocale.texi: Likewise.
15371 2018-12-16  Bruno Haible  <bruno@clisp.org>
15373         c-stack: Fix for Linux/sparc.
15374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
15375         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
15377 2018-12-16  Bruno Haible  <bruno@clisp.org>
15379         localename: Avoid test failure on some glibc systems.
15380         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15381         Unset environment variables that might disturb the first setlocale call,
15382         and verify that this setlocale call succeeds.
15384 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
15386         random: Fix build error on native Windows (regression from 2018-06-21).
15387         * lib/random.c (__srandom, __initstate, __setstate, __random,
15388         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
15389         to the symbols without '__' prefix.
15391 2018-12-16  Bruno Haible  <bruno@clisp.org>
15393         obstack, libc-config: Support HP-UX cc in C99 mode.
15394         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
15395         compiler, even when in C99 mode.
15396         * lib/cdefs.h (__flexarr): Likewise.
15397         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
15399 2018-12-16  Bruno Haible  <bruno@clisp.org>
15401         localename: Fix test failure on OpenBSD >= 6.2.
15402         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
15403         locale system. Define HAVE_FAKE_LOCALES in this case.
15404         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
15405         HAVE_USELOCALE.
15406         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
15407         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
15408         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
15409         platforms list.
15410         * doc/posix-functions/newlocale.texi: Likewise.
15411         * doc/posix-functions/duplocale.texi: Update platforms list.
15412         * doc/posix-functions/freelocale.texi: Likewise.
15414 2018-12-16  Bruno Haible  <bruno@clisp.org>
15416         duplocale tests: Re-enable the test on platforms without <monetary.h>.
15417         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
15418         of the test, on platforms without <monetary.h>.
15420 2018-12-16  Bruno Haible  <bruno@clisp.org>
15422         localename: Update comments.
15423         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
15425 2018-12-15  Jim Meyering  <meyering@fb.com>
15427         regex: fix indentation
15428         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
15430 2018-12-15  Bruno Haible  <bruno@clisp.org>
15432         openat-safer tests: Avoid test failure on NetBSD 8.
15433         * tests/test-openat-safer.c (main): Execute a Linux specific test only
15434         on Linux.
15436 2018-12-15  Jim Meyering  <meyering@fb.com>
15438         regex: work around a bug in glibc-2.27 and prior
15439         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
15440         assertion for /0|()0|\1|0/.
15441         * tests/test-regex.c (main): Add the same test here.
15443 2018-12-15  Bruno Haible  <bruno@clisp.org>
15445         localename: Fix use of uninitialized shell variable.
15446         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
15447         gt_cv_locale_solaris114 always before use. Remove assignment without
15448         effect.
15450 2018-12-15  Bruno Haible  <bruno@clisp.org>
15452         dfa tests: Avoid test failure on Alpine Linux.
15453         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
15454         command found on Alpine Linux.
15456 2018-12-15  Jim Meyering  <meyering@fb.com>
15458         dfa: avoid new warnings from gcc
15459         These would prevent building with -Werror and a Dec snapshot of gcc.
15460         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
15461         Rename each inner instance to "p".
15462         (charclass_context): Remove unused static function.
15464 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15466         mkdir-p: improve diagnostic for FUSE mounts
15467         Problem reported by Niklas Hambüchen in:
15468         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
15469         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
15470         errno to mkdir errno if the stat errno is likely more interesting.
15472 2018-12-14  Bruno Haible  <bruno@clisp.org>
15474         hash-map: Add tests.
15475         * tests/test-hash_map.c: New file.
15476         * modules/hash-map-tests: New file.
15478         linkedhash-map: Add tests.
15479         * tests/test-linkedhash_map.c: New file.
15480         * modules/linkedhash-map-tests: New file.
15482         array-map: Add tests.
15483         * tests/test-array_map.c: New file.
15484         * modules/array-map-tests: New file.
15486         xmap: New module.
15487         * lib/gl_xmap.h: New file.
15488         * lib/gl_xmap.c: New file.
15489         * modules/xmap: New file.
15491         hash-map: New module.
15492         * lib/gl_hash_map.h: New file.
15493         * lib/gl_hash_map.c: New file.
15494         * modules/hash-map: New file.
15496         linkedhash-map: New module.
15497         * lib/gl_linkedhash_map.h: New file.
15498         * lib/gl_linkedhash_map.c: New file.
15499         * lib/gl_anyhash1.h: Update comments.
15500         * lib/gl_anyhash2.h: Likewise.
15501         * modules/linkedhash-map: New file.
15503         array-map: New module.
15504         * lib/gl_array_map.h: New file.
15505         * lib/gl_array_map.c: New file.
15506         * modules/array-map: New file.
15508         map: New module.
15509         * lib/gl_map.h: New file.
15510         * lib/gl_map.c: New file.
15511         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
15512         conflict with gl_map.h.
15513         * modules/map: New file.
15515 2018-12-13  Bruno Haible  <bruno@clisp.org>
15517         select tests: Avoid test failure on Cygwin.
15518         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
15520 2018-12-13  Bruno Haible  <bruno@clisp.org>
15522         localtime-buffer: Avoid endless recursion in localtime and gmtime.
15523         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
15525 2018-12-13  Bruno Haible  <bruno@clisp.org>
15527         localeconv tests: Avoid test failure on Cygwin.
15528         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
15529         'mon_grouping' tests.
15531 2018-12-11  Bruno Haible  <bruno@clisp.org>
15533         omap: Don't dispose the old value when the function returns it.
15534         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
15535         here.
15536         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15537         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15538         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
15539         here.
15541         array-omap, avltree-omap, rbtree-omap: Tweak style.
15542         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
15543         false.
15544         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
15546         rbtree-omap: Add tests.
15547         * tests/test-rbtree_omap.c: New file.
15548         * modules/rbtree-omap-tests: New file.
15550         avltree-omap: Add tests.
15551         * tests/test-avltree_omap.c: New file.
15552         * modules/avltree-omap-tests: New file.
15554         array-omap: Add tests.
15555         * tests/test-array_omap.c: New file.
15556         * modules/array-omap-tests: New file.
15558         xomap: New module.
15559         * lib/gl_xomap.h: New file.
15560         * lib/gl_xomap.c: New file.
15561         * modules/xomap: New file.
15563         rbtree-omap: New module.
15564         * lib/gl_rbtree_omap.h: New file.
15565         * lib/gl_rbtree_omap.c: New file.
15566         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
15567         Parameterize.
15568         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
15569         * modules/rbtree-omap: New file.
15570         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
15571         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
15573         avltree-omap: New module.
15574         * lib/gl_avltree_omap.h: New file.
15575         * lib/gl_avltree_omap.c: New file.
15576         * lib/gl_avltree_ordered.h: Code moved to here from
15577         lib/gl_avltree_oset.c. Parameterize.
15578         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
15579         * lib/gl_anytree_omap.h: New file.
15580         * modules/avltree-omap: New file.
15581         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
15582         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
15584         array-omap: New module.
15585         * lib/gl_array_omap.h: New file.
15586         * lib/gl_array_omap.c: New file.
15587         * modules/array-omap: New file.
15589         omap: New module.
15590         * lib/gl_omap.h: New file.
15591         * lib/gl_omap.c: New file.
15592         * modules/omap: New file.
15594 2018-12-11  Bruno Haible  <bruno@clisp.org>
15596         hash-set, linkedhash-set: Reduce code duplication.
15597         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
15598         lib/gl_anyhash_set1.h.
15599         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
15600         lib/gl_anyhash_set2.h. Parameterize.
15601         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
15602         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
15603         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
15604         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
15605         * lib/gl_rbtreehash_list.c: Likewise.
15606         * lib/gl_linkedhash_list.c: Likewise.
15607         (hash_resize_after_add): Remove function.
15608         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
15609         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
15610         * gl_hash_set.c: Likewise.
15611         * modules/avltreehash-list (Files, Makefile.am): Update file list.
15612         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
15613         * modules/linkedhash-list (Files, Makefile.am): Likewise.
15614         * modules/linkedhash-set (Files, Makefile.am): Likewise.
15615         * modules/hash-set (Files, Makefile.am): Likewise.
15617 2018-12-11  Bruno Haible  <bruno@clisp.org>
15619         array-set: Optimize.
15620         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
15621         outside the loop, not inside the loop.
15623 2018-12-11  Bruno Haible  <bruno@clisp.org>
15625         times: Fix tests.
15626         * tests/test-times.c (doublecmp): Implement a total order.
15628 2018-12-11  Bruno Haible  <bruno@clisp.org>
15630         array-set, linkedhash-set, hash-set: Fix tests.
15631         * tests/test-array_set.c (cmp_objects_in_array): New function.
15632         (check_equals): Use it.
15633         * tests/test-hash_set.c: Likewise.
15634         * tests/test-linkedhash_set.c: Likewise.
15636 2018-12-08  Bruno Haible  <bruno@clisp.org>
15638         Fix comments.
15639         * lib/gl_list.h (gl_list_free): Clarify what it does.
15640         * lib/gl_oset.h (gl_oset_free): Likewise.
15641         * lib/gl_set.h (gl_set_free): Likewise.
15642         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
15643         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
15644         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
15645         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
15647 2018-12-03  Bruno Haible  <bruno@clisp.org>
15649         hash-set: Add tests.
15650         * tests/test-hash_set.c: New file.
15651         * modules/hash-set-tests: New file.
15653         linkedhash-set: Add tests.
15654         * tests/test-linkedhash_set.c: New file.
15655         * modules/linkedhash-set-tests: New file.
15657         array-set: Add tests.
15658         * tests/test-array_set.c: New file.
15659         * modules/array-set-tests: New file.
15661         xset: New module.
15662         * lib/gl_xset.h: New file.
15663         * lib/gl_xset.c: New file.
15664         * modules/xset: New file.
15666         hash-set: New module.
15667         * lib/gl_hash_set.h: New file.
15668         * lib/gl_hash_set.c: New file.
15669         * modules/hash-set: New file.
15671         linkedhash-set: New module.
15672         * lib/gl_linkedhash_set.h: New file.
15673         * lib/gl_linkedhash_set.c: New file.
15674         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
15675         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
15676         * lib/gl_anyhash_primes.h: New file, extracted from
15677         lib/gl_anyhash_list2.h.
15678         * lib/gl_anyhash_list2.h: Include it.
15679         (primes, next_prime): Remove definitions.
15680         * modules/linkedhash-set: New file.
15681         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
15682         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15683         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
15684         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15685         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
15686         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15688         array-set: New module.
15689         * lib/gl_array_set.h: New file.
15690         * lib/gl_array_set.c: New file.
15691         * modules/array-set: New file.
15693         set: New module.
15694         * lib/gl_set.h: New file.
15695         * lib/gl_set.c: New file.
15696         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
15697         gl_set.h.
15698         * modules/set: New file.
15700 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
15702         bison: don't force the Yacc mode
15703         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
15704         errors when Bison features are used in the grammar file.  Some of
15705         these features (such as %expect) were flagged non-yacc recently.  Most
15706         of the time, -y is actually used to please Automake's ylwrap which
15707         expects the output to be y.tab.c.
15708         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
15710 2018-12-01  Bruno Haible  <bruno@clisp.org>
15712         gnupload: Document short options.
15713         * build-aux/gnupload (usage): Document the short options.
15715 2018-11-28  Ben Elliston  <bje@gnu.org>
15717         gnupload: Support option -h as alias of --help.
15718         * build-aux/gnupload: Support -h.
15720 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15722         memrchr: port better to clang
15723         * lib/memrchr.c (__memrchr): Cast to void * instead of to
15724         longword *, to pacify clang -Wcast-align (Bug#33544).
15726 2018-11-29  Eric Blake  <eblake@redhat.com>
15728         docs: mention printf %m considerations
15729         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
15730         is not portable, and is easy enough to work around.
15731         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
15732         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
15733         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
15734         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15735         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15736         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15737         * doc/posix-functions/printf.texi (printf): Likewise.
15738         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15739         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15740         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
15741         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15742         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15743         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15744         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15745         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15746         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15747         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
15748         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15749         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15751 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
15753         bitset: rename ebitset/expandable.* as tbitset/table.*
15754         See
15755         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
15756         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
15757         * lib/bitset/table.h, lib/bitset/table.c: these.
15758         Rename all the ebitset* symbols as tbitset*.
15759         Adjust dependencies.
15761 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15763         bitset: check the operations
15764         * tests/test-bitset.c (bitset_random): New.
15765         Use it.
15766         * lib/bitset/expandable.c (ebitset_not): Fix typo.
15768 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15770         bitset: properly use false/true instead of 0/1 for Booleans
15771         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
15772         0/1, as Booleans.
15774 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15776         bitset: rename BITSET_VARRAY as BITSET_VECTOR
15777         For consistency with the name of the file.
15778         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
15779         * lib/bitset/stats.c, lib/bitset/vector.c
15780         (BITSET_VARRAY): Rename as...
15781         (BITSET_VECTOR): this.
15783 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15785         strerror_r-posix: memmove, not memcpy
15786         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
15787         since the source and destination might overlap in the call
15788         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
15789         Simplify.
15791 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15793         bitsetv: new module
15794         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
15796 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15798         bitset: add tests and doc
15799         First stabs at providing a documentation and test for the bitset
15800         module.
15801         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
15803 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15805         bitset: new module
15806         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
15807         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
15808         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
15809         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
15810         * lib/bitset/vector.h, modules/bitset:
15811         New.
15813 2018-11-23  Bruno Haible  <bruno@clisp.org>
15815         localename: Fix gettext test failures on mingw.
15816         * lib/localename.c (gl_locale_name_posix): Convert the result of
15817         gl_locale_name_environ to XPG syntax.
15819 2018-11-23  Karl Berry  <karl@freefriends.org>
15821         * config/srclistvars.txt,
15822         * config/srclist.txt: remove all gettext references;
15823         the gettext maintainers will sync as needed.
15825 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15827         mktime: add libc-config dependency
15828         I missed this when we synced from glibc.
15829         * modules/mktime (Depends-on): Add libc-config.
15831 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15833         longlong: fix comment typo
15834         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
15836 2018-11-11  Bruno Haible  <bruno@clisp.org>
15838         havelib: Remove the need to include asm-underscore.m4.
15839         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
15840         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
15841         gl_HOST_CPU_C_ABI.
15842         * modules/havelib (Files): Add host-cpu-c-abi.m4.
15843         (Depends-on): Remove host-cpu-c-abi.
15845 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15847         parse-datetime: simplify test for mktime failure
15848         * lib/parse-datetime.y (mktime_ok): Simplify.
15849         Remove args TZ and T; no longer needed.  Callers changed.
15851         posixtm: simplify test for mktime failure
15852         * lib/posixtm.c (posixtime): Simplify.
15854         nstrftime: simplify test for mktime failure
15855         * lib/nstrftime.c (__strftime_internal): Simplify.
15857 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15859         gnulib-common.m4: port _Noreturn to C++
15860         Problem reported by Akim Demaille in:
15861         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
15862         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
15863         Merge adjustments from _Noreturn.h and from glibc into the non-C++
15864         version.
15865         * lib/_Noreturn.h: Match gnulib-common.
15867 2018-10-30  Bruno Haible  <bruno@clisp.org>
15869         gnu-make: Fix for NetBSD 8 'make'.
15870         Reported by Reuben Thomas in
15871         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
15872         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
15873         output, ignoring exit codes.
15875 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
15877         maintainer-makefile: fix syntax-check rule for "same.h"
15878         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
15879         for 'same_nameat', too.
15881 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
15883         havelib: fix nested ‘configure’ chatter
15884         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
15885         AC_CACHE_CHECK calls, which resulted in confusing output like
15886         “checking for the common suffixes of directories in the library
15887         search path... checking for 64-bit host... no lib,lib”.
15889         backupfile: tweak for better code
15890         * lib/backupfile.c: Sort include directives, and remove
15891         unnecessary <limits.h> include.
15892         (FALLTHROUGH): New macro, copied from other modules.
15893         (backupfile_internal): Use it to avoid code duplication.
15894         This lets GCC 8.2.1 generate better code by inlining the
15895         call to check_extension.
15897 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15899         backupfile: new dir_fd args
15900         New module opendirat with code taken from fts.
15901         Use this module to let backupfile use a directory file descriptor.
15902         * NEWS: Document the incompatible change.
15903         * lib/backup-find.c (find_backup_file_name):
15904         * lib/backup-rename.c (backup_file_rename):
15905         New arg DIR_FD.
15906         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
15907         (SIZE_MAX): Remove.
15908         Include opendirat.h rather than dirent--.h.
15909         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
15910         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
15911         (backupfile_internal): New arg DIR_FD.  All callers changed.
15912         * lib/fts.c: Include opendirat.h.
15913         (opendirat): Move to opendirat.c.
15914         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
15915         * modules/backupfile (Depends-on): Remove dirfd, opendir.
15916         Add opendirat.
15917         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
15918         Add opendirat.
15920 2018-10-23  Bruno Haible  <bruno@clisp.org>
15922         localename: Simplify support for per-thread locales on Solaris 11.4.
15923         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
15924         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
15925         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
15926         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
15927         specific code.
15928         * lib/localename-table.h: Update comments.
15929         * lib/localename-table.c: Update comments.
15930         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
15931         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
15932         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
15933         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
15934         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
15935         HAVE_NAMELESS_LOCALES here.
15936         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
15937         m4/intlsolaris.m4.
15938         * modules/gettext (Files): Likewise.
15940 2018-10-22  Bruno Haible  <bruno@clisp.org>
15942         std-gnu11: Support Autoconf versions < 2.64.
15943         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
15944         when _AC_DO_LIMIT does not exist.
15946 2018-10-22  Bruno Haible  <bruno@clisp.org>
15948         Assume Autoconf >= 2.63.
15949         * DEPENDENCIES: Mention the requirement.
15951         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
15952         (func_get_filelist): Don't list m4/onceonly.m4 any more.
15953         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
15954         * m4/onceonly.m4: Remove file.
15956         * m4/openmp.m4: Remove file.
15957         * modules/openmp (Files): Remove m4/openmp.m4.
15959         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
15960         htmldir, dvidir, pdfdir, psdir, localedir.
15961         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
15963         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
15964         Autoconf < 2.60.
15965         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
15966         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
15968         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
15969         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
15970         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
15972         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
15973         exists.
15974         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
15976         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
15977         Autoconf < 2.61.
15979         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
15980         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
15981         Autoconf >= 2.52.
15983         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
15984         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
15985         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
15987 2018-10-22  Bruno Haible  <bruno@clisp.org>
15989         Assume Automake >= 1.11.
15990         * m4/configmake.m4: Update comments.
15991         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
15992         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
15993         of 'eval'.
15994         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
15995         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
15996         requires Automake >= 1.11.
15998 2018-10-22  Bruno Haible  <bruno@clisp.org>
16000         localename: Fix typo in comment.
16001         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
16003 2018-10-22  Bruno Haible  <bruno@clisp.org>
16005         Fix failure of 'gnulib-tool --create-testdir' with all modules.
16006         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
16008 2018-10-21  Bruno Haible  <bruno@clisp.org>
16010         locale: Ease integration with GNU libintl.
16011         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
16012         GNULIB_defined_freelocale): New macros.
16014 2018-10-21  Bruno Haible  <bruno@clisp.org>
16016         localename: Fine-tune support for per-thread locales on Solaris 11.4.
16017         * lib/localename-table.h: New file, extracted from lib/localename.c.
16018         * lib/localename-table.c: Likewise.
16019         * lib/localename.c: Include localename-table.h.
16020         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
16021         locale_hash_function instead of pointer_hash.
16022         * modules/localename (Files): Add lib/localename-table.h,
16023         lib/localename-table.c.
16024         (lib_SOURCES): Add localename-table.c.
16025         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
16026         for Solaris 11.4 locale system only on Solaris. Test for it
16027         independently whether getlocalename_l exists.
16028         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
16029         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
16030         HAVE_NAMELESS_LOCALES.
16031         * modules/gettext (Files): Add m4/intlsolaris.m4.
16033 2018-10-21  Bruno Haible  <bruno@clisp.org>
16035         Small update from gettext.
16036         * m4/intl.m4: Update from gettext:
16037         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
16038         mode on AIX.
16039         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
16040         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
16042 2018-10-16  Bruno Haible  <bruno@clisp.org>
16044         mountlist: Remove support for Cray with UNICOS 9.
16045         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16046         MOUNTED_LISTMNTENT.
16047         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
16049 2018-10-16  Bruno Haible  <bruno@clisp.org>
16051         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
16052         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
16053         STAT_STATFS2_FS_DATA.
16054         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
16055         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16056         MOUNTED_GETMNT.
16057         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
16058         * lib/getloadavg.c (decstation): Remove definition and case.
16059         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
16060         * lib/getgroups.c: Likewise.
16061         * doc/posix-functions/getgroups.texi: Likewise.
16062         * lib/time.in.h: Update comments.
16064 2018-10-16  Bruno Haible  <bruno@clisp.org>
16066         getloadavg: Remove support for ConvexOS.
16067         * lib/getloadavg.c: Remove convex case.
16069 2018-10-16  Bruno Haible  <bruno@clisp.org>
16071         getloadavg: Remove support for Sony NEWS.
16072         * lib/getloadavg.c: Remove sony_news case.
16074 2018-10-16  Bruno Haible  <bruno@clisp.org>
16076         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
16077         * lib/fsusage.c: Remove _SEQUENT_ case.
16078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16079         * lib/mountlist.c: Don't test for MNTTABNAME.
16080         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
16081         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
16082         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
16083         * lib/stat-size.h: Don't mention the Sequent bug.
16084         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
16086 2018-10-16  Bruno Haible  <bruno@clisp.org>
16088         fsusage: Remove support for AIX 3.
16089         * lib/fsusage.c: Remove code for AIX 3.
16090         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
16092 2018-10-16  Bruno Haible  <bruno@clisp.org>
16094         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
16095         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
16096         * lib/fsusage.c: Remove code for AIX PS/2.
16097         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
16098         * lib/getloadavg.c: Likewise.
16100 2018-10-16  Bruno Haible  <bruno@clisp.org>
16102         getloadavg: Remove support for HP-UX on m68k.
16103         * lib/getloadavg.c: Remove hp9000s300 case.
16105 2018-10-16  Bruno Haible  <bruno@clisp.org>
16107         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
16108         * lib/fsusage.c: Remove DOLPHIN case.
16109         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16110         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
16112 2018-10-16  Bruno Haible  <bruno@clisp.org>
16114         getloadavg: Remove support for Alliant FX/2800.
16115         * lib/getloadavg.c: Remove alliant case.
16117 2018-10-16  Bruno Haible  <bruno@clisp.org>
16119         getloadavg: Remove support for tek4300.
16120         * lib/getloadavg.c: Remove tek4300 case.
16122 2018-10-16  Bruno Haible  <bruno@clisp.org>
16124         getloadavg: Remove support for Ardent.
16125         * lib/getloadavg.c: Remove ardent case.
16127 2018-10-16  Bruno Haible  <bruno@clisp.org>
16129         mountlist: Remove support for SVR2.
16130         Reported by Andrew Borodin <aborodin@vmail.ru> in
16131         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
16132         * lib/mountlist.c: Remove MOUNTED_FREAD case.
16133         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16134         MOUNTED_FREAD.
16136 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16138         libc-config: merge from glibc
16139         * lib/cdefs.h (__glibc_has_attribute): New macro.
16141         regex: depend on libc-config
16142         * modules/regex (Depends-on): Add libc-config.
16143         This is needed after the recent autoupdate from glibc.
16145 2018-10-14  Bruno Haible  <bruno@clisp.org>
16147         localename: Add support for per-thread locales on Solaris 11.4.
16148         * lib/locale.in.h (newlocale, freelocale): New declarations.
16149         (duplocale): Declare also when the 'localename' module requests it.
16150         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
16151         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
16152         (struniq): Update.
16153         (struct locale_categories_names, struct locale_hash_node): New types.
16154         (LOCALE_HASH_TABLE_SIZE): New constant.
16155         (locale_hash_table, locale_lock): New variables.
16156         (pointer_hash, get_locale_t_name): New functions.
16157         (newlocale, duplocale, freelocale): New overridden functions.
16158         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
16159         * m4/intlsolaris.m4: New file.
16160         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
16161         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
16162         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
16163         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
16164         declared.
16165         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
16166         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16167         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
16168         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16169         * modules/localename (Files): Add intlsolaris.m4.
16170         (Depends-on): Add 'locale'.
16171         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
16172         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
16173         the signatures.
16175 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
16177         timevar: use gethrxtime to get wall clock time
16178         clock_gettime is not portable.  gethrxtime takes the best available
16179         option to get the wall clock time, including clock_gettime (monotonic
16180         clock), and gettime (non monotonic).
16181         Also, using xtime_t instead of float preserves the precision.
16182         Suggested by Bruno Haible.
16183         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
16184         * modules/timevar (Depends-on): We need gethrxtime.
16185         We no longer use times().
16186         (Link): Update.
16187         * lib/timevar.h (timevar_time_def): Use xtime_t.
16188         * lib/timevar.c (set_to_current_time): Use gethrxtime.
16189         (timevar_print): Instead of checking whether the timings themselves
16190         are large enough for the timevar to be printed, check the percentages.
16192 2018-10-14  Bruno Haible  <bruno@clisp.org>
16194         wcsnrtombs: Work around Solaris 11.4 bug.
16195         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
16196         macro.
16197         (gl_FUNC_WCSNRTOMBS): Invoke it.
16198         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
16200 2018-10-14  Bruno Haible  <bruno@clisp.org>
16202         mbsnrtowcs: Work around Solaris 11.4 bug.
16203         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
16204         macro.
16205         (gl_FUNC_MBSNRTOWCS): Invoke it.
16206         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
16208 2018-10-14  Bruno Haible  <bruno@clisp.org>
16210         doc: Update for Solaris 11.4.
16211         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
16212         mention Solaris 11.4.
16213         * m4/printf.m4: Update comments about Solaris.
16214         * m4/log.m4: Likewise.
16215         * m4/log10.m4: Likewise.
16216         * m4/logb.m4: Likewise.
16217         * m4/logbf.m4: Likewise.
16218         * m4/logbl.m4: Likewise.
16219         * m4/rename.m4: Likewise.
16220         * m4/wcrtomb.m4: Likewise.
16221         * m4/hostent.m4: Likewise.
16222         * m4/servent.m4: Likewise.
16224 2018-10-14  Bruno Haible  <bruno@clisp.org>
16226         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
16227         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
16228         pointer.
16229         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
16230         pointer.
16231         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
16232         pointer.
16233         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
16234         pointer.
16235         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
16236         pointer.
16238 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16240         bootstrap: fix wget command for po files.
16241         * build-aux/bootstrap (po_download_command_format): Fix comment,
16242         and adjust callers.
16244 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16246         timevar: improve the output format
16247         Suggested by Bruno Haible.
16248         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
16249         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
16250         wall, since its resolution is much higher.
16252 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16254         timevar: expect that getrusage is available.
16255         Don't keep both times and getrusage as backend: both are guaranteed by
16256         gnulib, a single one suffices.  Using getrusage is open to possibly
16257         tracking other types of resources in the future.
16258         * modules/timevar (Depends-on): Add getrusage.
16259         (configure.ac): Remove gl_TIMEVAR.
16260         (Files): Remove m4/timevar.m4.
16261         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
16262         * lib/timevar.h (timevar_enabled): Clarify documentation.
16263         * lib/timevar.c: Remove all the code about times.
16264         Remove all the CPP guards about getrusage: expect it to be present
16265         (courtesy of gnulib).
16267 2018-10-12  Bruno Haible  <bruno@clisp.org>
16269         mountlist: Improve support for Solaris in 64-bit mode.
16270         Reported by David Wood <David.Wood@deshaw.com> in
16271         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
16272         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
16273         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
16274         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
16276 2018-10-12  Bruno Haible  <bruno@clisp.org>
16278         mountlist: Add support for Minix.
16279         Reported by Assaf Gordon in
16280         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
16281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
16282         AC_CHECK_FUNCS to check for 'getmntinfo'.
16283         * lib/mountlist.c: Update comments.
16285 2018-10-12  Bruno Haible  <bruno@clisp.org>
16287         Make better use of Autoconf.
16288         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
16289         * m4/manywarnings.m4: Likewise.
16290         * m4/manywarnings-c++.m4: Likewise.
16291         * m4/socklen.m4: Likewise.
16292         * m4/sockpfaf.m4: Likewise.
16293         * m4/stdarg.m4: Likewise.
16294         * m4/visibility.m4: Likewise.
16295         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
16296         indentation.
16297         * m4/ls-mntd-fs.m4: Likewise.
16299 2018-10-11  Bruno Haible  <bruno@clisp.org>
16301         mountlist: Modernize platform lists.
16302         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
16303         platforms, deemphasizing the obsolete ones.
16304         * lib/mountlist.c: Likewise.
16306 2018-10-11  Bruno Haible  <bruno@clisp.org>
16308         getprogname: Add support for 32-bit programs on HP-UX.
16309         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
16310         try the similar functions 32-bit programs on 64-bit HP-UX.
16312 2018-10-11  Bruno Haible  <bruno@clisp.org>
16314         getprogname: Work around program name truncation when possible.
16315         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
16316         possibly use pst_cmd instead.
16318 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16320         fts: cleanup after FTS_NOATIME removal
16321         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
16322         (FTS_STOP): Shrink to minimal values.  We don’t need to
16323         worry about binary compatibility in Gnulib, and the old way
16324         of doing things had a hole in the user options that caused
16325         FTS_OPTIONMASK to not work as desired.
16327 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
16329         fts: remove FTS_NOATIME
16330         This reverts commit da4d6974013c822af1498941e32db774b2031765.
16331         We cannot guarantee that O_NOATIME works: e.g. openat fails
16332         with EPERM if the effective user ID of the caller does not match
16333         the owner of the file and the caller is not privileged.
16334         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
16335         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
16336         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
16337         (FTS_OPTIONMASK): Adjust.
16338         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
16339         (fd_ring_check): Likewise.
16341 2018-10-08  Bruno Haible  <bruno@clisp.org>
16343         csharpcomp*, csharpexec*: Remove support for pnet.
16344         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
16345         HAVE_CSCC.
16346         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
16347         Don't test HAVE_CSCC.
16348         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
16349         (compile_csharp_class): Don't invoke it.
16350         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
16351         HAVE_ILRUN.
16352         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
16353         Don't test HAVE_ILRUN.
16354         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
16355         (execute_csharp_program): Don't invoke it.
16356         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
16357         any more.
16359 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
16361         renameatu: prefer renameat2 to syscall
16362         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
16363         Use renameat2 instead of syscall (Bug#32796).
16364         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
16366 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16368         bootstrap, gnulib-tool: use https instead of insecure rsync
16369         * build-aux/bootstrap (download_po_files, po_download_command_format):
16370         Don't try using rsync; always use wget over https to fetch PO files.
16371         * gnulib-tool (func_import): Likewise.
16372         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16374 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16376         bootstrap, gnulib-tool: correct the translations wget command
16377         * build-aux/bootstrap (po_download_command_format2): Restrict
16378         recursion to a single level.
16379         * gnulib-tool (func_import): Likewise.
16380         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16382 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16384         doc: the gnulib snapshots are not maintained
16385         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
16387 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16389         timevar: add to lib_SOURCES
16390         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
16392 2018-10-07  Bruno Haible  <bruno@clisp.org>
16394         dirent: Update documentation.
16395         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
16397 2018-10-05  Bruno Haible  <bruno@clisp.org>
16399         strpbrk: Make it possible to namespace the defined symbol.
16400         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
16402 2018-10-05  Bruno Haible  <bruno@clisp.org>
16404         strcspn: Make it possible to namespace the defined symbol.
16405         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
16407 2018-10-05  Bruno Haible  <bruno@clisp.org>
16409         raise: Make it possible to namespace the defined symbol.
16410         * lib/raise.c (raise): Undefine only after the replacement function has
16411         been defined.
16412         (raise): Renamed from rpl_raise.
16413         (raise_nothrow): Move to the end of the compilation unit.
16415 2018-10-05  Bruno Haible  <bruno@clisp.org>
16417         memcmp: Make it possible to namespace the defined symbol.
16418         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
16420 2018-10-05  Bruno Haible  <bruno@clisp.org>
16422         explicit_bzero: Make it possible to namespace the defined symbol.
16423         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
16424         glibc.
16426 2018-10-05  Bruno Haible  <bruno@clisp.org>
16428         mkdir-p: Depend on 'mkdir'.
16429         * modules/mkdir-p (Depends-on): Add 'mkdir'.
16431 2018-10-05  Bruno Haible  <bruno@clisp.org>
16433         tempname: Depend on 'mkdir'.
16434         Reported by Maarten Bosmans <mkbosmans@gmail.com>
16435         at <https://savannah.gnu.org/bugs/?33379>.
16436         * modules/tempname (Depends-on): Add 'mkdir'.
16438 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
16440         timevar: rely on gnulib modules for time portability.
16441         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
16442         * m4/timevar.m4: Don't check for clock_t and struct tms,
16443         guaranteed by gnulib.
16444         * lib/timevar.h: Use extern "C" protection.
16445         Include <stdio.h> for FILE.
16446         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
16447         they are guaranteed by gnulib.
16448         Remove uses of clock as (now useless) fallback.
16450 2018-10-04  Bruno Haible  <bruno@clisp.org>
16452         sh-filename: New module.
16453         * m4/sh-filename.m4: New file.
16454         * modules/sh-filename: New file.
16455         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
16456         "/bin/sh".
16457         * tests/test-posix_spawn1.c (main): Likewise.
16458         * tests/test-posix_spawn2.c (main): Likewise.
16459         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
16460         is_envjavac_gcj43): Likewise.
16461         * lib/javaexec.c (execute_java_class): Likewise.
16462         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
16463         * modules/posix_spawnp-tests (Depends-on): Likewise.
16464         * modules/javacomp (Depends-on): Likewise.
16465         * modules/javaexec (Depends-on): Likewise.
16467 2018-10-04  Bruno Haible  <bruno@clisp.org>
16469         spawn-pipe tests: Avoid test failure on native Windows.
16470         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
16471         that fd 2 is closed.
16473 2018-10-04  Bruno Haible  <bruno@clisp.org>
16475         fcntl: Make it possible to namespace the defined symbol.
16476         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
16477         been defined.
16478         (fcntl): Renamed from rpl_fcntl.
16479         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
16480         from fcntl.
16481         (klibc_fcntl): Move to the end of the compilation unit.
16483 2018-10-02  Bruno Haible  <bruno@clisp.org>
16485         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
16486         * tests/test-vasnprintf.c (test_function): Change the test added on
16487         2018-09-23 to check only the 18 most significant digits.
16489         vasnprintf tests: Avoid test failure on Cygwin.
16490         * tests/test-vasnprintf.c (test_function): Change the test added on
16491         2018-09-23 to check only the 42 most significant digits.
16493 2018-10-01  Bruno Haible  <bruno@clisp.org>
16495         mkostemp, mkostemps: Update documentation.
16496         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
16497         * doc/glibc-functions/mkostemps.texi: Likewise.
16499 2018-10-01  Tom Tromey  <tom@tromey.com>
16501         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
16502         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
16503         on OS X.
16505 2018-09-30  Pádraig Brady  <P@draigBrady.com>
16507         hmac-*: refactor to remove repetitive code
16508         * lib/hmac.c: A new parameterized single implementation.
16509         * lib/hmac-md5.c: Define parameters and include implementation.
16510         * lib/hmac-sha1.c: Likewise.
16511         * lib/hmac-sha256.c: Likewise.
16512         * lib/hmac-sha512.c: Likewise.
16513         * modules/crypto/hmac-md5: Reference the new implementation file.
16514         * modules/crypto/hmac-sha1: Likewise.
16515         * modules/crypto/hmac-sha256: Likewise.
16516         * modules/crypto/hmac-sha512: Likewise.
16517         * tests/test-hmac-md5.c: Refactor common code to a single function.
16518         * tests/test-hmac-sha1.c: Likewise.
16519         * tests/test-hmac-sha256.c: Likewise.
16520         * tests/test-hmac-sha512.c: Likewise.
16522 2018-09-30  Zhang Qing  <zhangqingl@126.com>
16524         hmac-sha512: fix hash for keys > blocksize (128 bytes)
16525         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
16526         key length to that output by sha512, not the blocksize.
16527         Otherwise uninitialized data from the stack
16528         is used when computing the hash.
16529         * tests/test-hmac-sha512.c: Add a shortened key test case.
16530         Reported at https://github.com/coreutils/gnulib/pull/5
16532 2018-09-30  Bruno Haible  <bruno@clisp.org>
16534         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
16535         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
16536         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
16537         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
16538         'unsigned int' before comparison with an unsigned value.
16540 2018-09-30  Bruno Haible  <bruno@clisp.org>
16542         grantpt: Remove unnecessary dependency.
16543         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
16545 2018-09-30  Bruno Haible  <bruno@clisp.org>
16547         timevar: Small tweaks.
16548         * lib/timevar.h: Fix comments. Add parameter names to function
16549         declarations.
16550         * lib/timevar.c: Include timevar.h immediately after config.h.
16551         * lib/timevar.def: Fix comments.
16552         * modules/timevar (Maintainer): List Akim Demaille.
16554 2018-09-30  Bruno Haible  <bruno@clisp.org>
16556         timevar: Include documentation in gnulib manual.
16557         * doc/timevar.texi: Change node and section name to 'Profiling of
16558         program phases'.
16559         In the code snippets, tweak the #includes and use GNU coding style.
16560         * doc/gnulib.texi: Include timevar.texi.
16562 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
16564         timevar: import from Bison.
16565         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
16566         New files.
16567         * lib/timevar.def: New file.
16568         * doc/timevar.texi: New file.
16570 2018-09-26  Bruno Haible  <bruno@clisp.org>
16572         javacomp-script, javacomp: Add preliminary support for Java 12..17.
16573         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
16574         * lib/javacomp.c (default_target_version): Likewise.
16576 2018-09-26  Bruno Haible  <bruno@clisp.org>
16578         javacomp-script, javacomp: Add support for Java 11.
16579         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
16580         target-version 11.
16581         * lib/javaversion.h: Update comments.
16582         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16583         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16584         TARGET_VERSION_BOUND, target_version_index,
16585         corresponding_classfile_version): Accept source_version 11 and
16586         target_version 11.
16587         * lib/javacomp.h: Update comments accordingly.
16589 2018-09-23  Bruno Haible  <bruno@clisp.org>
16591         vasnprintf: Fix heap memory overrun bug.
16592         Reported by Ben Pfaff <blp@cs.stanford.edu> in
16593         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
16594         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
16595         memory.
16596         * tests/test-vasnprintf.c (test_function): Add another test.
16598 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16600         maint: mktime.c now shared with glibc
16601         * config/srclist.txt: intprops.h, timegm.c and mktime.c
16602         are now the same in Gnulib and glibc.
16604         mktime: fix _LIBC typo
16605         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
16607 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16609         dfa: optimization for state merge
16610         * lib/dfa.c (merge2): New function.
16611         (merge_nfa_state): Use it.
16613 2018-09-18  Jim Meyering  <meyering@fb.com>
16615         dfa: trivial comment fix: s/is/if/
16616         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
16618 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16620         dfa: use more-informative function name
16621         * lib/dfa.c (maybe_disable_superset_dfa):
16622         Rename from dfautf8noss.  Use change.
16624         dfa: tweak allocation performance
16625         * lib/dfa.c (merge_nfa_state, dfaoptimize):
16626         Prefer ptrdiff_t for indexes some more.
16627         Use char for flags, as it’s wide enough.
16628         Allocate queue and flags together, with one malloc call.
16629         No need to use xnmalloc since the multiplication and
16630         addition cannot overflow (it’s already been checked by
16631         earlier allocation).  Prefer memset to open-coding.
16633         dfa: prune states as we go
16634         * lib/dfa.c (prune): Remove.
16635         dfa: reorder enum for efficiency
16636         (merge_nfa_state): Prune as we go instead of at the end.
16637         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
16639         * lib/dfa.c (END): Now -1 again.  Reorder other elements
16640         of the enumeration to make it easier for GCC to generate
16641         efficient code by using fewer comparisons to check for
16642         ranges of values.
16643         (atom): Take advantage of the reordering.
16645 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16647         dfa: optimize alternation in NFA
16648         Even when similar states exist in alternation, the DFA treats them
16649         as separate items, which may complicate the transition in NFA and
16650         cause slowdown.  This change assembles the states into one.  For
16651         example, ab|ac is changed into a(b|c).  This change speeds-up
16652         matching for many branched patterns.  For example, grep speeds up
16653         more than 30× in:
16655           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
16656           time -p env LC_ALL=C grep -vf in in
16658         * lib/dfa.c (prune): New function.
16659         (merge_nfa_state): New function.  It merges similar NFA states.
16660         (dfaoptimize): New function.  It seeks merged and removed nodes.
16661         (dfaanalyze): Call new function.
16662         (dfautf8noss): Change name from dfaoptimize because of addition of new
16663         function.
16664         (dfacomp): Update caller.
16666         dfa: simplify initial state
16667         Simplifying the initial state enables easier optimization of the NFA.
16668         * lib/dfa.c (enum token): Add new element BEG.
16669         (prtok): Adjust due to adding element BEG.
16670         (dfaparse): Put BEG at a head of tokens.
16671         (state_index): Adjust due to adding element BEG.
16672         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
16673         build initial state.
16674         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
16676 2018-09-18  Bruno Haible  <bruno@clisp.org>
16678         file-has-acl: Fix test failure on Cygwin 2.9.
16679         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
16680         * lib/acl-internal.h: Likewise.
16681         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
16682         * lib/acl-internal.c: Update comments regarding Cygwin.
16683         * lib/acl_entries.c: Likewise.
16684         * lib/file-has-acl.c: Likewise.
16685         (file_has_acl): For Cygwin, use a different way to determine whether
16686         the "default" ACL of a directory is nontrivial.
16687         * lib/get-permissions.c: Update comments regarding Cygwin.
16688         * lib/set-permissions.c: Likewise.
16690 2018-09-18  Bruno Haible  <bruno@clisp.org>
16692         stat-time tests: Fix test failure on Cygwin.
16693         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
16695 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16697         doc: OS X 10.11 lacked ns time functions
16698         According to <https://github.com/zeromq/libzmq/issues/2175>,
16699         nanosecond-resolution timestamp functions were introduced
16700         in macOS 10.12, so document the last version (OS X 10.11)
16701         where they were absent.
16703         gettime: nanotime never existed
16704         Problem reported by Bruno Haible in:
16705         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
16706         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
16707         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
16709 2018-09-18  Bruno Haible  <bruno@clisp.org>
16711         doc: Update statement about target platforms.
16712         Reported by Simon Sobisch.
16713         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
16714         restrictions on MSVC versions.
16716 2018-09-18  Bruno Haible  <bruno@clisp.org>
16718         posix_spawn tests: Fix link error on 64-bit Cygwin.
16719         * tests/test-posix_spawn1.c (environ): Remove declaration.
16720         * tests/test-posix_spawn2.c (environ): Likewise.
16721         * tests/test-posix_spawn3.c (environ): Likewise.
16722         * tests/test-posix_spawn4.c (environ): Likewise.
16723         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
16724         * modules/posix_spawnp-tests (Depends-on): Likewise.
16726 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16728         timespec: new function current_timespec
16729         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
16730         and don’t worry about it failing on a CLOCK_REALTIME arg.
16731         POSIX requires it to succeed and I don’t know of any
16732         counterexamples where the fallbacks would work.
16733         (current_timespec): New function, taken from Emacs.  It is more
16734         convenient than gettime, and can help register allocation.
16735         * lib/timespec.h: Include arg-nonnull.h.
16736         (current_timespec): New declaration.
16737         (gettime, settime): Declare args to be nonnull.
16738         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
16740 2018-09-16  Bruno Haible  <bruno@clisp.org>
16742         setlocale: Improve locale handling on macOS 10.12 or newer.
16743         * lib/setlocale.c: Include header files for CoreFoundation. Declare
16744         gl_locale_name_canonicalize.
16745         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
16746         and LC_MESSAGES.
16747         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
16749 2018-09-16  Bruno Haible  <bruno@clisp.org>
16751         Update list of locale names with scripts on macOS.
16752         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
16753         match Mac OS X 10.13 and recent glibc.
16755 2018-09-16  Bruno Haible  <bruno@clisp.org>
16757         gettext: Use newer macOS APIs when possible.
16758         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
16759         CFLocaleCopyPreferredLanguages.
16761 2018-09-16  Bruno Haible  <bruno@clisp.org>
16763         localename: Revisit macOS specific code.
16764         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
16765         Fix comments about Mac OS X versions.
16767 2018-09-15  Bruno Haible  <bruno@clisp.org>
16769         setlocale: Improve support for locales not supported by libc.
16770         Reported by Dapeng Gao <peter@dpgao.cc> at
16771         <https://savannah.gnu.org/bugs/?54479>.
16772         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
16773         (libintl_setlocale): Use a more error-tolerant strategy when the locale
16774         to be set is not supported by libc: Emit warnings instead of failing.
16776 2018-09-15  Bruno Haible  <bruno@clisp.org>
16778         strstr, strcasestr: Add workaround against glibc-2.28 bug.
16779         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
16780         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
16781         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
16782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
16783         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
16784         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
16785         * doc/glibc-functions/strcasestr.texi: Likewise.
16787 2018-09-14  Bruno Haible  <bruno@clisp.org>
16789         doc: Fix bottom of top-level page.
16790         Reported by Akim Demaille <akim.demaille@gmail.com> in
16791         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
16792         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
16793         mode.
16794         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
16795         accordingly.
16797 2018-09-12  Bruno Haible  <bruno@clisp.org>
16799         Add test case from a recent glibc bug.
16800         * tests/test-strstr.c (main): Add test of long needle.
16801         * tests/test-strcasestr.c (main): Likewise.
16802         * tests/test-c-strstr.c (main): Likewise.
16803         * tests/test-c-strcasestr.c (main): Likewise.
16804         * tests/test-memmem.c (main): Likewise.
16806 2018-09-12  Bruno Haible  <bruno@clisp.org>
16808         Apply Eric Blake's improvements from 2011-02-25 to more tests.
16809         * tests/test-c-strstr.c (main): Add the same tests here as well.
16811 2018-09-12  Bruno Haible  <bruno@clisp.org>
16813         Apply Jim Meyering's fix from 2015-01-11 to more tests.
16814         * tests/test-memmem.c (main): Free haystack.
16815         * tests/test-strcasestr.c (main): Likewise.
16816         * tests/test-c-strcasestr.c (main): Likewise.
16818 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
16820         xstrtol: fix missing-TYPE_SIGNED typo
16821         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
16823 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16825         timespec: fix resolution confusion
16826         In normal usage, clock resolution is given in seconds, but the
16827         code was mistakenly using inverse seconds and calling it
16828         “resolution”.  Fix this, partly by renaming two identifiers.
16829         The old names will be kept for a bit, to ease transition.
16830         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
16831         New constants, replacing TIMESPEC_RESOLUTION and
16832         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
16833         All uses changed.
16835 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
16837         mktime: simplify in prep for glibc merge
16838         * lib/mktime.c, lib/timegm.c [_LIBC]:
16839         Include mktime-internal.h (a small file just for glibc)
16840         instead of using a typedef.
16842 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
16844         intprops: minor clarification of code
16845         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
16846         Use _GL_INT_CONVERT rather than reinventing it.
16848 2018-09-07  Bruno Haible  <bruno@clisp.org>
16850         Fix a comment.
16851         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
16853 2018-09-07  Bruno Haible  <bruno@clisp.org>
16855         posix_spawn_file_actions_addchdir: Add tests.
16856         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
16857         * tests/test-posix_spawn4.c: New file.
16858         * modules/posix_spawn_file_actions_addchdir-tests: New file.
16860 2018-09-07  Bruno Haible  <bruno@clisp.org>
16862         posix_spawn_file_actions_addchdir: New module.
16863         Suggested by Eric Blake in
16864         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
16865         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
16866         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
16867         union member 'chdir_action'.
16868         * lib/spawn_faction_addchdir.c: New file.
16869         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
16870         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
16871         HAVE_WORKING_POSIX_SPAWN.
16872         * lib/spawn_faction_adddup2.c: Likewise.
16873         * lib/spawn_faction_addopen.c: Likewise.
16874         * m4/posix_spawn_faction_addchdir.m4: New file.
16875         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
16876         'posix_spawn_file_actions_addchdir' is present and whether
16877         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
16878         instead of HAVE_WORKING_POSIX_SPAWN.
16879         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
16880         posix_spawn_file_actions_addchdir is declared.
16881         (gl_SPAWN_H_DEFAULTS): Initialize
16882         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16883         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16884         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16885         * modules/spawn (Makefile.am): Substitute
16886         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16887         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16888         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16889         * modules/posix_spawn_file_actions_addchdir: New file.
16890         * modules/posix_spawn_file_actions_addclose (Depends-on,
16891         configure.ac): Test also REPLACE_POSIX_SPAWN.
16892         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
16893         configure.ac): Likewise.
16894         * modules/posix_spawn_file_actions_addopen (Depends-on,
16895         configure.ac): Likewise.
16896         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
16897         signature.
16898         * doc/posix-functions/posix_spawn.texi: Mention the new module.
16899         * doc/posix-functions/posix_spawnp.texi: Likewise.
16901 2018-09-06  Bruno Haible  <bruno@clisp.org>
16903         stddef: Override max_align_t on NetBSD 8.0/x86.
16904         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
16905         the value of __alignof__ (max_align_t).
16906         * doc/posix-headers/stddef.texi: Mention the issue.
16908 2018-09-06  Bruno Haible  <bruno@clisp.org>
16910         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
16911         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
16912         system fcntl.
16913         * doc/posix-functions/fcntl.texi: Document the issue.
16915 2018-09-06  Bruno Haible  <bruno@clisp.org>
16917         count-trailing-zeros tests: Rely on limits-h module.
16918         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
16919         definition.
16920         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
16922 2018-09-06  Bruno Haible  <bruno@clisp.org>
16924         count-leading-zeros tests: Rely on limits-h module.
16925         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
16926         definition.
16927         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
16929 2018-09-06  Bruno Haible  <bruno@clisp.org>
16931         count-one-bits tests: Rely on limits-h module.
16932         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
16933         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
16935 2018-09-06  Bruno Haible  <bruno@clisp.org>
16937         xstrtoll: Rely on limits-h module.
16938         * lib/xstrtol.c: Don't include intprops.h.
16939         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
16940         * modules/xstrtol (Depends-on): Remove 'intprops'.
16941         * modules/xstrtoll (Depends-on): Add 'limits-h'.
16943 2018-09-06  Bruno Haible  <bruno@clisp.org>
16945         strtoll, strtoull: Rely on limits-h module.
16946         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
16947         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
16948         * modules/strtoll (Depends-on): Add limits-h.
16949         * modules/strtoull (Depends-on): Likewise.
16951 2018-09-06  Bruno Haible  <bruno@clisp.org>
16953         intprops tests: Fix compilation error with pre-C99 compiler.
16954         * tests/test-intprops.c (verify_stmt): New macro.
16955         (VERIFY, main): Use it.
16957 2018-09-06  Bruno Haible  <bruno@clisp.org>
16959         limits-h: Provide numerical limits macros.
16960         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
16961         IRIX and for GCC.
16962         (WORD_BIT, LONG_BIT): Define.
16963         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
16964         <limits.h> does not define LLONG_MAX or WORD_BIT.
16965         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
16966         TYPE_MAXIMUM): New macros, from intprops.h.
16967         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
16968         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
16969         provides.
16971 2018-09-05  Bruno Haible  <bruno@clisp.org>
16973         fcntl: Don't access nonexistent optional argument.
16974         Reported by Frank Busse <f.busse@imperial.ac.uk> in
16975         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
16976         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
16977         don't consume an argument. For actions that take an 'int' argument,
16978         consume an 'int' argument.
16980 2018-09-05  Eric Blake  <eblake@redhat.com>
16982         doc: mention environ pitfall
16983         * doc/posix-functions/environ.texi (environ): Assigning NULL to
16984         environ is a glibc extension.
16986 2018-09-03  Bruno Haible  <bruno@clisp.org>
16988         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
16989         Reported by Antoine Luong <antoine.luong@c-s.fr> in
16990         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
16991         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
16992         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
16993         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
16995 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16997         mktime: fix unlikely race+overflow bug
16998         Problem reported by Alexandre Oliva in:
16999         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
17000         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
17001         to avoid an unlikely race if the compiler delays a load and
17002         if this cascades into a signed integer overflow.
17004 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17006         mktime, timegm: simplify glibc time64_t
17007         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
17008         Now long int, not time_t, since long int is the longstanding type
17009         for this in glibc and there is no need to change it even if time_t
17010         becomes 64 bits - even int would do, though this would be a change
17011         to the glibc generated code.  When this change is merged into
17012         glibc, it should simplify the time_t vs time64_t situation.
17014         mktime, timegm: simplify merge to glibc
17015         Move code around to make a merge to glibc easier to audit.
17016         This should not change behavior.
17017         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
17018         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
17019         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
17020         simplify later conditionals; default the others to zero.  In uses
17021         of these conditionals, explicitly spell out how _LIBC affects
17022         things, so it’s easier to review from a glibc viewpoint.
17023         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
17024         compartmentalize tzset issues.  Move system-dependent tzsettish
17025         code here from mktime.
17026         (mktime): Move tzsettish code to my_tzset, and move
17027         localtime_offset to within mktime so that it doesn’t
17028         need a separate ifdef.
17030 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
17032         intprops: avoid evaluation of some expressions
17033         This makes EXPR_SIGNED (e) easier to use, as it no longer
17034         evaluates the expression E.  Formerly, E was required to be free
17035         of side effects.
17036         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
17037         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
17038         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
17040 2018-08-23  Bruno Haible  <bruno@clisp.org>
17042         getcwd: Add cross-compilation guesses.
17043         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
17044         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
17045         Based on a patch by Paul Eggert.
17046         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
17047         guesses for all GNU systems.
17049 2018-08-19  Bruno Haible  <bruno@clisp.org>
17051         glob-h: Formalize side effects from other modules.
17052         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
17053         * m4/glob.m4 (gl_GLOB): Invoke it.
17055         fnmatch-h: Formalize side effects from other modules.
17056         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
17057         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
17059         limits-h: Formalize side effects from other modules.
17060         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
17061         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
17063 2018-08-19  Bruno Haible  <bruno@clisp.org>
17065         getpass: Move declaration to <unistd.h>.
17066         * lib/unistd.in.h (getpass): New declaration.
17067         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
17068         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
17069         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
17070         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
17071         On glibc systems, don't set REPLACE_GETPASS to 1.
17072         * modules/getpass (Depends-on): Add 'unistd'.
17073         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
17074         (Include): Specify <unistd.h> instead of "getpass.h".
17075         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
17076         (configure.ac): Sync with the configure.ac section of modules/getpass.
17077         (Include): Specify <unistd.h> instead of "getpass.h".
17078         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
17079         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
17080         REPLACE_GETPASS.
17081         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
17082         REPLACE_GETPASS.
17083         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
17084         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
17085         and musl.
17086         * NEWS: Mention the change.
17088 2018-08-19  Bruno Haible  <bruno@clisp.org>
17090         glob: Fix over-optimization due to attribute __nonnull__.
17091         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
17093 2018-08-19  Bruno Haible  <bruno@clisp.org>
17095         glob: Fix another compilation error when glob.h is not replaced.
17096         Reported by Reuben Thomas <rrt@sc3d.org> in
17097         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
17098         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
17099         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
17101 2018-08-18  Bruno Haible  <bruno@clisp.org>
17103         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
17104         Reported by Reuben Thomas <rrt@sc3d.org> in
17105         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
17106         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
17107         in config.h.
17109 2018-08-18  Bruno Haible  <bruno@clisp.org>
17111         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
17112         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
17113         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
17114         Solution proposed by Eli Zaretskii.
17115         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
17116         * lib/gettimeofday.c (GetProcAddress): Likewise.
17117         * lib/link.c (GetProcAddress): Likewise.
17118         * lib/physmem.c (GetProcAddress): Likewise.
17119         * lib/poll.c (GetProcAddress): Likewise.
17120         * lib/select.c (GetProcAddress): Likewise.
17121         * lib/stat-w32.c (GetProcAddress): Likewise.
17123 2018-08-18  Bruno Haible  <bruno@clisp.org>
17125         glob: Fix another compilation error when glob.h is not replaced.
17126         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
17127         * lib/globfree.c: Include <libc-config.h>.
17129 2018-08-18  Bruno Haible  <bruno@clisp.org>
17131         glob: Fix compilation error when glob.h is not replaced.
17132         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
17133         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
17134         * lib/glob_pattern_p.c: Include <libc-config.h>.
17135         * modules/glob (Depends-on): Add libc-config.
17137 2018-08-18  Bruno Haible  <bruno@clisp.org>
17139         scratch_buffer: Add tests.
17140         * tests/test-scratch-buffer.c: New file.
17141         * modules/scratch_buffer-tests: New file.
17143 2018-08-18  Bruno Haible  <bruno@clisp.org>
17145         scratch_buffer: Fix include file.
17146         Reported by Reuben Thomas <rrt@sc3d.org> in
17147         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
17148         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
17149         double-inclusion guard.
17151 2018-08-18  Bruno Haible  <bruno@clisp.org>
17153         glob-h: Revert Paul Eggert's revert.
17154         * m4/glob_h.m4: Revert to previous state.
17155         * modules/glob-h: Likewise.
17157 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17159         glob-h: always build glob.h
17160         This works around a problem reported by Reuben Thomas in:
17161         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
17162         This workaround always builds glob.h, even on platforms that
17163         do not need it; perhaps this could be improved someday.
17164         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
17165         is always created now.
17166         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
17168 2018-08-13  Bruno Haible  <bruno@clisp.org>
17170         monetary: Simplify m4 code.
17171         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
17172         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
17174 2018-08-13  Bruno Haible  <bruno@clisp.org>
17176         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
17177         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
17178         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
17179         and by Paul J. Lucas <paul@lucasmail.org> in
17180         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
17181         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
17183 2018-08-11  Bruno Haible  <bruno@clisp.org>
17185         setlocale: Trivial simplification.
17186         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
17188 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17190         verify: port 'assume' to traditional tools
17191         * lib/verify.h (assume): Port better to Oracle Studio 12.6
17192         and other tools that use /*NOTREACHED*/ comments.
17194 2018-08-10  Bruno Haible  <bruno@clisp.org>
17196         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
17197         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17198         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
17199         'fnmatch-gnu' is in use.
17201 2018-08-07  Bruno Haible  <bruno@clisp.org>
17203         glob-h: Add tests.
17204         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
17205         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
17206         tests/test-glob-h.c.
17207         * modules/glob-h-tests: New file.
17208         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
17209         conditions.
17210         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
17211         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
17213 2018-08-07  Bruno Haible  <bruno@clisp.org>
17215         glob-h: New module.
17216         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
17217         replacements.
17218         * lib/glob.c: Include <config.h>.
17219         * m4/glob_h.m4: New file.
17220         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
17221         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17222         REPLACE_GLOB_PATTERN_P as appropriate.
17223         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
17224         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
17225         * modules/glob-h: New file.
17226         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
17227         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
17228         lstat, sys_stat. Change conditions.
17229         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17230         REPLACE_GLOB_PATTERN_P. Set module indicator.
17231         (Makefile.am): Remove code that is moved to glob-h.
17232         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
17233         * modules/posixcheck (Depends-on): Add glob-h.
17235 2018-08-06  Bruno Haible  <bruno@clisp.org>
17237         Force generation of substitute .h file when C++ support is enabled.
17238         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
17239         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
17240         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
17241         FNMATCH_H to non-empty.
17242         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
17243         ICONV_H to non-empty.
17244         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
17245         MONETARY_H to non-empty.
17246         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
17247         non-empty.
17249 2018-08-06  Bruno Haible  <bruno@clisp.org>
17251         fnmatch-h: Fix test compilation error on mingw (regression from today).
17252         * lib/fnmatch.in.h: Fix conditions.
17254 2018-08-06  Bruno Haible  <bruno@clisp.org>
17256         sys_resource: Relicense under LGPLv2+.
17257         John Malmberg's approval is in
17258         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
17259         * modules/sys_resource (License): Change to LGPLv2+.
17261 2018-08-06  Bruno Haible  <bruno@clisp.org>
17263         fnmatch-h: Add tests.
17264         * tests/test-fnmatch-h.c: New file.
17265         * modules/fnmatch-h-tests: New file.
17266         * tests/test-fnmatch-h-c++.cc: New file.
17267         * modules/fnmatch-h-c++-tests: New file.
17269 2018-08-06  Bruno Haible  <bruno@clisp.org>
17271         fnmatch-h: New module.
17272         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
17273         replacements.
17274         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
17275         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
17276         'posixcheck' warning.
17277         * m4/fnmatch_h.m4: New file.
17278         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
17279         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
17280         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
17281         as appropriate.
17282         * modules/fnmatch-h: New file.
17283         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
17284         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
17285         conditions.
17286         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
17287         indicator.
17288         (Makefile.am): Remove code that is moved to fnmatch-h.
17289         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
17290         REPLACE_FNMATCH.
17291         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
17292         * modules/posixcheck (Depends-on): Add fnmatch-h.
17294 2018-08-06  Bruno Haible  <bruno@clisp.org>
17296         Enable more C++ tests.
17297         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
17298         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
17299         * modules/strings-tests (Depends-on): Add strings-c++-tests.
17300         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
17301         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
17303 2018-08-06  Bruno Haible  <bruno@clisp.org>
17305         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
17306         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
17307         getopt.h.
17308         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
17310 2018-08-05  Bruno Haible  <bruno@clisp.org>
17312         utime-h: Generate header file when module 'posixcheck' is in use.
17313         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
17314         UTIME_H to non-empty.
17316 2018-08-05  Bruno Haible  <bruno@clisp.org>
17318         monetary: Generate header file when module 'posixcheck' is in use.
17319         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
17320         use, set MONETARY_H to non-empty.
17322 2018-08-05  Bruno Haible  <bruno@clisp.org>
17324         iconv-h: Generate header file when module 'posixcheck' is in use.
17325         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
17326         set ICONV_H to non-empty.
17328 2018-08-05  Bruno Haible  <bruno@clisp.org>
17330         Optimize the "checking whether ... is declared without a macro" checks.
17331         Suggested by Paul Eggert in
17332         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
17333         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
17334         Gnulib module 'posixcheck' is not in use.
17336 2018-08-05  Bruno Haible  <bruno@clisp.org>
17338         iconv-h: Enable 'posixcheck' warnings.
17339         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
17340         iconv_open.
17341         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
17343 2018-08-05  Bruno Haible  <bruno@clisp.org>
17345         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
17346         * m4/extern-inline.m4: Add more comments.
17347         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
17348         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
17349         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
17351 2018-08-04  Bruno Haible  <bruno@clisp.org>
17353         New module 'posixcheck'.
17354         * modules/posixcheck: New file.
17355         * m4/posixcheck.m4: New file.
17356         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
17357         (Which modules?): Reference it.
17359 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
17361         dfa: fix memory leak
17362         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
17364 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17366         ieee754-h: new module
17367         It looks like Emacs can use this for some NaN processing.
17368         Emacs uses it only on double NaNs so it should be safe.
17369         * MODULES.html.sh (func_all_modules): Add ieee754-h.
17370         * config/srclist.txt: Mention ieee754.h in a comment.
17371         * doc/glibc-headers/ieee754.texi (ieee754.h):
17372         Gnulib now has a substitute that should work
17373         except for long double and for non-IEEE platforms.
17374         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
17375         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
17377 2018-07-27  Bruno Haible  <bruno@clisp.org>
17379         iswcntrl: Mention minor problem on macOS.
17380         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
17382 2018-07-26  Colin Watson  <cjwatson@debian.org>
17384         bootstrap, gnulib-tool: fix translations rsync
17385         Previously, we created files such as $pobase/Makefile.in.in and then the
17386         subsequent rsync would immediately delete them.
17387         * build-aux/bootstrap (po_download_command_format): Avoid deleting
17388         non-.po files in target directory when rsyncing translations.
17389         * gnulib-tool (func_import): Likewise.
17390         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17392 2018-07-25  Jim Meyering  <meyering@fb.com>
17394         bootstrap: reinstate definition fo gnulib_mk.
17395         That variable is used at least by cppi.
17396         * build-aux/bootstrap (gnulib_mk): Restore definition.
17397         This reverts the deletion from v0.1-1844-gc66dba9ba.
17399 2018-07-23  Bruno Haible  <bruno@clisp.org>
17401         doc: For module names, use texinfo markup @code{} or @samp{}.
17402         * doc/alloca.texi: Mark gnulib module names with @code.
17403         * doc/alloca-opt.texi: Likewise.
17404         * doc/quote.texi: Likewise.
17405         * doc/posix-functions/freopen.texi: Likewise.
17406         * doc/posix-functions/open.texi: Likewise.
17407         * doc/posix-functions/readlink.texi: Likewise.
17408         * doc/posix-functions/readlinkat.texi: Likewise.
17409         * doc/posix-functions/stdout.texi: Likewise.
17410         * doc/posix-functions/stderr.texi: Likewise.
17411         * doc/posix-functions/unlink.texi: Likewise.
17412         * doc/posix-functions/unlinkat.texi: Likewise.
17413         * doc/posix-functions/utime.texi: Likewise.
17414         * doc/posix-functions/utimensat.texi: Likewise.
17415         * doc/posix-functions/utimes.texi: Likewise.
17416         * doc/posix-headers/stdint.texi: Likewise.
17417         * doc/glibc-functions/futimesat.texi: Likewise.
17418         * doc/glibc-functions/lutimes.texi: Likewise.
17419         * doc/glibc-functions/memmem.texi: Likewise.
17421 2018-07-23  Werner LEMBERG  <wl@gnu.org>
17423         doc: Avoid some overfull lines in the TeX output.
17424         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
17425         @example.
17426         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
17427         newline before the long URL.
17428         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
17429         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
17430         Add line breaks in code snippets.
17432 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
17434         hard-locale: simplify by removing hard-locale.m4
17435         * m4/hard-locale.m4: Remove.
17436         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
17437         (configure.ac): Do not call gl_HARD_LOCALE.
17439         gnulib-tool: limit line length for git send-email
17440         * gnulib-tool (func_import): Break actioncmd log line
17441         into multiple lines.
17443 2018-07-16  Bruno Haible  <bruno@clisp.org>
17445         ffs: Ensure declaration on mingw.
17446         Reported by Daniel P. Berrangé <berrange@redhat.com>
17447         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
17448         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
17449         also declared.
17451 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17453         regex-tests: add dependency
17454         * modules/regex-tests (Depends-on): Add gettext-h.
17455         This is needed given the recent changes to regex,
17456         which no longer depends on gettext-h.
17458 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17460         regex: now in sync with glibc
17461         * config/srclist.txt: Gnulib and glibc regex code
17462         are synchronized again.
17464 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17466         renameatu: rename from renameat2
17467         It's looking like Glibc will add a renameat2 function
17468         that is incompatible with Gnulib renameat2; see:
17469         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
17470         To help avoid future confusion, rename renameat2 to something else.
17471         Use the name 'renameatu', as the Gnulib function is close to the
17472         Glibc function.  Perhaps someday there will also be a renameat2
17473         Gnulib module, which mimicks the future glibc renameat2, but that
17474         can wait as nobody seems to need such a module now.
17475         * NEWS: Mention this.
17476         * lib/renameatu.c: Rename from lib/renameat2.c.
17477         * lib/renameatu.h: Rename from lib/renameat2.h.
17478         * modules/renameatu: Rename from modules/renameat2.
17479         * modules/renameatu-tests: Rename from modules/renameat2-tests.
17480         All uses of "renameat2" in identifiers or file name
17481         changed to "renameatu", except for two instances in
17482         lib/renameatu.c that deal with the Linux kernel's
17483         renameat2 syscall.
17485 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17487         gnulib-tool: minor tweaks for --gnu-make
17488         * gnulib-tool: Do not allow --gnu-make in test modes,
17489         since they all require automake.
17490         (func_emit_lib_Makefile_am): Don’t emit automake comment
17491         if --gnu-make.
17493         regex: work around conditional-dependencies glitch
17494         * modules/regex (Depends-on): Add langinfo.
17495         Without this change, I had problems building an experimental
17496         version of GNU Emacs.  The symptom of the bug was a message
17497         ‘./configure: line 12726: test: =: unary operator expected’.
17498         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
17499         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
17500         was unset.  Although gl_FUNC_NL_LANGINFO has
17501         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
17502         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
17503         --conditional-dependencies sometimes arranges for the
17504         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
17505         code.  Since the regex code includes <langinfo.h> it should be
17506         depending on the langinfo module anyway, and this happens to work
17507         around the bug, so install that as a workaround for now.  To
17508         reproduce the original problem, run the following shell script on
17509         the version of Gnulib just before this patch was installed.
17510                 rm -fr foo
17511                 mkdir foo
17512                 cat >foo/configure.ac <<'EOF'
17513                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
17514                 gl_EARLY
17515                 gl_INIT
17516                 AC_OUTPUT
17517                 EOF
17518                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
17519                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
17520                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
17521                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
17522                 cd foo
17523                 aclocal -I m4
17524                 autoconf
17525                 ./configure --with-included-regex
17527 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17529         wchar: fix bug when checking for ‘inline’
17530         I discovered this when looking into using the regex module
17531         with Emacs.
17532         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
17533         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
17534         conftest1.c and conftest2.c but these files were not created.
17535         As far as I can see, this check never worked and nobody reported
17536         it until now, which is a bit worrisome.
17538 2018-06-30  Jim Meyering  <meyering@fb.com>
17540         bootstrap: s/--option val/--option=val/
17541         * build-aux/bootstrap (gnulib_tool_options): Change the
17542         spelling of "--option val" pairs to "--option=val", for
17543         aesthetics, and also so that this file no longer triggers
17544         a common help2man syntax-check warning when copied into
17545         projects like grep, gzip, etc.
17547 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17549         manywarnings: omit -Wswitch-default
17550         This should make things more consistent, as we already ignore
17551         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
17552         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
17553         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
17554         Add -Wswitch-default.
17555         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
17556         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17557         Remove -Wswitch-default.
17559         regex: revert most trimming
17560         Problems reported by Bruno Haible in:
17561         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
17562         * modules/regex (Depends-on): Add lock, memcmp, memmove,
17563         and wctype back in.  lock because regex users shouldn’t
17564         need to know that regex needs locking, and the rest because
17565         gnulib-tool should ordinarily ignore them anyway.
17567 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17569         regex: trim module dependencies
17570         * modules/regex (Depends-on): Remove gettext-h and lock,
17571         since the regex code should work OK without these modules,
17572         and Emacs uses it that way.  Also remove memcmp, memmove,
17573         and wctype, as these modules are obsolete and should not be
17574         needed any more.
17576 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
17578         regex: glibc does not use intprops.h
17579         Maybe we can talk glibc into using intprops.h someday, but
17580         now doesn’t seem to be a good time.
17581         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
17582         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
17583         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
17585 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
17587         regex: port to recently proposed glibc regex merge
17588         This patch is inspired by Adhemerval Zanella's recent proposal
17589         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
17590         to merge glibc and Gnulib regex.  It aims to simplify the merge on
17591         the glibc side, without keeping Gnulib portable.
17592         * lib/regex.h: Fix a problem with glibc installed-header checking,
17593         as follows:
17594         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
17595         (_Restrict_arr_): Prefer __restrict_arr if defined,
17596         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
17597         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
17598         (build_wcs_upper_buffer, build_upper_buffer)
17599         (re_string_translate_buffer, re_string_context_at):
17600         Move decls here from lib/regex_internal.h, for glibc internal tests.
17601         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
17602         glibc BZ #18496.
17603         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
17604         -Wunused-value.
17605         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
17606         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17607         (bitset_mask): Now static inline, and without any __attribute__
17608         ((unused)) decoration, for glibc internal tests.
17610 2018-06-25  Bruno Haible  <bruno@clisp.org>
17612         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
17613         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
17614         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
17615         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
17616         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
17617         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
17618         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
17619         / -lthread / -lpth does not get optimized away by a preceding
17620         --as-needed option.
17622 2018-06-25  Bruno Haible  <bruno@clisp.org>
17624         Continue to use spaces for indentation, not tabs.
17625         * MODULES.html.sh: Untabify.
17626         * doc/regex.texi: Likewise.
17627         * lib/acl-internal.c: Likewise.
17628         * lib/dfa.c: Likewise.
17629         * lib/exclude.c: Likewise.
17630         * lib/exclude.h: Likewise.
17631         * lib/get-permissions.c: Likewise.
17632         * lib/gettimeofday.c: Likewise.
17633         * lib/parse-datetime.y: Likewise.
17634         * lib/pselect.c: Likewise.
17635         * lib/set-permissions.c: Likewise.
17636         * lib/time.in.h: Likewise.
17637         * m4/canonicalize.m4: Likewise.
17638         * m4/gc.m4: Likewise.
17639         * m4/gnulib-common.m4: Likewise.
17640         * m4/pthread_sigmask.m4: Likewise.
17641         * m4/vararrays.m4: Likewise.
17642         * tests/test-digest.h: Likewise.
17643         * tests/test-fcntl-h.c: Likewise.
17644         * tests/test-timespec.c: Likewise.
17645         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
17647 2018-06-25  Bruno Haible  <bruno@clisp.org>
17649         manywarnings: Don't enable -Wjump-misses-init warnings by default.
17650         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
17651         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
17652         -Wjump-misses-init.
17654 2018-06-25  Jim Meyering  <meyering@fb.com>
17656         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
17657         * lib/acl-internal.h (free_permission_context): Remove that
17658         attribute directive.  Otherwise, it would provoke this from GCC 9:
17659         lib/acl-internal.h:300:3: error: 'const' attribute on function \
17660           returning 'void' [-Werror=attributes]
17662 2018-06-24  Jim Meyering  <meyering@fb.com>
17664         parse-datetime: accommodate gcc-4.8.5
17665         Bruno Haible reported the build failure in
17666         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
17667         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
17668         on declaration of new local.
17670 2018-06-24  Bruno Haible  <bruno@clisp.org>
17672         af_alg: Fail in continuable manner on Linux/powerpc64le.
17673         Reported by Assaf Gordon <assafgordon@gmail.com>
17674         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
17675         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
17676         byte send() as the first round.
17678 2018-06-24  Bruno Haible  <bruno@clisp.org>
17680         af_alg: Fix state of stream after sendfile() succeeds.
17681         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
17682         the stream is correctly positioned afterwards.
17683         * modules/crypto/af_alg (Depends-on): Add fflush.
17684         * tests/test-digest.h (test_digest_on_files): Verify that after the
17685         operation the stream is positioned at end of file.
17687 2018-06-24  Jim Meyering  <meyering@fb.com>
17689         canon-host: take GCC9's advice rather than ignoring warning
17690         Pádraig Brady suggested not to ignore this GCC9 advice.
17691         * lib/canon-host.c: Undo preceding change.
17692         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
17694         parse-datetime.y: avoid spurious GCC 9 warning
17695         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
17696         a function local prior to the first "goto fail".  The prior use would
17697         evoke this:
17698         parse-datetime.y: In function 'parse_datetime2':
17699         parse-datetime.y:1791:19: error: jump skips variable initialization \
17700           [-Werror=jump-misses-init]
17701         parse-datetime.y:2385:2: note: label 'fail' defined here
17702         parse-datetime.y:188:43: note: '({anonymous})' declared here
17703         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
17705         canon-host.c: avoid spurious GCC 9 warning
17706         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
17708         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
17709         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
17710         * m4/manywarnings.m4: Remove them.
17711         Otherwise, building coreutils, I would see this:
17712         cc1: error: deprecated command line option '-Wchkp' [-Werror]
17713         cc1: error: -Wabi won't warn about anything [-Werror=abi]
17714         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
17715           which is also used by default
17716         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
17718 2018-06-24  Bruno Haible  <bruno@clisp.org>
17720         af_alg tests: Add another test.
17721         * tests/test-digest.h (test_digest_on_files): Also check a large file
17722         with a skipped header.
17723         * tests/test-md5.c: Include macros.h.
17724         * tests/test-sha1.c: Likewise.
17725         * tests/test-sha256.c: Likewise.
17726         * tests/test-sha512.c: Likewise.
17727         * modules/crypto/md5-tests (Files): Add tests/macros.h.
17728         * modules/crypto/sha1-tests (Files): Likewise.
17729         * modules/crypto/sha256-tests (Files): Likewise.
17730         * modules/crypto/sha512-tests (Files): Likewise.
17732 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17734         maint: clarify comments about sticky EOF
17735         * lib/af_alg.c: Be more direct that we can't
17736         assume stickiness of EOF for portability reasons.
17737         * lib/md5.c: Clarify that this isn't just a glibc issue.
17738         * lib/sha1.c: Likewise.
17739         * lib/sha256.c: Likewise.
17740         * lib/sha512.c: Likewise.
17742 2018-06-24  Bruno Haible  <bruno@clisp.org>
17744         af_alg: Comment and style improvements.
17745         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
17746         (afalg_buffer, afalg_stream): Improve comments.
17748 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17750         af_alg: disable kernel hash functions by default
17751         All the kernel routines were seen to be significantly slower
17752         with these relatively recent components on an i3-2310M system:
17753           kernel-4.10.6-200.fc25.x86_64
17754           openssl-1.0.2m-1.fc25.x86_64
17755         sha1 was nearly twice as slow in the kernel for example.
17756         Further considerations why this should not be the default, at:
17757         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
17759         * m4/af_alg.m4: Require --with-linux-crypto to enable.
17760         * m4/gl-openssl.m4: Tweak accordingly.
17762 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17764         af_alg: avoid hangs when reading from streams
17765         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
17766         and thus avoid doing a fread() when feof() is set.
17767         * lib/md5.c: Ensure feof() is called before fread().
17768         * lib/sha1.c: Likewise.
17769         * lib/sha256.c: Likewise.
17770         * lib/sha512.c: Likewise.
17772 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17774         af_alg: fix error handling when hash not returned
17775         * lib/af_alg.c (afalg_stream): Handle the case where we've
17776         successfully written data to the kernel in the read/write loop,
17777         but the kernel doesn't respond with the hash.
17779 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17781         libc-config: merge from glibc
17782         * lib/cdefs.h (__inline, __restrict):
17783         Copy from current glibc.  This fixes glibc bug 17721,
17784         which Gnulib had already fixed in a different way.
17785         (__nonnull): Lessen the distance from glibc by using the
17786         glibc definition inside an ‘#ifndef __nonnull’.
17787         (__attribute_nonstring__): New macro, copied from
17788         current glibc.
17789         * lib/libc-config.h (__attribute_nonstring__): New undef.
17790         (__restrict): Remove; workaround no longer needed.
17791         Keep the __inline workaround, though, as it uses HAVE___INLINE to
17792         support more compilers than the glibc __inline can.
17794 2018-06-24  Bruno Haible  <bruno@clisp.org>
17796         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
17797         * lib/mbrtowc.c (enc_t): New enum type.
17798         (locale_enc, locale_enc_cached): New functions.
17799         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
17800         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
17801         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
17802         instead.
17803         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
17804         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
17805         * modules/wcwidth (configure.ac): Invoke it.
17807 2018-06-24  Bruno Haible  <bruno@clisp.org>
17809         wchar-single: Fix test failure in wcwidth tests.
17810         * tests/test-wcwidth.c (main): If the wchar-single module is present,
17811         skip the tests in the C locale.
17813 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17815         crypto: mention --without-linux-crypto in --with-openssl --help
17816         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
17817         routines take precedence in --with-openssl help output.
17819 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17821         wchar-single: a new module to enable optimizations in wchar replacements
17822         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
17823         GNULIB_WCHAR_SINGLE is enabled.
17824         * lib/wcwidth.c (wcwidth): Likewise.
17826 2018-06-23  Bruno Haible  <bruno@clisp.org>
17828         libc-config: Fix conflict with FreeBSD include files.
17829         * lib/cdefs.h (__nonnull): Remove definition.
17830         * lib/libc-config.h (__nonnull): Remove undefinition.
17832 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
17834         random_r: do not crash if state is unaligned
17835         Problem reported by Bruce Korb in:
17836         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
17837         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
17838         with 'cc -O2 -xmemalign=8s'.
17839         * lib/random_r.c: Include string.h, for memcpy.
17840         (get_int32, set_int32): New functions.
17841         (__srandom_r, __initstate_r, __setstate_r, __random_r):
17842         Use them to avoid assumption that state pointer is aligned.
17843         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
17844         * tests/test-random_r.c (test_failed): New function.
17845         (main): Use it, to test for alignment bugs.
17847         random_r: omit unnecessary include
17848         * lib/random_r.c: Do not include limits.h.
17850         random, random_r: merge from glibc
17851         * lib/random.c, lib/random_r.c:
17852         Include libc-config.h if !_LIBC, not config.h unilaterally.
17853         * lib/random.c:
17854         Do not include stdint.h or time.h; not needed.
17855         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
17856         (unsafe_state): Rename from generator.  All uses changed.
17857         Use C99-style initializers.
17858         (__random, __srandom, __initstate, __setstate): Rename from
17859         non-underscored version, but define it to non-underscored version
17860         on Gnulib.  Add a lock.
17861         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
17862         Likewise.
17863         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
17864         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
17865         (__srandom_r): Use int32_t instead of long int where int32_t will do.
17866         (__random_r): Use uint32 to fix glibc bug 17343.
17867         * modules/random, modules/random_r (Depends-on): Add libc-config.
17868         Depend on stdint only if $HAVE_RANDOM = 0.
17870 2018-06-19  Jim Meyering  <meyering@fb.com>
17872         README-release: also run any check-very-expensive tests
17873         * top/README-release: Adjust instructions so they run the
17874         check-very-expensive tests when there is such a target.
17876 2018-06-18  Bruno Haible  <bruno@clisp.org>
17878         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
17879         * m4/pthread_rwlock_rdlock.m4: Add comment.
17880         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
17881         are reader-preferring in glibc.
17882         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
17883         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
17885 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17887         crypto: use byteswap
17888         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
17889         * lib/sm3.c: Include <byteswap.h>.
17890         (SWAP): Use its macros rather than reinventing the wheel.
17891         * modules/crypto/md4, modules/crypto/md5-buffer:
17892         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
17893         * modules/crypto/sha512-buffer, modules/crypto/sm3:
17894         (Depends-on): Add byteswap.
17896 2018-06-17  Pádraig Brady  <P@draigBrady.com>
17898         gendocs.sh: fix support for legacy --texi2html
17899         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
17900         to the default makeinfo invocation.
17901         Reported by Bruce Korb
17903 2018-06-17  Bruno Haible  <bruno@clisp.org>
17905         gettext po infrastructure: Update from current gettext git.
17906         Reported by Akim Demaille <akim@lrde.epita.fr>.
17907         * build-aux/po/Makefile.in.in: Update from current gettext git.
17908         * build-aux/po/remove-potcdate.sin: Likewise.
17909         * config/srclist.txt: Temporarily disable sync for these files.
17911 2018-06-17  Bruno Haible  <bruno@clisp.org>
17913         getloadavg: Return 0 on Windows without Cygwin.
17914         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
17916 2018-06-17  Paul Smith  <psmith@gnu.org>
17918         getloadavg: Allow building on Windows without Cygwin
17919         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
17920         * m4/getloadavg.m4: Check for unistd.h.
17922 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
17924         Port crypto/af_alg to GCC 4.8.4
17925         Problem reported by Peter Simons in:
17926         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
17927         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
17929 2018-05-27  Colin Watson  <cjwatson@debian.org>
17931         bootstrap: document source fetching in --help
17932         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
17934 2018-04-09  Colin Watson  <cjwatson@debian.org>
17936         bootstrap: allow non-submodule control of gnulib
17937         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
17938         bootstrap.conf when fetching gnulib using "git clone" or via
17939         GNULIB_SRCDIR.
17941 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17943         crypto: omit stream ops Emacs doesn’t need
17944         * lib/md5.c (md5_stream):
17945         * lib/sha1.c (sha1_stream):
17946         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
17947         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
17948         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
17949         defined.  Emacs needs this, as it does not use the stream
17950         operations and doesn’t need all the af_alg stuff we’ve recently
17951         added.  Perhaps a similar change is needed to the other crypto
17952         modules, but this patch changes only those needed for Emacs.
17953         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
17954         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
17955         New modules, used by Emacs.
17956         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
17957         * modules/crypto/sha512: Rewrite to depend on the new modules.
17959 2018-05-20  Pádraig Brady  <P@draigBrady.com>
17961         fts: avoid a memory leak edge case
17962         * lib/fts.c (fts_open): Set an appropriate fts_level
17963         so that an immediate fts_close() will free the allocation.
17964         * tests/test-fts.c (fts_dealloc): Add a test case which
17965         will trigger under valgrind or address sanitizer.
17966         Fixes https://bugs.gnu.org/31439
17968 2018-05-20  Bruno Haible  <bruno@clisp.org>
17970         wcwidth tests: Fix link error.
17971         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
17972         $(LIBUNISTRING).
17974 2018-05-20  Bruno Haible  <bruno@clisp.org>
17976         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
17977         * modules/regex (Files): Add m4/glibc21.m4.
17979 2018-05-20  Bruno Haible  <bruno@clisp.org>
17981         localcharset: Optimize.
17982         * lib/localcharset.c (alias_table): Comment out no-op mappings for
17983         platforms where these don't matter. This reduces the table size,
17984         which in turn reduces the lookup time.
17986 2018-05-19  Bruno Haible  <bruno@clisp.org>
17988         localcharset: Map the locale encodings found in newer OSes.
17989         * lib/localcharset.c (alias_table): Add mapping for locale encodings
17990         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
17991         IRIX 6.5, Minix 3.3.
17992         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
17994 2018-05-19  Bruno Haible  <bruno@clisp.org>
17996         localcharset: Move mapping tables into the code. Use a binary search.
17997         * lib/localcharset.h: Document the GNU canonical names for character
17998         encodings here.
17999         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
18000         relocatable.h, configmake.h.
18001         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
18002         macros.
18003         (charset_aliases): Remove variable.
18004         (get_charset_aliases): Remove function.
18005         (struct table_entry): New type.
18006         (alias_table, locale_table): New constants.
18007         (locale_charset): Use the alias_table or locale_table to get the
18008         canonicalized encoding name.
18009         * lib/config.charset: Remove file.
18010         * lib/ref-add.sin: Remove file.
18011         * lib/ref-del.sin: Remove file.
18012         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
18013         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
18014         * modules/localcharset (Notice): Remove.
18015         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
18016         glibc21.m4.
18017         (Depends-on): Remove configmake.
18018         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
18019         (Makefile.am): Simplify.
18020         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
18022 2018-05-19  Bruno Haible  <bruno@clisp.org>
18024         localcharset: Add a manual test.
18025         * tests/test-localcharset.c: New file.
18026         * modules/localcharset-tests: New file.
18028 2018-05-19  Bruno Haible  <bruno@clisp.org>
18030         localcharset: Remove support for obsolete platforms.
18031         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
18032         Mac OS X 10.2. Comment out dubious entry for Solaris.
18034 2018-05-19  Jim Meyering  <meyering@fb.com>
18036         gnupload: adjust comment
18037         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
18038         more likely we'll remove the just-added code in a year or two.
18040 2018-05-19  Bruno Haible  <bruno@clisp.org>
18042         gnupload: Fix "gpg-agent is not available in this session" error.
18043         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
18045 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18047         crypto/af_alg: fix --help
18048         * m4/af_alg.m4: Avoid spurious newline in --help output.
18050 2018-05-13  Bruno Haible  <bruno@clisp.org>
18052         nl_langinfo: Fix compilation error on Android.
18053         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
18054         INT_CURR_SYMBOL, etc. only if these items are defined.
18056 2018-05-13  Bruno Haible  <bruno@clisp.org>
18058         truncate: Fix compilation error on Android.
18059         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
18060         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
18061         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
18062         HAVE_TRUNCATE.
18063         * modules/truncate: Likewise.
18064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
18065         not HAVE_TRUNCATE.
18066         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
18067         HAVE_TRUNCATE.
18068         * doc/posix-functions/truncate.texi: Mention the issue.
18070 2018-05-13  Bruno Haible  <bruno@clisp.org>
18072         pthread: Fix compilation error on Android.
18073         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
18074         recursive inclusion of this file.
18076 2018-05-13  Bruno Haible  <bruno@clisp.org>
18078         posix_spawn: Fix compilation error on Android.
18079         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
18080         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
18081         (posix_spawn_file_actions_t): Consider also the case
18082         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
18084 2018-05-13  Bruno Haible  <bruno@clisp.org>
18086         tsearch: Move from K&R C to ANSI C.
18087         * lib/tsearch.c (tfind): Convert definition to ANSI C.
18089 2018-05-13  Bruno Haible  <bruno@clisp.org>
18091         tsearch: Fix compilation error on Android.
18092         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
18093         is 0.
18094         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
18095         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
18096         GNULIB_defined_tsearch is true.
18097         (twalk): Define only if GNULIB_defined_twalk is true.
18098         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
18099         is 0.
18100         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
18101         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
18102         * modules/search (Makefile.am): Substitute HAVE_TWALK.
18104 2018-05-13  Bruno Haible  <bruno@clisp.org>
18106         imaxdiv: Fix compilation error on Android.
18107         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
18108         is not defined.
18109         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
18110         HAVE_DECL_IMAXDIV, is 0.
18111         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
18112         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
18114 2018-05-13  Bruno Haible  <bruno@clisp.org>
18116         Support selective inclusion mechanism of recent mingw.org header files.
18117         Reported by Eli Zaretskii <eliz@gnu.org>.
18118         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
18119         __need_ssize_t, or __need_time_t is defined, just include the system's
18120         <sys/types.h>.
18121         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
18122         include the system's <locale.h>.
18124 2018-05-13  Bruno Haible  <bruno@clisp.org>
18126         Avoid compilation error due to 'mmap' on Android.
18127         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
18128         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
18129         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
18130         Undefine on Android.
18132 2018-05-13  Bruno Haible  <bruno@clisp.org>
18134         Add cross-compilation guesses for Linux systems without glibc.
18135         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
18136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18137         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18138         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18139         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18140         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18141         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18142         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18143         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18144         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
18145         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18146         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18147         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18148         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18149         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18150         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18151         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18152         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18154 2018-05-13  Bruno Haible  <bruno@clisp.org>
18156         getpagesize: Fix compilation error on Android.
18157         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
18158         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
18159         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
18160         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
18161         HAVE_GETPAGESIZE accordingly.
18162         * modules/getcwd (Files): Add m4/getpagesize.m4.
18164 2018-05-13  Bruno Haible  <bruno@clisp.org>
18166         tcgetsid: Fix compilation error on Android.
18167         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
18168         AC_CHECK_FUNC.
18170 2018-05-13  Bruno Haible  <bruno@clisp.org>
18172         getpass: Fix configure test for Android.
18173         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
18174         AC_CHECK_FUNC.
18176 2018-05-13  Bruno Haible  <bruno@clisp.org>
18178         ffs: Fix compilation error on Android.
18179         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
18181 2018-05-13  Bruno Haible  <bruno@clisp.org>
18183         mkfifo: Fix compilation error on Android.
18184         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
18185         AC_CHECK_FUNC.
18187 2018-05-13  Bruno Haible  <bruno@clisp.org>
18189         c-strtod: Fix configure test for Android.
18190         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
18191         AC_CHECK_FUNC.
18193 2018-05-13  Bruno Haible  <bruno@clisp.org>
18195         random: Fix compilation error on Android.
18196         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
18197         AC_CHECK_FUNC.
18199 2018-05-13  Bruno Haible  <bruno@clisp.org>
18201         grantpt: Fix compilation error on Android.
18202         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
18203         AC_CHECK_FUNC.
18205 2018-05-13  Bruno Haible  <bruno@clisp.org>
18207         stdioext: Fix compilation errors with newer Android headers.
18208         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
18209         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
18210         fallbacks for Android.
18211         * lib/fpending.c: Update comments.
18212         * lib/fpurge.c: Likewise.
18213         * lib/freadable.h: Likewise.
18214         * lib/freadable.c: Likewise.
18215         * lib/freadahead.c: Likewise.
18216         * lib/freading.h: Likewise.
18217         * lib/freadptr.c: Likewise.
18218         * lib/fseterr.c: Likewise.
18219         * lib/fwritable.h: Likewise.
18220         * lib/fwritable.c: Likewise.
18221         * lib/fwriting.h: Likewise.
18222         * lib/fwriting.c: Likewise.
18224 2018-05-13  Bruno Haible  <bruno@clisp.org>
18226         doc: Add info about Android versions 2.0 to 8.1.
18227         * doc/**/*.texi: Add info about functions in all released versions of
18228         Bionic.
18230 2018-05-12  Bruno Haible  <bruno@clisp.org>
18232         fseeko: On mingw, don't use the hidden function _fseeki64.
18233         Reported by Eli Zaretskii <eliz@gnu.org>.
18234         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
18235         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
18237 2018-05-12  Bruno Haible  <bruno@clisp.org>
18239         glob: Choose 'dirent_type' in a way that works better on mingw.
18240         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
18241         * lib/glob.c (dirent_type): Define as uint_fast32_t.
18243 2018-05-12  Bruno Haible  <bruno@clisp.org>
18245         execute, spawn-pipe: Avoid warning about redefining 'close'.
18246         Reported by Eli Zaretskii <eliz@gnu.org>.
18247         * lib/execute.c: Undefine 'close' before redefining it.
18248         * lib/spawn-pipe.c: Likewise.
18250 2018-05-12  Bruno Haible  <bruno@clisp.org>
18252         nanosleep: Avoid test failure on mingw when it has nanosleep.
18253         Reported by Eli Zaretskii <eliz@gnu.org>.
18254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
18255         If it does not exist, use a simpler test program that does not call
18256         alarm().
18258 2018-05-10  Bruno Haible  <bruno@clisp.org>
18260         lock, cond, thread, tls: Use a different symbol as libpthread witness.
18261         Reported by Devin Hussey <husseydevin@gmail.com>.
18262         Based on a patch by Paul Eggert.
18263         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
18264         as witness of libpthread.
18265         * lib/glthread/cond.h (pthread_in_use): Likewise.
18266         * lib/glthread/thread.h (pthread_in_use): Likewise.
18267         * lib/glthread/tls.h (pthread_in_use): Likewise.
18269 2018-05-10  Bruno Haible  <bruno@clisp.org>
18271         cond tests: Fix compilation error on Solaris.
18272         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
18273         macro.
18275 2018-05-10  Bruno Haible  <bruno@clisp.org>
18277         doc: Add partial info about Android 4.3.
18278         * doc/*-functions/*.texi: Add info about functions that were added
18279         to Bionic between Android 4.3 and Android 9.0.
18281 2018-05-10  Bruno Haible  <bruno@clisp.org>
18283         doc: Add info about Android 9.0.
18284         * doc/**/*.texi: Add info about functions and headers in Bionic from
18285         Android 9.0.
18287 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18289         af_alg: fix my typo in afalg_buffer
18290         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
18291         (afalg_stream): Simplify and avoid the need for a runtime test
18292         at the end.
18294         af_alg: recover better from crypto failures
18295         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
18296         input stream is seekable, by repositioning the stream back to
18297         where it was, possibly by just calling sendfile with an offset
18298         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
18299         cases, which lets our callers try again with user-mode code.
18300         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
18301         instead of on fflush and lseek.
18303         af_alg: distiguish I/O errors better
18304         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
18305         not -EIO, if it’s OK for the caller to try again with user-mode code.
18306         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
18307         some other error number) if fflush fails, as the caller should not
18308         try again that case.
18310         af_alg: avoid gotos
18311         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
18312         gotos, as they were a source of unreliability and made the code a
18313         bit harder to follow.
18315         af_alg: don’t leak file descriptors into children
18316         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
18317         This code should be compiled only on recent GNU/Linux platforms
18318         so we shouldn’t have to also depend on the accept4 module.
18320         af_alg: coalesce socket creation
18321         * lib/af_alg.c (alg_socket): New function.
18322         (afalg_buffer, afalg_stream): Use it.  This avoids some
18323         code duplication and gotos.
18325         af_alg: fix file descriptor leak
18326         * lib/af_alg.c (afalg_stream): Close leak.
18328         af_alg: Pacify --enable-gcc-warnings on GCC 8
18329         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
18330         and checking to pacify gcc -Wjump-misses-init on GCC 8.
18332 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18334         af_alg: Pacify --enable-gcc-warnings
18335         Problem reported by Assaf Gordon in:
18336         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
18337         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
18338         gcc -Wjump-misses-init.
18339         * lib/sha512.c (shaxxx_stream): Now static.
18341 2018-05-06  Bruno Haible  <bruno@clisp.org>
18343         af_alg: Add ability to use Linux kernel crypto API on data in memory.
18344         * lib/af_alg.h (afalg_buffer): New declaration.
18345         * lib/af_alg.c (afalg_buffer): New function.
18347 2018-05-06  Bruno Haible  <bruno@clisp.org>
18349         af_alg: Avoid warnings.
18350         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
18351         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
18353 2018-05-06  Bruno Haible  <bruno@clisp.org>
18355         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
18356         * tests/bench-digest.h: New file.
18357         * tests/bench-md5.c: New file.
18358         * tests/bench-sha1.c: New file.
18359         * tests/bench-sha224.c: New file.
18360         * tests/bench-sha256.c: New file.
18361         * tests/bench-sha384.c: New file.
18362         * tests/bench-sha512.c: New file.
18363         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
18364         tests/bench-digest.h.
18365         (Depends-on): Add getrusage, gettimeofday.
18366         (Makefile.am): Add variables to build bench-md5.
18367         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
18368         tests/bench-digest.h.
18369         (Depends-on): Add getrusage, gettimeofday.
18370         (Makefile.am): Add variables to build bench-sha1.
18371         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
18372         tests/bench-sha256.c, tests/bench-digest.h.
18373         (Depends-on): Add getrusage, gettimeofday.
18374         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
18375         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
18376         tests/bench-sha512.c, tests/bench-digest.h.
18377         (Depends-on): Add getrusage, gettimeofday.
18378         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
18380 2018-05-06  Bruno Haible  <bruno@clisp.org>
18382         af_alg: Fix a resource leak.
18383         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
18384         New local variable 'result'.
18386 2018-05-06  Bruno Haible  <bruno@clisp.org>
18388         af_alg: Fix bug with streams that are not at position 0.
18389         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
18390         assume that the stream is positioned at position 0.
18391         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
18392         of the stream.
18393         * lib/md5.h (md5_stream): Likewise.
18394         * lib/sha1.h (sha1_stream): Likewise.
18395         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
18396         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
18397         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
18399         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
18400         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
18401         stream that is not positioned at the beginning.
18403 2018-05-06  Bruno Haible  <bruno@clisp.org>
18405         af_alg: Add configure option to enable/disable use of Linux crypto API.
18406         Suggested by Assaf Gordon <assafgordon@gmail.com>.
18407         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
18408         USE_LINUX_CRYPTO_API.
18409         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
18410         * lib/af_alg.c: Likewise.
18412 2018-05-06  Bruno Haible  <bruno@clisp.org>
18414         Followup to 'af_alg: New module.'.
18415         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
18416         * modules/crypto/sha1 (Depends-on): Likewise.
18417         * modules/crypto/sha256 (Depends-on): Likewise.
18418         * modules/crypto/sha512 (Depends-on): Likewise.
18420 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18422         crypto/{md5,sha1,sha256,sha512}: simplify
18423         * lib/md5.c (md5_stream):
18424         * lib/sha1.c (sha1_stream):
18425         * lib/sha256.c (shaxxx_stream):
18426         Simplify, partly by assuming C99.
18427         * lib/sha256.c (shaxxx_stream):
18428         New function, which implements both sha256 and sha224.
18429         Simplify, partly by assuming C99.
18430         (sha256_stream, sha224_stream):
18431         Use it to avoid code duplication, removing a FIXME.
18432         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18433         Likewise.
18435         af_alg: Improve comments.
18436         * lib/af_alg.h: Use imperatives and tighten up wording.
18438 2018-05-05  Bruno Haible  <bruno@clisp.org>
18440         af_alg: Improve comments.
18441         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
18443 2018-05-05  Bruno Haible  <bruno@clisp.org>
18445         af_alg: New module.
18446         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
18447         * lib/af_alg.c: Include "af_alg.h" before the other header files.
18448         * lib/md5.c: Include "af_alg.h" unconditionally.
18449         (md5_stream): Invoke afalg_stream unconditionally.
18450         * lib/sha1.c: Include "af_alg.h" unconditionally.
18451         (sha1_stream): Invoke afalg_stream unconditionally.
18452         * lib/sha256.c: Include "af_alg.h" unconditionally.
18453         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
18454         * lib/sha512.c: Include "af_alg.h" unconditionally.
18455         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
18456         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
18457         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
18458         * modules/crypto/af_alg: New file.
18459         * modules/crypto/md5 (Files): Remove files that are now in the
18460         'crypto/af_alg' module.
18461         (Depends-on): Add crypto/af_alg.
18462         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18463         (Makefile.am): Don't mention af_alg.c here.
18464         * modules/crypto/sha1 (Files): Remove files that are now in the
18465         'crypto/af_alg' module.
18466         (Depends-on): Add crypto/af_alg.
18467         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18468         (Makefile.am): Don't mention af_alg.c here.
18469         * modules/crypto/sha256 (Files): Remove files that are now in the
18470         'crypto/af_alg' module.
18471         (Depends-on): Add crypto/af_alg.
18472         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18473         (Makefile.am): Don't mention af_alg.c here.
18474         * modules/crypto/sha512 (Files): Remove files that are now in the
18475         'crypto/af_alg' module.
18476         (Depends-on): Add crypto/af_alg.
18477         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18478         (Makefile.am): Don't mention af_alg.c here.
18480 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18482         crypto tests: pacify GCC
18483         * tests/test-digest.h (test_digest_on_files):
18484         Don’t assume digest size fits in int (!).
18486         af_alg: minor style improvements
18487         * lib/af_alg.c (afalg_stream): Prefer C99 style
18488         decl-after-statement, since we’re already assuming C99.  Clarify
18489         by strengthening the bind test and omit unnecessary assignment.
18491 2018-05-05  Bruno Haible  <bruno@clisp.org>
18493         af_alg: Fix bug on empty files.
18494         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
18495         stream is empty.
18497 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18499         sys-limits.h: new file for crypto and safe I/O
18500         * lib/af_alg.c: Include sys-limits.h.
18501         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
18502         (afalg_stream): Also reject negative sizes for sendfile; they
18503         should not happen and the code is a bit cleaner and faster this way.
18504         * lib/safe-read.c: Include sys-limits.h.
18505         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
18506         * lib/sys-limits.h: New file, with values and commentary derived
18507         from the old safe-read.c and from GNU Emacs sysdep.c.
18508         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18509         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
18510         Add lib/sys-limits.h to Files section.
18512 2018-05-05  Bruno Haible  <bruno@clisp.org>
18514         af_alg: Improve function signature.
18515         * lib/af_alg.h (afalg_stream): Swap second and third argument.
18516         * lib/af_alg.c (afalg_stream): Likewise.
18517         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
18519 2018-05-05  Bruno Haible  <bruno@clisp.org>
18521         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
18522         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
18523         * modules/crypto/sha1 (Depends-on): Likewise.
18524         * modules/crypto/sha256 (Depends-on): Likewise.
18525         * modules/crypto/sha512 (Depends-on): Likewise.
18527 2018-05-05  Bruno Haible  <bruno@clisp.org>
18529         crypto/{md5,sha1,sha256,sha512}: Fix module description.
18530         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
18531         * modules/crypto/sha1 (Depends-on): Likewise.
18532         * modules/crypto/sha256 (Depends-on): Likewise.
18533         * modules/crypto/sha512 (Depends-on): Likewise.
18535 2018-05-05  Bruno Haible  <bruno@clisp.org>
18537         af_alg: Add documentation.
18538         * lib/af_alg.h: Add comments.
18540 2018-05-05  Bruno Haible  <bruno@clisp.org>
18542         sha512: Add tests.
18543         * tests/test-sha512.c: New file.
18544         * modules/crypto/sha512-tests: New file.
18546 2018-05-05  Bruno Haible  <bruno@clisp.org>
18548         sha256: Add tests.
18549         * tests/test-sha256.c: New file.
18550         * modules/crypto/sha256-tests: New file.
18552 2018-05-05  Bruno Haible  <bruno@clisp.org>
18554         sha1 tests: Add test for sha1_stream.
18555         * tests/test-sha1.c: Include test-digest.h.
18556         (main): Invoke test_digest_on_files on 'sha1_stream'.
18557         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
18559 2018-05-05  Bruno Haible  <bruno@clisp.org>
18561         md5 tests: Add test for md5_stream.
18562         * tests/test-digest.h: New file.
18563         * tests/test-md5.c: Include test-digest.h.
18564         (main): Invoke test_digest_on_files on 'md5_stream'.
18565         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
18567 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18569         md5sum: Use AF_ALG when available.
18570         * lib/md5.c: Include af_alg.h.
18571         (md5_stream): Use afalg_stream when available.
18572         * modules/crypto/md5 (Files): Add the af_alg files.
18573         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18574         (Makefile.am): Add af_alg.c.
18576 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18578         sha512sum: Use AF_ALG when available.
18579         * lib/sha512.c: Include af_alg.h.
18580         (sha512_stream, sha384_stream): Use afalg_stream when available.
18581         * modules/crypto/sha512 (Files): Add the af_alg files.
18582         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18583         (Makefile.am): Add af_alg.c.
18585 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18587         sha256sum: Use AF_ALG when available.
18588         * lib/sha256.c: Include af_alg.h.
18589         (sha256_stream, sha224_stream): Use afalg_stream when available.
18590         * modules/crypto/sha256 (Files): Add the af_alg files.
18591         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18592         (Makefile.am): Add af_alg.c.
18594 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18596         sha1sum: Use AF_ALG when available.
18597         * lib/af_alg.h: New file.
18598         * lib/af_alg.c: New file.
18599         * lib/sha1.c: Include af_alg.h.
18600         (sha1_stream): Use afalg_stream when available.
18601         * m4/linux-if-alg.m4: New file.
18602         * modules/crypto/sha1 (Files): Add the new files.
18603         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18604         (Makefile.am): Add af_alg.c.
18606 2018-05-05  Bruno Haible  <bruno@clisp.org>
18608         all: Replace more http URLs by https URLs.
18609         * lib/localename.c: Use https: URL.
18610         * lib/timespec.h: Likewise.
18612 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
18614         maint: port more modules to GCC 8
18615         * lib/dirname.h (base_name):
18616         * lib/exclude.h (new_exclude):
18617         * lib/xstrndup.h (xstrndup):
18618         Add malloc attribute.
18619         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
18620         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
18621         This pacifies GCC 8.
18622         * m4/gnulib-common.m4 (gl_COMMON_BODY):
18623         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
18625 2018-05-03  Bruno Haible  <bruno@clisp.org>
18627         Simplify code. Drop support for Borland C++ on Windows.
18628         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
18629         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
18630         'defined _WIN32'.
18631         * lib/canonicalize-lgpl.c: Likewise.
18632         * lib/classpath.c: Likewise.
18633         * lib/clean-temp.c: Likewise.
18634         * lib/csharpexec.c: Likewise.
18635         * lib/ctime.c: Likewise.
18636         * lib/dosname.h: Likewise.
18637         * lib/dup2.c: Likewise.
18638         * lib/errno.in.h: Likewise.
18639         * lib/error.c: Likewise.
18640         * lib/euidaccess.c: Likewise.
18641         * lib/execute.c: Likewise.
18642         * lib/fcntl.in.h: Likewise.
18643         * lib/fcntl.c: Likewise.
18644         * lib/filename.h: Likewise.
18645         * lib/findprog.c: Likewise.
18646         * lib/flock.c: Likewise.
18647         * lib/fopen.c: Likewise.
18648         * lib/freopen.c: Likewise.
18649         * lib/fstat.c: Likewise.
18650         * lib/fsync.c: Likewise.
18651         * lib/gc-gnulib.c: Likewise.
18652         * lib/get-rusage-data.c: Likewise.
18653         * lib/getaddrinfo.c: Likewise.
18654         * lib/getdelim.c: Likewise.
18655         * lib/getdtablesize.c: Likewise.
18656         * lib/gethostname.c: Likewise.
18657         * lib/getlogin.c: Likewise.
18658         * lib/getlogin_r.c: Likewise.
18659         * lib/getopt.c: Likewise.
18660         * lib/getpagesize.c: Likewise.
18661         * lib/getpass.c: Likewise.
18662         * lib/getrusage.c: Likewise.
18663         * lib/gettimeofday.c: Likewise.
18664         * lib/glob.c: Likewise.
18665         * lib/inttypes.in.h: Likewise.
18666         * lib/isapipe.c: Likewise.
18667         * lib/javaexec.c: Likewise.
18668         * lib/link.c: Likewise.
18669         * lib/localcharset.c: Likewise.
18670         * lib/localename.h: Likewise.
18671         * lib/localename.c: Likewise.
18672         * lib/localtime.c: Likewise.
18673         * lib/lseek.c: Likewise.
18674         * lib/mbsinit.c: Likewise.
18675         * lib/mkdir.c: Likewise.
18676         * lib/msvc-nothrow.h: Likewise.
18677         * lib/nanosleep.c: Likewise.
18678         * lib/nl_langinfo.c: Likewise.
18679         * lib/nonblocking.c: Likewise.
18680         * lib/nproc.c: Likewise.
18681         * lib/open.c: Likewise.
18682         * lib/openpty.c: Likewise.
18683         * lib/pathmax.h: Likewise.
18684         * lib/pipe-filter-aux.c: Likewise.
18685         * lib/pipe-filter-gi.c: Likewise.
18686         * lib/pipe-filter-ii.c: Likewise.
18687         * lib/pipe.c: Likewise.
18688         * lib/pipe2.c: Likewise.
18689         * lib/poll.c: Likewise.
18690         * lib/popen.c: Likewise.
18691         * lib/posix_openpt.c: Likewise.
18692         * lib/printf-parse.c: Likewise.
18693         * lib/progreloc.c: Likewise.
18694         * lib/putenv.c: Likewise.
18695         * lib/read.c: Likewise.
18696         * lib/relocatable.c: Likewise.
18697         * lib/rename.c: Likewise.
18698         * lib/same-inode.h: Likewise.
18699         * lib/secure_getenv.c: Likewise.
18700         * lib/select.c: Likewise.
18701         * lib/sethostname.c: Likewise.
18702         * lib/setlocale.c: Likewise.
18703         * lib/sigaction.c: Likewise.
18704         * lib/sigprocmask.c: Likewise.
18705         * lib/sleep.c: Likewise.
18706         * lib/spawn-pipe.h: Likewise.
18707         * lib/spawn-pipe.c: Likewise.
18708         * lib/spawni.c: Likewise.
18709         * lib/stat-time.h: Likewise.
18710         * lib/stat-w32.c: Likewise.
18711         * lib/stat.c: Likewise.
18712         * lib/stdio.in.h: Likewise.
18713         * lib/stdio-impl.h: Likewise.
18714         * lib/stdio-read.c: Likewise.
18715         * lib/stdio-write.c: Likewise.
18716         * lib/stdlib.in.h: Likewise.
18717         * lib/strerror_r.c: Likewise.
18718         * lib/strftime-fixes.c: Likewise.
18719         * lib/sys_stat.in.h: Likewise.
18720         * lib/sys_types.in.h: Likewise.
18721         * lib/sys_wait.in.h : Likewise.
18722         * lib/system-quote.h: Likewise.
18723         * lib/system-quote.c: Likewise.
18724         * lib/tmpdir.c: Likewise.
18725         * lib/tzset.c: Likewise.
18726         * lib/uname.c: Likewise.
18727         * lib/unistd.in.h: Likewise.
18728         * lib/utime.in.h: Likewise.
18729         * lib/utime.c: Likewise.
18730         * lib/utimecmp.c: Likewise.
18731         * lib/utimens.c: Likewise.
18732         * lib/vasnprintf.c: Likewise.
18733         * lib/vma-iter.h: Likewise.
18734         * lib/vma-iter.c: Likewise.
18735         * lib/wait-process.c: Likewise.
18736         * lib/wcsftime.c: Likewise.
18737         * lib/wctype.in.h: Likewise.
18738         * lib/write.c: Likewise.
18739         * tests/nap.h: Likewise.
18740         * tests/test-cloexec.c: Likewise.
18741         * tests/test-dup-safer.c: Likewise.
18742         * tests/test-dup2.c: Likewise.
18743         * tests/test-dup3.c: Likewise.
18744         * tests/test-fcntl.c: Likewise.
18745         * tests/test-get-rusage-data.c: Likewise.
18746         * tests/test-getaddrinfo.c: Likewise.
18747         * tests/test-getlogin.h: Likewise.
18748         * tests/test-isatty.c: Likewise.
18749         * tests/test-localename.c: Likewise.
18750         * tests/test-mbrtowc-w32.c: Likewise.
18751         * tests/test-nonblocking.c: Likewise.
18752         * tests/test-nonblocking-pipe-main.c: Likewise.
18753         * tests/test-nonblocking-socket-main.c: Likewise.
18754         * tests/test-nonblocking-socket.h: Likewise.
18755         * tests/test-pipe.c: Likewise.
18756         * tests/test-pipe2.c: Likewise.
18757         * tests/test-poll.c: Likewise.
18758         * tests/test-pthread_sigmask1.c: Likewise.
18759         * tests/test-select.h: Likewise.
18760         * tests/test-sethostname2.c: Likewise.
18761         * tests/test-sigprocmask.c: Likewise.
18762         * tests/test-spawn-pipe-child.c: Likewise.
18763         * tests/test-stat-time.c: Likewise.
18764         * tests/test-system-quote-main.c: Likewise.
18765         * tests/test-utimens-common.h: Likewise.
18766         * tests/test-wcrtomb-w32.c: Likewise.
18767         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18768         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18769         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
18770         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
18771         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
18772         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18773         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18774         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18775         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18776         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18777         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
18778         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
18779         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18780         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18781         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
18782         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18784 2018-05-02  Bruno Haible  <bruno@clisp.org>
18786         localename: Fix test failures on mingw.
18787         * lib/localename.c (gl_locale_name_thread): Remove code specific to
18788         native Windows.
18789         (gl_locale_name_posix): Move code specific to native Windows here.
18790         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
18791         Accept result without charset suffix, as it appears on mingw.
18793 2018-04-28  Paul Smith  <psmith@gnu.org>
18795         bootstrap: Avoid gnulib operations if not needed
18796         * build-aux/bootstrap: Remove unused variable gnulib_mk.
18797         Set $gnulib_extra_files early so it can be overridden in .conf.
18798         Remove redundant --import flag from $gnulib_tool_options.
18799         Set $use_gnulib to false if no gnulib modules or files are needed.
18800         If $use_gnulib is false, don't do anything related to gnulib.
18801         A lot of this is just whitespace (indentation) changes.
18803 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
18805         manywarnings: port to GCC 8.0
18806         * build-aux/gcc-warning.spec: Add -Wcatch-value,
18807         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
18808         fact that the GCC help message now mentions operands for
18809         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
18810         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
18811         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
18812         and -Wunused-const-variable.
18813         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
18814         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
18815         -Wmissing-attributes, -Wmultistatement-macros,
18816         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
18817         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
18819 2018-04-24  Bruno Haible  <bruno@clisp.org>
18821         sys_socket: Make SO_REUSEPORT available across platforms.
18822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18823         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
18824         * doc/posix-headers/sys_socket.texi: Mention the issue.
18825         * tests/test-poll.c (SO_REUSEPORT): Remove.
18826         * tests/test-select.h: Include <sys/socket.h>.
18827         (SO_REUSEPORT): Remove.
18828         * modules/select-tests (Depends-on): Add 'sys_socket'.
18830 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
18832         localcharset: short-circuit the search for an alias on a Mac
18833         * lib/localcharset.c (get_charset_aliases): Add a tautological
18834         UTF-8 entry to speed up the search for this case.
18835         Most machines default to a UTF-8 locale nowadays, so begin the
18836         list of aliases with a dummy UTF-8 entry so it will be found
18837         immediately and a time-consuming search through the rest of
18838         the list is avoided.
18840 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
18842         fts: add comment
18843         * lib/fts.c (fts_build): Explain why ==, not >.
18844         See remark by Bernhard Voelker in:
18845         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
18847         fts: fix bug in find across filesystems
18848         This fixes a bug I introduced last summer.
18849         Problem reported by Kamil Dudka in:
18850         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
18851         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
18852         (leaf_optimization):
18853         New arg for file descriptor.  All callers changed.
18854         (fts_build): Check for whether inodes should be sorted
18855         before closing the directory.
18857 2018-04-07  Bruno Haible  <bruno@clisp.org>
18859         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
18860         Reported by Genki Sky <sky@genki.is>.
18861         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
18862         version 0.9.10 or newer.
18863         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
18864         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
18865         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
18866         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
18867         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
18869 2018-04-07  Bruno Haible  <bruno@clisp.org>
18871         execute: Update comment.
18872         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
18874 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18876         fts: treat CIFS like NFS
18877         Problem reported by Kamil Dudka in:
18878         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
18879         * lib/fts.c (S_MAGIC_CIFS): New macro.
18880         (dirent_inode_sort_may_be_useful, leaf_optimization):
18881         Treat CIFS like NFS.
18883 2018-03-28  Bruno Haible  <bruno@clisp.org>
18885         c-stack: Fix possible build failure on some platforms.
18886         * lib/c-stack.c (die): Define whenever this function is referenced.
18888 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
18890         time_rz: fix workaround for Mac OS X 10.6 infloop
18891         Problems reported by Charles A. Roelli (Bug#27736#117).
18892         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
18893         Also, discard output, which clutters the 'configure' log.
18895 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
18897         havelib: port to Solaris 10 /bin/sh
18898         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
18899         instead of '! test EXPR'.
18901 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
18903         time_rz: work around Mac OS X 10.6 infloop
18904         * doc/posix-functions/localtime.texi:
18905         * doc/posix-functions/localtime_r.texi: Mention the bug.
18906         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
18907         better to fix localtime and localtime_r instead, but that would be
18908         more work and is not needed to fix the Emacs problem.
18909         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
18911 2018-03-24  Jim Meyering  <meyering@fb.com>
18913         test-version-etc.sh: don't use diff directly: use init.sh's compare
18914         We'd rather not sacrifice readable "diff -u" output even for
18915         "diff -c" output (not supported by busybox) or for even less
18916         readable ed-style "diff" output.  So use init.sh's compare function
18917         * tests/test-version-etc.sh: Source init.sh and add "." to path.
18918         Remove "./" from invocation of test-version-etc, so we use path.
18919         And s/diff/compare/.
18920         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
18921         to get init.sh.
18922         Prompted by Eric Blake's comments in
18923         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
18925 2018-03-24  Bruno Haible  <bruno@clisp.org>
18927         javacomp-script, javacomp: Add support for Java 10.
18928         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
18929         target-version 10.
18930         * lib/javaversion.h: Update comments.
18931         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18932         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18933         TARGET_VERSION_BOUND, target_version_index,
18934         corresponding_classfile_version): Accept source_version 10 and
18935         target_version 10.
18936         * lib/javacomp.h: Update comments accordingly.
18938 2018-03-24  Bruno Haible  <bruno@clisp.org>
18940         javacomp-script, javacomp: Update comments.
18941         * m4/javacomp.m4: Update comments regarding gcj.
18942         * lib/javacomp.h: Likewise.
18944 2018-03-24  Bruno Haible  <bruno@clisp.org>
18946         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
18947         * lib/javaversion.h: Update comments.
18948         * lib/javacomp.h: Likewise.
18949         * lib/javacomp.c (default_target_version, source_version_index,
18950         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
18951         "1.9".
18952         (TARGET_VERSION_BOUND): Bump to 9.
18953         (target_version_index, corresponding_classfile_version): Recognize "9"
18954         instead of "1.9".
18955         (get_source_version_for_javac): New function.
18956         (is_envjavac_nongcj_usable, is_javac_usable): Add
18957         source_version_for_javac argument.
18958         (compile_java_class): Determine and pass source_version_for_javac.
18959         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
18960         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
18961         appropriate.
18963 2018-03-23  Jim Meyering  <meyering@fb.com>
18965         test-version-etc.sh: port to diff without -c
18966         * tests/test-version-etc.sh: Don't use diff's -c option.
18967         This caused spurious test failure on Alpine Linux, which
18968         uses busybox's diff. Reported by Assaf Gordon in
18969         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
18971 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
18973         c-stack: port to recent GCC build
18974         Problem reported by The Fireplace (Bug#30913).
18975         * lib/c-stack.c (die): Define only if used.
18977 2018-03-20  Bruno Haible  <bruno@clisp.org>
18979         euidaccess: Port to native Windows.
18980         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
18981         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
18983 2018-03-19  Bruno Haible  <bruno@clisp.org>
18985         javacomp: Add support for Java 7, 8, 9.
18986         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18987         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18988         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
18989         and target_version 1,7, 1.8, 1.9.
18990         * lib/javacomp.h: Update comments accordingly.
18992 2018-03-19  Bruno Haible  <bruno@clisp.org>
18994         javacomp-script: Add support for Java 9.
18995         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
18996         target-version 1.9.
18998 2018-03-16  Bruno Haible  <bruno@clisp.org>
19000         glob: Don't compile replacements on recent glibc systems.
19001         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
19002         REPLACE_GLOB is 0, include the system's <glob.h> and use
19003         _GL_CXXALIAS_SYS.
19004         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
19005         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
19006         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
19007         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
19008         Remove snippet/warn-on-use.
19009         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
19010         (Makefile.am): Create glob.h always. Update list of substitutions in
19011         glob.h. Don't depend on $(WARN_ON_USE_H).
19013 2018-03-16  Bruno Haible  <bruno@clisp.org>
19015         glob: Fix link error on native Windows.
19016         * modules/glob (Depends-on): Add 'lstat'.
19018 2018-03-15  Bruno Haible  <bruno@clisp.org>
19020         glob: Fix compilation error in C++ mode.
19021         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
19023 2018-03-15  Bruno Haible  <bruno@clisp.org>
19025         host-cpu-c-abi: Support for RISC-V CPU.
19026         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
19027         riscv32 and riscv64 ABIs.
19028         References:
19029         https://github.com/riscv/riscv-toolchain-conventions
19030         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
19031         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
19033 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19035         fflush: be more paranoid about libio.h change
19036         Suggested by Eli Zaretskii in:
19037         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
19038         * lib/fbufmode.c (fbufmode):
19039         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19040         (disable_seek_optimization, rpl_fflush):
19041         * lib/fpending.c (__fpending):
19042         * lib/fpurge.c (fpurge):
19043         * lib/freadable.c (freadable):
19044         * lib/freadahead.c (freadahead):
19045         * lib/freading.c (freading):
19046         * lib/freadptr.c (freadptr):
19047         * lib/freadseek.c (freadptrinc):
19048         * lib/fseeko.c (fseeko):
19049         * lib/fseterr.c (fseterr):
19050         * lib/fwritable.c (fwritable):
19051         * lib/fwriting.c (fwriting):
19052         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
19054 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19056         maint: write-file-hooks -> before-save-hook
19057         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
19058         it's time to use the recommended replacement.
19059         Problem reported by Glenn Morris in:
19060         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
19061         * build-aux/announce-gen, build-aux/bootstrap:
19062         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
19063         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
19064         * build-aux/gnu-web-doc-update, build-aux/gnupload:
19065         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
19066         * build-aux/update-copyright, build-aux/useless-if-before-free:
19067         * build-aux/vc-list-files:
19068         Update hook usage for files where Gnulib is the canonical source.
19070 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
19072         binary-io: pacify gcc -Wunused-parameter
19073         Problem reported by Reuben Thomas in:
19074         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
19075         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
19076         Use _GL_UNUSED where appropriate.
19078         fflush: adjust to glibc 2.28 libio.h removal
19079         Problem reported by Daniel P. Berrangé in:
19080         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
19081         * lib/fbufmode.c (fbufmode):
19082         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19083         (disable_seek_optimization, rpl_fflush):
19084         * lib/fpending.c (__fpending):
19085         * lib/fpurge.c (fpurge):
19086         * lib/freadable.c (freadable):
19087         * lib/freadahead.c (freadahead):
19088         * lib/freading.c (freading):
19089         * lib/freadptr.c (freadptr):
19090         * lib/freadseek.c (freadptrinc):
19091         * lib/fseeko.c (fseeko):
19092         * lib/fseterr.c (fseterr):
19093         * lib/fwritable.c (fwritable):
19094         * lib/fwriting.c (fwriting):
19095         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
19096         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
19097         Define if not already defined.
19099 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
19101         environ: fix link error on 32-bit Cygwin
19102         Problem reported for GNU Emacs by Ken Brown in:
19103         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
19104         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
19106 2018-02-24  Bruno Haible  <bruno@clisp.org>
19108         mbrtowc tests: Fix regression on glibc.
19109         Reported by Bernhard Voelker.
19110         * tests/test-mbrtowc.c (main): Fix expected value of wc.
19112 2018-02-24  Bruno Haible  <bruno@clisp.org>
19114         striconveha, uniconv/*: Avoid test failures on musl libc.
19115         * tests/iconvsupport.c: New file.
19116         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
19117         does not support the ISO-2022-JP-2 encoding.
19118         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
19119         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19120         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19121         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19122         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19123         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19124         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
19125         (Makefile.am): Link test-striconveha with iconvsupport.o.
19126         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
19127         tests/iconvsupport.c.
19128         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
19129         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
19130         tests/iconvsupport.c.
19131         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
19132         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
19133         tests/iconvsupport.c.
19134         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
19135         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
19136         tests/iconvsupport.c.
19137         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
19138         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
19139         tests/iconvsupport.c.
19140         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
19141         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
19142         tests/iconvsupport.c.
19143         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
19145 2018-02-24  Bruno Haible  <bruno@clisp.org>
19147         localename: Add support for musl libc.
19148         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
19149         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
19150         on Linux platforms which define NL_LOCALE_NAME.
19152 2018-02-24  Bruno Haible  <bruno@clisp.org>
19154         mbrtowc tests: Don't make assumptions about the charset the C locale.
19155         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
19156         particular mapping in the C locale.
19158 2018-02-24  Bruno Haible  <bruno@clisp.org>
19160         ptsname_r: Don't expect that this function sets errno.
19161         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
19162         from ptsname_r().
19163         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
19165 2018-02-23  Bruno Haible  <bruno@clisp.org>
19167         xmalloca: pacify gcc -Wbad-function-cast
19168         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
19170 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19172         nl_langinfo: pacify gcc -Wunused-function
19173         * lib/nl_langinfo.c (ctype_codeset): Do not define if
19174         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
19175         this case.  Without this change, I got a diagnostic when building
19176         coreutils on Fedora 27 with gcc 7.3.1 20180130.
19178         same: pacify gcc -Wunused-variable
19179         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
19180         Omit unused variable.
19182         malloca: pacify gcc -Wbad-function-cast
19183         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
19184         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
19185         To pacify GCC, I had to cast alloca’s result to some type other
19186         than void * before casting that to uintptr_t.
19188 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19190         utimecmp: new function utimecmpat
19191         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
19192         Do not include utimens.h.
19193         (utimecmpat): New function, generalizing utimecmp.
19194         (utimecmp): Now a thin layer around utimecmpat.
19195         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
19196         utimensat instead of on lstat and utimens.
19198         same: new function same_nameat
19199         * lib/same.c: Include fcntl.h.
19200         * lib/same.c (same_nameat): New function, generalizing same_name.
19201         (same_name): Now a thin layer around same_nameat.
19202         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
19203         * modules/same (Depends-on): Depend on fstatat, openat.
19205 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
19207         warnings: Add support for Objective C.
19208         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
19209         macro.
19211 2018-02-17  Bruno Haible  <bruno@clisp.org>
19213         lock: Fix test-once1 crash on FreeBSD11.
19214         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
19215         'pthread_create', not 'pthread_cancel'.
19217 2018-02-17  Bruno Haible  <bruno@clisp.org>
19219         lock: Add test of gl_once.
19220         * tests/test-once.c: New file.
19221         * modules/lock-tests (Files): Add it.
19222         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
19224 2018-02-17  Bruno Haible  <bruno@clisp.org>
19226         thread: Fix compilation error on IRIX.
19227         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
19228         needed; include it outside the C++ extern "C" {} block.
19229         * doc/posix-headers/pthread.texi: Mention the problem with
19230         pthread_atfork on IRIX.
19232 2018-02-04  Bruno Haible  <bruno@clisp.org>
19234         nl_langinfo: Override the system's nl_langinfo() when needed.
19235         Reported by Jim Meyering.
19236         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
19237         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
19239 2018-02-04  Bruno Haible  <bruno@clisp.org>
19241         signal-h, monetary, strings: Fix build failure in some cases.
19242         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19243         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
19244         as delimiter in sed command, not '|'.
19245         * modules/monetary (Makefile.am): Likewise.
19246         * modules/strings (Makefile.am): Likewise.
19248 2018-02-03  Jim Meyering  <meyering@fb.com>
19250         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
19251         * top/maint.mk (sc_file_system): Don't complain about
19252         "/proc/filesystems".
19254 2018-02-03  Bruno Haible  <bruno@clisp.org>
19256         stdlib: Fix compilation error on OpenIndiana.
19257         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
19258         <sys/time.h>.
19259         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19260         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
19262 2018-02-03  Bruno Haible  <bruno@clisp.org>
19264         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
19265         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
19266         and use $EGREP instead of 'grep -E'.
19267         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
19268         'grep -E'.
19270 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19272         malloca: Add a compile-time verification.
19273         * lib/malloca.c (small_t): Verify that it is wide enough.
19274         * modules/malloca (Depends-on): Add verify.
19276 2018-02-02  Bruno Haible  <bruno@clisp.org>
19278         malloca: Add an argument check.
19279         Suggested by Paul Eggert.
19280         * lib/malloca.c (freea): Check against an invalid argument.
19282 2018-02-02  Bruno Haible  <bruno@clisp.org>
19284         localename: Add support for OpenIndiana.
19285         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
19286         Solaris 11 variants with uselocale() but without getlocalename_l().
19288 2018-02-02  Bruno Haible  <bruno@clisp.org>
19290         malloca, xmalloca: Make multithread-safe.
19291         Reported by Florian Weimer <fweimer@redhat.com>.
19292         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
19293         * lib/malloca.h (malloca): In the stack allocation case, return a
19294         pointer that is a multiple of 2 * sa_alignment_max.
19295         (sa_increment): Remove enum item.
19296         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
19297         a pointer that is a multiple of 2 * sa_alignment_max.
19298         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
19299         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
19300         HASH_TABLE_SIZE, mmalloca_results): Remove.
19301         (small_t): New type.
19302         (mmalloca, free): Rewritten.
19303         * lib/malloca.valgrind: Remove file.
19304         * modules/malloca (Files): Remove it.
19305         (Depends-on): Remove verify.
19307 2018-01-31  Bruno Haible  <bruno@clisp.org>
19309         environ: Fix link error on 64-bit Cygwin.
19310         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
19311         __declspec(dllimport) attribute.
19312         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
19314 2018-01-30  Bruno Haible  <bruno@clisp.org>
19316         get-rusage-data: Add support for Minix 3.
19317         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
19319 2018-01-30  Bruno Haible  <bruno@clisp.org>
19321         vma-iter: Add support for Minix 3.
19322         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
19323         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
19325 2018-01-27  Bruno Haible  <bruno@clisp.org>
19327         Fix malfunction of socket functions on HP-UX in 64-bit mode.
19328         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
19329         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
19330         _HPUX_ALT_XOPEN_SOCKET_API.
19331         * modules/accept (Depends-on): Add 'extensions'.
19332         * modules/getpeername (Depends-on): Likewise.
19333         * modules/getsockname (Depends-on): Likewise.
19334         * modules/getsockopt (Depends-on): Likewise.
19335         * modules/recvfrom (Depends-on): Likewise.
19336         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
19337         * doc/posix-functions/getpeername.texi: Likewise.
19338         * doc/posix-functions/getsockname.texi: Likewise.
19339         * doc/posix-functions/getsockopt.texi: Likewise.
19340         * doc/posix-functions/recvfrom.texi: Likewise.
19342 2018-01-27  Bruno Haible  <bruno@clisp.org>
19344         getsockname tests: More tests.
19345         * tests/test-getsockname.c (open_server_socket): New function, mostly
19346         copied from test-poll.c.
19347         (main): Check that getsockname fills in addr.
19348         * modules/getsockname-tests (Depends-on): Add the necessary
19349         dependencies.
19350         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
19352 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19354         manywarnings: fix maintainer comment
19355         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
19356         it does not mistakenly think that ‘-1)’ is an option.
19358 2018-01-26  Bruno Haible  <bruno@clisp.org>
19360         langinfo: Fix last commit.
19361         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19362         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
19364 2018-01-24  Bruno Haible  <bruno@clisp.org>
19366         langinfo, nl_langinfo: Add support for alternative month names.
19367         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
19368         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
19369         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
19370         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
19371         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
19372         * doc/posix-functions/nl_langinfo.texi: Likewise.
19374 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19376         Merge strftime.c changes from glibc
19377         This incorporates:
19378         2017-11-14 [BZ #10871] Implement alternative month names
19379         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
19380         2017-06-20 Use locale_t, not __locale_t, throughout glibc
19381         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
19382         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
19383         Use locale_t, not __locale_t.
19384         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
19385         (__strftime_internal): Add support for alternate months.
19387 2018-01-23  Bruno Haible  <bruno@clisp.org>
19389         doc: Mention another prerequisite for using Gnulib.
19390         Reported at <https://stackoverflow.com/questions/48378214/>.
19391         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
19392         AC_CONFIG_HEADERS.
19394 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
19396         build: GuixSD doesn't have /bin/bash
19397         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
19399 2018-01-21  Bruno Haible  <bruno@clisp.org>
19401         Avoid test failures on Microsoft Windows Subsystem for Linux.
19402         * tests/test-fcntl.c (main): Allow a different errno.
19403         * tests/test-rename.h (test_rename): Likewise.
19404         * tests/test-renameat.c (main): Likewise.
19405         * tests/test-renameat2.c (main): Likewise.
19407 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19409         filenamecat: make base a suffix of result
19410         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
19411         (mfile_name_concat): Always make BASE a suffix of the result, as
19412         cp expects this.  To implement this, separate with '.' instead of
19413         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
19414         * tests/test-filenamecat.c (main): Adjust tests to match
19415         current behavior.  Check that BASE_IN_RESULT points to
19416         a copy of BASE and is a suffix of the resultk, and that DIR
19417         is a prefix of the result that is no longer than the prefix
19418         indicated by BASE_IN_RESULT.
19420 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
19422         update-copyright: Handle use of ©
19423         * build-aux/update-copyright ($circle_c_re): Update regex to
19424         handle use of © in headers.
19426 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
19428         Fix -Wundef warning in user-included header lib/cdefs.h.
19429         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
19431 2018-01-04  Bruno Haible  <bruno@clisp.org>
19433         pthread_sigmask: Avoid compilation error on mingw.
19434         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19435         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
19436         macro.
19438 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19440         test-framework-sh: ‘ps -ef’, not ‘ps ef’
19441         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
19442         Suggested by Bob Proulx (Bug#29968).
19443         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
19445 2018-01-02  Eric Blake  <eblake@redhat.com>
19447         stat-time: silence -Wunused-parameter regression
19448         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
19449         Prefer attribute over cast-to-void.
19450         (stat_time_normalize): Mark st as potentially unused.
19452 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19454         test-framework-sh: avoid netstat
19455         Problem reported by Kristýna Streitová (Bug#29947).
19456         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
19457         deprecated on SuSE and it's not that important anyway.
19459 2018-01-01  Jim Meyering  <meyering@fb.com>
19461         update-copyright: add code to handle more special cases
19462         After running "make update-copyright" this year, five files
19463         required additional manual changes.  Automate those adjustments
19464         for next year.
19465         * Makefile (_year_and_prev): Define.
19466         (update-copyright): Add perl commands to induce this year's post-
19467         update-copyright adjustments.
19469 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19471         version-etc: new year
19472         * build-aux/gendocs.sh (version):
19473         * doc/gendocs_template:
19474         * doc/gendocs_template_min:
19475         * doc/gnulib.texi:
19476         * lib/version-etc.c (COPYRIGHT_YEAR):
19477         Update copyright dates by hand in templates and the like.
19479         maint: fix 'make update-copyright'
19480         * Makefile (update-copyright): Adjust to 2016-11-23 change
19481         to config/srclist-update, which changed the format of srclist.txt.
19483 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19485         chdir-safer: remove this module
19486         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
19487         * NEWS: Document removal.
19488         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
19489         * modules/chdir-safer: Remove these files.
19491 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
19493         Add cross-compilation results for GNU/Hurd.
19494         * m4/calloc.m4: Add GNU/Hurd guess.
19495         * m4/cbrtl.m4: Likewise.
19496         * m4/ceil.m4: Likewise.
19497         * m4/ceilf.m4: Likewise.
19498         * m4/ceill.m4: Likewise.
19499         * m4/chown.m4: Likewise.
19500         * m4/duplocale.m4: Likewise.
19501         * m4/exp2l.m4: Likewise.
19502         * m4/expm1.m4: Likewise.
19503         * m4/fchdir.m4: Likewise.
19504         * m4/floor.m4: Likewise.
19505         * m4/floorf.m4: Likewise.
19506         * m4/fmod.m4: Likewise.
19507         * m4/fmodf.m4: Likewise.
19508         * m4/fmodl.m4: Likewise.
19509         * m4/getcwd.m4: Likewise.
19510         * m4/getgroups.m4: Likewise.
19511         * m4/gettimeofday.m4: Likewise.
19512         * m4/hypot.m4: Likewise.
19513         * m4/hypotf.m4: Likewise.
19514         * m4/hypotl.m4: Likewise.
19515         * m4/link-follow.m4: Likewise.
19516         * m4/link.m4: Likewise.
19517         * m4/linkat.m4: Likewise.
19518         * m4/log.m4: Likewise.
19519         * m4/log10.m4: Likewise.
19520         * m4/log10f.m4: Likewise.
19521         * m4/log1p.m4: Likewise.
19522         * m4/log1pf.m4: Likewise.
19523         * m4/log1pl.m4: Likewise.
19524         * m4/log2.m4: Likewise.
19525         * m4/log2f.m4: Likewise.
19526         * m4/logf.m4: Likewise.
19527         * m4/lstat.m4: Likewise.
19528         * m4/malloc.m4: Likewise.
19529         * m4/mbrlen.m4: Likewise.
19530         * m4/mbrtowc.m4: Likewise.
19531         * m4/mkdir.m4: Likewise.
19532         * m4/mkfifo.m4: Likewise.
19533         * m4/mknod.m4: Likewise.
19534         * m4/mkstemp.m4: Likewise.
19535         * m4/modf.m4: Likewise.
19536         * m4/modff.m4: Likewise.
19537         * m4/modfl.m4: Likewise.
19538         * m4/printf.m4: Likewise.
19539         * m4/pselect.m4: Likewise.
19540         * m4/ptsname.m4: Likewise.
19541         * m4/putenv.m4: Likewise.
19542         * m4/readlink.m4: Likewise.
19543         * m4/realloc.m4: Likewise.
19544         * m4/remainder.m4: Likewise.
19545         * m4/remainderf.m4: Likewise.
19546         * m4/remainderl.m4: Likewise.
19547         * m4/rmdir.m4: Likewise.
19548         * m4/round.m4: Likewise.
19549         * m4/roundf.m4: Likewise.
19550         * m4/roundl.m4: Likewise.
19551         * m4/select.m4: Likewise.
19552         * m4/setenv.m4: Likewise.
19553         * m4/signbit.m4: Likewise.
19554         * m4/sleep.m4: Likewise.
19555         * m4/stat.m4: Likewise.
19556         * m4/strerror.m4: Likewise.
19557         * m4/strtok_r.m4: Likewise.
19558         * m4/symlink.m4: Likewise.
19559         * m4/symlinkat.m4: Likewise.
19560         * m4/trunc.m4: Likewise.
19561         * m4/truncf.m4: Likewise.
19562         * m4/truncl.m4: Likewise.
19563         * m4/tzset.m4: Likewise.
19564         * m4/ungetc.m4: Likewise.
19565         * m4/usleep.m4: Likewise.
19566         * m4/wcwidth.m4: Likewise.
19568 2017-12-28  Bruno Haible  <bruno@clisp.org>
19570         gnulib-tool: Make --conditional-dependencies work better.
19571         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
19572         * gnulib-tool (Options): Don't reject the combination of
19573         --conditional-dependencies with --with-tests.
19574         (func_emit_autoconf_snippets): Add argument referenceable_modules.
19575         Don't reference $modules.
19576         (func_import, func_create_testdir): Pass it.
19578 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19580         regex: use re_malloc etc. consistently
19581         Problem and original patch reported by Arnold Robbins in:
19582         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
19583         * lib/regcomp.c (re_comp):
19584         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
19585         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
19587 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
19588             Paul Eggert  <eggert@cs.ucla.edu>
19590         glob: Silence warning about void pointer arithmetic.
19591         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19592         arithmetic.
19594 2017-12-15  Bruno Haible  <bruno@clisp.org>
19596         spawn-pipe: Silence a clang warning.
19597         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19598         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
19599         in this file.
19601 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19603         explicit_bzero: port to macOS + Clang 9.0.0
19604         Problem reported by Marcus Johnson (Bug#29658).
19605         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
19606         Don’t use asm.
19608 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19610         doc: Improve explanation of supporting relocatable libraries.
19611         * doc/relocatable-maint.texi (Supporting Relocation): Explain
19612         properly how to build the relocatable module for
19613         libraries. (Method and example code from Bruno Haible.)
19615 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19617         doc: Use better texinfo tags in a few cases.
19618         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
19619         instead of @samp in a few places.
19621 2017-12-11  Bruno Haible  <bruno@clisp.org>
19623         unistr/base: Update comment.
19624         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
19626 2017-12-10  Pádraig Brady  <P@draigBrady.com>
19628         test-faccessat.c: unlink temp file to avoid subsequent test failure
19629         * tests/test-faccessat.c: Remove the file to avoid failure
19630         to open the file on subsequent runs due to being created
19631         with no permissions.
19633 2017-12-10  Bruno Haible  <bruno@clisp.org>
19635         doc: New sect. "Modifying the build rules of a Gnulib import directory".
19636         * doc/gnulib-tool.texi (Modified build rules): New node.
19638 2017-12-10  Bruno Haible  <bruno@clisp.org>
19640         doc: Tweak wording.
19641         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
19642         "binaries".
19644 2017-12-05  Sam Steingold  <sds@gnu.org>
19645             Bruno Haible  <bruno@clisp.org>
19647         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
19648         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
19649         AC_EGREP_CPP pattern.
19651 2017-12-03  Bruno Haible  <bruno@clisp.org>
19653         all: Replace more http URLs by https URLs.
19654         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
19655         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
19656         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
19657         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
19659 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19661         Port better to CentOS 5
19662         Problems reported by Tom G. Christensen in:
19663         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
19664         * doc/glibc-functions/strverscmp.texi (strverscmp):
19665         Document strverscmp bug with glibc 2.9 and earlier.
19666         * doc/posix-functions/tzset.texi (tzset):
19667         Document that TZ with angle brackets is POSIX-2001 and later.
19668         * tests/test-nstrftime.c: Include unistd.h.
19669         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
19670         (TZ): Use it to skip tests with angle brackets in TZ,
19671         for older systems.
19673         stat: add missing module dependencies
19674         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
19675         Add stat-time.
19677 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
19679         stat: fix compilation failure on macOS Sierra
19680         Reported by Marius Schamschula <mschamschula@gmail.com> in:
19681         https://savannah.gnu.org/bugs/?52546
19682         * lib/stat.c: Add missing include of stat-time.h.
19684 2017-11-28  Jim Meyering  <meyering@fb.com>
19686         test-faccessat.c: correct BASE definition to avoid parallel test failure
19687         * tests/test-faccessat.c (BASE): Define using this file's name, not
19688         that of test-lstat.c.  Using the latter caused this test to fail
19689         sometimes when run concurrently with test-lstat.
19691 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19693         unicase: fix VPATH build
19694         * modules/unicase/special-casing (Makefile.am): Ensure that the
19695         base directory is created when generating
19696         unicase/special-casing.h.
19698 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19700         libunistring: update to Unicode 9.0.0
19701         * lib/gen-uni-tables.c (fill_properties): Recognize
19702         Sentence_Terminal and Prepended_Concatenation_Mark.
19703         (is_property_default_ignorable_code_point): Exclude U+08E2.
19704         (fill_arabicshaping): Allow missing whitespace when parsing;
19705         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
19706         (output_blocks): Increase the element size of the level1 table to
19707         accommodate more blocks.
19708         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
19709         Update each class according to the standard.
19710         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
19711         E_Base_GAZ characters.
19712         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
19713         Glue_After_Zwj, and E_Base_GAZ characters.
19714         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
19715         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
19716         enum value.
19717         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
19718         value.
19719         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
19720         LBP_ZWJ, LBP_EB, and LBP_EM.
19721         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
19722         enum value.
19723         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
19724         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
19725         declaration.
19726         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
19727         (uniwbrk_table): Implement WB14.
19728         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
19729         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
19730         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
19731         uc-is-grapheme-break.
19732         * modules/unigbrk/uc-grapheme-breaks: New module.
19733         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
19734         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
19735         enum value.
19736         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
19737         * lib/unigbrk/u-grapheme-breaks.h: New file.
19738         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
19739         u-grapheme-breaks.h instead of uc_is_grapheme_break.
19740         * lib/unigbrk/uc-grapheme-breaks.c: New file.
19741         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
19742         29.
19743         * tests/unigbrk/test-uc-gbrk-prop.c
19744         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19745         GBP_GAZ, and GBP_EBG.
19746         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
19747         * tests/unigbrk/test-uc-is-grapheme-break.c
19748         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19749         GBP_GAZ, and GBP_EBG.
19750         (main): Skip unsupported rules involving 3 or more characters,
19751         namely GB10, GB12, and GB13.
19752         * lib/uniwidth/width.c (nonspacing_table_data): Update.
19753         * all generated files under lib/uni* and tests/uni*: Regenerate.
19754         * all the affected modules: Bump version.
19756 2017-11-26  Bruno Haible  <bruno@clisp.org>
19758         strfmon_l: Fix compilation error with glibc 2.5.
19759         Reported by Tom G. Christensen <tgc@jupiterrise.com>
19760         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
19761         * lib/monetary.in.h: Include also <locale.h>.
19763 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19765         posixtm: remove PDS_LEADING_YEAR
19766         This changes the API slightly, in a hopefully-innocuous way.
19767         Without this change the code had undefined behavior when a
19768         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
19769         Problem reported by Pádraig Brady in:
19770         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
19771         * NEWS: Mention this.
19772         * lib/posixtm.c (posix_time_parse): Treat the absence of
19773         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
19774         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
19775         present, but define it as zero, for compatibility with existing
19776         source code).  All other PDS_* values moved up.
19777         * tests/test-posixtm.c (LY): New macro.
19778         (T): Use it.  Do not expect a particular numeric encoding
19779         for PDS_CENTURY etc.
19781 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
19783         stat: work around Solaris bug with tv_nsec < 0
19784         * doc/posix-functions/fstat.texi (fstat):
19785         * doc/posix-functions/fstatat.texi (fstatat):
19786         * doc/posix-functions/lstat.texi (lstat):
19787         * doc/posix-functions/stat.texi (stat):
19788         Mention Solaris 11 bug.
19789         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
19790         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
19791         * lib/lstat.c (rpl_lstat):
19792         * lib/stat.c (rpl_stat):
19793         Normalize resulting timestamps.
19794         * lib/fstatat.c (normal_fstatat): New function.
19795         (rpl_fstatat): Use it.
19796         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
19797         (stat_time_normalize): New function.
19798         * m4/fstat.m4 (gl_FUNC_FSTAT):
19799         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
19800         * m4/lstat.m4 (gl_FUNC_LSTAT):
19801         * m4/stat.m4 (gl_FUNC_STAT):
19802         Replace on Solaris.
19803         * modules/fstat (Depends-on):
19804         * modules/fstatat (Depends-on):
19805         Add stat-time.
19806         * modules/stat-time (Depends-on): Add errno, intprops.
19808 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
19810         regex: merge from glibc
19811         * lib/regcomp.c (init_word_char): Add comments.
19813 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19815         regex: merge from glibc
19816         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
19817         * lib/regex_internal.h (internal_function): Remove.
19818         All uses removed.
19820 2017-11-20  Bruno Haible  <bruno@clisp.org>
19822         crypto/gc-sm3: Fix buffer overrun.
19823         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
19824         Reported by Coverity.
19826 2017-11-12  Jim Meyering  <meyering@fb.com>
19828         maint: shorten https://lists.gnu.org/archive/html/... links
19829         Each /archive/html/ part can be replace with /r/.
19830         Run this to induce the change:
19831         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
19832         * ChangeLog: Perform that substitution.
19833         * Makefile: Likewise.
19834         * STATUS-libposix: Likewise.
19835         * build-aux/bootstrap: Likewise.
19836         * doc/maintain.texi: Likewise.
19837         * gnulib-tool: Likewise.
19838         * lib/allocator.h: Likewise.
19839         * lib/argp-ba.c: Likewise.
19840         * lib/argp-pv.c: Likewise.
19841         * lib/canon-host.c: Likewise.
19842         * lib/canonicalize-lgpl.c: Likewise.
19843         * lib/float.in.h: Likewise.
19844         * lib/fstat.c: Likewise.
19845         * lib/getdelim.c: Likewise.
19846         * lib/getprogname.c: Likewise.
19847         * lib/glthread/thread.h: Likewise.
19848         * lib/intprops.h: Likewise.
19849         * lib/mbsrtowcs-state.c: Likewise.
19850         * lib/safe-read.c: Likewise.
19851         * lib/signal.in.h: Likewise.
19852         * lib/stat.c: Likewise.
19853         * lib/stdbool.in.h: Likewise.
19854         * lib/stdio-impl.h: Likewise.
19855         * lib/stdio.in.h: Likewise.
19856         * lib/sysexits.in.h: Likewise.
19857         * lib/timespec.h: Likewise.
19858         * lib/wcsrtombs-state.c: Likewise.
19859         * m4/alloca.m4: Likewise.
19860         * m4/extern-inline.m4: Likewise.
19861         * m4/fstatat.m4: Likewise.
19862         * m4/gnulib-common.m4: Likewise.
19863         * m4/lib-ignore.m4: Likewise.
19864         * m4/printf.m4: Likewise.
19865         * m4/regex.m4: Likewise.
19866         * m4/stat-size.m4: Likewise.
19867         * m4/std-gnu11.m4: Likewise.
19868         * m4/stdbool.m4: Likewise.
19869         * m4/sys_types_h.m4: Likewise.
19870         * m4/threadlib.m4: Likewise.
19871         * m4/vararrays.m4: Likewise.
19872         * pygnulib/GLImport.py: Likewise.
19873         * tests/test-exp.h: Likewise.
19874         * tests/test-exp2.h: Likewise.
19875         * tests/test-expm1.h: Likewise.
19876         * tests/test-fflush2.c: Likewise.
19877         * tests/test-getopt_long.h: Likewise.
19878         * tests/test-intprops.c: Likewise.
19879         * tests/test-log.h: Likewise.
19880         * tests/test-log10.h: Likewise.
19881         * tests/test-log1p.h: Likewise.
19882         * tests/test-log2.h: Likewise.
19883         * tests/test-printf-posix.h: Likewise.
19884         * tests/test-regex.c: Likewise.
19885         * tests/test-snprintf-posix.h: Likewise.
19886         * tests/test-sprintf-posix.h: Likewise.
19887         * tests/test-stdalign.c: Likewise.
19888         * tests/test-stdbool.c: Likewise.
19889         * tests/test-vasnprintf-posix.c: Likewise.
19890         * tests/test-vasprintf-posix.c: Likewise.
19891         * top/maint.mk: Likewise.
19893 2017-11-12  Bruno Haible  <bruno@clisp.org>
19895         faccessat: Make the last change more robust.
19896         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
19897         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
19899 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19901         faccessat: port to macOS (Bug#29231)
19902         macOS faccessat has the same bug that lstat does: if the file
19903         name ends in '/' it ignores the trailing slash.
19904         Problem reported for Emacs by Vincent Zhang.
19905         * doc/posix-functions/faccessat.texi (faccessat): Document this.
19906         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
19907         around the initial includes.  Include errno.h, string.h, sys/stat.h.
19908         (orig_faccessat) [HAVE_FACCESSAT]: New function.
19909         Include "unistd.h" after defining it.
19910         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
19911         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
19912         Handle in the usual way.
19913         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
19914         lstat dereferences symlinks, since faccessat is likely to
19915         have the same problem.
19916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
19917         * modules/faccessat (Depends-on): Add fstatat.
19918         Depend if REPLACE_FACCESSAT is 1, too.
19919         (configure.ac): Link if REPLACE_FACCESSAT is 1.
19920         * modules/faccessat-tests (Depends-on): Add symlink.
19921         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
19922         * tests/test-faccessat.c (main): Test for the bug.
19924 2017-11-11  Bruno Haible  <bruno@clisp.org>
19926         getprogname: Fix compilation error on IRIX.
19927         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
19928         'namesize'.
19930 2017-11-11  Bruno Haible  <bruno@clisp.org>
19932         year2038: Tweak last patch.
19933         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
19935 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19937         year2038: be more insistent about 64-bit time_t
19938         Applications requiring access to arbitrary files should not be
19939         built with 32-bit time_t on hosts that have 64-bit timestamps,
19940         as this can lead to real trouble at runtime.
19941         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
19942         Check on all systems, not just MinGW.  Use a heuristic involving
19943         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
19944         output a failure or just a warning, to make it more likely that
19945         builders will select 64-bit time_t.
19947 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
19949         havelib: fix typo in previous change
19950         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
19952         Don’t use AC_EGREP_CPP if affected by CFLAGS
19953         * m4/float_h.m4 (gl_FLOAT_H):
19954         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
19955         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
19956         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
19957         * m4/year2038.m4 (gl_YEAR2038):
19958         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
19959         likely to be affected by the choice of CFLAGS, since CFLAGS are
19960         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
19961         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
19963         fstatat: pacify GCC on unusual platform
19964         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
19965         Omit, as it’s unused in this case.
19967 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19969         timespec: prefer ‘assume’ to ‘assure’
19970         This avoids some runtime tests.  The rest of the module makes
19971         similar assumptions and there is little point to testing here.
19972         * lib/timespec.h: Include verify.h instead of assure.h.
19973         (timespec_cmp): Use ‘assume’, not ‘assure’.
19974         Also, remove an unnecessary cast to ‘int’, as lots of other
19975         code in this module now causes -Wconversion to complain, and
19976         this is a problem with -Wconversion not with the code.
19978         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
19980         Port recent gnulib-tool change to Dash
19981         * gnulib-tool (func_create_testdir): Don't assume that the shell
19982         retokenizes after expanding "$@" inside the call to
19983         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
19985 2017-10-27  Jim Meyering  <meyering@fb.com>
19987         timespec.h: use "assure" to avoid a spurious warning
19988         * lib/timespec.h: Include "assure.h" and use it to help
19989         gcc7's -Wstrict-overflow avoid a false positive warning
19990         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
19991         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
19992         * modules/timespec (Depends-on): Add assure.
19994 2017-10-29  Bruno Haible  <bruno@clisp.org>
19996         Avoid several test failures with traditional locales on Haiku.
19997         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
19998         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
19999         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
20000         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
20001         LOCALE_ZH_CN=none.
20003 2017-10-29  Bruno Haible  <bruno@clisp.org>
20005         strerror_r-posix: Fix behaviour and test failure on Haiku.
20006         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
20007         are positive. Work around return value 0 instead of ERANGE on Haiku.
20008         For unknown error numbers, use a format string consistent with perror().
20009         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
20010         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
20011         are positive.
20013 2017-10-29  Bruno Haible  <bruno@clisp.org>
20015         get-rusage-data: Avoid crash on Haiku.
20016         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
20018 2017-10-29  Bruno Haible  <bruno@clisp.org>
20020         get-rusage-as: Avoid crash on Haiku.
20021         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
20023 2017-10-29  Bruno Haible  <bruno@clisp.org>
20025         ilogbl: Ensure replacement on Haiku.
20026         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
20027         REPLACE_ILOGBL if ilogbl does not work.
20028         (gl_FUNC_ILOGBL_WORKS): New macro.
20029         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
20030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
20031         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
20032         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
20033         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
20035 2017-10-29  Bruno Haible  <bruno@clisp.org>
20037         expl: Ensure replacement on Haiku.
20038         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
20039         zero.
20040         * doc/posix-functions/expl.texi: Mention the Haiku problem.
20042 2017-10-29  Bruno Haible  <bruno@clisp.org>
20044         math: Fix test failure on Haiku.
20045         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
20046         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
20047         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
20048         * doc/posix-headers/math.texi: Mention the Haiku problem.
20050 2017-10-29  Bruno Haible  <bruno@clisp.org>
20052         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
20053         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
20054         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
20056 2017-10-29  Bruno Haible  <bruno@clisp.org>
20058         crypto/*: Verify that the header file is self-contained.
20059         * tests/test-gc-*.c: Include the module's header file immediately after
20060         <config.h>.
20061         * tests/test-hmac-*.c: Likewise.
20062         * tests/test-arcfour.c: Likewise.
20063         * tests/test-arctwo.c: Likewise.
20064         * tests/test-des.c: Likewise.
20065         * tests/test-md2.c: Likewise.
20066         * tests/test-md4.c: Likewise.
20067         * tests/test-md5.c: Likewise.
20068         * tests/test-rijndael.c: Likewise.
20069         * tests/test-sha1.c: Likewise.
20070         * tests/test-sm3.c: Likewise.
20072 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20073             Bruno Haible  <bruno@clisp.org>
20075         crypto/gc: fix build failure with -Werror=suggest-attribute=const
20076         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
20078 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20080         New module: crypto/gc-sm3
20081         * lib/gc.h: Declare SM3-related stuffs.
20082         * lib/gc-gnulib.c: Support sm3 in internal functions.
20083         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
20084         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
20085         * modules/crypto/gc-sm3: Define gc-sm3 module.
20086         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
20087         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
20088         * MODULES.html.sh: List gc-sm3 module.
20090 2017-10-29  Bruno Haible  <bruno@clisp.org>
20092         random, random_r: Mention different prototypes on Haiku.
20093         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
20094         * doc/glibc-functions/random_r.texi: Likewise.
20095         * doc/glibc-functions/initstate_r.texi: Likewise.
20096         * doc/glibc-functions/setstate_r.texi: Likewise.
20098 2017-10-28  Bruno Haible  <bruno@clisp.org>
20100         posix_spawn: Avoid spurious message in configure output.
20101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
20102         'cmp' command.
20104 2017-10-28  Bruno Haible  <bruno@clisp.org>
20106         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
20107         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
20108         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
20110 2017-10-28  Bruno Haible  <bruno@clisp.org>
20112         ioctl: Override non-POSIX declaration on Haiku.
20113         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
20114         * lib/sys_ioctl.in.h: Add comment about Haiku.
20115         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
20116         * doc/glibc-headers/sys_ioctl.texi: Likewise.
20118 2017-10-28  Bruno Haible  <bruno@clisp.org>
20120         crypto/sm3: Add overview documentation to the .h file.
20121         * lib/sm3.h: Add comments.
20123 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20125         New module: crypto/sm3
20126         This new module can be used to compute SM3 message digest of files or
20127         memory blocks according to the specification GM/T 004-2012
20128         Cryptographic Hash Algorithm SM3, published by State Cryptography
20129         Administration, China.
20130         The official SM3 cryptographic hash algorithm specification is
20131         available at
20132         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
20133         * lib/sm3.h: Declare the APIs of sm3 module.
20134         * lib/sm3.c: Implement SM3 hash algorithm.
20135         * m4/sm3.m4: m4 file for sm3 module.
20136         * modules/crypto/sm3: Define sm3 module.
20137         * tests/test-sm3.c: Implement SM3 test case.
20138         * modules/crypto/sm3-tests: Define sm3 test module.
20139         * MODULES.html.sh: List sm3 module.
20141 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20143         gc-libgcrypt: fix undefined enum type in switch statement
20144         Resolve the following build failure:
20145         lib/gc-libgcrypt.c: In function 'gc_hash_open':
20146         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
20147         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
20148              case 0:
20149              ^~~~
20150         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
20151         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
20153 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20155         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
20156         Resolve the following build failure:
20157         lib/gc-libgcrypt.c: In function 'gc_hash_read':
20158         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
20159         in signedness [-Werror=pointer-sign]
20160             digest = gcry_md_read (ctx->gch, 0);
20161                    ^
20162         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
20164 2017-10-26  Bruno Haible  <bruno@clisp.org>
20166         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
20167         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
20168         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
20170 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20172         glob: fix another heap buffer overflow
20173         Problem reported by Tim Rühsen in:
20174         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
20175         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
20177 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20179         quotearg: pacify compiler re unsigned
20180         * lib/quotearg.c (quotearg_n_options):
20181         Rewrite to avoid diagnostic from overly-picky compiler.
20182         Problem reported by Sami Kerola in:
20183         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
20185         glob: fix heap buffer overflow
20186         * lib/glob.c (glob): Fix off-by-one error introduced into
20187         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
20188         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
20189         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
20190         Fix suggested by Bruno Haible.
20192 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20194         glob: pacify fuzzer for mempcpy
20195         Problem reported by Tim Rühsen in:
20196         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
20197         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20199 2017-10-12  Bruno Haible  <bruno@clisp.org>
20201         doc: Fix syntax error (regression from 2017-10-03).
20202         * doc/posix-functions/strncpy.texi: Fix syntax error.
20204 2017-10-12  Bruno Haible  <bruno@clisp.org>
20206         doc: Update for Solaris 11.3.
20207         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
20208         mention Solaris 11.3.
20209         * m4/log2.m4: Fix comments.
20210         * m4/log2f.m4: Likewise.
20211         * m4/printf.m4: Update comments.
20212         * m4/rename.m4: Likewise.
20213         * m4/strncat.m4: Likewise.
20215         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
20217 2017-10-10  Bruno Haible  <bruno@clisp.org>
20219         doc: Improve doc about ioctl.
20220         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
20221         prototype.
20223 2017-10-09  Bruno Haible  <bruno@clisp.org>
20225         wcwidth: Don't use obsolete syntax of 'test'.
20226         Reported by Eric Blake.
20227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
20228         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
20230 2017-10-09  Bruno Haible  <bruno@clisp.org>
20232         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
20233         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
20234         and Daniel P. Berrange <berrange@redhat.com>.
20235         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
20236         on glibc systems. The getopt-pfx-core.h file declares exactly what
20237         unistd.h needs, nothing more.
20239 2017-10-08  Bruno Haible  <bruno@clisp.org>
20241         vma-iter: Improve support for FreeBSD.
20242         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
20243         vma_iterate.
20244         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
20246 2017-10-08  Bruno Haible  <bruno@clisp.org>
20248         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
20249         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
20251 2017-10-07  KO Myung-Hun  <komh@chollian.net>
20253         test-framework-sh: Fix 'invalid path dir' error.
20254         On OS/2, a path separator is ';' not ':'. And ':' is used as a
20255         separator between a drive letter and directory parts.
20256         As a result, an absolute path such as x:/path/to/dir on OS/2 is
20257         treated as an invalid path dir.
20258         * tests/init.sh (PATH_SEPARATOR): Set at startup.
20259         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
20260         instead of hard coded ':'.
20262 2017-10-07  Bruno Haible  <bruno@clisp.org>
20264         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
20265         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
20266         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
20267         (rof_open): On Linux, do multiple read() calls and make sure
20268         MIN_LEFTOVER bytes are left when read() returns.
20270 2017-10-07  Bruno Haible  <bruno@clisp.org>
20272         vma-iter: Improve support for GNU/Hurd.
20273         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
20274         API, not the /proc file system.
20276 2017-10-07  Bruno Haible  <bruno@clisp.org>
20278         test-framework-sh: Don't require bash on Windows and OS/2.
20279         Reported by KO Myung-Hun.
20280         * tests/test-init.sh: Use 'shopt' only when running in bash.
20282 2017-10-06  KO Myung-Hun  <komh@chollian.net>
20284         wcwidth: check a macro version of wcwidth () as well
20285         * lib/wchar.in.h: Revert commit from 2016-01-14.
20286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
20288 2017-10-06  Bruno Haible  <bruno@clisp.org>
20290         getopt-posix: Clarify copyright header.
20291         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
20292         * lib/getopt-pfx-core.h: Likewise.
20293         * lib/getopt-pfx-ext.h: Likewise.
20294         * lib/getopt-cdefs.in.h: Likewise.
20296 2017-10-03  Bruno Haible  <bruno@clisp.org>
20298         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
20299         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
20300         gl_HOST_CPU_C_ABI.
20302 2017-10-03  Bruno Haible  <bruno@clisp.org>
20304         doc: warn about misuse of strncpy and wcsncpy.
20305         * doc/posix-functions/strcpy.texi: Describe requirements on prior
20306         memory allocation.
20307         * doc/posix-functions/wcscpy.texi: Likewise.
20308         * doc/posix-functions/strncpy.texi: Describe what this function is not
20309         useful for.
20310         * doc/posix-functions/wcsncpy.texi: Likewise.
20312 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20314         fsuage: fix typo in previous change
20315         * lib/fsusage.c: Remove stray include of full-read.h.
20316         Problem reported by Sam Steingold for macOS (Bug#28669).
20318 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
20320         fsusage: remove SVR2 support
20321         SVR2 was obsolete by 1986 and is no longer supported by anybody,
20322         and its code was getting in the way of use of this module by
20323         Emacs, which has its own ‘read’ function anyway.
20324         * lib/fsusage.c: Do not include sys/filsys.h.
20325         (get_fs_usage): Remove SVR2-specific code.
20326         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
20327         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
20328         * modules/fsusage (Depends-on): Do not depend on full-read.
20330         Simplify autoupdate of licenses
20331         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
20332         place.
20334 2017-10-01  Bruno Haible  <bruno@clisp.org>
20336         vma-iter: Add support for GNU/Hurd.
20337         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
20338         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20340 2017-09-30  Bruno Haible  <bruno@clisp.org>
20342         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
20343         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
20344         fail when module 'largefile' is in use.
20345         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
20346         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
20347         Don't test HAVE_SYS_PROCFS_H.
20349 2017-09-30  Bruno Haible  <bruno@clisp.org>
20351         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
20352         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
20353         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
20354         * modules/havelib (Depends-on): Add host-cpu-c-abi.
20356 2017-09-30  Bruno Haible  <bruno@clisp.org>
20358         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
20359         * lib/uniname/uniname.c (unicode_name_character): Add braces around
20360         scope of local variables.
20362 2017-09-28  Bruno Haible  <bruno@clisp.org>
20364         string: code style
20365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
20366         substitutable variables.
20367         * modules/string (Makefile.am): Likewise.
20369 2017-09-26  Bruno Haible  <bruno@clisp.org>
20371         uniname/uniname-tests: Tighten code.
20372         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
20373         local variables into one.
20375 2017-09-26  Bruno Haible  <bruno@clisp.org>
20377         vma-iter: Improvements for Linux and BSD platforms.
20378         - Add support for DragonFly BSD.
20379         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
20380         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
20381         Read the entire file into memory in a single system call.
20382         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
20383         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
20385 2017-09-26  Bruno Haible  <bruno@clisp.org>
20387         vma-iter: Provide the protection flags on FreeBSD.
20388         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
20389         skip three fields between the addresses and the protection flags.
20391 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20393         glob: remove bogus extern decl
20394         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20395         extern declaration.  Problem reported by Adhemerval Zanella in:
20396         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
20398 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20400         uniname/uniname-tests: integer overflow fix
20401         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
20402         Check for integer overflow.
20404         duplocale-tests: fix unlikely crash
20405         * tests/test-duplocale.c (get_locale_dependent_values):
20406         Don’t crash with absurdly long month names.
20408         maint: fix overflow checking in nap.h
20409         * modules/chown-tests:
20410         * modules/fchownat-tests, modules/fdutimensat-tests:
20411         * modules/futimens-tests, modules/lchown-tests:
20412         * modules/stat-time-tests, modules/utime-tests:
20413         * modules/utimens-tests, modules/utimensat-tests:
20414         Depend on intprops.
20415         * tests/nap.h: Include intprops.h.
20416         (diff_timespec): Handle overflow properly.
20418         sys_types: update URL
20419         * m4/sys_types_h.m4: Use https: URL.
20421         parse-datetime: fix dependency
20422         * modules/parse-datetime (Depends-on): Depend
20423         on nstrftime, not strftime.
20425         parse-datetime, posixtm: avoid uninit access
20426         * lib/parse-datetime.y (parse_datetime2):
20427         * lib/posixtm.c (posixtime):
20428         Do not access uninitialized storage, even though the resulting
20429         value is never used.
20431 2017-09-25  Bruno Haible  <bruno@clisp.org>
20433         vma-iter: Improvements for BSD platforms.
20434         - Add support for GNU/kFreeBSD.
20435         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
20436         - Speed up on OpenBSD.
20437         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
20438         (vma_iterate_bsd): New function.
20439         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
20440         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
20441         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20442         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
20444 2017-09-23  Bruno Haible  <bruno@clisp.org>
20446         strfmon_l: New module.
20447         * modules/strfmon_l: New file.
20448         * lib/strfmon_l.c: New file.
20449         * m4/strfmon_l.m4: New file.
20450         * doc/posix-functions/strfmon_l.texi: Mention the new module.
20451         * modules/strfmon_l-tests: New file.
20452         * tests/test-strfmon_l.c: New file.
20454         monetary: New module.
20455         * modules/monetary: New file.
20456         * lib/monetary.in.h: New file.
20457         * m4/monetary_h.m4: New file.
20458         * doc/posix-headers/monetary.texi: Mention the new module.
20459         * modules/monetary-tests: New file.
20460         * tests/test-monetary.c: New file.
20461         * modules/monetary-c++-tests: New file.
20462         * tests/test-monetary-c++.cc: New file.
20463         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
20465 2017-09-23  Bruno Haible  <bruno@clisp.org>
20467         duplocale tests: Fix test crash on Linux/x86.
20468         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
20469         locale from the current thread before freeing it.
20471 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
20473         mktime: port to OpenVMS
20474         Problem reported by John E. Malmberg in:
20475         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
20476         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
20478 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20480         manywarnings: port to GCC on 64-bit MS-Windows
20481         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
20482         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
20483         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
20485 2017-09-13  Bruno Haible  <bruno@clisp.org>
20487         all: Replace many more http URLs by https URLs. Update stale URLs.
20488         * users.txt: Remove mention of 'newts'.
20489         * lib/localename.c: Update comment about LANG_SOTHO.
20491 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20493         all: Replace many http URLs by https URLs.
20495 2017-09-12  Bruno Haible  <bruno@clisp.org>
20497         doc: Prefer https URLs where possible.
20498         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
20499         * doc/ld-output-def.texi: Remove unavailable URL.
20501 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20503         maintainer-makefile: FTP -> HTTPS
20504         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
20505         of FTP, which is planned to be decommissioned on 2017-11-01.
20507 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
20509         libc-config: Fix __GNUC_PREREQ macro.
20510         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
20511         __GNUC_MINOR.
20513 2017-09-09  Bruno Haible  <bruno@clisp.org>
20515         gnulib-tool: Simplify commit from 2015-08-20.
20516         * gnulib-tool (func_add_or_update): Remove local variable
20517         is_binary_file.
20519 2017-09-08  Bruno Haible  <bruno@clisp.org>
20521         stddef: Avoid conflict with system-defined max_align_t.
20522         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
20523         Reported by Werner Lemberg <wl@gnu.org> in
20524         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
20525         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
20526         (max_align_t): Define as a macro.
20527         (GNULIB_defined_max_align_t): New macro. Guards against multiple
20528         definitions of rpl_max_align_t in different copies of gnulib-generated
20529         <stddef.h>.
20531 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
20533         libc-config: port to MSVC
20534         Problems reported by Gisle Vanem in:
20535         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
20536         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
20537         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
20538         * m4/__inline.m4: New file.
20539         * modules/libc-config (Files): Add it.
20540         (Depends-on): Use it.
20542         glob: Use enum for __glob_pattern_type result
20543         From a patch proposed by Adhemerval Zanella in:
20544         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
20545         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
20546         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
20547         * lib/glob_internal.h (__glob_pattern_type):
20548         * lib/glob.c (glob):
20549         * lib/glob_pattern_p.c (__glob_pattern_p):
20550         Use them.
20552         glob: fix for use in glibc
20553         Problem reported by Adhemerval Zanella in:
20554         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
20555         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
20556         Do not redefine if _LIBC.
20558 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20560         glob: fix bugs with long login names
20561         Problem reported by Adhemerval Zanella in:
20562         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
20563         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
20564         (glob): Use the same scratch buffer for both getlogin_r and
20565         getpwnam_r.  Don’t require preallocation of the login name.  This
20566         simplifies storage allocation, and corrects the handling of
20567         long login names.
20569 2017-09-02  Bruno Haible  <bruno@clisp.org>
20571         dirent: Update doc.
20572         * doc/posix-headers/dirent.texi: More concrete list of platforms.
20574 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20576         glob: fix getpwnam_r errno typo
20577         * lib/glob.c (glob): Fix longstanding misuse of errno after
20578         getpwnam_r, which returns an error number rather than setting
20579         errno.
20581         glob: fix typo in recent change
20582         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
20583         Fix recently-introduced typo.
20585 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20587         glob: don't save and restore errno unnecessarily
20588         * lib/glob.c (glob): Don't save and restore errno
20589         merely because we have getpwnam_r.
20591         glob: don't assume getpwnam_r
20592         * lib/glob.c (glob): Port recent patches to platforms
20593         lacking getpwnam_r.
20595         scratch_buffer: don’t use private glibc API
20596         Suggested by Florian Weimer in:
20597         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
20598         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
20599         * lib/scratch_buffer_grow.c: Rename to
20600         lib/malloc/scratch_buffer_grow.c.
20601         * lib/scratch_buffer_grow_preserve.c: Rename to
20602         lib/malloc/scratch_buffer_grow_preserve.c.
20603         * lib/scratch_buffer_set_array_size.c: Rename to
20604         lib/malloc/scratch_buffer_set_array_size.c.
20605         * lib/scratch_buffer.h: New file.
20606         * modules/scratch_buffer (Files, Makefile.am):
20607         Adjust to source-file renaming.
20609 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20611         glob: use scratch_buffer instead of extend_alloca
20612         Much of the lib/glob.c part of this patch comes from a glibc patch
20613         proposed by Adhemerval Zanella in:
20614         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
20615         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
20616         included via glob.h, does this for us now.
20617         (__set_errno): Remove, as libc-config does this for us now.
20618         Include <scratch_buffer.h>.
20619         (GETPW_R_SIZE_MAX): Remove.
20620         (glob): Use struct scratch_buffer instead of extend_alloca.
20621         * lib/glob.in.h: Include libc-config.h rather than
20622         including <sys/cdefs.h> conditionally.
20623         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
20624         (__glibc_unlikely, __restrict, weak_alias):
20625         Remove, as libc-config does this for us now.
20626         * m4/glob.m4 (gl_PREREQ_GLOB):
20627         Remove sys/cdefs.h tests; no longer needed.
20628         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
20629         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
20631         scratch_buffer: new module
20632         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
20633         * lib/scratch_buffer_grow_preserve.c:
20634         * lib/scratch_buffer_set_array_size.c:
20635         New files, copied from glibc with very minor changes that can be
20636         copied back.
20637         * modules/scratch_buffer: New file.
20639         libc-config: new module
20640         * MODULES.html.sh: Add libc-config.
20641         * lib/cdefs.h: New file, copied from the GNU C Library with very
20642         minor changes that can be copied back.
20643         * lib/libc-config.h, modules/libc-config: New files.
20645 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20647         glob: match dangling symlinks
20648         This fixes a bug I inadvertently introduced to Gnulib when I
20649         merged glibc glob back into gnulib on 2007-10-16.  This fix is
20650         inspired by a patch proposed for glibc by Adhemerval Zanella in:
20651         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
20652         * doc/posix-functions/glob.texi: Update list of affected platforms.
20653         * lib/glob.c (__lstat64): New macro.
20654         (is_dir): New function.
20655         (glob, glob_in_dir): Match symlinks even if they are dangling.
20656         (link_stat, link_exists_p): Remove.  All uses removed.
20657         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
20658         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
20659         * modules/glob-tests (Depends-on): Add symlink.
20660         * tests/test-glob.c: Include errno.h, unistd.h.
20661         (BASE): New macro.
20662         (main): Test dangling symlinks, if symlinks are supported.
20664         glob, backupfile: inode 0 is a valid inode number
20665         * doc/posix-functions/readdir.texi (readdir):
20666         * doc/posix-headers/dirent.texi (dirent.h):
20667         Document more readdir portability issues.
20668         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
20669         (numbered_backup): Don’t treat inode 0 any differently from
20670         other inode values.
20671         * lib/glob.c (struct readdir_result): Remove skip_entry member.
20672         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
20673         All uses removed.
20674         * modules/glob (Depends-on): Remove d-ino.
20676         glob: simplify symlink detection
20677         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
20678         uint8_t, as C99 does not require uint8_t.
20679         (struct readdir_result): Use it.  Do not define skip_entry unless
20680         it is needed; this saves a byte on platforms lacking d_ino.
20681         (readdir_result_type, readdir_result_skip_entry):
20682         New functions, replacing ...
20683         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
20684         ... these functions, which were removed.  This makes the callers
20685         easier to read.  All callers changed.
20686         (D_INO_TO_RESULT): Now empty if there is no d_ino.
20688 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20690         fts-tests: tag as a longrunning-test so not included by default
20691         * modules/fts-tests: This test takes about 20s on current systems,
20692         and uses about 285M of space on ext4.
20694 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20696         renameat2: fix compilation on alpine linux
20697         * m4/renameat.m4: Check for <linux/fs.h> presence.
20698         * lib/renameat2.h: Only include <linux/fs.h> if present.
20699         Reported by Assaf Gordon on Alpine Linux.
20701 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20703         glob: try to port recent changes to MS-Windows
20704         Problem reported by Bruno Haible in:
20705         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
20706         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
20707         * lib/glob.in.h (__glob_pattern_p): ... to here.
20709 2017-08-24  Eric Blake  <eblake@redhat.com>
20711         warnings: fix compilation with old autoconf
20712         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
20713         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
20714         AC_DEFUN.
20715         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
20716         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
20718 2017-08-24  Bruno Haible  <bruno@clisp.org>
20720         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
20721         * modules/glob (Depends-on): Add c99.
20723 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20725         glob: fix typo that broke platforms lacking d_ino
20726         This typo also hurt performance on GNU/Linux and similar hosts.
20727         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
20728         in previous change.
20730 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20732         glob: merge from glibc with Zanella glob changes
20733         Merge glob from glibc, with changes for glob proposed
20734         by Adhemerval Zanella in the thread starting here:
20735         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
20736         plus some fixes for this merge.
20737         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
20738         New files, ported from glibc.
20739         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
20740         with __restrict.
20741         (__size_t): Remove.  All uses replaced by size_t.
20742         (size_t): Define by defining __need_size_t and including <stddef.h>.
20743         This should work even in non-glibc platforms, where any name
20744         pollution is OK.
20745         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
20746         (struct stat64): Don’t worry about __GLOB_GNULIB.
20747         (glob, globfree, glob_pattern_p): Remove macros for
20748         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
20749         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
20750         but set errno.
20751         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
20752         removed since the glibc behavior works on null pointers.
20753         Do not include stdio.h; old SunOS is irrelevant now.
20754         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
20755         Include glob_internal.h.
20756         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
20757         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
20758         worked only coincidentally.
20759         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
20760         Remove macros; now done in glob.in.h.
20761         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
20762         (glob): Properly initialize glob structure with
20763         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
20764         Remove old code using SHELL since Bash no longer
20765         uses this.
20766         (glob, prefix_array): Separate MS code better.
20767         (glob, glob_in_dir): Use C99 decls before statements when glibc
20768         does.
20769         (glob_in_dir): Remove old Amiga and VMS code.
20770         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
20771         separate files.
20772         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
20773         (__glibc_unlikely):
20774         Move here from glob.c.
20775         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
20776         (weak_alias): New macro.
20777         (__size_t): Remove.  All uses replaced by size_t.
20778         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
20779         * modules/glob (Files): Add +lib/glob_internal.h,
20780         lib/glob_pattern_p.c, lib/globfree.c.
20781         (Depends-on): Remove snippet/arg-nonnull.
20783 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20785         glob: port to clang's Undefined Sanitizer
20786         Problem reported by Tim Rühsen in:
20787         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
20788         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
20789         (glob_in_dir): Do not rely on undefined behavior in accessing
20790         struct members beyond their bounds.  Use a flexible array member
20791         instead.
20793 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20795         vc-list-files: port to Solaris 10
20796         * build-aux/vc-list-files: Don't assume test -e works.
20798 2017-08-21  Karl Berry  <karl@freefriends.org>
20800         * doc/posix-functions/srandom.texi (srandom): typo }.
20802 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20804         git-version-gen: port to Solaris 10
20805         Problem reported by Dagobert Michelsen in:
20806         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
20807         * build-aux/git-version-gen (v_from_git):
20808         Use expr instead of shell substitution.
20810 2017-08-19  Bruno Haible  <bruno@clisp.org>
20812         host-cpu-c-abi: Improve detection of MIPS ABI.
20813         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
20814         _MIPS_SIM.
20816 2017-08-17  Bruno Haible  <bruno@clisp.org>
20818         hypot tests: Fix test failure on FreeBSD 11.0/x86.
20819         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
20821 2017-08-17  Bruno Haible  <bruno@clisp.org>
20823         float: Fix LDBL_MIN value on FreeBSD/x86.
20824         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
20826 2017-08-17  Bruno Haible  <bruno@clisp.org>
20828         random: Fix test compilation failure on Cygwin 1.5.25.
20829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
20830         HAVE_DECL_SETSTATE.
20831         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
20832         declared.
20833         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
20834         HAVE_DECL_SETSTATE.
20835         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
20836         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
20837         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
20838         * doc/posix-functions/random.texi: Likewise.
20839         * doc/posix-functions/setstate.texi: Likewise.
20840         * doc/posix-functions/srandom.texi: Likewise.
20842 2017-08-16  Bruno Haible  <bruno@clisp.org>
20844         stdnoreturn: Fix test compilation failure on Cygwin.
20845         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
20846         <stdnoreturn.h> replacement.
20847         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
20848         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
20850 2017-08-16  Bruno Haible  <bruno@clisp.org>
20852         thread: Fix conflict with pthread_sigmask module.
20853         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
20854         it's defined as a macro.
20855         * modules/thread (Depends-on): Add pthread_sigmask.
20857 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20859         rename: port better to NetBSD
20860         * doc/posix-functions/rename.texi (rename): NetBSD 7
20861         does not have the link-count bug.
20862         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
20863         broken merely because rename ("a", "b") removes "a" when the two
20864         names are hard links to the same file.
20866 2017-08-16  Bruno Haible  <bruno@clisp.org>
20868         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
20869         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
20870         the target file names with '$(srcdir)/'.
20871         * modules/unicase/locale-language (Makefile.am): Likewise.
20872         * modules/unicase/special-casing (Makefile.am): Likewise.
20873         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
20874         * modules/unictype/category-byname (Makefile.am): Likewise.
20875         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
20876         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
20877         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
20878         * modules/unictype/property-byname (Makefile.am): Likewise.
20879         * modules/unictype/scripts (Makefile.am): Likewise.
20880         * modules/uninorm/composition (Makefile.am): Likewise.
20882 2017-08-16  Bruno Haible  <bruno@clisp.org>
20884         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
20885         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
20886         value for OpenBSD.
20888 2017-08-16  Bruno Haible  <bruno@clisp.org>
20890         rename, renameat: Update doc regarding NetBSD.
20891         * doc/posix-functions/rename.texi: Clarify that when using
20892         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
20893         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
20894         version.
20896 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20898         renameat2: port better to macOS
20899         * lib/renameat2.c (renameat2): Use renameatx_np if available.
20901         futimens: don’t assume struct timespec layout
20902         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
20903         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
20904         * tests/test-fdutimensat.c (main):
20905         * tests/test-futimens.h (test_futimens):
20906         * tests/test-lutimens.h (test_lutimens):
20907         * tests/test-utimens.h (test_utimens):
20908         * tests/test-utimensat.c (main):
20909         Don’t assume that struct timespec is a two-member structure in
20910         tv_sec, tv_nsec order.  Although this is true on all platforms we
20911         know about, POSIX does not guarantee it.
20913         rename: document+test NetBSD rename
20914         Test failure reported by Bruno Haible in:
20915         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
20916         This is an area where NetBSD is better-behaved than POSIX,
20917         so allow the NetBSD behavior in tests.
20918         * doc/posix-functions/rename.texi:
20919         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
20920         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
20922 2017-08-15  Bruno Haible  <bruno@clisp.org>
20924         renameat: Ensure declaration in <stdio.h> on NetBSD.
20925         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
20926         * doc/posix-functions/renameat.texi: Mention this problem.
20928 2017-08-15  Bruno Haible  <bruno@clisp.org>
20930         duplocale: Work around NetBSD 7.0 bug.
20931         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
20932         * lib/duplocale.c: Add comment about NetBSD problem.
20933         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
20935 2017-08-15  Bruno Haible  <bruno@clisp.org>
20937         duplocale tests: Verify use with *_l functions.
20938         * modules/duplocale-tests (configure.ac): Test for uselocale and
20939         some *_l functions.
20940         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
20941         from main.
20942         (get_locale_dependent_values_from, test_with_locale_parameter): New
20943         functions.
20944         (main): Test both test_with_uselocale and test_with_locale_parameter.
20946 2017-08-15  Bruno Haible  <bruno@clisp.org>
20948         extensions: Enable NetBSD specific extensions.
20949         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
20951 2017-08-14  Bruno Haible  <bruno@clisp.org>
20953         open, openat: Update doc about O_CLOEXEC.
20954         * doc/posix-functions/open.texi: More concrete list of platforms.
20955         * doc/posix-functions/openat.texi: Likewise.
20957 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20959         open: support O_CLOEXEC
20960         * NEWS, doc/posix-functions/open.texi:
20961         * doc/posix-functions/openat.texi: Document this.
20962         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
20963         (GNULIB_defined_O_CLOEXEC): New symbol.
20964         * lib/open.c: Include cloexec.h.
20965         (open): Support O_CLOEXEC.
20966         * lib/openat.c: Include cloexec.h.
20967         (rpl_openat): Support O_CLOEXEC.
20968         * lib/popen-safer.c: Do not include cloexec.h.
20969         (open_noinherit): Remove.
20970         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
20971         * lib/save-cwd.c: Do not include cloexec.h.
20972         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
20973         * m4/open-cloexec.m4: New file.
20974         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
20975         Replace 'open' if O_CLOEXEC is not present.
20976         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
20977         Replace 'openat' if O_CLOEXEC is not present.
20978         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
20979         * modules/open (Files): Add m4/open-cloexec.m4.
20980         (Depends-on): Depend on cloexec if replacing 'open'.
20981         * modules/openat (Files): Add m4/open-cloexec.m4.
20982         (Depends-on): Depend on cloexec if replacing openat.
20983         * modules/popen-safer (Depends-on): Remove cloexec.
20984         * modules/save-cwd (Depends-on): Remove cloexec, and add
20985         fd-safer-flag and 'open'.
20987 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
20989         reallocarray: minor fixes
20990         * doc/glibc-functions/reallocarray.texi: Update version numbers.
20991         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
20992         * modules/reallocarray (License): Change from GPL to LGPL.
20993         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
20994         Indent properly and don't use tabs.
20996 2017-08-13  Darshit Shah  <darnir@gnu.org>
20998         reallocarray: New module
20999         reallocarray is a new function in glibc 2.26 to safely allocate an array
21000         of memory locations with integer overflow protection.
21001         * MODULES.html.sh: Add reallocarray.
21002         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
21003         * lib/reallocarray.c: New file to implement module reallocarray.
21004         * lib/stdlib.in.h: Add function declarations for reallocarray.
21005         * m4/reallocarray.m4: New file.
21006         * m4/stdlib_h.m4: Declare reallocarray.
21007         * modules/reallocarray: New file.
21008         * modules/reallocarray-test: New file.
21009         * modules/stdlib: Coerce stdlib.h to export reallocarray.
21010         * tests/test-reallocarray.c: New test.
21012 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21014         dirent-safer: fix cloexec race
21015         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
21016         (opendir_safer): Use F_DUPFD_CLOEXEC.
21017         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
21018         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
21019         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
21020         instead of dup_safer.
21022         fts: fix cloexec races
21023         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
21024         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
21025         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
21026         (fd_ring_check): Set cloexec flag on new file descriptors.
21027         (fts_build, fd_ring_check): While we’re at it, make sure the
21028         resulting file descriptor is not 0, 1, or 2, since that is easy.
21030 2017-08-11  Bruno Haible  <bruno@clisp.org>
21032         fts tests: Fix link error.
21033         Reported by Tom G. Christensen in
21034         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
21035         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
21037 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21039         fts: port recent changes to CentOS 6
21040         Problem reported by Tom G. Christensen in:
21041         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
21042         * lib/fts.c (fsword): New type.
21043         (struct dev_type, filesystem_type): Use it.
21044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
21045         Also, check for f_type only if fstatfs and sys/vfs.h work.
21047 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21049         tempname: do not depend on secure_getenv
21050         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
21051         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
21052         * modules/tempname (Depends-on): Remove secure_getenv.
21054 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21056         extensions: add _OPENBSD_SOURCE
21057         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
21059 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
21060             Bruno Haible  <bruno@clisp.org>
21062         manywarnings: Add support for C++.
21063         * build-aux/g++-warning.spec: New file.
21064         * m4/manywarnings-c++.m4: New file.
21065         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
21066         redirects to manywarnings-c++.m4.
21067         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
21069 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21071         git-version-gen: another fix for tags with "-"
21072         * build-aux/git-version-gen: Improve fix for tags containing "-".
21073         Suggested by Markus Armbruster in:
21074         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
21076 2017-08-06  Bruno Haible  <bruno@clisp.org>
21078         warnings, manywarnings: Add support for multiple languages, not just C.
21079         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
21080         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
21081         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
21082         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
21083         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
21084         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
21085         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
21086         of the current language. If C++ is the current language, modify
21087         WARN_CXXFLAGS instead of WARN_CFLAGS.
21088         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
21089         gl_MANYWARN_ALL_GCC.
21090         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
21092 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
21094         git-version-gen: Fix for tags containing '-'
21096         Really old versions of git-describe (before v1.5.0, Feb 2007)
21097         don't have the number of commits in their long format output,
21098         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
21099         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
21100         recognizes both patterns, and normalizes the old format to the new one.
21102         Unfortunately, this normalization code gets confused when the tag
21103         contains '-'.  Reproducer:
21105             $ git-tag -m test v0.2-rc1
21106             $ build-aux/git-version-gen .tarball-version; echo
21107             build-aux/git-version-gen: WARNING: git rev-list failed
21108             UNKNOWN
21110         We take exact tag "v0.2-rc1" for the old format, extract the presumed
21111         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
21112         commits since tha tag.  Fails, because tag "v0.2" does not exist.
21114         * git-version-gen: We could perhaps drop support for versions from
21115         more than a decade ago.  But tightening the pattern match is easy
21116         enough, so do that.  Still breaks when you use version tags ending in
21117         something matching -g????, but you arguably get what you deserve then.
21119 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21121         valgrind-tests: use ls, and cache
21122         * m4/valgrind-tests.m4: Test ls, not bash.
21123         Problem reported by Reuben Thomas.
21124         Also, cache the result so that it can be overridden.
21126 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21128         manywarnings: port to 64-bit GCC builds of Emacs
21129         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
21130         object size rather than hardwiring 2147483647.  This is needed to
21131         build GNU Emacs, which has one conditional (and used
21132         only-in-theory) call to malloc with a literal greater than
21133         2147483647.
21135 2017-08-04  Bruno Haible  <bruno@clisp.org>
21137         Relax the license of some modules with no runtime code.
21138         * modules/std-gnu11 (License): Set to 'unlimited'.
21139         * modules/c99 (License): Likewise.
21140         Reported by Reuben Thomas <rrt@sc3d.org>.
21141         * modules/d-ino (License): Set to 'LGPL'.
21142         * modules/host-os (License): Likewise.
21143         * modules/longlong (License): Likewise.
21145 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21147         renameat2: port to RHEL 7 + NFS
21148         * lib/renameat2.c (renameat2) [SYS_renameat2]:
21149         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
21150         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
21152 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21154         renameat2: port to non-renameat platforms
21155         Problem reported for MSVC-2015 by Gisle Vanem in:
21156         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
21157         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
21158         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
21160 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21162         manywarnings: port to 32-bit GCC bug
21163         Problem reported by Pino Toscano in:
21164         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
21165         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
21166         not 2**63 - 1, to work around the following GCC bug:
21167         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
21169 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
21171         backupfile: new function to validate backup suffix
21172         * lib/backupfile.c (set_simple_backup_suffix): New function.
21173         (backupfile_internal): Use it.
21175         canonicalize: fix EOVERFLOW commentary
21176         Problem reported by Bruno Haible in:
21177         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
21178         * lib/canonicalize.c (canonicalize_filename_mode):
21179         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
21181         Don't interpret EOVERFLOW to mean nonexistence
21182         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
21183         may be EOVERFLOW; this is likely more useful than reporting the
21184         stat errno.
21185         * lib/glob.c (link_stat): Rename from link_exists2_p and
21186         return -1/0 instead of 0/1.  Caller changed.
21187         * lib/glob.c (link_exists_p):
21188         * lib/renameat2.c (rename_noreplace, renameat2):
21189         * lib/tempname.c (try_nocreate):
21190         If errno == EOVERFLOW then the directory entry exists, so do not
21191         act as if it does not exist.
21193         backup-rename: new module
21194         It is like backupfile, except it avoids some race conditions,
21195         and it does not output to stderr or exit.
21196         * MODULES.html.sh: Add backup-rename.
21197         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
21198         * modules/backup-rename: New files.
21199         * lib/backupfile.c: Turn this into an internals file, which
21200         contains code common to backupfile and backup_rename.  Include
21201         backupfile-internal.h instead of backupfile.h.  Do not include
21202         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
21203         renameat2.h and fcntl.h.
21204         (BACKUP_NOMEM): New constant.
21205         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
21206         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
21207         (backupfile_internal): Rename from find_backup_file_name.
21208         Support new arg RENAME.
21209         (backup_args, backup_types, get_version, xget_version):
21210         Move to lib/backup-find.c.
21211         * lib/backupfile.h (backup_file_rename): New decl.
21212         * modules/backupfile (Files): Add lib/backup-internal.h,
21213         lib/backup-find.c.
21214         (Depends-on): Add dirfd, fcntl, renameat2.
21215         (lib_SOURCES): Add backup-find.c.
21217         renameat2: port better to older Solaris
21218         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
21219         Add goto to use a label, to silence picky compilers.
21221         fts-tests: port to gcc -Wwrite-strings
21222         * tests/test-fts.c (base, base_d): New static vars.
21223         (argv, remove_tree, main): Use them.
21225 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21227         relocatable-lib{,-lgpl}: improve documentation
21228         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
21229         Various other updates.
21231 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
21232             Bruno Haible  <bruno@clisp.org>
21234         relocatable-lib{,-lgpl}: add Valgrind suppressions
21235         * lib/relocatable.valgrind: New file.
21236         * modules/relocatable-lib (Files): Add relocatable.valgrind.
21237         * modules/relocatable-lib-lgpl: Likewise.
21239 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21241         relocatable: Make the license on the sources the GPL.
21242         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
21243         LGPL, which was a special case so that the relocatable source files
21244         could be used without gnulib-tool, to GPL. They can still be used under
21245         the LGPL, using the --lgpl option to gnulib-tool.
21247 2017-07-30  Bruno Haible  <bruno@clisp.org>
21249         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
21250         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
21251         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
21252         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
21253         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
21255 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21257         faccessat: document AT_SYMLINK_NOFOLLOW issue
21258         * doc/posix-functions/faccessat.texi: Modernize platform list.
21259         Document AT_SYMLINK_NOFOLLOW limitation.
21261         renameat2: port to Solaris 10
21262         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
21263         with AT_SYMLINK_NOFOLLOW (which is not portable).
21264         (renameat): Undef before using, to avoid endless recursion when
21265         the replacement renameat calls renameat2 which calls the
21266         replacement renameat.
21267         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
21268         * modules/renameat2 (Depends-on): Remove faccessat.
21269         * modules/renameat-tests (test_renameat_LDADD):
21270         * modules/renameat2-tests (test_renameat2_LDADD):
21271         Remove $(LIB_EACCESS).
21273         renameat2: new module
21274         Although the Linux syscall renameat2 is not in glibc (yet?), it is
21275         useful to have access to its RENAME_NOREPLACE flag.
21276         * MODULES.html.sh (func_all_modules): Add renameat2.
21277         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
21278         * modules/renameat2-tests, tests/test-renameat2.c: New files.
21279         * lib/renameat.c (renameat): Move most of the implementation
21280         to renameat2, and just call renameat2.
21281         * modules/renameat (Files): Remove lib/at-func2.c.
21282         (Depends-on): Depend only on renameat2.
21283         (Include): Remove <fcntl.h>.
21284         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
21285         since renameat (via renameat2) might use faccessat.
21287 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
21289         vc-list-files: Adjust the script to support git worktrees
21290         * build-aux/vc-list-files: Require existence, not directory.
21292 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21294         doc: bring MODULES.html.sh up to date
21295         Somehow a few months ago we stopped updating MODULES.html.sh.
21296         I don’t recall explicitly deciding this, so I updated it now.
21297         Alternatively I suppose we could remove it.
21298         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
21299         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
21300         truncate, utime, utime-h, windows-stat-inodes,
21301         windows-stat-override, windows-stat-timespec, year2038.  Sort.
21303 2017-07-26  Jim Meyering  <meyering@fb.com>
21305         fprintftime: fix build-break caused by recent renaming
21306         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
21307         "strftime.c".
21308         * modules/fprintftime: Depend directly on nstrftime.
21310 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21312         regex: work with GCC7's -Werror=implicit-fallthrough=
21313         * lib/regex_internal.h (FALLTHROUGH): New macro.
21314         * lib/regcomp.c (peek_token_bracket, parse_expression):
21315         * lib/regexec.c (check_node_accept): Use it.
21317 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21319         fts: simplify fts_build
21320         * lib/fts.c (fts_build): Simplify, and be lazier about
21321         calling leaf_optimization.
21323         fts: three levels of leaf optimization
21324         * lib/fts.c (enum leaf_optimization): New type with three values.
21325         (S_MAGIC_AFS): New macro.  Sort them.
21326         (leaf_optimization): Rename from leaf_optimization_applies, and
21327         return enum leaf_optimization instead of bool.  All uses changed.
21328         Add cases for unknown type and for AFS.
21329         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
21331         fts: cache dirent_inode_sort_may_be_useful too
21332         * lib/fts.c (struct dev_type): New struct.
21333         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
21334         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
21335         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
21336         Now takes FTSENT const *, not int.  All uses changed.  Use
21337         filesystem_type to cache.
21338         (link_count_optimize_ok): Remove.  Caller changed to use
21339         leaf_optimization_applies, which now uses shared cache.
21341         fts: introduce MIN_DIR_NLINK
21342         * lib/fts.c (MIN_DIR_NLINK): New constant.
21343         Use it instead of 2, whenever we are talking about link counts.
21345         fts: nlink_t signedness fixups
21346         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
21347         so that root need not be a special case later.
21348         (fts_read): Remove now-redundant test for fts_level.
21349         Do not assume that nlink_t is signed.
21350         (fts_build): Remove useless decrement of nlinks.
21351         (fts_stat): Avoid unlikely signed integer overflow later, if
21352         nlink_t is signed.
21354         fts-tests: new module
21355         * modules/fts-tests, tests/test-fts.c: New files.
21357 2017-07-23  Bruno Haible  <bruno@clisp.org>
21359         Rename module 'strftime' to 'nstrftime'.
21360         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
21361         * lib/nstrftime.c: Renamed from lib/strftime.c.
21362         * modules/nstrftime: Renamed from modules/strftime.
21363         (Files, Makefile.am): Update.
21364         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
21365         Fix comment.
21366         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
21367         (Files, Makefile.am): Update.
21368         * modules/strftime: New file, an obsolete indirection.
21369         * doc/posix-functions/strftime.texi: Update reference.
21370         * config/srclist.txt: Update info.
21371         * NEWS: Mention the change.
21373 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
21375         malloca: Silence a warning from clang's memory sanitizer.
21376         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
21377         (freea): Use it.
21379 2017-07-18  Bruno Haible  <bruno@clisp.org>
21381         host-cpu-c-abi: Fix detection of MIPS ABI.
21382         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
21383         ABI, not the CPU instruction set.
21385 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21387         explicit_bzero: new module
21388         The explicit_bzero function has been added to glibc.
21389         This module is intended to supports its use in GNU programs.
21390         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
21391         * m4/explicit_bzero.m4, modules/explicit_bzero:
21392         New files.
21393         * doc/gnulib.texi (Glibc string.h): Link to new doc.
21394         * lib/string.in.h (explicit_bzero): Declare.
21395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
21396         * modules/string (string.h): Substitute its vars.
21398 2017-07-16  Bruno Haible  <bruno@clisp.org>
21400         threadlib: Support static linking.
21401         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
21402         set gl_cv_have_weak to 'no'.
21404 2017-07-16  Bruno Haible  <bruno@clisp.org>
21406         unicase/locale-language: Fix link dependencies.
21407         * modules/unicase/locale-language (Link): New section.
21408         * modules/unicase/locale-language-tests (Makefile.am): Link
21409         test-locale-language program with $(LIBTHREAD).
21411 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21413         sys_socket: Add support for OpenVMS.
21414         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
21415         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
21417 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21419         sys_resource: Add support for OpenVMS.
21420         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
21421         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
21423 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21424             Bruno Haible  <bruno@clisp.org>
21426         math: Add support for OpenVMS.
21427         * lib/math.in.h [__VMS]: Include <fp.h>.
21428         * doc/posix-headers/math.texi: Mention OpenVMS issues.
21430 2017-07-15  Bruno Haible  <bruno@clisp.org>
21432         getdtablesize: Add minimal support for OpenVMS.
21433         Reported by John E. Malmberg <wb8tyw@qsl.net>.
21434         * modules/getdtablesize (Description): Fix.
21435         * lib/getdtablesize.c: Fix comment.
21436         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
21437         getdtablesize() function, even though the test fails.
21438         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
21439         limitation on OpenVMS.
21441 2017-07-13  Bruno Haible  <bruno@clisp.org>
21443         Revisit cross-compilation guesses.
21444         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
21446 2017-07-13  Bruno Haible  <bruno@clisp.org>
21448         Improve cross-compilation guesses for native Windows.
21449         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
21450         Windows.
21451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
21452         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
21453         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21454         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
21455         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
21456         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
21457         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
21458         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21459         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21460         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
21461         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21462         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
21463         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
21464         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
21465         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
21466         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21467         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
21468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21469         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21470         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21471         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
21472         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21473         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
21474         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
21475         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
21476         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
21477         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21478         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21479         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21480         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
21481         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21482         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
21483         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21484         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
21485         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
21486         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
21487         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21488         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21489         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21490         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21491         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21492         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21493         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
21494         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
21495         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
21496         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
21497         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
21498         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
21499         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
21500         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
21501         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
21502         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
21503         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
21504         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
21505         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
21506         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
21507         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
21508         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21509         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
21510         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
21511         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21512         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
21513         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
21514         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21515         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21517         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
21518         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21519         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
21520         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
21521         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
21522         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
21523         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21524         * m4/regex.m4 (gl_REGEX): Likewise.
21525         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21526         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
21527         gl_FUNC_REMAINDERF_WORKS): Likewise.
21528         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
21529         gl_FUNC_REMAINDERL_WORKS): Likewise.
21530         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21531         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21532         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21533         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21534         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21535         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
21536         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21537         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21538         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
21539         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21540         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
21541         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
21542         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21543         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21544         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21545         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21546         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21547         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21548         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21549         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21550         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21551         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21552         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21553         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21554         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21555         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21556         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21557         Likewise.
21558         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21559         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
21560         Windows. Enable also on Autoconf 2.70.
21561         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21562         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21563         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21564         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
21565         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21566         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
21567         for native Windows.
21568         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21569         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
21571 2017-07-13  Bruno Haible  <bruno@clisp.org>
21573         Improve cross-compilation guesses for native Windows.
21574         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
21575         Windows.
21576         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
21577         memchr.m4.
21578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21580 2017-07-13  Bruno Haible  <bruno@clisp.org>
21582         Improve cross-compilation guesses for native Windows.
21583         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
21584         native Windows.
21585         (gl_FUNC_FFLUSH): Update accordingly.
21586         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
21587         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21589 2017-07-11  Bruno Haible  <bruno@clisp.org>
21591         More systematic m4 quoting and indentation.
21592         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
21593         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21594         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21595         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21596         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21597         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
21598         gl_WINSIZE_IN_PTEM): Likewise.
21599         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
21600         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21601         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21602         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
21603         Correct indentation.
21604         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
21605         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21606         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
21607         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21608         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21609         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21611 2017-07-10  Bruno Haible  <bruno@clisp.org>
21613         round, roundf: Avoid compiler warning in configure test.
21614         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
21615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21617 2017-07-10  Bruno Haible  <bruno@clisp.org>
21619         getlogin tests: Avoid #ifdefs when sharing code between modules.
21620         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
21621         * modules/getlogin-tests (Files): Likewise. Remove
21622         tests/test-getlogin_r.c.
21623         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
21624         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
21625         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
21626         getlogin().
21628 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21630         getlogin: don’t assume one name per uid
21631         Problem reported by Wolfgang F. Muthmann (Bug#27640).
21632         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
21633         (ttyname): Remove test.
21634         * modules/getlogin_r-tests (ttyname): Remove test.
21635         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
21636         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
21637         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
21638         getlogin rather than getlogin_r.  This avoids code duplication.
21639         (main): Use isatty and fstat rather than ttyname and stat.
21640         Use getpwnam instead of getpwuid, to be portable to test platforms
21641         that have multiple login names for the same uid.
21643 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
21644             Bruno Haible  <bruno@clisp.org>
21646         glob: Fix more memory leaks.
21647         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
21648         returning.
21649         Reported by Tim Rühsen.
21651 2017-07-10  Bruno Haible  <bruno@clisp.org>
21653         Make sure $host and $host_os are defined when used.
21654         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
21655         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
21656         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
21657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21658         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21659         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21660         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21661         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
21662         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21663         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21664         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
21665         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
21666         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21667         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
21668         m4_ifdef block.
21670 2017-07-09  Bruno Haible  <bruno@clisp.org>
21672         *printf: Fix cross-compilation guess for Solaris.
21673         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
21674         2010-12-21.
21676 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21677             Bruno Haible  <bruno@clisp.org>
21679         vasnprintf: port to macOS 10.13
21680         Problem reported by comex in:
21681         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
21682         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
21684 2017-07-06  Bruno Haible  <bruno@clisp.org>
21686         imaxdiv tests: Fix logic.
21687         * tests/test-imaxdiv.c (main): Use == instead of =.
21688         Reported by Coverity.
21690 2017-07-06  Bruno Haible  <bruno@clisp.org>
21692         uninorm/filter: Fix use-after-free bug.
21693         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
21694         sortbuf == filter->sortbuf invariant.
21695         Reported by Coverity.
21697 2017-07-06  Bruno Haible  <bruno@clisp.org>
21699         glob: Fix more memory leaks.
21700         * lib/glob.c (glob): Free dirname before returning.
21701         Reported by Coverity and Tim Rühsen.
21703 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21705         parse-datetime: fix uninit var bug
21706         Reported by Bruno Haible in:
21707         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
21708         * lib/parse-datetime.y (parse_datetime2): Do not use
21709         uninitialized.
21711 2017-07-05  Bruno Haible  <bruno@clisp.org>
21713         doc: Update for MSVC 14.
21714         * doc/posix-headers/*.texi: Add info about MSVC 14.
21715         * doc/posix-functions/*.texi: Likewise.
21716         * doc/pastposix-functions/*.texi: Likewise.
21717         * doc/glibc-headers/*.texi: Likewise.
21718         * doc/glibc-functions/*.texi: Likewise.
21720 2017-07-05  Bruno Haible  <bruno@clisp.org>
21722         sched: Fix build failure on native Windows (regression from 2017-06-19).
21723         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
21725 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
21727         stdioext: Port to OpenVMS.
21728         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
21729         * lib/fpending.c (fpending): Remove non-working VMS specific code.
21730         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
21731         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
21732         * lib/fpurge.c (fpurge): Likewise.
21733         * lib/freadable.c (freadable): Likewise.
21734         * lib/freadahead.c (freadahead): Likewise.
21735         * lib/freading.c (freading): Likewise.
21736         * lib/freadptr.c (freadptr): Likewise.
21737         * lib/freadseek.c (freadseek): Likewise.
21738         * lib/fseeko.c (fseeko): Likewise.
21739         * lib/fseterr.c (fseterr): Likewise.
21740         * lib/fwritable.c (fwriteable): Likewise.
21741         * lib/fwriting.c (fwriting): Likewise.
21743 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
21745         glob: Declare variables at the very start of their scope.
21746         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
21747         its separate scope, so the functions will compile on Haiku.
21749 2017-07-01  Bruno Haible  <bruno@clisp.org>
21751         logbl: Work around a glibc bug on PowerPC64LE.
21752         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
21753         numbers.
21754         * doc/posix-functions/logbl.texi: Update.
21756 2017-06-29  Bruno Haible  <bruno@clisp.org>
21758         stat, fstat: Compile stat-w32.c only on platforms that need it.
21759         Suggested by Paul Eggert.
21760         * modules/stat (configure.ac): Request stat-w32.o only on native
21761         Windows.
21762         * modules/fstat (configure.ac): Likewise.
21764 2017-06-25  Bruno Haible  <bruno@clisp.org>
21766         stat: Improve last change.
21767         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
21769 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
21771         stat: port to xlc 12.01
21772         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
21773         12.01 complains "Compilation unit is empty."
21775 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
21777         xalloc-oversized: port to icc
21778         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
21779         __builtin_mul_overflow if ICC is defined, as this results in
21780         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
21781         20170213.
21783 2017-06-19  Bruno Haible  <bruno@clisp.org>
21785         classpath: Avoid including config.h twice, as it produces warnings.
21786         Reported by John E. Malmberg <wb8tyw@gmail.com>.
21787         * lib/classpath.h: Conditionalize the include of config.h.
21789 2017-06-19  Bruno Haible  <bruno@clisp.org>
21790             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
21792         sched: Fix compilation failure on OpenVMS.
21793         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
21794         test whether <pthread.h> exists and defines struct sched_param.
21795         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
21797 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
21799         diffseq: port to GCC 7 with --enable-gcc-warnings
21800         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
21801         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
21802         not complain about big_snake being defined but not used.
21804 2017-06-15  Bruno Haible  <bruno@clisp.org>
21806         gettext-h: Update theoretical condition for use of variable size arrays.
21807         Reported by Paul Eggert.
21808         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
21809         to include the theoretical condition for availability of variable size
21810         arrays, if we could trust the value of __STDC_VERSION__.
21812 2017-06-12  Bruno Haible  <bruno@clisp.org>
21814         Relicense some modules under LGPLv2+.
21815         Daiki Ueno's approval is in
21816         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
21817         * modules/uniwidth/base (License): Change to LGPLv2+.
21818         * modules/uniwidth/width (License): Likewise.
21820 2017-06-11  Bruno Haible  <bruno@clisp.org>
21822         localename: Fix test failure on DragonFly BSD.
21823         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
21824         like FreeBSD.
21826 2017-06-11  Bruno Haible  <bruno@clisp.org>
21828         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
21829         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
21830         * lib/float.in.h: Likewise.
21831         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
21833 2017-06-11  Bruno Haible  <bruno@clisp.org>
21835         gnulib-tool: Clean up after autotools.
21836         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
21837         useless directory left over by the Autotools.
21839 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
21841         getopt-posix: port to glibc 2.25.90
21842         Problem reported by Daniel P. Berrange in:
21843         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
21844         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
21845         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
21846         #undef if __GETOPT_PREFIX is defined.
21848 2017-06-11  Bruno Haible  <bruno@clisp.org>
21850         strtod-obsolete: Fix license.
21851         * modules/strtod-obsolete (License): Change to LGPL.
21853 2017-06-10  Jim Meyering  <meyering@fb.com>
21855         maint: update to work with GCC7's -Werror=implicit-fallthrough=
21856         * lib/savewd.c (FALLTHROUGH): Define.
21857         (savewd_save, savewd_restore): Use this, rather than a comment,
21858         whenever one switch case falls through into the next.
21860 2017-06-08  Bruno Haible  <bruno@clisp.org>
21862         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
21863         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
21864         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
21865         case.
21867 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
21869         doc: remove robots, add prereqs
21870         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
21871         builds.  Simon's robot site does not seem to be up, so remove
21872         mentions of it for now.
21874 2017-06-08  Bruno Haible  <bruno@clisp.org>
21876         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
21877         * gnulib-tool (func_symlink_target): New function, extracted from
21878         func_symlink.
21879         (func_symlink, func_symlink_if_changed): Use it.
21881 2017-06-08  Bruno Haible  <bruno@clisp.org>
21883         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
21884         * gnulib-tool (func_ln_s): Determine cp_src correctly.
21886 2017-06-07  Bruno Haible  <bruno@clisp.org>
21888         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
21889         Reported by John E. Malmberg <wb8tyw@gmail.com> in
21890         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
21891         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
21892         override, pass 2 arguments to getcwd, not 3.
21894 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
21896         same-inode: port better to VMS 8.2 and later
21897         Problem reported by John E. Malmberg in:
21898         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
21899         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
21900         Use the usual POSIX definition.
21901         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
21903 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
21905         error: fix POSIX violation for va_end
21906         Problem reported by Bruno Haible in:
21907         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
21908         * lib/error.c (error_tail): Do not call va_end here.
21909         (error, error_at_line): Call it here instead.
21911 2017-05-28  Bruno Haible  <bruno@clisp.org>
21913         c-strtod: Make it usable in C++ mode.
21914         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
21916 2017-05-25  Jim Meyering  <meyering@fb.com>
21918         quotearg: fix compilation failure due to FALLTHROUGH misuse
21919         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
21920         macro back to /* fall through */ comment.  The macro can apply only
21921         to a following case statement.  Reported by Assaf Gordon.
21923 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
21925         intprops: port to recent icc
21926         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
21927         but does not support __builtin_add_overflow etc.
21928         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
21929         Define to 0.
21931 2017-05-23  Karl Berry  <karl@freefriends.org>
21933         * config/srclist.txt (iconv.m4): sync broken, comment out
21934         until (hopefully) the next gettext release.
21936 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
21938         Remove repeated words in comments.
21940 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
21942         fallthrough: reinstate a FALLTHROUGH instance in quotearg
21943         quotearg.c: Reinstate this instance which is significant
21944         when the if branch is not taken.
21946 2017-05-21  Bruno Haible  <bruno@clisp.org>
21948         gnulib-tool: Add options to create hard links.
21949         * gnulib-tool (func_usage): Document options --hardlink,
21950         --local-hardlink, --more-hardlinks.
21951         (func_symlink): Renamed from func_ln.
21952         (func_symlink_if_changed): Renamed from func_ln_if_changed.
21953         (func_hardlink): New function.
21954         (copymode, lcopymode): New variables.
21955         (symbolic, lsymbolic): Remove variables.
21956         (Options): Implement options --hardlink, --local-hardlink,
21957         --more-hardlinks.
21958         (func_should_link): Renamed from func_should_symlink. Set copyaction.
21959         (func_add_file, func_update_file): Update invocation of
21960         func_should_link. Invoke func_hardlink when appropriate.
21961         (func_import): Update comments.
21962         (func_create_testdir): Update invocation of func_should_link. Invoke
21963         func_hardlink when appropriate.
21964         Finally, invoke 'git update-index --refresh' to mitigate the effects of
21965         the hard links on git.
21967 2017-05-20  Bruno Haible  <bruno@clisp.org>
21969         argp: Simplify bit manipulation.
21970         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
21971         on a signed integer type.
21973 2017-05-20  Bruno Haible  <bruno@clisp.org>
21975         Avoid wrong configure results with gcc -fsanitize=address.
21976         This completes the work done on 2016-02-06 on this topic.
21977         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
21978         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
21979         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21980         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21981         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
21982         returning.
21983         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21984         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
21985         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21986         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21987         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21988         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21989         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
21990         free allocated memory before returning.
21991         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21992         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
21993         objects before returning.
21994         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
21995         returning.
21997 2017-05-20  Bruno Haible  <bruno@clisp.org>
21999         gnulib-tool: Don't create hard links between gnulib and its testdirs.
22000         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
22002 2017-05-20  Bruno Haible  <bruno@clisp.org>
22004         argp, tsearch tests: Fix file list.
22005         * modules/argp-tests (Files): Add tests/macros.h.
22006         * modules/tsearch-tests (Files): Likewise.
22008 2017-05-20  Bruno Haible  <bruno@clisp.org>
22010         getopt-posix tests: Remove redundant include.
22011         * tests/test-getopt.h: Don't include "macros.h". It's already included
22012         by tests/test-getopt-main.h.
22014 2017-05-19  Jim Meyering  <meyering@fb.com>
22016         dfa: two small simplifications
22017         * lib/dfa.c (build_state): Avoid repeating longer expressions.
22019 2017-05-18  Jim Meyering  <meyering@fb.com>
22021         fallthrough: update for GCC 7/8
22022         * lib/quotearg.c (FALLTHROUGH): New macro.
22023         Use it whenever one switch case falls through into the next,
22024         replacing "/* Fall through */" comments.  This exposed one
22025         instance of an unwarranted "fall through" comment: unwarranted
22026         because it preceded a "goto" label not a case statement.
22027         * lib/freopen-safer.c (freopen_safer): Likewise.
22028         * lib/fts.c (leaf_optimization_applies): Likewise.
22029         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22030         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
22031         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
22032         tests/macros.h for the definition.
22033         * tests/test-argp.c (group1_parser): Likewise.
22034         * tests/test-getopt.h (getopt_loop): Likewise.
22036 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22038         argp: fix shift bug
22039         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
22040         behavior on shift overflow, caught by gcc -fsanitize=undefined.
22042         argp: fix pointer-subtraction bug
22043         * lib/argp-help.c (hol_append): Don’t subtract pointers to
22044         different arrays, as this can run afoul of -fcheck-pointer-bounds.
22045         See the thread containing Bruno Haible’s report in:
22046         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
22048 2017-05-19  Bruno Haible  <bruno@clisp.org>
22050         printf-posix tests: Avoid test failure with "gcc --coverage".
22051         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22052         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
22053         than 5000000.
22054         * tests/test-fprintf-posix2.c (main): Likewise.
22056 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22058         closeout: don’t close stderr when sanitizing
22059         * NEWS: Document this.
22060         * lib/closeout.c (__has_feature): New macro, if not already defined.
22061         (SANITIZE_ADDRESS): New constant.
22062         (close_stdout): Don’t close stderr if sanitizing addresses.
22064 2017-05-19  Bruno Haible  <bruno@clisp.org>
22066         get-rusage-data tests: Avoid failure on Linux/glibc.
22067         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
22068         on glibc systems.
22070 2017-05-18  Bruno Haible  <bruno@clisp.org>
22072         localename: Include necessary header files on Cygwin.
22073         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
22074         where NL_LOCALE_NAME is defined.
22076 2017-05-18  Bruno Haible  <bruno@clisp.org>
22078         gettext: Update macros from gettext git.
22079         * m4/intldir.m4: Require Autoconf >= 2.60.
22080         * m4/progtest.m4: Fix typos in copyright notice.
22082 2017-05-18  Bruno Haible  <bruno@clisp.org>
22084         copy-file tests: Fix link error (regression from 2017-05-01).
22085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22086         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
22087         $(LIB_CLOCK_GETTIME).
22089 2017-05-18  Bruno Haible  <bruno@clisp.org>
22091         unicase/special-casing: Fix incompatibility with gperf-3.0.4
22092         (regression from 2017-02-13).
22093         * lib/unicase/special-casing.in.h: Renamed from
22094         lib/unicase/special-casing.h.
22095         * modules/unicase/special-casing (Files): Add
22096         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
22097         (Makefile.am): Add rule for generating unicase/special-casing.h.
22098         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
22099         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
22100         not "special-casing.h".
22101         * lib/unicase/u*.c: Likewise.
22103 2017-05-17  Bruno Haible  <bruno@clisp.org>
22105         README: Don't ask people to read a TeXinfo file.
22106         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22107         * README: Tell people how to read the HTML formatted manual.
22109 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22111         parse-datetime: Fix memleak
22112         * lib/parse-datetime.y (parse_datetime2): Cleanup on
22113         localtime_rz() failure.
22115 2017-05-16  Bruno Haible  <bruno@clisp.org>
22117         javacomp: Fix handle leak.
22118         Found by Coverity.
22119         * lib/javacomp.c (get_classfile_version): Close fd before returning.
22121 2017-05-16  Bruno Haible  <bruno@clisp.org>
22123         relocate: Make it easier to reclaim allocated memory.
22124         * lib/relocatable.h (relocate2): New declaration/macro.
22125         * lib/relocatable.c (relocate2): New function.
22126         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
22127         relocate2 function.
22128         * lib/localcharset.c (relocate2): Define fallback.
22129         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
22130         allocated memory.
22131         * lib/javaversion.c (relocate2): Define fallback.
22132         (javaexec_version): Invoke relocate2 instead of relocate. Free the
22133         allocated memory.
22135 2017-05-16  Bruno Haible  <bruno@clisp.org>
22137         relocate: Simplify EMX specific code.
22138         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
22139         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
22141 2017-05-16  Bruno Haible  <bruno@clisp.org>
22143         sigpipe tests: Fix file list.
22144         * modules/sigpipe-tests (Files): Add tests/macros.h.
22146 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22148         manywarnings: update for GCC 7
22149         * build-aux/gcc-warning.spec:
22150         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22151         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
22152         requires a non-comment fallthrough attribute.  This is a bit
22153         cleaner than the comment versions.
22154         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
22155         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
22156         Use it whenever one switch case falls through into the next.
22157         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
22158         Use FALLTHROUGH macro.
22160 2017-05-15  Bruno Haible  <bruno@clisp.org>
22162         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
22163         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
22164         @ALLOCA@, not @LTALLOCA@.
22166 2017-05-15  Bruno Haible  <bruno@clisp.org>
22168         sys_select: Avoid "was expanded before it was required" warning.
22169         * modules/sys_select (configure.ac): Require, not invoke,
22170         gl_HEADER_SYS_SELECT.
22172 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22174         gnulib-tool: improve GNU Make debugging
22175         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
22176         Report autoconf diagnostics when it fails, in the output makefile.
22178 2017-05-14  Bruno Haible  <bruno@clisp.org>
22180         stat-time tests: Improve comment.
22181         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
22183 2017-05-14  Bruno Haible  <bruno@clisp.org>
22185         same-inode: Adapt for windows-stat-inodes.
22186         * lib/same-inode.h: Include <sys/types.h>.
22187         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
22188         * modules/same-inode (Depends-on): Add sys_types.
22190 2017-05-14  Bruno Haible  <bruno@clisp.org>
22192         windows-stat-inodes: New module.
22193         * m4/windows-stat-inodes.m4: New file.
22194         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
22195         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
22196         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
22197         (_GL_WINDOWS_STAT_INODES): New macro.
22198         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
22199         (GetFileInformationByHandleExFunc): New variable.
22200         (initialize): Initialize it.
22201         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
22202         st_ino appropriately.
22203         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
22204         a fallback, because it does not provide st_dev and st_ino values.
22205         * modules/fstat (Depends-on): Add 'verify'.
22206         * modules/windows-stat-inodes: New file.
22207         * doc/windows-stat-inodes.texi: New file.
22208         * doc/gnulib.texi: Include it.
22209         * doc/posix-headers/sys_stat.texi: Mention the new module.
22211 2017-05-14  Bruno Haible  <bruno@clisp.org>
22213         stat-time tests: Workaround for native Windows.
22214         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
22215         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
22216         New variables.
22217         (initialize_filenames): New function.
22218         (main): Invoke it.
22219         (cleanup, prepare_test): Update.
22221 2017-05-14  Bruno Haible  <bruno@clisp.org>
22223         stat-time: Adapt for windows-stat-timespec.
22224         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
22225         entire st_ctim field.
22227 2017-05-13  Jim Meyering  <meyering@fb.com>
22229         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
22230         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
22231         file that uses the assume macro, claiming that verify.h is unused.
22233 2017-05-13  Bruno Haible  <bruno@clisp.org>
22235         Use symbolic values for _WIN32_WINNT.
22236         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
22237         * lib/sethostname.c (_WIN32_WINNT): Likewise.
22239 2017-05-13  Bruno Haible  <bruno@clisp.org>
22241         year2038: New module.
22242         * m4/year2038.m4: New file.
22243         * modules/year2038: New file.
22244         * doc/year2038.texi: New file.
22245         * doc/gnulib.texi: Include it.
22247 2017-05-13  Bruno Haible  <bruno@clisp.org>
22249         largefile: Simplify.
22250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
22251         of _GL_WINDOWS_64_BIT_ST_SIZE.
22253 2017-05-13  Bruno Haible  <bruno@clisp.org>
22255         largefile: Improve and document.
22256         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
22257         the mingw headers already define 'stat' appropriately.
22258         * modules/largefile (Description): Clarify.
22259         * doc/largefile.texi: New file.
22260         * doc/gnulib.texi: Include it.
22261         * doc/posix-headers/sys_types.texi: Update.
22263 2017-05-13  Bruno Haible  <bruno@clisp.org>
22265         truncate: New module.
22266         * lib/unistd.in.h (truncate): New declaration.
22267         * lib/truncate.c: New file.
22268         * m4/truncate.m4: New file.
22269         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
22270         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
22271         REPLACE_TRUNCATE.
22272         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
22273         HAVE_TRUNCATE, REPLACE_TRUNCATE.
22274         * modules/truncate: New file.
22275         * tests/test-unistd-c++.cc (truncate): Test signature.
22276         * doc/posix-functions/truncate.texi: Mention the new module.
22278         * tests/test-truncate.c: New file.
22279         * modules/truncate-tests: New file.
22281 2017-05-13  Bruno Haible  <bruno@clisp.org>
22283         windows-stat-timespec: New module.
22284         * modules/windows-stat-timespec: New file.
22285         * m4/windows-stat-timespec.m4: New file.
22286         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
22287         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
22288         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
22289         fields st_atim, st_mtim, st_ctim.
22290         (st_atime, st_mtime, st_ctime): Define as macros.
22291         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
22292         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
22293         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
22294         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
22295         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
22296         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
22297         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22298         FILETIME to 'struct timespec', not 'time_t'.
22299         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22300         FILETIME to 'struct timespec', not 'time_t'.
22301         * lib/stat-time.h (STAT_TIMESPEC): Define also if
22302         _GL_WINDOWS_STAT_TIMESPEC.
22303         * doc/windows-stat-timespec.texi: New file.
22304         * doc/gnulib.texi: Include it.
22306 2017-05-13  Bruno Haible  <bruno@clisp.org>
22308         windows-stat-override: New module.
22309         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
22310         definition. Define GNULIB_defined_struct_stat.
22311         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
22312         link error if this symbol is used and the corresponding module is not
22313         in use.
22314         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
22315         GNULIB_OVERRIDES_STRUCT_STAT.
22316         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22317         GNULIB_OVERRIDES_STRUCT_STAT.
22318         * modules/sys_stat (Makefile.am): Substitute
22319         GNULIB_OVERRIDES_STRUCT_STAT.
22320         * modules/windows-stat-override: New file.
22322 2017-05-13  Bruno Haible  <bruno@clisp.org>
22324         fstat: Fix module dependency conditions.
22325         * modules/fstat (Depends-on): Fix typo.
22327 2017-05-13  Bruno Haible  <bruno@clisp.org>
22329         stat, fstat: Complete removal of old native Windows code.
22330         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
22331         * lib/fstat.c: Likewise.
22332         * lib/stat-w32.c: Likewise.
22334 2017-05-13  Bruno Haible  <bruno@clisp.org>
22336         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
22337         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
22339 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22341         getopt-posix: port to mingw
22342         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
22343         Problem reported by Daniel P. Berrage in:
22344         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
22346 2017-05-11  Bruno Haible  <bruno@clisp.org>
22348         gettimeofday: Increase precision on mingw.
22349         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
22350         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
22351         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
22352         GetSystemTimePreciseAsFileTime based implementation always.
22353         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
22354         mingw.
22356 2017-05-11  Bruno Haible  <bruno@clisp.org>
22358         poll: Fix confusion between SOCKETs and FDs on native Windows.
22359         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
22360         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
22362 2017-05-11  Bruno Haible  <bruno@clisp.org>
22364         doc: Clarify doc about socket functions on native Windows.
22365         This reworks doc that was added on 2008-09-29.
22366         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
22367         clearer wording.
22368         * doc/posix-functions/accept.texi: Use clearer wording.
22369         * doc/posix-functions/bind.texi: Likewise.
22370         * doc/posix-functions/connect.texi: Likewise.
22371         * doc/posix-functions/getpeername.texi: Likewise.
22372         * doc/posix-functions/getsockname.texi: Likewise.
22373         * doc/posix-functions/getsockopt.texi: Likewise.
22374         * doc/posix-functions/ioctl.texi: Likewise.
22375         * doc/posix-functions/listen.texi: Likewise.
22376         * doc/posix-functions/recv.texi: Likewise.
22377         * doc/posix-functions/recvfrom.texi: Likewise.
22378         * doc/posix-functions/send.texi: Likewise.
22379         * doc/posix-functions/sendto.texi: Likewise.
22380         * doc/posix-functions/setsockopt.texi: Likewise.
22381         * doc/posix-functions/shutdown.texi: Likewise.
22382         * doc/posix-functions/socket.texi: Likewise.
22384 2017-05-10  Bruno Haible  <bruno@clisp.org>
22386         poll: Fix link error on native Windows.
22387         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
22389 2017-05-10  Bruno Haible  <bruno@clisp.org>
22391         time: Fix missing initialization of HAVE_TIMEZONE_T.
22392         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
22393         here...
22394         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
22395         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
22396         gl_HEADER_SYS_TIME_H_DEFAULTS.
22397         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
22398         (configure.ac): Remove useless quoting.
22400 2017-05-10  Bruno Haible  <bruno@clisp.org>
22402         Implement a way to opt out from MSVC support, part 2.
22403         * modules/msvc-inval (Include): Document recommended idiom.
22404         * modules/msvc-nothrow (Include): Likewise.
22406         Implement a way to opt out from MSVC support.
22407         This is useful for Emacs.
22408         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
22409         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
22410         * lib/error.c: Likewise.
22411         * lib/fcntl.c: Likewise.
22412         * lib/flock.c: Likewise.
22413         * lib/fstat.c: Likewise.
22414         * lib/fsync.c: Likewise.
22415         * lib/ioctl.c: Likewise.
22416         * lib/isapipe.c: Likewise.
22417         * lib/lseek.c: Likewise.
22418         * lib/nonblocking.c: Likewise.
22419         * lib/poll.c: Likewise.
22420         * lib/select.c: Likewise.
22421         * lib/sockets.h: Likewise.
22422         * lib/sockets.c: Likewise.
22423         * lib/stdio-read.c: Likewise.
22424         * lib/stdio-write.c: Likewise.
22425         * lib/utimens.c: Likewise.
22426         * lib/w32sock.h: Likewise.
22427         * lib/w32spawn.h: Likewise.
22428         * tests/test-cloexec.c: Likewise.
22429         * tests/test-dup-safer.c: Likewise.
22430         * tests/test-dup2.c: Likewise.
22431         * tests/test-dup3.c: Likewise.
22432         * tests/test-fcntl.c: Likewise.
22433         * tests/test-pipe.c: Likewise.
22434         * tests/test-pipe2.c: Likewise.
22435         * lib/ftruncate.c: Likewise.
22436         (chsize_nothrow): Renamed from chsize.
22437         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
22438         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22439         * lib/close.c: Likewise.
22440         * lib/dup.c: Likewise.
22441         * lib/fclose.c: Likewise.
22442         * lib/raise.c: Likewise.
22443         * tests/test-fgetc.c: Likewise.
22444         * tests/test-fputc.c: Likewise.
22445         * tests/test-fread.c: Likewise.
22446         * tests/test-fwrite.c: Likewise.
22447         * lib/getdtablesize.c: Likewise.
22448         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
22449         * lib/isatty.c: Don't include msvc-inval.h if
22450         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22451         Include <io.h> as an alternative to msvc-nothrow.h.
22452         * lib/read.c: Likewise.
22453         * lib/write.c: Likewise.
22454         * lib/dup2.c: Likewise.
22455         (dup2_nothrow): New function.
22456         (ms_windows_dup2): Use it.
22457         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
22458         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
22459         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22460         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
22461         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
22462         * m4/read.m4 (gl_FUNC_READ): Likewise.
22463         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
22464         * doc/windows-without-msvc.texi: New file.
22465         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
22466         section.
22468 2017-05-10  Bruno Haible  <bruno@clisp.org>
22470         wait-process: Adjust native Windows support.
22471         * lib/wait-process.c: Use the usual condition for recognizing a native
22472         Windows platform.
22474 2017-05-10  Bruno Haible  <bruno@clisp.org>
22476         doc: New chapter "Native Windows Support".
22477         * doc/gnulib.texi (Native Windows Support): New chapter.
22478         * doc/windows-libtool.texi: Small wording changes.
22479         * doc/windows-sockets.texi: Small wording and formatting changes.
22481 2017-05-10  Bruno Haible  <bruno@clisp.org>
22483         doc: Move section "Library version handling".
22484         * doc/gnulib.texi: Move section "Library version handling"
22485         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
22487 2017-05-10  Bruno Haible  <bruno@clisp.org>
22489         doc: Move section "Running self-tests under valgrind".
22490         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
22491         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
22493 2017-05-10  Bruno Haible  <bruno@clisp.org>
22495         doc: New chapter "Build Infrastructure Modules".
22496         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
22498 2017-05-10  Bruno Haible  <bruno@clisp.org>
22500         Prepare for reordering sections in the manual.
22501         * doc/gnulib.texi: Move several sections to separate files. Include
22502         these files.
22503         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
22504         * doc/obsolete.texi: Likewise.
22505         * doc/extra-tests.texi: Likewise.
22506         * doc/transversal.texi: Likewise.
22507         * doc/namespace.texi: Likewise.
22508         * doc/check-version.texi: Likewise.
22509         * doc/windows-sockets.texi: Likewise.
22510         * doc/windows-libtool.texi: Likewise.
22511         * doc/licenses-texi.texi: Likewise.
22512         * doc/build-automation.texi: Likewise.
22513         * doc/c-locale.texi: Likewise.
22515 2017-05-10  Bruno Haible  <bruno@clisp.org>
22517         Fix instructions how to update manual on www.gnu.org.
22518         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
22520 2017-05-09  Bruno Haible  <bruno@clisp.org>
22522         tzset: Expand comment about TZ problem on native Windows.
22523         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
22524         Paul Eggert.
22525         * lib/ctime.c (rpl_ctime): Likewise.
22526         * lib/localtime.c (rpl_localtime): Likewise.
22527         * lib/mktime.c (mktime): Likewise.
22528         * lib/strftime-fixes.c (rpl_strftime): Likewise.
22529         * lib/wcsftime.c (rpl_wcsftime): Likewise.
22531 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22533         intprops: don’t depend on ‘verify’
22534         Problem reported by Ævar Arnfjörð Bjarmason in:
22535         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
22536         * lib/intprops.h: Do not include verify.h, and move compile-time
22537         checks from here ...
22538         * tests/test-intprops.c (main): ... to here, if they’re not here
22539         already.  Check widths of other standard integer types.
22540         * modules/intprops (Depends-on): Remove ‘verify’.
22542 2017-05-07  Bruno Haible  <bruno@clisp.org>
22544         utimens: On native Windows, support 100ns resolution also if fd < 0.
22545         * lib/utime.in.h: Include <time.h>.
22546         (_gl_utimens_windows): New declaration.
22547         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
22548         (utime): Invoke it.
22549         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
22550         instead of utime.
22551         * modules/utime (Depends-on): Add 'time'.
22553 2017-05-07  Bruno Haible  <bruno@clisp.org>
22555         utimens: Improve error code on native Windows.
22556         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
22557         error code EACCES, not EINVAL.
22559 2017-05-07  Bruno Haible  <bruno@clisp.org>
22561         utime: Handle more Windows error codes.
22562         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
22563         Based on explanations by Billy O'Neal.
22565 2017-05-05  Bruno Haible  <bruno@clisp.org>
22567         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
22568         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
22569         union.
22570         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
22571         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
22572         value of cipher->IV.
22574 2017-05-05  Bruno Haible  <bruno@clisp.org>
22576         wctype-h-c++-tests: Update.
22577         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
22579 2017-05-05  Bruno Haible  <bruno@clisp.org>
22581         wchar-c++-tests: Update.
22582         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
22584 2017-05-05  Bruno Haible  <bruno@clisp.org>
22586         utime-h-c++-tests: New module.
22587         * tests/test-utime-h-c++.cc: New file.
22588         (utime): Declare, missing since 2017-04-30.
22589         * modules/utime-h-c++-tests: New file.
22591 2017-05-05  Bruno Haible  <bruno@clisp.org>
22593         unistd-c++-tests: Update.
22594         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
22595         (read): Declare, missing since 2011-04-15.
22596         (sethostname): Declare, missing since 2011-12-03.
22598 2017-05-05  Bruno Haible  <bruno@clisp.org>
22600         time-c++-tests: Update.
22601         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
22602         (localtime, gmtime): Declare, missing since 2017-04-30.
22603         (ctime): Declare, missing since 2017-04-30.
22604         (strftime): Declare, missing since 2017-04-30.
22605         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
22606         2015-07-24.
22608 2017-05-05  Bruno Haible  <bruno@clisp.org>
22610         sys_resource-c++-tests: New module.
22611         * tests/test-sys_resource-c++.cc: New file.
22612         (getrusage): Declare, missing since 2012-04-13.
22613         * modules/sys_resource-c++-tests: New file.
22615 2017-05-05  Bruno Haible  <bruno@clisp.org>
22617         strings-c++-tests: New module.
22618         * tests/test-strings-c++.cc: New file.
22619         (ffs): Declare, missing since 2011-07-12.
22620         * modules/strings-c++-tests: New file.
22622 2017-05-05  Bruno Haible  <bruno@clisp.org>
22624         string-c++-tests: Update.
22625         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
22626         (ffsll): Declare, missing since 2011-07-15.
22628 2017-05-05  Bruno Haible  <bruno@clisp.org>
22630         stdlib-c++-tests: Update.
22631         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
22632         2011-10-18.
22633         (ptsname_r): Declare, missing since 2011-11-07.
22634         (qsort_r): Declare, missing since 2014-08-29.
22635         (random, srandom, initstate, setstate): Declare, missing since
22636         2012-01-14.
22637         (secure_getenv): Declare, missing since 2013-02-05.
22639 2017-05-05  Bruno Haible  <bruno@clisp.org>
22641         stdio-c++-tests: Update.
22642         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
22644 2017-05-05  Bruno Haible  <bruno@clisp.org>
22646         signal-h-c++-tests: Update.
22647         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
22649 2017-05-05  Bruno Haible  <bruno@clisp.org>
22651         math-c++-tests: Update.
22652         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
22653         (fma): Declare, missing since 2011-10-17.
22654         (fmal): Declare, missing since 2011-10-17.
22656 2017-05-05  Bruno Haible  <bruno@clisp.org>
22658         locale-c++-tests: Update.
22659         * tests/test-locale-c++.cc (localeconv): Declare, missing since
22660         2012-03-25.
22662 2017-05-05  Bruno Haible  <bruno@clisp.org>
22664         inttypes-c++-tests: New module.
22665         * tests/test-inttypes-c++.cc: New file.
22666         (strtoimax): Declare, missing since 2012-01-05.
22667         (strtoumax): Declare, missing since 2012-01-05.
22668         * modules/inttypes-c++-tests: New file.
22670 2017-05-05  Bruno Haible  <bruno@clisp.org>
22672         dirent-c++-tests: Update.
22673         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
22674         (rewinddir): Declare, missing since 2011-09-13.
22675         (dirfd): Declare, missing since 2010-03-08.
22677 2017-05-04  Bruno Haible  <bruno@clisp.org>
22679         argp: Fix mistake in 2017-04-23 commit.
22680         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
22681         assume that strerror_r returns 'int', not 'char *'.
22683 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
22685         argp: Fix typo.
22686         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
22688 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22690         utimens: port to Emacs + MS-Windows
22691         Skip the new MS-Windows-specific code if Emacs.
22692         * lib/utimens.c [EMACS_CONFIGUATION]:
22693         Avoid new MS-Windows-specific code.
22694         (USE_SETFILETIME): New macro.
22695         (fdutimens): Use it.
22697 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22699         tzset: update doc for TZ problems on MS-Windows
22700         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
22701         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
22702         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
22703         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
22704         * doc/posix-functions/wcsftime.texi:
22705         Mention some issues with TZ under MS-Windows.
22707 2017-05-01  Bruno Haible  <bruno@clisp.org>
22709         copy-file: Fix build error on mingw.
22710         * modules/copy-file (Depends-on): Add 'close'.
22712 2017-05-01  Bruno Haible  <bruno@clisp.org>
22714         tzset: Work around TZ problem on native Windows.
22715         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
22716         Windows, set REPLACE_TZSET to 1.
22717         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
22718         invoke '_tzset' instead of 'tzset'.
22719         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
22721         * modules/time_rz (Depends-on): Add tzset.
22722         * lib/time_rz.c (tzset): Remove fallback definition.
22723         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
22725 2017-05-01  Bruno Haible  <bruno@clisp.org>
22727         mktime: Fix dependencies.
22728         * modules/mktime (Depends-on): Add 'time'.
22730 2017-05-01  Bruno Haible  <bruno@clisp.org>
22732         New module 'localtime-buffer', split off from module 'gettimeofday'.
22733         * lib/localtime-buffer.h: New file.
22734         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
22735         * lib/time.in.h (tzset): New declaration.
22736         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
22737         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
22738         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
22739         moved to lib/localtime-buffer.c or lib/tzset.c.
22740         * m4/localtime-buffer.m4: New file.
22741         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
22742         HAVE_TZSET, REPLACE_TZSET.
22743         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
22744         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
22745         gl_LOCALTIME_BUFFER_NEEDED.
22746         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
22747         since 2007-01-18.
22748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
22749         tzset.
22750         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
22751         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
22752         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
22753         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
22754         * modules/localtime-buffer: New file.
22755         * modules/time (Depends-on): Remove 'gettimeofday'.
22756         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
22757         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
22758         * modules/tzset (Description): Enable hyperlink to POSIX spec.
22759         (Files): Add lib/tzset.c.
22760         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
22761         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
22762         gl_TIME_MODULE_INDICATOR.
22763         * modules/gettimeofday (Depends-on): Add localtime-buffer.
22765 2017-05-01  Bruno Haible  <bruno@clisp.org>
22767         copy-file: Preserve sub-second time stamps.
22768         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
22769         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
22770         transport the time stamps from the original file to the destination
22771         file.
22772         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
22773         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
22774         utime-h.
22776 2017-05-01  Bruno Haible  <bruno@clisp.org>
22778         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
22779         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
22780         also on MSVC.
22781         Reported by Eli Zaretskii <eliz@gnu.org>.
22783 2017-05-01  Bruno Haible  <bruno@clisp.org>
22785         wchar: Fix compilation error with the original mingw.org mingw.
22786         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
22787         <stddef.h> instead.
22788         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
22789         gl_WCTYPE_H.
22790         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
22791         gl_TYPE_WINT_T_PREREQ instead.
22792         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
22793         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
22794         Reported by Eli Zaretskii <eliz@gnu.org>.
22796 2017-04-30  Bruno Haible  <bruno@clisp.org>
22798         utimecmp: Add support for native Windows.
22799         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
22801 2017-04-30  Bruno Haible  <bruno@clisp.org>
22803         utimens: Add support for native Windows.
22804         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
22805         (fdutimens): Provide a native Windows implementation, like utime.c with
22806         added tv_nsec support.
22807         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
22808         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
22810 2017-04-30  Bruno Haible  <bruno@clisp.org>
22812         wcsftime: New module.
22813         * lib/wchar.in.h (wcsftime): New declaration.
22814         * lib/wcsftime.c: New file.
22815         * m4/wcsftime.m4: New file.
22816         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
22817         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
22818         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22819         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
22820         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22821         * modules/wcsftime: New file.
22822         * doc/posix-functions/wcsftime.texi: Mention the new module.
22824 2017-04-30  Bruno Haible  <bruno@clisp.org>
22826         strftime-fixes: New module.
22827         * lib/time.in.h (strftime): New declaration.
22828         * lib/strftime-fixes.c: New file.
22829         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
22830         (gl_FUNC_STRFTIME): Remove macro.
22831         * m4/strftime-fixes.m4: New file.
22832         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
22833         REPLACE_STRFTIME.
22834         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
22835         REPLACE_STRFTIME.
22836         * modules/strftime-fixes: New file.
22837         * doc/posix-functions/strftime.texi: Mention the new module.
22839 2017-04-30  Bruno Haible  <bruno@clisp.org>
22841         mktime: Work around TZ problem on native Windows.
22842         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
22843         from the native Windows workaround.
22844         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
22845         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
22846         'guessing no'.
22847         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
22848         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
22849         NEED_MKTIME_WINDOWS.
22850         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
22851         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
22852         NEED_MKTIME_INTERNAL.
22853         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
22854         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
22855         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
22856         not REPLACE_MKTIME.
22857         * doc/posix-functions/mktime.texi: Mention the native Windows
22858         workaround.
22860 2017-04-30  Bruno Haible  <bruno@clisp.org>
22862         localtime: New module.
22863         * lib/time.in.h (localtime): Declare also if requested by module
22864         'localtime'.
22865         * lib/localtime.c: New file.
22866         * m4/localtime.m4: New file.
22867         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
22868         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
22869         * modules/localtime: New file.
22870         * doc/posix-functions/localtime.texi: Mention the new module.
22872 2017-04-30  Bruno Haible  <bruno@clisp.org>
22874         ctime: New module.
22875         * lib/time.in.h (ctime): New declaration.
22876         * lib/ctime.c: New file.
22877         * m4/ctime.m4: New file.
22878         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
22879         REPLACE_CTIME.
22880         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
22881         * modules/ctime: New file.
22882         * doc/posix-functions/ctime.texi: Mention the new module.
22884 2017-04-30  Bruno Haible  <bruno@clisp.org>
22886         gettimeofday: Provide higher resolution on native Windows.
22887         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
22888         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
22889         (initialize): Initialize it.
22890         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
22891         'struct timeval'. Don't use _ftime().
22892         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
22893         <sys/timeb.h> and _ftime.
22895 2017-04-30  Bruno Haible  <bruno@clisp.org>
22897         Document the problem with the Cygwin environment variable TZ.
22898         * doc/posix-functions/tzset.texi: Add note about TZ.
22899         * doc/posix-functions/ctime.texi: Likewise.
22900         * doc/posix-functions/localtime.texi: Likewise.
22901         * doc/posix-functions/mktime.texi: Likewise.
22902         * doc/posix-functions/strftime.texi: Likewise.
22903         * doc/posix-functions/wcsftime.texi: Likewise.
22904         * doc/pastposix-functions/ftime.texi: Likewise.
22906 2017-04-30  Bruno Haible  <bruno@clisp.org>
22908         utime-tests: New module.
22909         * tests/test-utime.c: New file, based on tests/test-utimens.h.
22910         * tests/test-utimens-common.h: Include <sys/stat.h>.
22911         * modules/utime-tests: New file.
22913 2017-04-29  Bruno Haible  <bruno@clisp.org>
22915         utime: New module.
22916         * lib/utime.in.h: Add comment for snippets.
22917         (utime): New declaration.
22918         * lib/utime.c: New file.
22919         * m4/utime.m4: New file.
22920         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
22921         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
22922         REPLACE_UTIME.
22923         * modules/utime-h (Depends-on): Add snippets.
22924         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
22925         Insert snippets.
22926         * modules/utime: New file.
22927         * doc/posix-functions/utime.texi: Mention the new module.
22929 2017-04-29  Bruno Haible  <bruno@clisp.org>
22931         utime-h: Modernize handling of 'struct utimbuf'.
22932         * lib/utime.in.h: Include next <utime.h> if it exists.
22933         (utimbuf): Define to _utimbuf on native Windows.
22934         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
22935         Set UTIME_H on native Windows.
22936         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
22937         * modules/utime-h (Depends-on): Add include_next.
22938         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
22939         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
22941         * lib/utimens.c (utimbuf): Remove fallback definition.
22942         * m4/utimens.m4 (gl_UTIMENS): Don't require
22943         gl_CHECK_TYPE_STRUCT_UTIMBUF.
22944         * m4/utimbuf.m4: Remove file.
22945         * modules/utimens (Files): Remove m4/utimbuf.m4.
22947 2017-04-29  Bruno Haible  <bruno@clisp.org>
22949         Make use of module 'utime-h'.
22950         * modules/copy-file (Depends-on): Add utime-h.
22951         * lib/copy-file.c: Assume that <utime.h> exists.
22952         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
22954         * modules/utimens (Depends-on): Add utime-h.
22955         * lib/utimens.c: Assume that <utime.h> exists.
22957 2017-04-29  Bruno Haible  <bruno@clisp.org>
22959         utime-h: New module.
22960         * m4/utime_h.m4: New file.
22961         * lib/utime.in.h: New file.
22962         * modules/utime-h: New file.
22963         * doc/posix-headers/utime.texi: Mention the new module.
22965         * tests/test-utime-h.c: New file.
22966         * modules/utime-h-tests: New file.
22968 2017-04-30  Bruno Haible  <bruno@clisp.org>
22970         Fix a few typos.
22971         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
22972         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
22973         * doc/posix-functions/fstat.texi: Fix a plural typo.
22974         * doc/posix-functions/stat.texi: Likewise.
22975         * m4/include_next.m4: Update comments.
22977 2017-04-29  Bruno Haible  <bruno@clisp.org>
22979         error: Fix mistake in 2017-04-23 commit.
22980         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
22981         assume that strerror_r returns 'int', not 'char *'.
22983 2017-04-29  Bruno Haible  <bruno@clisp.org>
22985         stat: Fix time_t values and other problems on native Windows platforms.
22986         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
22987         implementations of stat().
22988         * lib/stat.c: Include filename.h instead of dosname.h. Include
22989         malloca.h, stat-w32.h.
22990         (is_unc_root): New function.
22991         (rpl_stat): New implementation for native Windows. Remove
22992         REPLACE_FUNC_STAT_DIR code.
22993         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
22994         Don't define REPLACE_FUNC_STAT_DIR.
22995         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
22996         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
22997         (Depends-on): Remove dosname. Add filename, malloca.
22998         (configure.ac): Also compile lib/stat-w32.c.
23000 2017-04-29  Bruno Haible  <bruno@clisp.org>
23002         fstat: Fix time_t values on native Windows platforms.
23003         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
23004         * lib/stat-w32.h: New file.
23005         * lib/stat-w32.c: New file.
23006         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
23007         stat-w32.h instead.
23008         (fstat_nothrow): Remove function.
23009         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
23010         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
23011         always.
23012         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
23013         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23014         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
23015         (configure.ac): Also compile lib/stat-w32.c.
23017 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23019         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
23020         Problem reported by Assaf Gordon and Gavin Smith in:
23021         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
23022         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
23023         #define this, too.
23025 2017-04-29  Bruno Haible  <bruno@clisp.org>
23027         strerror_r-posix: Fixes for MSVC 14.
23028         * lib/strerror_r.c: Include <stdarg.h>.
23029         (strerror_r): Provide error messages for errno values 100...140.
23030         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
23032 2017-04-28  Bruno Haible  <bruno@clisp.org>
23034         noreturn: New module.
23035         * lib/noreturn.h: New file.
23036         * modules/noreturn: New file.
23037         * tests/test-noreturn.c: New file.
23038         * modules/noreturn-tests: New file.
23039         * tests/test-noreturn-c++.cc: New file.
23040         * modules/noreturn-c++-tests: New file.
23042 2017-04-27  Bruno Haible  <bruno@clisp.org>
23044         wctype-h: Fix compilation error with the original mingw.org mingw.
23045         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
23046         HAVE_CRTDEFS_H.
23047         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
23048         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23049         <stddef.h> instead.
23050         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
23052 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23054         nap.h: Fix compilation on non windows platforms
23055         * tests/nap.h: Move misplaced endif.
23057 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23058         and Paul Eggert  <eggert@cs.ucla.edu>
23060         time_rz: fix heap buffer overflow vulnerability
23061         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
23062         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
23063         whether there is enough buffer space available, thus avoiding
23064         the problematic promotion of signed to unsigned causing an invalid
23065         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
23066         the start of the buffer.
23067         * tests/test-parse-datetime.c (main): Add a test case written by
23068         Paul Eggert, which overwrites enough of the heap so that
23069         standard glibc will fail with "free(): invalid pointer"
23070         without the patch applied.
23072 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
23074         xalloc: add missing integer overflow check
23075         * lib/xalloc.h (x2nrealloc): Also check for multiplication
23076         overflow when P is null.
23078 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23080         parse-datetime: make it standalone
23081         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
23082         (_GL_ATTRIBUTE_FORMAT): New macro.
23083         These are needed to get './gnulib-tool --test parse-datetime' to work.
23085 2017-04-23  Bruno Haible  <bruno@clisp.org>
23087         nap.h: Port to native Windows.
23088         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
23089         use nap_fd instead. On native Windows, close and reopen nap_fd.
23090         (nap_works): Don't compare the ctimes, because on native Windows, these
23091         are the creation times.
23092         (nap): Update.
23094 2017-04-23  Bruno Haible  <bruno@clisp.org>
23096         nap.h: Fix logic.
23097         * tests/nap.h (nap): Avoid signed integer overflow in loop.
23099 2017-04-23  Bruno Haible  <bruno@clisp.org>
23101         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23102         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
23103         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
23104         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
23105         * lib/argp-help.c (__argp_failure): Likewise.
23107 2017-04-23  Bruno Haible  <bruno@clisp.org>
23109         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
23110         * m4/strerror_r.m4: Revert changes since 2016-10-16.
23111         * lib/strerror_r.c: Likewise.
23113 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23115         Target a C99 subset, not a C89 subset
23116         For many years Gnulib has targeted C89 and has resisted using C99
23117         features, as some Gnulib-using programs still wanted to target
23118         C89.  As this no longer seems to be the case, relax the porting
23119         requirements to allow some C99 features.  This is merely a change
23120         to the documentation, to give other Gnulib developers a chance to
23121         weigh in on the topic.
23122         * doc/extern-inline.texi (extern inline):
23123         * doc/gnulib-readme.texi (Portability guidelines):
23124         * doc/gnulib-tool.texi (Initial import):
23125         * doc/gnulib.texi (Header files):
23126         Modernize to talk about C99 and C11 instead of C89 and C99.
23127         * doc/gnulib-readme.texi (Portability guidelines):
23128         Now a section, not merely a subsection, so that it
23129         can be split up.  Modernize a bit.
23130         (C language versions, C99 features assumed)
23131         (C99 features avoided):
23132         New sections.
23134 2017-04-23  Bruno Haible  <bruno@clisp.org>
23136         doc: New section "Modules that modify the way other modules work".
23137         * doc/gnulib.texi (Modules that modify the way other modules work): New
23138         section.
23140 2017-04-23  Bruno Haible  <bruno@clisp.org>
23142         stat-time: Update comments.
23143         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
23144         * tests/test-utimens-common.h: Add reference regarding st_ctime on
23145         Windows.
23147 2017-04-01  Bruno Haible  <bruno@clisp.org>
23149         glob: Fix more memory leaks.
23150         * lib/glob.c (glob): Free allocated memory before returning.
23151         Reported by Coverity via Tim Rühsen.
23153 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23155         poll: improve fast check for out-of-range NFD
23156         * lib/poll.c: Do not include intprops.h.
23157         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
23158         * modules/poll (Depends-on): Remove intprops.
23160         ftoastr: cite a newer paper
23161         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
23162         instead of Loitsch 2010.
23164 2017-04-22  Bruno Haible  <bruno@clisp.org>
23166         poll: Enable argument check also in the Windows implementation.
23167         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
23168         Reported by Paul Eggert.
23170 2017-04-22  Bruno Haible  <bruno@clisp.org>
23172         getlogin_r: Work around bug in Mac OS X 10.12.
23173         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
23174         bug.
23175         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
23176         given size minus 1, call getlogin_r a second time, on a larger buffer.
23177         * modules/getlogin_r (Depends-on): Add malloca.
23178         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
23180 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23182         parse-datetime: fix %z and prefer signed int
23183         %z problem reported by Pádraig Brady in:
23184         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
23185         While fixing it, I decided to prefer signed ints to size_t, as
23186         they are less error-prone (e.g., ubsan catches overflow).
23187         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
23188         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
23189         counts, since signed integers make for better debugging.
23190         (date): Don’t assume %z works in printf formats.
23191         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
23192         sizes of buffers known to be small, e.g., because we’re using snprintf.
23193         (parse_datetime2): Simplify call to debug_mktime_not_ok.
23195 2017-04-22  Bruno Haible  <bruno@clisp.org>
23197         *printf: Work around rounding bug on Mac OS X.
23198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
23199         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
23200         Mac OS X and FreeBSD.
23201         * doc/glibc-functions/*printf.texi: Likewise.
23203 2017-04-22  Bruno Haible  <bruno@clisp.org>
23205         vasnprintf tests: Avoid warnings.
23206         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
23207         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
23208         test.
23210 2017-04-22  Bruno Haible  <bruno@clisp.org>
23212         sys_file tests: Avoid warning.
23213         * tests/test-sys_file.c (main): Add a default clause to the switch
23214         statement.
23216 2017-04-22  Bruno Haible  <bruno@clisp.org>
23218         sethostname: Update doc.
23219         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
23220         Mac OS X.
23222 2017-04-22  Bruno Haible  <bruno@clisp.org>
23224         quotearg tests: Avoid warnings.
23225         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
23226         false.
23228 2017-04-22  Bruno Haible  <bruno@clisp.org>
23230         poll: Enable argument check.
23231         * lib/poll.c: Include intprops.h.
23232         (poll): Check value of nfd correctly.
23233         * modules/poll (Depends-on): Add intprops.
23235 2017-04-22  Bruno Haible  <bruno@clisp.org>
23237         get-rusage-data: Avoid warnings on Mac OS X.
23238         * lib/get-rusage-data.c: On Mac OS X, don't define
23239         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
23240         (get_rusage_data) [Mac OS X]: Just return 0.
23242 2017-04-22  Bruno Haible  <bruno@clisp.org>
23244         xbinary-io: Fix build error.
23245         * modules/xbinary-io (Depends-on): Add gettext-h.
23246         * lib/xbinary-io.c: Include gettext.h and define _().
23247         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
23248         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
23250 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23252         parse-datetime: overflow and debug cleanups
23253         This long patch was triggered by this bug report from Ruediger Meier:
23254         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
23255         I fixed the bug he noted, then found some others nearby, and then
23256         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
23257         up some of the code to follow GNU standards while I was at it.
23258         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
23259         use c_isdigit.
23260         (EPOCH_YEAR): Remove; unused.
23261         (TM_YEAR_BASE): Now an enum rather than a macro.
23262         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
23263         time zone offset, since timezones now are in terms of seconds and
23264         not minutes.
23265         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
23266         appropriate.  Verify that intmax_t is wide enough.
23267         (time_overflow, time_zone_str): New functions, used to deal
23268         more reliably with overflow.
23269         (dbg_printf): Add printf attribute, to help catch integer width errors.
23270         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
23271         (%union, to_hour, yylex, parse_datetime2):
23272         Use intmax_t instead of long int and/or long_time_t.
23273         All uses changed.
23274         (DBGBUFSIZE): Move earlier.
23275         (relative_time, set_hhmmss, parser_control):
23276         Just use int for nanoseconds and for time zones; that’s wide enough.
23277         (parser_control): Use bool for members like year_seen that can
23278         be booleans instead of counters.  All uses changed.
23279         Remove debug_default_input_timezone; no longer needed.
23280         All uses removed.
23281         (apply_relative_time): Return a bool overflow flag.
23282         All uses changed to check for overflow.
23283         (apply_relative_time, zone, date, relunit, relunit_snumber)
23284         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
23285         Check for integer overflow portably.
23286         (str_days): Use just int for N, as it’s wide enough.
23287         Prefer 2D char arrays to arrays of char * when it looks like
23288         2D is a win on typical platforms.
23289         Prefer snprintf to strncpy/strncat, for simplicity;
23290         all buffers are smaller than INT_MAX so this is safe.
23291         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
23292         (debug_print_current_time): Don’t assume tv_nsec is of type long,
23293         as this is not true on x32.  Output "." before any nanoseconds.
23294         (debug_print_current_time, parse_datetime2):
23295         Output local zones using a more-consistent format.
23296         (debug_print_current_time, date, parse_datetime2):
23297         (main) [TEST]:
23298         Don’t assume time_t is the same width as long.
23299         (print_rel_part): New function, replacing ...
23300         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
23301         (debug_print_relative_time): Use bool for boolean.
23302         (local_zone): dsts_seen now counts only tDST instances.
23303         (date): Fix printf of size_t to use %z.  Do not assume numeric
23304         tokens have negative values merely because the context suggests
23305         a syntax with "-" separating tokens.
23306         (time_zone_hhmm): Return bool success indicator, which checks for
23307         overflow.  Store result into PC->time_zone instead.  All callers
23308         changed.
23309         (tm_year_str): New function.  Return a bool success indicator and
23310         store the result into a buffer.  All callers changed.  Output the
23311         numerically correct string even if adding 1900 to the year would
23312         overflow.
23313         (to_tm_year): New function, replacing the old to_year.  All
23314         callers changed.
23315         (tm_diff): Sync with glibc.
23316         (lookup_word): Use to_uchar instead of doing it by hand.
23317         (TZBUFSIZE): Now local to the only function that needs it.
23318         (debug_strfdatetime): Simplify now that time zones are int seconds.
23319         (debug_strfdate): Work even if tm_year + 1900 would overflow.
23320         (get_effective_timezone): Remove.  All uses removed.
23321         (parse_datetime2): Use fprintf in pieces instead of snprintfing
23322         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
23323         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
23324         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
23325         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
23326         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
23327         * modules/parse-datetime (Depends-on): Add inttypes.
23329 2017-04-21  Bruno Haible  <bruno@clisp.org>
23331         gettext-h: Avoid -Wundef warning.
23332         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
23333         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
23334         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
23336 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
23338         error: Avoid "function declaration isn't a prototype" warning.
23339         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
23341 2017-04-21  Bruno Haible  <bruno@clisp.org>
23343         vasnprintf: Fix for MSVC 14.
23344         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
23345         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
23346         of !HAVE_SNPRINTF_RETVAL_C99.
23348 2017-04-21  Bruno Haible  <bruno@clisp.org>
23350         mbrtowc tests: Fix test failures on MSVC 14.
23351         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
23352         behaviour for invalid input.
23354 2017-04-21  Bruno Haible  <bruno@clisp.org>
23356         mbsinit: Fix for MSVC 14.
23357         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
23358         implementation that is in sync with mbrtowc.c. On other platforms, use
23359         an adequate ad-hoc implementation.
23361 2017-04-21  Bruno Haible  <bruno@clisp.org>
23363         Fix test-mbrtowc5.sh failure on native Windows.
23364         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
23365         "C".
23367 2017-04-21  Bruno Haible  <bruno@clisp.org>
23369         Avoid accidental use of native Windows APIs on Cygwin.
23370         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
23371         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
23372         * lib/localename.c (WINDOWS_NATIVE): Likewise.
23374 2017-04-20  Bruno Haible  <bruno@clisp.org>
23376         Remove red warnings from the generated MODULES.html.
23377         * modules/fcntl (Description): Disambiguate function references.
23378         * modules/getcwd-lgpl (Description): Likewise.
23379         * modules/hostent (Description): Likewise.
23380         * modules/servent (Description): Likewise.
23381         * modules/tempname (Description): Likewise.
23383 2017-04-20  Bruno Haible  <bruno@clisp.org>
23385         verify tests: Fix spurious failure with parallel make.
23386         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
23387         EXTRA_PROGRAMS.
23388         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
23389         * tests/test-verify-try.c: New file.
23390         * modules/verify-tests (Files): Add it.
23391         (EXTRA_PROGRAMS): Add test-verify-try.
23392         (MOSTLYCLEANFILES): Update accordingly.
23393         Reported by Adam James Stewart <ajstewart@anl.gov>.
23395 2017-04-18  Bruno Haible  <bruno@clisp.org>
23397         vma-iter: Fix compilation error on Solaris 7.
23398         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
23399         like on IRIX, OSF/1.
23400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23402 2017-04-18  Bruno Haible  <bruno@clisp.org>
23404         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
23405         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
23406         included.
23407         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
23408         <sys/procfs.h>.
23409         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
23410         <sys/procfs.h> cannot be included.
23411         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23413 2017-04-18  Bruno Haible  <bruno@clisp.org>
23415         getopt-gnu: Add comments.
23416         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
23417         * modules/getopt-gnu (configure.ac): Likewise.
23419 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
23421         regex: port better to Solaris 10
23422         Solaris 10 <locale.h> includes <libintl.h>, which #defines
23423         gettext, and this causes a double #define.
23424         Problem reported by Gavin Smith in:
23425         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
23426         * lib/regex_internal.h (gettext): #undef before #defining.
23428 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23430         intprops: improve comments
23431         * lib/intprops.h: Improve and shorten commentary.
23432         For the record, if we ever run into a pedantic compiler that
23433         behaves differently from GCC when converting an out-of-range value
23434         to a signed integer, we can work around the problem with something
23435         like the following code, where UCT is the signed counterpart of T
23436         (UCT is sometimes narrower than UT) and all callers are changed
23437         accordingly:
23438         #if __SUNPRO_C <= 0x5120
23439         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23440            ((t) ((ut) (a) op (ut) (b)))
23441         #else
23442         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23443            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
23444             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
23445                + TYPE_MINIMUM (t)) \
23446             : (t) (uct) ((ut) (a) op (ut) (b)))
23447         #endif
23449 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23451         intprops: try to avoid tickling similar bugs
23452         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
23453         needs to be the same width as T; it can be wider.
23454         Change callers so that UT is at least as wide as unsigned int,
23455         as I suspect that this is less likely to run into compiler bugs.
23457         intprops: port to Oracle Studio 12.3 x86
23458         Problem reported by Gavin Smith in:
23459         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
23460         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23461         Convert unsigned to signed via the usual rather than the standard way,
23462         to avoid a compiler bug in Oracle Studio 12.3 x86.
23464 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23466         getopt: prefer - to _ in new file names
23467         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
23468         * lib/getopt-core.h: Rename from lib/getopt_core.h.
23469         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
23470         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
23471         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
23472         All uses changed.
23474         getopt: port recent getopt changes to macOS
23475         Problem reported by Harald Maier (Bug#26398).
23476         The macOS C compiler uses __nonnull for its own purposes and that
23477         clashes with glibc's __nonnull.
23478         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
23479         * lib/getopt_cdefs.in.h (__nonnull): Remove.
23480         * lib/getopt_core.h (getopt):
23481         * lib/getopt_ext.h (getopt_long, getopt_long_only):
23482         Use _GL_ARG_NONNULL, not __nonnull.
23483         * lib/unistd.in.h: Move snippet hooks to before where the getopt
23484         .h files are included, so that _GL_ARG_NONNULL is defined in time.
23485         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
23486         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
23488 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23490         getopt-gnu: omit some duplicate code
23491         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
23492         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
23493         gnulib-tool already does this.
23494         * modules/getopt-gnu (configure.ac): Omit code duplicated from
23495         getopt-posix, which we depend on.
23497         getopt-posix: use angle-bracket include
23498         * lib/getopt1.c: Include <config.h>, not "config.h".
23500 2017-04-06  Zack Weinberg  <zackw@panix.com>
23502         getopt: annotate files with relationship to glibc
23504         As the final act in this patchset, adjust the message at the top of
23505         each file to indicate which files are synced with glibc.  (This has
23506         already been done for most of the headers.)
23508         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
23509         Mention in top-of-file boilerplate that these files are shared
23510         between glibc and gnulib.
23513         getopt: split up getopt.in.h and eliminate __need_getopt
23515         Over in glibc, all of the __need macros are being phased out in favor
23516         of small headers that declare only the necessary components, as this
23517         is much simpler and less prone to bugs.  As getopt is shared with
23518         glibc, gnulib needs to do the same for __need_getopt.
23520         __need_getopt is misnamed; what it really means is "we want only the
23521         getopt features specified in POSIX, not the GNU extensions".  glibc
23522         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
23523         these files can be shared verbatim with gnulib.  The portability
23524         wrapper, on the other hand, they have renounced altogether; glibc's
23525         getopt.h will no longer be shared with gnulib at all.  In exchange,
23526         certain glibc-specific quirks (having to do with __posix_getopt) no
23527         longer need appear in gnulib's headers at all.
23529         This patch merges getopt_core.h and getopt_ext.h from glibc, and
23530         splits up the current gnulib-side portability wrapper into three
23531         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
23532         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
23533         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
23534         unistd.in.h just use them.  All new files are clearly marked with
23535         whether they are shared with glibc.
23537         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
23538         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
23539         with glibc, and ...
23540         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
23541         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
23542         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
23543         instead of defining __need_getopt and including the full getopt.h.
23545         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
23546         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
23547         * modules/getopt-posix (Files): Add new headers and sort list.
23548         (Depends-on): No longer need snippet/arg-nonnull.
23549         (Makefile.am): Generate getopt_cdefs.h.
23552         getopt: better handling of ambiguous options
23554         glibc's getopt uses alloca to construct a linked list of possibilities
23555         for an "ambiguous" long option.  In gnulib, malloc should be used
23556         instead.  Providing for both cases complicates things a fair bit.
23558         This patch rewrites ambiguous-option handling to use a boolean vector
23559         instead of a linked list.  There is then only one allocation that
23560         might need freeing; in glibc it can honor __libc_use_alloca as usual,
23561         and in gnulib we define __libc_use_alloca to always be false, so we
23562         don't need ifdefs in the middle of the function.  This should also be
23563         slightly more efficient in the normal case of long options being fully
23564         spelled out -- I think most people aren't even aware they _can_
23565         sometimes abbreviate long options.
23567         One interesting consequence is that the list of possibilities is now
23568         printed in exactly the order they appear in the list of long options,
23569         instead of the first possibility being shuffled to the end.
23571         (The patch looks bigger than it really is because there's a fair bit
23572         of reindentation and code rearrangement.)
23574         * lib/getopt.c: When used standalone, define __libc_use_alloca
23575         as always false and alloca to abort if called.
23576         (process_long_option): Rewrite handling of ambiguous long options
23577         to use a single boolean vector, not a linked list; use
23578         __libc_use_alloca to decide whether to allocate this using alloca.
23581         getopt: refactor long-option handling
23583         There were two copies of the bulk of the code to handle long options.
23584         Now there is only one.
23586         This change temporarily removes the logic to avoid using alloca when
23587         standalone; the next patch in the series will restore it.
23589         * lib/getopt.c (process_long_option): New function split out
23590         from _getopt_internal_r.
23591         (_getopt_internal_r): Replace both copies of the long-option
23592         processing code with calls to process_long_option.
23595         getopt: tidy up _getopt_initialize a bit
23597         _getopt_data.__posixly_correct is completely redundant to
23598         _getopt_data.__ordering, and some work that logically belongs in
23599         _getopt_initialize was being done by _getopt_internal_r, making the
23600         code harder to understand.
23602         As a side effect, getenv will no longer be called if the first
23603         character of the options string is '+' or '-', which is probably a
23604         Good Thing.  (Perhaps we should have a flag character that
23605         specifically asks for the permutation behavior?)
23607         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
23608         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
23609         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
23612         getopt: merge from glibc: repetition reduction
23614         The definitions of the entry point functions 'getopt' and
23615         '__posix_getopt' can be made substantially less repetitive with a
23616         helper macro.
23618         While I was merging the const-correctness changes from gnulib into
23619         glibc I noticed there are still some unnecessary casts in
23620         _getopt_internal_r.
23622         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
23623         a macro.  Consistently cast 'argv' to 'char **' when calling
23624         _getopt_internal.
23625         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
23628         getopt: clean up error reporting
23630         getopt can print a whole bunch of error messages, and when used
23631         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
23632         cancellation point and getopt isn't, and also applying fprintf to a
23633         stream in wide-character mode is not allowed.  So every single error
23634         reporting case has an #ifdef _LIBC block in which it calls internal
23635         libc functions instead.  The counterpart patch series in glibc makes
23636         it possible to simplify all of that down to a set of #defines at the
23637         top of the file; core code is written as if it is safe to just call
23638         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
23639         call any *other* stdio functions.)
23641         * lib/getopt.c: When _LIBC is defined, define fprintf to
23642         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
23643         to _IO_funlockfile.  When neither _LIBC nor
23644         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
23645         funlockfile as no-ops.
23646         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
23647         standalone error-printing code can now be used for libc as well.
23648         Add an flockfile/funlockfile pair around one case where the error
23649         message is printed in several chunks.  Don't use fputc.
23652         getopt: fix fencepost error in ambiguous-W-option handling
23654         getopt_long contains an undocumented (AFAICT) feature in which, if you
23655         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
23656         treated as equivalent to '--foo'.  This is implemented with a partial
23657         second copy of the code for handling long options, and that code
23658         increments optind one too many times when recovering from an ambiguous
23659         abbreviated option, which can cause the main loop to walk past the end
23660         of argv and crash.
23662         I discovered this while writing a test case that tries to exercise all
23663         of getopt's error reporting paths; I wouldn't be surprised to learn
23664         that this feature is never used by real applications.
23666         * lib/getopt.c (_getopt_internal_r): Don't increment
23667         d->optind a second time when reporting ambiguous -W options.
23670         getopt: clean up getopt.c and getopt1.c file headers
23672         In getopt.c, there is no need to include wchar.h at all, and it is
23673         safe nowadays to assume that stdlib.h does declare getenv (several
23674         other gnulib modules make this assumption).
23676         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
23677         by using "" inclusions consistently, and there is no actual need to
23678         include stdlib.h (except in the #ifdef TEST block, where it should be
23679         unconditional), nor to provide a backup definition of NULL at all.
23681         * lib/getopt1.c: Simplify #ifdeffage at top of file.
23682         Move inclusion of stdlib.h to #ifdef TEST block and make
23683         unconditional.  Do not define NULL.
23684         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
23685         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
23686         * modules/getopt-gnu, modules/getopt-posix: Don't call
23687         gl_PREREQ_GETENV.
23690         getopt: harmonize comments with glibc
23692         The comments explaining how the behavior of 'getopt' varies depending
23693         on whether it's the standalone version and whether there are special
23694         characters at the beginning of the options string were inconsistent
23695         between gnulib and glibc, and also out of sync with the code.
23697         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
23700         getopt: remove USE_NONOPTION_FLAGS
23702         getopt includes code to parse an environment variable named
23703         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
23704         in decimal); but all of it has been #ifdefed out since 2001, with no
23705         official way to turn it back on.
23707         According to commentary in glibc's config.h.in, bash version 2.0
23708         set this environment variable to indicate argv elements that were
23709         the result of glob expansion and therefore should not be treated
23710         as options, but the feature was "disabled later" because "it
23711         caused problems".  According to bash's CHANGES file, "later" was
23712         release 2.01; it gives no more detail about what the problems
23713         were.
23715         Version 2.0 of bash was released on the last day of 1996, and version
23716         2.01 in June of 1997.  Twenty years later, I think it is safe to
23717         assume that this environment variable isn't coming back.
23719         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
23720         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
23721         __libc_argc and __libc_argv externs, which were only used by
23722         #ifdef USE_NONOPTION_FLAGS blocks.
23725         getopt: tabify, in preparation for merge with glibc
23727         glibc sticks to the GNU default of indenting with a mix of
23728         8-column tabs and spaces; make the gnulib copy match.
23730         getopt.h is not included because it is *not* going to be merged in its
23731         present form.
23733         * getopt.c, getopt1.c, getopt_int.h: Tabify.
23735 2017-04-02  Bruno Haible  <bruno@clisp.org>
23737         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
23738         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
23739         like it was done in modules/relocatable-lib on 2011-05-21 and in
23740         modules/relocatable-prog on 2011-08-15.
23741         Reported by Reuben Thomas <rrt@sc3d.org>.
23743 2017-03-31  Bruno Haible  <bruno@clisp.org>
23745         glob: Fix invalid free() call.
23746         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
23747         static storage to home_dir.
23748         Reported by Coverity via Tim Rühsen.
23750 2017-03-31  Bruno Haible  <bruno@clisp.org>
23752         glob: Fix memory leaks.
23753         * lib/glob.c (glob): Free allocated memory before returning.
23754         Reported by Coverity via Tim Rühsen.
23756 2017-03-31  Bruno Haible  <bruno@clisp.org>
23758         md5, sha1, sha256, sha512: Add comments regarding correctness.
23759         * lib/md5.h (buflen): Add comments regarding range.
23760         * lib/sha1.h (buflen): Likewise.
23761         * lib/sha256.h (buflen): Likewise.
23762         * lib/sha512.h (buflen): Likewise.
23763         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
23764         * lib/sha1.c (sha1_process_bytes): Likewise.
23765         * lib/sha256.c (sha256_process_bytes): Likewise.
23766         * lib/sha512.c (sha512_process_bytes): Likewise.
23767         Reported by Coverity via Tim Rühsen.
23769 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
23771         getopt: merge from glibc
23772         This does not change anything substantial; it merely simplifies
23773         hypothetical merges back to glibc.
23774         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
23775         Change copyright notice to match what is in glibc.
23776         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
23777         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
23778         __open_memstream rather than open_memstream and __glibc_likely
23779         instead of __builtin_expect.
23780         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
23782 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
23784         dfa: make [0-9] faster in non-C locales
23785         Problem reported by John P. Linderman (Bug#26193).
23786         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
23787         If both ends of the range are ASCII digits, do not worry about
23788         multi-character collating sequences and the like.  Be consistent
23789         about using isalpha as a precondition for setbit_case_fold_c.
23791 2017-03-19  Bruno Haible  <bruno@clisp.org>
23793         lock: Fix compilation error with HP-UX IA64 cc.
23794         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
23795         weak on non-glibc platforms.
23797 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23799         stdalign: tweak version# and test for HP-UX IA64
23800         Problems reported by Bruno Haible in:
23801         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
23802         * lib/stdalign.in.h (_Alignas):
23803         * m4/stdalign.m4 (gl_STDALIGN_H):
23804         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
23805         used octal (as that is how they document it), but it is decimal in
23806         practice now and the ancient implementations no longer matter.
23807         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
23809 2017-03-19  Bruno Haible  <bruno@clisp.org>
23811         vma-iter: Add support for Solaris.
23812         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
23813         approach.
23814         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
23815         * lib/get-rusage-as.c: Update comment about Solaris.
23816         * lib/get-rusage-data.c: Likewise.
23818 2017-03-19  Bruno Haible  <bruno@clisp.org>
23820         vma-iter: Prefer HP-UX specific API on HP-UX.
23821         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
23822         * lib/vma-iter.h: Update.
23823         Just in case HP-UX ever implements mquery().
23825 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
23827         stdalign: restore previous behavior for HP-UX IA64
23828         See Bruno Haible's email in:
23829         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23830         which cites p 150 of a manual saying that 'aligned' works on Itanium.
23831         * lib/stdalign.in.h (_Alignas):
23832         Assume the '061200' applies to Itanium, not to PA-RISC.
23833         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
23835 2017-03-17  Bruno Haible  <bruno@clisp.org>
23837         stat-time, timespec: Support use of the header files in C++ mode.
23838         * lib/stat-time.h: Add "C" linkage declaration.
23839         * lib/timespec.h: Likewise.
23841 2017-03-17  Bruno Haible  <bruno@clisp.org>
23843         stdalign: Make it work with HP-UX cc.
23844         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
23845         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
23846         for HP-UX cc.
23848 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
23850         flexmember: try to detect HP-UX 11.31 cc bug
23851         Problem reported by Bruno Haible in:
23852         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23853         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23854         Attempt to detect bug in HP-UX 11.31 cc.
23856 2017-03-16  Bruno Haible  <bruno@clisp.org>
23858         stdint: Fix test compilation failure with HP-UX 11 cc.
23859         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
23860         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
23861         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
23862         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
23864 2017-03-14  Bruno Haible  <bruno@clisp.org>
23866         gnulib-tool: Don't produce a tests directory with only snippet .h files.
23867         * gnulib-tool (func_modules_transitive_closure_separately): If
23868         testsrelated_modules ends up with no "real" modules, aside from
23869         modules with applicability 'all', set it to empty.
23871 2017-03-14  Bruno Haible  <bruno@clisp.org>
23873         vma-iter: Add support for HP-UX.
23874         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
23875         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
23876         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
23877         * lib/get-rusage-as.c: Update comment about HP-UX.
23878         * lib/get-rusage-data.c: Likewise.
23879         (get_rusage_data): Use get_rusage_data_via_setrlimit.
23881 2017-03-14  Bruno Haible  <bruno@clisp.org>
23883         limits-h: Make it work with HP-UX cc.
23884         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
23885         defined.
23887 2017-03-14  Bruno Haible  <bruno@clisp.org>
23889         Fix test failures on DragonFlyBSD.
23890         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
23891         * tests/test-select.h (test_bad_fd): Likewise.
23892         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
23894 2017-03-14  Bruno Haible  <bruno@clisp.org>
23896         freadahead: Silence warning on DragonFlyBSD.
23897         * lib/freadahead.c (__sreadahead): Declare ourselves.
23899 2017-03-14  Bruno Haible  <bruno@clisp.org>
23901         vma-iter: Add comment about AIX.
23902         * lib/vma-iter.c: Add comment about why this module is not implemented
23903         on AIX.
23905 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23907         snippets: move unadjusted snippet sources to lib
23908         Problem reported by Michal Privoznik in:
23909         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
23910         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
23911         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
23912         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
23913         * lib/unused-parameter.h: Rename from
23914         build-aux/snippet/unused-parameter.h.
23915         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
23916         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
23917         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
23918         * modules/snippet/c++defs (Files:, CXXDEFS_H):
23919         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
23920         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
23921         Adjust to file renamings.
23923 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
23925         gnulib-tool: don't automatically distribute files from top/
23926         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
23927         not distribute top/README-release by default, don't distribute files
23928         from top/ unconditionally.
23929         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
23930         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
23932 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23934         gnulib-tool: fix typo in comment output
23935         * gnulib-tool (func_import): Fix typo with previous change.
23937         snippets: work around GNU Make 3.82 VPATH
23938         When using 'gnulib-tool --gnu-make' on Emacs, and building
23939         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
23940         an out-of-source (VPATH) build failed because the sans-copyright
23941         snippet file was not built before the file that used it.
23942         Presumably this is some sort of VPATH thing.  Work around the
23943         problem by using the original snippet, i.e., don’t bother to
23944         remove its copyright notice.
23945         * modules/snippet/_Noreturn, modules/snippet/link-warning:
23946         Don’t assume Automake in comments.  Omit long-incorrect comment.
23947         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
23948         (MOSTLYCLEANFILES):
23949         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
23950         (MOSTLYCLEANFILES):
23951         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
23952         (MOSTLYCLEANFILES):
23953         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
23954         (MOSTLYCLEANFILES):
23955         Remove.
23956         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
23957         * modules/snippet/c++defs (CXXDEFS_H):
23958         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
23959         * modules/snippet/warn-on-use (WARN_ON_USE_H):
23960         Don’t bother to remove the copyright notice; just use the
23961         original snippet as-is.
23963 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
23965         gnulib-tool: minor --gnu-make fixups
23966         * gnulib-tool (func_emit_lib_Makefile_am):
23967         Remove useless code that was a blind alley during implementation.
23968         Problem reported by Thien-Thi Nguyen in:
23969         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
23970         (func_import): Note the "--gnu-make" option in the output comment.
23972 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
23974         gnulib-tool: new option --gnu-make
23975         This is for applications like GNU Emacs that use GNU Make
23976         features instead of Automake.
23977         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
23978         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
23979         Do not assume Automake.
23980         * gnulib-tool (func_determine_path_separator)
23981         (func_modules_transitive_closure, func_update_file)
23982         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
23983         (func_import): Add support for --gnu-make.
23985 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
23987         gnulib-common.m4: avoid aclocal.m4 bloat
23988         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
23989         Hide AM_PROG_AR from aclocal, so that aclocal does not
23990         install irrelevant macro definitions into aclocal.m4.
23992 2017-03-10  Bruno Haible  <bruno@clisp.org>
23994         vma-iter: Let callers know about error.
23995         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
23996         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
23998 2017-03-05  Bruno Haible  <bruno@clisp.org>
24000         Fix value of LD for 64-bit compilers on AIX.
24001         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
24002         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
24004 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24006         dtotimespec: simplify
24007         * lib/dtotimespec.c (dtotimespec): Simplify.
24009 2017-03-04  Bruno Haible  <bruno@clisp.org>
24011         test-calloc-gnu: Reenable test also for GCC 7.
24012         * tests/test-calloc-gnu.c (eight): New function.
24013         (main): Don't skip test; use eight() instead.
24015 2017-03-04  Jim Meyering  <meyering@fb.com>
24017         test-calloc-gnu: port to GCC7
24018         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
24019         that attempts to calloc more than SIZE_MAX bytes, because GCC7
24020         and newer would detect that at compilation time.
24022 2017-03-04  Bruno Haible  <bruno@clisp.org>
24024         tests: Avoid compiler warning about uses of null_ptr.
24025         * tests/null-ptr.h: New file.
24026         * tests/test-canonicalize.c: Include null-ptr.h.
24027         (null_ptr): Remove function.
24028         * tests/test-canonicalize-lgpl.c: Likewise.
24029         * tests/test-memmem.c: Likewise.
24030         * tests/test-ptsname_r.c: Likewise.
24031         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
24032         * modules/canonicalize-lgpl-tests: Likewise.
24033         * modules/memmem-tests: Likewise.
24034         * modules/ptsname_r-tests: Likewise.
24035         Reported by Jim Meyering.
24037 2017-03-03  Bruno Haible  <bruno@clisp.org>
24039         doc: Mention Mac OS X deficiencies regarding semaphores.
24040         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
24041         * doc/posix-functions/sem_destroy.texi: Likewise.
24042         * doc/posix-functions/sem_getvalue.texi: Likewise.
24044 2017-03-03  Bruno Haible  <bruno@clisp.org>
24046         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
24047         Reported by Assaf Gordon <assafgordon@gmail.com> via
24048         Pádraig Brady <P@draigBrady.com>.
24049         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
24050         semaphores.
24051         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
24052         (atomic_int_semaphore): New macro.
24054 2017-02-28  Bruno Haible  <bruno@clisp.org>
24056         perror tests: Tweak for z/OS.
24057         Reported by Daniel Richard G. <skunk@iskunk.org>.
24058         * tests/test-perror.sh: Don't fail z/OS style perror output.
24060 2017-02-26  Bruno Haible  <bruno@clisp.org>
24062         nproc: Refactor large function.
24063         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
24064         from num_processors.
24065         (num_processors): In this function, only deal with OMP.
24067 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24069         nproc: adjust handling of OpenMP environment variables
24070         to match the return value from omp_get_num_threads(), i.e.:
24071          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
24072          - Treat 0 as an invalid value and ignore
24073         Also remove the call to omp_get_num_threads() because
24074         it's ineffective without the omp pragmas in place.
24075         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
24076         so that it can be ignored.
24077         (num_processors): Honor OMP_THREAD_LIMIT even without
24078         OMP_NUM_THREADS being set.  Also fix a typo in the environment
24079         variable being checked, from the previous recent commit.
24081 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24083         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
24084         * lib/nproc.c (parse_omp_threads): A new function refactored
24085         from num_processors() to support parsing both of the
24086         above environment variables.
24087         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
24088         to accurately reflect the current OpenMP nesting level.
24089         Also support the OMP_THREAD_LIMIT environment variable
24090         to limit the max value determined from OMP_NUM_THREADS.
24091         * modules/nproc: Depend on minmax header.
24092         Suggested by Oliver Heimlich.
24094 2017-02-25  Bruno Haible  <bruno@clisp.org>
24096         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
24097         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
24099 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24101         ftoastr: port to -Wdouble-promotion
24102         Work around -Wdouble-promotion false alarm in recent GCCs.
24103         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
24104         (ftoastr_snprintf, FTOASTR): Use it.
24106 2017-02-21  Bruno Haible  <bruno@clisp.org>
24108         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
24109         Reported by Rene Saavedra <rennes@openmailbox.org> in
24110         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
24111         * lib/glthread/lock.h: On glibc systems without
24112         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
24113         implementation of rwlocks.
24114         * lib/glthread/lock.c: Likewise.
24116 2017-02-20  Bruno Haible  <bruno@clisp.org>
24118         lock tests: Fix build failure on z/OS.
24119         Reported by Daniel Richard G. <skunk@iskunk.org>.
24120         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
24121         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
24122         exist.
24124 2017-02-19  Bruno Haible  <bruno@clisp.org>
24126         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
24127         This helps when CC=clang.
24128         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
24129         of /usr/bin/gcc.
24131         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
24132         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
24134 2017-02-19  Bruno Haible  <bruno@clisp.org>
24136         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
24137         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
24138         --with-tests --single-configure is specified.
24140 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24142         users.txt: Update links, use HTTPS where possible
24143         * users.txt: Updated to HTTPS where possible,
24144         fixed some links to new locations.
24146 2017-02-16  Bruno Haible  <bruno@clisp.org>
24148         xbinary-io: Fix inlining.
24149         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
24151 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24153         xbinary-io: rename from xsetmode
24154         This patch is taken from suggestions by Bruno Haible in:
24155         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
24156         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
24157         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
24158         not ENOTTY, when it is an inappropriate device.
24159         * lib/binary-io.h (SET_BINARY): Resurrect.
24160         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
24161         (xset_binary_mode_error): Rename from xsetmode_error.
24162         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
24163         (xset_binary_mode): Rename from xsetmode.
24164         All uses changed.
24165         * modules/xbinary-io: Rename from modules/xsetmode.
24166         Update file names.
24167         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
24168         * NEWS: Update to match revised behavior.
24170 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24172         tests: Adjust to recent SET_BINARY change
24173         * tests/test-binary-io.c (main):
24174         * tests/test-binary-io.sh: Remove test for SET_BINARY.
24175         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
24176         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
24177         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
24179         xsetmode: new module
24180         This is to fix a problem noted by Eric Blake.
24181         Code was using xfreopen to change files to binary mode, but this
24182         fails for stdout when in append mode.  Such code should use
24183         xsetmode instead.
24184         * NEWS: Document incompatible changes to binary-io module.
24185         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
24186         New function.
24187         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
24188         (set_binary_mode): New function, which also checks for tty.
24189         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
24191 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24193         headers: fix begin-end typos
24194         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
24195         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
24197         selinux-h: port to PGI 16.10
24198         * lib/se-selinux.in.h: Don't assume that include_next skips over
24199         duplicate -I DIR options.
24201         argp: port to PGI 16.10
24202         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
24204 2017-02-13  Darshit Shah  <darnir@gnu.org>
24206         unicase: Update function protoype to match definition.
24207         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
24208         uses 'size_t' as the datatype for the 'len' parameter in the functions
24209         it generates. Update the prototype specified here to match the newly
24210         generated function.
24212 2017-02-12  Bruno Haible  <bruno@clisp.org>
24214         times test: Avoid gcc warnings on Linux/x32.
24215         * tests/test-times.c (main): Really cast printf arguments from clock_t
24216         to 'long int'.
24218 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24220         glob: port better to emscripten
24221         Problem reported by Bruno Haible in:
24222         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
24223         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
24225 2017-02-11  Bruno Haible  <bruno@clisp.org>
24227         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
24228         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
24229         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
24230         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
24231         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
24232         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
24233         Distinguish hppa64 from hppa.
24235 2017-02-10  Bruno Haible  <bruno@clisp.org>
24237         search: Don't assume that tsearch() exists if 'VISIT' is defined.
24238         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
24239         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
24240         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
24242 2017-02-09  Bruno Haible  <bruno@clisp.org>
24244         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
24245         * doc/gnulib.texi (Libtool and Windows): Recommend
24246         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
24247         Reported by Reuben Thomas <rrt@sc3d.org>.
24249 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24251         stddef-tests: port to SIZE_MAX <= INT_MAX
24252         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
24253         Do not assume that INT_MAX < SIZE_MAX.
24255 2017-02-01  Bruno Haible  <bruno@clisp.org>
24257         lock tests: Fix link error.
24258         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
24259         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24261 2017-01-31  Bruno Haible  <bruno@clisp.org>
24263         lock: Fix link error (regression from 2017-01-05).
24264         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
24265         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
24266         pthread_rwlockattr_destroy weak.
24267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24269 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24271         Port to PGI 16.10 x86-64
24272         This patch fixes one real bug in gl_anylinked_list2.h, along with
24273         some minor glitches that are not bugs.  It does not silence PGI’s
24274         thousands of bogus warnings when compiling test-intprops.c.
24275         Fortunately, the warnings do not cause a failure.
24276         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
24277         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
24278         My goodness, PGI goes back a long ways - this predates C89!
24279         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
24280         For example, ASYNCSAFE (const void *) should expand to
24281         ‘const void *volatile’, not to ‘volatile const void *’.
24282         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
24283         * lib/verify.h (verify) [!__GNUC__]:
24284         Use shorter albeit meaningless string to bypass silly compiler limits.
24285         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
24286         * tests/nan.h (NaNf, NaNd, NaNl):
24287         Use static functions to avoid misguided compiler diagnostics.
24288         Is there some reason we don’t use static functions on all platforms?
24290 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24292         parse-datetime: handle timezones reentrantly
24293         This API change was prompted by a report by Pádraig Brady in:
24294         https://bug.debian.org/851934#10
24295         To help fix the bug, make parse_datetime2 more reentrant.
24296         * NEWS: Document this incompatible change.
24297         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
24298         Add two arguments, the timezone and the timezone name.
24299         All callers changed.  If TZ="..." is specified, use it for
24300         calculating defaults.
24301         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
24302         this code should be usable in a library.
24303         (mktime_ok, get_effective_timezone):
24304         Accept timezone arg too.  All callers changed.
24305         (get_tz): Remove.
24306         (get_effective_timezone): Check for failures.
24308 2017-01-20  Eric Blake  <eblake@redhat.com>
24310         localename: port to cygwin 2.6
24311         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
24312         Cygwin.
24313         * modules/localename (Depends-on): Add extensions, since
24314         NL_LOCALE_NAME() is not visible without it.
24316 2017-01-17  Pádraig Brady  <P@draigBrady.com>
24318         parse-datetime: fix dependence on AC_PROG_SED
24319         * modules/parse-datetime: Use `sed` directly like all other modules.
24320         Reported by J William Piggott
24322 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24324         intprops: update doc URLs
24325         * doc/intprops.texi (Integer Range Overflow): Update URLs.
24327 2017-01-16  Bruno Haible  <bruno@clisp.org>
24329         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
24330         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
24331         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
24332         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
24333         distinguish s390 and s390x.
24334         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
24335         * NEWS: Mention the change regarding 'armel'.
24337 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24339         localeinfo: case_folded_counterparts and WEOF
24340         * NEWS: Document this.
24341         * lib/localeinfo.c (case_folded_counterparts):
24342         First arg is now wint_t, not wchar_t.  This generalizes the
24343         function to also work on WEOF, where it returns 0.
24345         dfa: port to gcc -fsanitize=undefined
24346         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
24347         as this runs afoul of gcc -fsanitize=undefined.
24349 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
24351         strftime: %z is -00 if unknown
24352         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
24353         the caller's responsibility to set 'negative_number'.  All uses changed.
24354         (__strftime_internal): Put '-' before a zero UTC offset if the time
24355         zone abbreviation starts with "-", which is the recently-introduced
24356         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
24357         * tests/test-strftime.c: Test for this.
24359 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24361         dfa: port to older GCC
24362         Problem reported by Assaf Gordon in:
24363         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
24364         * modules/c99: New module.  This merely attempts to use the latest
24365         C version, which should be enough to solve this particular problem.
24366         The idea is to document which Gnulib modules assume C99 or later.
24367         * modules/dfa (Depends-on): Add it.
24369 2017-01-10  Bruno Haible  <bruno@clisp.org>
24371         Update DEPENDENCIES.
24372         * DEPENDENCIES: List only https URLs. Update recommended version for
24373         autoconf, automake, gperf.
24375 2017-01-10  Jim Meyering  <meyering@fb.com>
24377         maint.mk: enforce spelling of "timestamp" (i.e., no space)
24378         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24379         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
24381 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24383         dfa: minor simplification with emptyset
24384         * lib/dfa.c (build_state): Simplify by using emptyset.
24386 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24388         dfa: shrink constraints from 4 bits to 3
24389         * lib/dfa.c (newline_constraint, letter_constraint)
24390         (other_constraint, prev_newline_dependent)
24391         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
24392         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
24393         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
24394         Constraints need only 3 bits, not 4.  Using smaller integers
24395         shrinks the code a bit and makes grep a tad faster on x86-64.
24397         dfa: omit unnecessary ptrdiff_t check
24398         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
24399         overflow, since xnmalloc does that now.
24401         dfa: omit unnecessary allocation
24402         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
24403         an all-zero follow set works just fine.
24405         dfa: omit unused local
24406         * lib/dfa.c (build_state): Fix up recent change.
24408         maint: remove stray .texi files
24409         Although these were superseded by other files like
24410         doc/posix-functions/ctime.texi, the old files were not removed.
24411         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
24413 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
24415         getprogname: fix port to IRIX
24416         * lib/getprogname.c (getprogname) [__sgi]:
24417         Don't dump core if malloc returns NULL.
24419         dfa: fix reallocation bug when matching newlines
24420         Problem reported for sed by S. Gilles (Bug#25390).
24421         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
24422         (dfastate): Reallocate before moving any newline transition ...
24423         (build_state): ... instead of reallocating here, where it is too late.
24425 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24427         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
24428         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
24430 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24432         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
24433         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
24435 2017-01-07  Bruno Haible  <bruno@clisp.org>
24437         stdioext: Port to Minix 3.2 and newer.
24438         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
24439         * lib/fseeko.c (fseeko): Likewise.
24440         Reported by Nelson Beebe via Paul Eggert.
24442 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24444         getprogname: port to IRIX
24445         * lib/getprogname.c (getprogname): Port to IRIX.
24446         Based on an idea by Bastien Roucariès at:
24447         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
24448         via code from Bruno Haible at:
24449         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24451         localename-tests: port to NetBSD 7
24452         Problem reported by Nelson H. F. Beebe.
24453         * tests/test-localename.c:
24454         Test newlocale and uselocale only if both exist.
24456         glob, intprops, xalloc: work around Clang bug
24457         Work around LLVM bug 16404, which is still not fixed.
24458         https://llvm.org/bugs/show_bug.cgi?id=16404
24459         Problem reported by Nelson H. F. Beebe.
24460         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
24461         Remove.
24462         * lib/glob.c (size_add_wrapv):
24463         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
24464         * lib/xalloc-oversized.h (xalloc_oversized):
24465         Do not use overflow builtins if Clang.
24467         dfa: fix 'return' typo
24468         Problem reported by Nelson H. F. Beebe.
24469         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
24471 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24473         parse-datetime: fix generated paths for coverage files
24474         * modules/parse-datetime: Adjust the paths for parse-datetime.y
24475         within parse-datetime.c, so that gcc generates appropriate .gcno
24476         files, allowing lcov to proceed without error.  Previously it
24477         would error trying to find "lib/lib/parse-datetime.y".
24479 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24481         maint.mk: support parallel execution of coverage
24482         * top/maint.mk (coverage): Run dependencies serially,
24483         thus supporting parallel processing of each one,
24484         particularly build-coverage, which builds and runs tests.
24486 2017-01-05  Bruno Haible  <bruno@clisp.org>
24488         lock tests: Prefer semaphore over mutex.
24489         * tests/test-lock.c (USE_SEMAPHORE): New constant.
24490         (struct atomic_int, init_atomic_int, get_atomic_int_value,
24491         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
24492         Suggested by Torvald Riegel <triegel@redhat.com>.
24494 2017-01-05  Bruno Haible  <bruno@clisp.org>
24496         lock: Provide guarantee to avoid writer starvation for rwlocks.
24497         The rationale is: 1) Read-preferring read-write locks are prone to
24498         writer starvation if the number of reader threads multiplied by the
24499         percentage of time they have the lock held is too high. 2) Write-
24500         preferring read-write locks are the only reliable way to avoid this.
24501         3) There have been reports of 'test-lock' hanging on glibc systems
24502         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
24503         and glibc indeed implements read-preferring rwlocks by default, see
24504         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
24505         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
24506         * m4/pthread_rwlock_rdlock.m4: New file.
24507         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24508         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
24509         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24510         of rwlock initialization on glibc systems without
24511         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24512         of rwlocks altogether on non-glibc systems without
24513         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24514         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
24515         * lib/glthread/lock.c [USE_POSIX_THREADS]
24516         (glthread_rwlock_init_for_glibc): New function.
24517         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
24518         comment.
24519         [USE_PTH_THREADS]: New implementation of rwlocks.
24520         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
24521         readers.
24522         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
24523         (Depends-on): Add 'extensions'.
24524         * tests/test-rwlock1.c: New file.
24525         * lock-tests (Files): Add it.
24526         (Depends-on): Add usleep.
24527         (Makefile.am): Add test-rwlock1 to the tests.
24529 2017-01-05  Bruno Haible  <bruno@clisp.org>
24531         thread: Fix pth port.
24532         * lib/glthread/thread.h (pth_init): Declare weak.
24533         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
24534         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
24535         function.
24537 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
24539         parse-datetime: fix debug message on lone year number
24540         Input dates such as
24541           date -d "Apr 11 22:59:00 2011"
24542         are parsed as date (Apr 11, with default year 2016), then time, then a
24543         number (2011). Based on the combination of previously seen tokens,
24544         'digits_to_date_time' determines 2011 to be a year value.
24545         This fixes the debug messages to correctly show the updated year.
24546         Before:
24547             $ date --debug -d 'Apr 11 22:59:00 2011'
24548             date: parsed date part: (Y-M-D) 2016-04-11
24549             date: parsed time part: 22:59:00
24550             date: parsed number part: today/this/now
24551         After:
24552             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
24553             date: parsed date part: (Y-M-D) 2016-04-11
24554             date: parsed time part: 22:59:00
24555             date: parsed number part: year: 2011
24556         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
24557         'debug_year_seen' member fields.
24558         (digits_to_date_time): Update 'year_seen' as needed.
24559         (debug_print_current_time): Inform about year updates.
24560         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
24562         parse-datetime: fix local timezone debug messages
24563         "Local timezones" are strings that affect only DST relative to the
24564         default timezone. The debug messages in parse-datetime.y printed
24565         wrong information when encountering local timezones.
24566         Examples:
24567         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
24568              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
24569              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
24570         When the default timezone relates to the zone strings, EET/EEST are
24571         parsed as local timezones (tLOCAL_ZONE), and only change the DST
24572         value (0/1, respectively):
24573              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
24574              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
24575         * lib/parse-datetime.y (debug_print_current_time): If local timezone
24576         was seen, inform about DST change, don't print actual timezone.
24577         (debug_strfdatetime): If local timezone was seen, use default timezone
24578         (and adjust as needed) instead of using incorrect timezone.
24579         (parse_datetime2): Use correct time-zone source string, and adjust
24580         default timezone as needed.
24582         parse-datetime: add debug warning about DST changes
24583         Incorrect date arithmetic due to daylight saving time (DST) are a
24584         common (false) bug report in coreutils.
24585         Detect two such cases and print a warning:
24586         1. year/month/day adjustments (performed on 'struct tm'),
24587            where 'mktime' returns a different isdst value.
24588         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
24589            where the result of 'localtime(3)' on the value will return a
24590            different isdst value.
24591         Note: DST changes could be harmless or unnoticeable.
24592         Examples (with 'TZ=America/New_York'):
24593         Unnoticeable: result is 2016-Dec-14
24594            $ date -d '2016-06-15 EDT + 6 months' +%b
24595            Dec
24596         Unnoticeable: result is 2016-Dec-15 11:00:00
24597            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
24598            2016-12-15
24599         This is unexpected:
24600            $ date -d '2016-06-01 EDT + 6 months' +%F
24601            2016-11-30
24602         The new debug warnings will show:
24603            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
24604            ...
24605            date: warning: daylight saving time changed after date adjustment
24606            ...
24607         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
24608         print an appropriate warning message.
24610         parse-datetime: add debug warning about date arithmetic
24611         Date arithmetic are done directly on the fields of 'struct tm',
24612         which can result in invalid dates. Normalization with 'mktime(3)'
24613         will then produce a different date - which might cause unexpected
24614         results.
24615         Examples:
24616           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
24617           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
24618         Note that date normalization is not inherently wrong and not rejected,
24619         as it has legitimate uses:
24620           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
24621         If the user asked to adjust months but 'mday' changed,
24622         or user asked to adjust years but 'month' changed - warn about it.
24623             $ ./src/date --debug -d '2016-10-31 - 1 month'
24624             ...
24625             date: warning: when adding relative months/years, \
24626                            it is recommended to specify the 15th of the month
24627             ...
24628             date: warning: month/year adjustment resulted in shifted dates:
24629             date:      adjusted Y M D: 2016 09 31
24630             date:    normalized Y M D: 2010 10 01
24631             ...
24632         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
24633         a warning message. Improve recommendation of when to use 15 of the
24634         month or noon for date arithmetic.
24636         parse-datetime: fix debug message of relative part after timezone
24637         Relative part (e.g '+8 days') after a timezone string was not
24638         reported (was only reported after a timezone number). Due to the
24639         parser's structure, timezone strings with numbers were handled
24640         separately.
24641         before:
24642              # Timezone number + relative part: OK
24643              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
24644              ...
24645              date: parsed relative part: -8 day(s)
24646              # Timezone string + relative part: missing
24647              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
24648              [ missing message ]
24649         After: messages are printed in both cases.
24650         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
24652         parse-datetime: fix incorrect debug message on lone number
24653         A lone number is an absolute value, not a relative time part.
24654         before:
24655            $ date --debug -d '20130101'
24656            date: parsed number part: today/this/now
24657         After:
24658            $ ./src/date --debug -d '20130101'
24659            date: parsed number part: (Y-M-D) 2013-01-01
24660         * lib/parse-datetime.y ('item'/'number' tokens): Call
24661         'debug_print_current_time' instead of 'debug_print_relative_time'.
24663 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24665         doc: modernize for C11 etc.
24666         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
24667         for C11, MinGW, etc.  This responds to Paul Smith's question in:
24668         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
24670         dfa: prefer functions to FETCH_WC macro
24671         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
24672         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
24673         wint_t result into DFA->lex.wctok instead of to a separate arg.
24674         All callers changed.  Move more local decls closer to where
24675         they're used.
24677         dfa: narrow more local var scopes
24678         * lib/dfa.c: Move more local decls to be more local.
24680         dfa: remove duplicate assignment
24681         Problem reported by Bruno Haible in:
24682         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
24683         * lib/dfa.c (parse_bracket_exp): Simplify.
24685 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24687         dfa: simplify constraint-dependency checking
24688         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
24689         (prev_other_constraint): Remove.
24690         (prev_newline_dependent, prev_letter_dependent):
24691         Simplify, to avoid an unnecessary bitwise AND operation.
24693         dfa: prefer functions and constants to macros
24694         * lib/dfa.c: Prefer constants to macros where either will do.
24695         (streq, isasciidigit, newline_constraint)
24696         (letter_constraint, other_constraint, succeeds_in_context)
24697         (prev_newline_constraint, prev_letter_constraint)
24698         (prev_other_constraint, prev_newline_dependent)
24699         (prev_letter_dependent, accepting, accepts_in_context):
24700         Now static functions instead of function-like macros.
24701         Use lower-case names accordingly.  All uses changed.
24703         dfa: narrow more local var scopes
24704         * lib/dfa.c: Move some more local decls down to nearer where
24705         they're needed.
24707 2016-12-31  Jim Meyering  <meyering@fb.com>
24709         dfa: narrow the scope of many local variables
24710         * lib/dfa.c: Now that we are no longer constrained to c89, move
24711         declarations of many variables (often indices) "down" into the
24712         scope(s) where used or to the point of definition.  This is a
24713         no-semantic-change diff.
24715 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24717         version-etc: new year
24718         * build-aux/gendocs.sh (version):
24719         * doc/gendocs_template:
24720         * doc/gendocs_template_min:
24721         * doc/gnulib.texi:
24722         * lib/version-etc.c (COPYRIGHT_YEAR):
24723         Update copyright dates by hand in templates and the like.
24724         * all files: Run 'make update-copyright'.
24726 2016-12-31  Eric Blake  <eblake@redhat.com>
24728         do-release-commit-and-tag: avoid shell syntax error
24729         * build-aux/do-release-commit-and-tag (curr_br): $branch can
24730         contain spaces when rebasing.
24732         maint.mk: hoist gnulib_dir definition earlier
24733         * top/maint.mk (gnulib_dir): Move near top of file.
24735 2016-12-31  Jim Meyering  <meyering@fb.com>
24737         maint.mk: do not always evaluate intprops-related shell
24738         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
24739         using gnulib_dir undefined (gnulib_dir is defined later in the
24740         file, which will be fixed separately), and besides, there is no
24741         need to incur the cost of this shell invocation for every single
24742         use of this .mk file.  Reported by Eric Blake in
24743         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
24745 2016-12-30  Jim Meyering  <meyering@fb.com>
24747         maint.mk: improve sc_prohibit_intprops_without_use
24748         * top/maint.mk (_intprops_names): Don't hard-code the list of
24749         symbol names.  Instead, derive it on the fly.
24751 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
24753         dfa: shorten sbit, success
24754         * lib/dfa.c (struct regex_syntax.sbit):
24755         (struct dfa.success): Use char, not int, for array elements, since
24756         they are all in the range 0..7.
24758         dfa: simplify multibyte_prop etc.
24759         This follows up on a change made when dfa.c was in grep, namely grep
24760         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
24761         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
24762         That earlier simplification allows for some more simplification
24763         and trimming down here.
24764         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
24765         (struct lexer_state): New mamber brack.
24766         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
24767         since they must be in the range 0..3 now.
24768         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
24769         the brack member now supersedes them.
24770         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
24771         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
24772         (dfaparse): Remove unnecessary initializations of already-0 storage.
24773         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
24774         (dfassbuild): No need to clear sup->mbcsets.
24776         dfa: minor performance tweak
24777         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
24779         dfa: wrap charclass inside a struct
24780         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
24781         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
24782         about 5% faster, where list.txt is generated by 'aspell dump
24783         master | head -n 100000 >list.txt'.  See Bug#22239.
24784         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
24785         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
24786         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
24787         Adjust to this, e.g., by using charclass * rather than charclass.
24788         All callers changed as needed.
24789         (copyset): Remove.  All uses changed to simple assignment.
24790         (parse_bracket_exp): Use zeroset instead of memset.
24792 2016-12-30  Jim Meyering  <meyering@fb.com>
24794         maint.mk: update list of intprops.h symbol names
24795         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
24796         This avoids a false failure of the sc_prohibit_intprops_without_use
24797         rule in grep.
24799 2016-12-29  Eric Blake  <eblake@redhat.com>
24801         getopt: fix parallel test failure
24802         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
24803         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
24804         * tests/test-getopt-main.h (main): Use different file names
24805         in case test-getopt-gnu and test-getopt-posix run in parallel.
24807 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24809         xalloc: x2nrealloc check for ptrdiff_t overflow
24810         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
24811         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
24813 2016-12-24  Bruno Haible  <bruno@clisp.org>
24815         lock test: Fix performance problem on multi-core machines.
24816         * tests/test-lock.c (USE_VOLATILE): New macro.
24817         (struct atomic_int): New type.
24818         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
24819         functions.
24820         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
24821         as 'struct atomic_int'.
24822         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
24823         reclock_checker_thread, test_recursive_lock): Use the new functions.
24824         Reported by Eric Blake in
24825         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
24826         and by Pádraig Brady in
24827         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
24829 2016-12-19  Bruno Haible  <bruno@clisp.org>
24831         vma-iter: Fix endless loop on 64-bit Windows.
24832         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
24833         'unsigned long'.
24835 2016-12-19  Bruno Haible  <bruno@clisp.org>
24837         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
24838         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
24839         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
24840         Invoke gt_TYPE_WINT_T instead.
24841         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
24842         * modules/stdint (Files): Add m4/wint_t.m4.
24843         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
24844         * modules/wctype-h (Makefile.am): Likewise.
24845         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
24846         not only on MSVC.
24847         * lib/wctype.in.h (wint_t): Likewise.
24849 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24851         getopt-posix-tests: fix Makefile typo
24852         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
24853         Fix typo: the last ‘_’ was missing in the name.
24854         I suspect that the typo explains this build failure:
24855         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
24856         although I can’t reproduce the problem on Solaris 10 sparc.
24858 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24860         dfa: improve worst-case 'replace' performance
24861         See my note in Bug#22357#71.
24862         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
24863         (merge_constrained): New function, which is like
24864         the old 'merge' function, except with a new argument C2.
24865         Simplify the body by avoiding the need for different sections
24866         of code depending on whether one input is exhausted.
24867         (merge): Use the new function.
24868         (delete): Return the constraint of the deleted position,
24869         not the entire position.  Caller changed.
24870         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
24872 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24874         dfa: performance improvement for removal of epsilon closure
24875         See Bug#22357#32.
24876         * lib/dfa.c (delete): Use binary search to find deleted index.
24877         (replace): New function.  It replaces a position with the followed set.
24878         (epsclosure): Replace it with a new algorithm.  Update caller.
24880 2016-12-18  Bruno Haible  <bruno@clisp.org>
24882         Split tests for getopt-posix and getopt-gnu.
24883         * tests/test-getopt-posix.c: New file.
24884         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
24885         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
24886         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
24887         GNULIB_TEST_GETOPT_GNU.
24888         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
24889         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
24890         (Makefile.am): Test test-getopt-posix instead of test-getopt.
24891         * modules/getopt-gnu-tests: New file.
24892         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
24894 2016-12-18  Bruno Haible  <bruno@clisp.org>
24896         posix-modules: Add options for specific platforms.
24897         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
24898         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
24899         Invoke func_tmpdir. Filter out the excludes.
24901 2016-12-18  Bruno Haible  <bruno@clisp.org>
24903         getopt: Fix link error for users of getopt() in <unistd.h>.
24904         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
24905         __need_getopt is defined. Undefine all macros before defining them.
24906         * modules/getopt (Include): Clarify that including <unistd.h> is also
24907         OK.
24908         * tests/test-getopt.c: Add comment.
24910 2016-12-17  Bruno Haible  <bruno@clisp.org>
24912         getaddrinfo tests: Avoid compilation error on MSVC.
24913         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
24914         getaddrinfo on native Windows.
24916 2016-12-17  Bruno Haible  <bruno@clisp.org>
24918         getlogin, getlogin_r: Fix link errors on MSVC.
24919         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
24920         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
24921         (Link): New section.
24922         * modules/getlogin_r (Files): Add m4/getlogin.m4.
24923         (configure.ac): Require gl_LIB_GETLOGIN.
24924         (Link): New section.
24925         * NEWS: Mention the new link requirements.
24926         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
24927         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
24929 2016-12-17  Bruno Haible  <bruno@clisp.org>
24931         Un-deprecate the 'progname' module.
24932         * NEWS: Describe the appropriate use-cases of 'progname' versus
24933         'getprogname'. Based on discussion summary at
24934         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
24936 2016-12-17  Bruno Haible  <bruno@clisp.org>
24938         Reorganize NEWS a bit.
24939         * NEWS: Move some not so important changes away from section
24940         "Important Notes".
24942 2016-12-17  Bruno Haible  <bruno@clisp.org>
24944         tanhf: Avoid redefinition error on MSVC.
24945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
24946         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
24947         may be defined as an inline function.
24948         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
24949         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
24951 2016-12-17  Bruno Haible  <bruno@clisp.org>
24953         tanf: Avoid redefinition error on MSVC.
24954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
24955         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
24956         may be defined as an inline function.
24957         * modules/math (Makefile.am): Substitute REPLACE_TANF.
24958         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
24960 2016-12-17  Bruno Haible  <bruno@clisp.org>
24962         sqrtf: Avoid redefinition error on MSVC.
24963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
24964         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
24965         may be defined as an inline function.
24966         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
24967         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
24969 2016-12-17  Bruno Haible  <bruno@clisp.org>
24971         sinhf: Avoid redefinition error on MSVC.
24972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
24973         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
24974         may be defined as an inline function.
24975         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
24976         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
24978 2016-12-17  Bruno Haible  <bruno@clisp.org>
24980         sinf: Avoid redefinition error on MSVC.
24981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
24982         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
24983         may be defined as an inline function.
24984         * modules/math (Makefile.am): Substitute REPLACE_SINF.
24985         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
24987 2016-12-17  Bruno Haible  <bruno@clisp.org>
24989         logf: Avoid redefinition error on MSVC.
24990         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
24991         may be defined as an inline function.
24993 2016-12-17  Bruno Haible  <bruno@clisp.org>
24995         log10l: Avoid redefinition error on MSVC.
24996         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
24997         may be defined as an inline function.
24999 2016-12-17  Bruno Haible  <bruno@clisp.org>
25001         log10f: Avoid redefinition error on MSVC.
25002         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
25003         may be defined as an inline function.
25005 2016-12-17  Bruno Haible  <bruno@clisp.org>
25007         hypotl: Avoid redefinition error on MSVC.
25008         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
25009         may be defined as an inline function.
25011 2016-12-17  Bruno Haible  <bruno@clisp.org>
25013         hypotf: Avoid redefinition error on MSVC.
25014         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
25015         may be defined as an inline function.
25017 2016-12-17  Bruno Haible  <bruno@clisp.org>
25019         fmodl: Avoid redefinition error on MSVC.
25020         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
25021         may be defined as an inline function.
25023 2016-12-17  Bruno Haible  <bruno@clisp.org>
25025         fmodf: Avoid redefinition error on MSVC.
25026         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
25027         may be defined as an inline function.
25029 2016-12-17  Bruno Haible  <bruno@clisp.org>
25031         expf: Avoid redefinition error on MSVC.
25032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
25033         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
25034         may be defined as an inline function.
25035         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
25036         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
25038 2016-12-17  Bruno Haible  <bruno@clisp.org>
25040         coshf: Avoid redefinition error on MSVC.
25041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
25042         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
25043         may be defined as an inline function.
25044         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
25045         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
25047 2016-12-17  Bruno Haible  <bruno@clisp.org>
25049         cosf: Avoid redefinition error on MSVC.
25050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
25051         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
25052         may be defined as an inline function.
25053         * modules/math (Makefile.am): Substitute REPLACE_COSF.
25054         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
25056 2016-12-17  Bruno Haible  <bruno@clisp.org>
25058         atan2f: Avoid redefinition error on MSVC.
25059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
25060         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
25061         may be defined as an inline function.
25062         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
25063         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
25065 2016-12-17  Bruno Haible  <bruno@clisp.org>
25067         atanf: Avoid redefinition error on MSVC.
25068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
25069         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
25070         may be defined as an inline function.
25071         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
25072         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
25074 2016-12-17  Bruno Haible  <bruno@clisp.org>
25076         asinf: Avoid redefinition error on MSVC.
25077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
25078         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
25079         may be defined as an inline function.
25080         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
25081         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
25083 2016-12-17  Bruno Haible  <bruno@clisp.org>
25085         acosf: Avoid redefinition error on MSVC.
25086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
25087         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
25088         may be defined as an inline function.
25089         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
25090         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
25092 2016-12-17  Bruno Haible  <bruno@clisp.org>
25094         Avoid redefinition errors on MSVC.
25095         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
25096         the function may be defined as an inline function.
25097         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
25098         the function may be defined as an inline function.
25100 2016-12-17  Bruno Haible  <bruno@clisp.org>
25102         Avoid redefinition errors on MSVC.
25103         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
25104         * lib/unistd.in.h: Include <stdio.h> when necessary.
25106 2016-12-17  Bruno Haible  <bruno@clisp.org>
25108         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
25109         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
25110         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25111         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
25112         WINT_MAX.
25114 2016-12-17  Bruno Haible  <bruno@clisp.org>
25116         Avoid autoconf warning.
25117         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
25118         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
25120 2016-12-17  Bruno Haible  <bruno@clisp.org>
25122         fpending: Revert workaround against Emacs bug.
25123         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
25124         The Emacs bug is fixed by Eli Zaretskii in
25125         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
25127 2016-12-17  Bruno Haible  <bruno@clisp.org>
25129         getlogin_r tests: Port to mingw.
25130         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
25131         regression introduced on 2014-05-19.
25133 2016-12-17  Bruno Haible  <bruno@clisp.org>
25135         getlogin: Port to newer mingw.
25136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
25137         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
25138         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
25139         HAVE_GETLOGIN.
25140         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
25141         HAVE_GETLOGIN.
25142         * doc/posix-functions/getlogin.texi: Mention the issue.
25143         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
25144         regression introduced on 2014-05-14.
25146 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25148         builtin-expect: improve port to IBM XL C
25149         Problem reported for z/OS by Daniel Richard G. in:
25150         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
25151         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25152         Test for <builtins.h> directly.
25154         builtin-expect: port to IBM XL C
25155         Problem reported for z/OS by Daniel Richard G. in:
25156         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
25157         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25158         Also allow __builtin_expect defined via a standard include file.
25160         regex: fix dependency
25161         Problem reported by Bruno Haible in:
25162         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
25163         * modules/regex: Depend on builtin-expect.
25165         builtin-expect: new module
25166         Fix fnmatch to use it.
25167         Problem reported for z/OS by Daniel Richard G.
25168         * lib/fnmatch.c (__builtin_expect):
25169         * lib/glob.c (__builtin_expect):
25170         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
25171         * lib/memmem.c (__builtin_expect) [!_LIBC]:
25172         * lib/scandir.c (__builtin_expect):
25173         * lib/strstr.c (__builtin_expect) [!_LIBC]:
25174         Remove macro; config.h now does this.
25175         * lib/gl_anytreehash_list1.h (add_to_bucket):
25176         * lib/regex_internal.h (BE):
25177         Assume __builtin_expect.
25178         * m4/builtin-expect.m4, modules/builtin-expect: New files.
25179         * modules/avltreehash-list, modules/fnmatch, modules/glob:
25180         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
25181         * modules/scandir, modules/strstr-simple:
25182         Depend on builtin-expect.
25184 2016-12-15  Bruno Haible  <bruno@clisp.org>
25186         init.sh: Add possibility to not delete temporary files.
25187         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
25188         to yes, don't erase the temporary directory.
25190 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25192         regex: fix integer-overflow bug in never-used code
25193         Problem reported by Clément Pit–Claudel in:
25194         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
25195         * lib/regex_internal.h: Include intprops.h.
25196         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
25197         behavior on integer overflow.
25198         * modules/regex (Depends-on): Add intprops.
25200         fpending: fix port to MinGW on Emacs
25201         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
25202         Problem reported by Eli Zaretskii in:
25203         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
25204         Is Plan 9 still a valid porting target, anyway?
25206 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25208         safe-alloc: use xalloc-oversized
25209         * lib/safe-alloc.c: Include xalloc-oversized.h.
25210         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
25211         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
25213         xalloc: do not exceed PTRDIFF_MAX
25214         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
25215         xalloc_oversized check, since objects larger than PTRDIFF_MAX
25216         bytes have pointer-subtraction problems.
25218         malloca: do not exceed PTRDIFF_MAX
25219         * lib/malloca.h: Include xalloc-oversized.
25220         (nmalloca): Use xalloc_oversized instead of rolling our own.
25221         * modules/malloca (Depends-on):
25222         * modules/relocatable-prog-wrapper (Depends-on):
25223         Add xalloc-oversized.
25225         quotearg: pacify GCC better
25226         * modules/quotearg (Depends-on): Add minmax, stdint.
25227         * lib/quotearg.c: Include minmax.h, stdint.h.
25228         (nslots): Now int, as there seems little point to going to extra
25229         work merely to support the INT_MAX slot, which nobody ever uses.
25230         (quotearg_n_options): Redo size-overflow checks to pacify GCC
25231         and to catch (mostly-theoretical) ptrdiff_t problems too.
25232         This can be done via one comparison.
25234 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25236         xalloc-oversized: check for PTRDIFF_MAX too
25237         This avoids undefined behavior when subtracting pointers to
25238         objects containing more than PTRDIFF_MAX bytes.
25239         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
25240         Also return 1 if the result would exceed PTRDIFF_MAX>
25241         * modules/xalloc-oversized (Depends-on):
25242         Add stdint.
25244         dfa: fix glitches in previous commit
25245         Sorry, I don't know how I managed to commit the wrong version.
25246         * lib/dfa.c (MIN): Move up.
25247         (xpalloc): Now static.
25249         dfa: fix some unlikely integer overflows
25250         I found these while reviewing the recent Coverity-related fix.
25251         This patch changes part of dfa.c to prefer ptrdiff_t instead of
25252         size_t for object counts.  Using ptrdiff_t is the style typically
25253         used in Emacs; although it wastes a sign bit as sizes can never be
25254         negative, it makes -fsanitize=undefined more likely to catch
25255         integer overflows in index calculation, and nowadays the upside is
25256         typically more important than the downside.  Although perhaps the
25257         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
25258         of dfa.c already does, since it uses state_num which is signed),
25259         that is a bigger change and is not needed to fix the bugs I found.
25260         * lib/dfa.c: Include stdint.h and intprops.h.
25261         (TOKEN_MAX): New macro.
25262         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
25263         (charclass_index, parse_bracket_exp, addtok, insert, merge)
25264         (realloc_trans_if_necessary, free_mbdata):
25265         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
25266         This is safe because xpalloc checks that the sizes do not exceed
25267         either SIZE_MAX or PTRDIFF_MAX.
25268         (xpalloc): New function, mostly taken from Emacs.
25269         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
25270         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
25271         (charclass_index): Check for integer overflow in computing
25272         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
25273         added to it later.
25274         (alloc_position_set): Check for integer overflow.  On typical
25275         platforms this check has zero overhead, since the constant
25276         expression is false.
25277         (realloc_trans_if_necessary):
25278         Remove assertion, which I hope Coverity no longer needs.
25280         * modules/dfa (Depends-on): Add intprops, stdint.
25282 2016-12-12  Jim Meyering  <meyering@fb.com>
25284         dfa: add an assertion to avoid coverity false positive
25285         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
25286         warned that "newalloc1 - 2" could overflow.
25288 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
25290         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
25291         * dfa.h (DFA_CASE_FOLD): Remove.
25292         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
25294 2016-12-13  John W. Eaton  <gnu@jweaton.org>
25296         link: fix test to declare use of rename()
25297         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
25298         -Werror=implicit-function-declaration
25300 2016-12-12  Bruno Haible  <bruno@clisp.org>
25302         fpending: Port to native Windows with MSVC.
25303         * lib/fpending.c: Include stdio-impl.h.
25304         (__fpending): Include all known implementations. Err out if it's not
25305         ported.
25306         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
25307         * modules/fpending (Files): Add lib/stdio-impl.h.
25308         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
25310 2016-12-12  Bruno Haible  <bruno@clisp.org>
25312         stdioext: Port to native Windows with MSVC.
25313         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
25314         (struct _gl_real_FILE): New type.
25315         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
25316         Windows.
25317         * lib/fbufmode.c (fbufmode): Add code for native Windows.
25318         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
25319         other SystemV derived implementations.
25320         * lib/fpurge.c (fpurge): Likewise.
25321         * lib/freadable.c (freadable): Likewise.
25322         * lib/freadahead.c (freadahead): Likewise.
25323         * lib/freading.c (freading): Likewise.
25324         * lib/freadptr.c (freadptr): Likewise.
25325         * lib/freadseek.c (freadptrinc): Likewise.
25326         * lib/fseeko.c (fseeko): Likewise.
25327         * lib/fseterr.c (fseterr): Likewise.
25328         * lib/fwritable.c (fwritable): Likewise.
25329         * lib/fwriting.c (fwriting): Likewise.
25330         Reported by Gisle Vanem <gvanem@yahoo.no>.
25332 2016-12-11  Jim Meyering  <meyering@fb.com>
25334         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
25335         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
25336         to work with most shells, but not with the one provided by many
25337         Solaris 10 systems, so running configure with such a /bin/sh evokes
25338         e.g., "./configure: syntax error at line 33602: `(' unexpected".
25339         Reported by Assaf Gordon in
25340         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
25342 2016-12-10  Bruno Haible  <bruno@clisp.org>
25344         threadlib: Optimize out runtime test on Solaris >= 10.
25345         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
25346         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
25347         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
25349 2016-12-10  Bruno Haible  <bruno@clisp.org>
25351         stdint: Update doc about Solaris 9.
25352         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
25354 2016-12-09  Bruno Haible  <bruno@clisp.org>
25356         c-ctype tests: Fix link error on Solaris 9.
25357         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
25358         Reported at <https://savannah.gnu.org/bugs/?46827>.
25360 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
25362         dfa: fix performance bug that recomputes trans
25363         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
25364         25 on-demand changes.  The bug caused build_state to reset all
25365         d->trans elements to -2 even when d->trans was already non-null.
25366         Use C99 style decls after statements in this function.
25368         same-inode: port to MinGW
25369         Here st_ino is always 0, so change the definition of SAME_INODE so
25370         that 1 means the two files are the same, 0 with st_ino != 0 means
25371         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
25372         reported by Bruno Haible (Bug#25146).
25373         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
25374         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
25376 2016-12-04  Bruno Haible  <bruno@clisp.org>
25378         javacomp-script: Support Java 7 and 8.
25379         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
25380         target-version 1.7, 1.8.
25382 2016-12-02  Daiki Ueno  <ueno@gnu.org>
25384         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
25385         GPLv2" rewriting.
25387 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
25389         * gnulib-tool (func_import): Adhere to the license guideline when
25390         rewriting the license text to "LGPLv3+ or GPLv2":
25391         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
25393 2016-12-02  Bruno Haible  <bruno@clisp.org>
25395         localcharset: Avoid theoretical buffer overrun.
25396         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
25397         return value from setlocale if it would lead to a buffer overrun.
25399 2016-12-01  Bruno Haible  <bruno@clisp.org>
25401         Relicense some modules under LGPLv2+.
25402         Kevin Cernekee's approval is in
25403         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
25404         * modules/fseterr (License): Change to LGPLv2+.
25405         * modules/mbchar (License): Likewise.
25406         * modules/mbiter (License): Likewise.
25407         * modules/mbsnlen (License): Likewise.
25408         * modules/wcwidth (License): Likewise.
25410 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25412         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
25413         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
25414         OS/2 kLIBC.
25416 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25418         alphasort, scandir: Port to OS/2 kLIBC
25419         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
25420         declaration.
25421         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
25423 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25425         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
25426         * lib/relocatable.c (relocate): Do not touch pathname if it is started
25427         with '/@unixroot'.
25429 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25431         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
25432         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
25433         OS/2 kLIBC unless TCPV40HDRS is defined.
25435 2016-11-29  Jim Meyering  <meyering@fb.com>
25437         dfa: avoid new infinite loop
25438         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
25439         * lib/dfa.c (dfastate): When constructing a new state table, we could
25440         initially declare that we had found a match, and later find that
25441         constraints eliminate that possibility, yet continue to use the
25442         now stale "matched" indicator.  That would lead to an infinite loop.
25443         The solution is to update "matched" when necessary.
25444         Introduced by commit v0.1-983-g403adf1.
25446 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25448         dfa: avoid match middle in multibyte character
25449         * lib/dfa.c (transit_state): If fails in matching single byte characters
25450         on a state including period expression in non-UTF8 multibyte locales,
25451         skip trailing bytes.
25452         (dfa_supported): Revert previous change.
25454 2016-11-27  Jim Meyering  <meyering@fb.com>
25456         dfa: avoid false match in non-UTF8 multibyte locales
25457         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
25458         as "not supported" so that callers will resort to using regex-based
25459         matcher.  This will surely hurt performance, but correctness trumps
25460         performance here, and the affected locales are less and less relevant,
25461         these days.  See grep's bug report https://bugs.gnu.org/24975.
25463 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
25465         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
25466         * lib/ptsname_r.c: Include the appropriate headers.
25467         [__sun]: Delete sys/sysmacros.h include.
25468         [_AIX || __osf__]: Likewise.
25469         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
25471 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25473         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
25474         * lib/md4.c (md4_process_bytes): The existing define is made internal
25475         in recent versions of glibc, so also use this new public define.
25476         * lib/md5.c (md5_process_bytes): Likewise.
25477         * lib/sha1.c (sha1_process_bytes): Likewise.
25478         * lib/sha256.c (sha256_process_bytes): Likewise.
25479         * lib/sha512.c (sha512_process_bytes): Likewise.
25481 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25483         maint: use a more standard return from mbrtowc test
25484         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
25485         from the test program as this often indicates an
25486         unhandled case in the test program.
25487         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
25488         (gl_MBRTOWC_SANITYCHECK): Likewise.
25489         (gl_MBRTOWC_NULL_ARG2): Likewise.
25490         (gl_MBRTOWC_NUL_RETVAL): Likewise.
25492 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25494         freopen: work around glibc bug with closed fd
25495         Work around glibc bug#15589, where freopen mishandles the case
25496         where stdin etc. are already closed.
25497         * doc/posix-functions/freopen.texi (freopen): Document the bug.
25498         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
25499         instead of __need_FILE, as the latter does not work with glibc.
25500         Include <fcntl.h>, for open flags.
25501         (rpl_freopen): Work around glibc bug.
25502         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
25503         * modules/freopen (Depends-on): Add fcntl-h.
25504         * tests/test-freopen.c (main): Test for bug.
25506 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25508         fnmatch: fix typo introduced on 2016-08-17
25509         This fixes the port to non-GCC compilers that lack __builtin_expect.
25510         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
25512         dfa: simplify with new function fillset
25513         * lib/dfa.c (fillset): New function.
25514         Use it for clarity when applicable.
25516         dfa: fix glitches with on-demand states
25517         Also, adjust commentary to better match new code.
25518         Some of these glitches predate the recent change.
25519         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
25520         only non-initial states.
25521         (dfastate): Rename locals to better match new roles.
25522         Move them into nested scopes if this is easy.
25523         Omit unnecessary calls to zeroset.
25524         Simplify test for whether to throw in the positions of state 0.
25525         Omit C99-ism (decl after statement) since Gawk still wants C89.
25526         (build_state): Omit unnecessary test and assignment.
25527         Fix some confusion that counted transition tables inaccurately
25528         and could cause a memory leak.
25529         (dfaexec_main): Redo to make it clearer to the compiler that
25530         -1 and -2 are the only negative state numbers here.
25532 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25534         dfa: addition of new state on demand
25535         * src/dfa.c (dfastate): Add argument UC, the current input character.
25536         Fill only a group including the character in transition table.
25537         (realloc_trans_if_necessary): Add the dummy state which means that a
25538         transition table is assigned but the next state is not assigned.
25539         (build_state): Return the next state.  All callers updated.
25540         (transit_state_singlebyte): If we get the dummy state,
25541         fill the transition table.
25542         (dfaexec_main): Handle the dummy state.
25543         (free_mbdata, dfafree): Consider the dummy state.
25545 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25547         srclist: sync with released gettext
25548         * config/srclist.txt: Set "release" option to the files under
25549         $GETTEXT.
25551 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25553         srclist: add "release" option
25554         * config/srclist.txt: Change the format so that the first column
25555         of each line points to the top-level directory of the source
25556         archive.
25557         * config/srclist-update: Accept "release" option that checks files
25558         from the most recently tagged revision in the source archive.
25560 2016-11-21  Bruno Haible  <bruno@clisp.org>
25562         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
25563         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25564         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
25565         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
25566         Inline and remove member function 'rpl ()' of the wrapper struct.
25568 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25570         dfa: fix logic typo
25571         Problem reported by Stephane Chazelas (Bug#24973).
25572         * lib/dfa.c (using_simple_locale): Fix typo that caused some
25573         non-simple locales like fr_FR to be treated as simple.
25575 2016-11-20  Jim Meyering  <meyering@fb.com>
25577         fix test driver leaks: exclude, malloc, realloc
25578         * tests/test-exclude.c (main): Fix trivial leak.
25579         * tests/test-malloc-gnu.c (main): Likewise.
25580         * tests/test-realloc-gnu.c (main): Likewise.
25581         With these changes, grep's tests are now leak free.
25582         I.e., running them with ASAN elicits no failure:
25583           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
25584             AM_LDFLAGS='-fsanitize=address -static-libasan' check
25586 2016-11-11  Bruno Haible  <bruno@clisp.org>
25588         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
25589         * modules/libunistring: (License): Change from LGPL to
25590         "LGPLv3+ or GPLv2".
25591         * modules/libunistring-optional: Likewise.
25592         * modules/unicase/*: Likewise.
25593         * modules/uniconv/*: Likewise.
25594         * modules/unictype/*: Likewise.
25595         * modules/unigbrk/*: Likewise.
25596         * modules/unilbrk/*: Likewise.
25597         * modules/uniname/*: Likewise.
25598         * modules/uninorm/*: Likewise.
25599         * modules/unistdio/*: Likewise.
25600         * modules/unistr/*: Likewise.
25601         * modules/uniwbrk/*: Likewise.
25602         * modules/uniwidth/*: Likewise.
25604 2016-11-12  Bruno Haible  <bruno@clisp.org>
25606         Relicense some modules under LGPLv2+.
25607         Paul Eggert's approval is in
25608         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
25609         Eric Blake's approval is in
25610         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
25611         Ludovic Courtès's approval is in
25612         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
25613         * modules/isnand-nolibm (License): Change to LGPLv2+.
25614         * modules/isnanf-nolibm (License): Likewise.
25615         * modules/isnanl-nolibm (License): Likewise.
25617 2016-11-19  Bruno Haible  <bruno@clisp.org>
25619         Relicense some modules under LGPLv2+.
25620         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
25621         modules/vasnprintf.
25622         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
25623         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
25624         All other significant changes to the files in lib/ of these modules
25625         are from me.
25626         * modules/memcmp2 (License): Change to LGPLv2+.
25627         * modules/amemxfrm (License): Likewise.
25628         * modules/fpieee (License): Likewise.
25629         * modules/fpucw (License): Likewise.
25630         * modules/frexp-nolibm (License): Likewise.
25631         * modules/frexpl-nolibm (License): Likewise.
25632         * modules/printf-frexp (License): Likewise.
25633         * modules/printf-frexpl (License): Likewise.
25634         * modules/printf-safe (License): Likewise.
25635         * modules/signbit (License): Likewise.
25637 2016-11-17  Bruno Haible  <bruno@clisp.org>
25639         Enable Unicode decoder safety unconditionally.
25640         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
25641         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
25642         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25643         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25644         * lib/unistr/u8-prev.c (u8_prev): Likewise.
25645         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
25646         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
25647         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
25648         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
25649         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
25650         * lib/unistr/u16-prev.c (u16_prev): Likewise.
25651         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
25652         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
25653         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
25654         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
25655         * lib/unistr/u32-prev.c (u32_prev): Likewise.
25656         * lib/unistr/u32-next.c (u32_next): Likewise.
25657         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
25658         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
25659         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25660         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25661         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
25662         CONFIG_UNICODE_SAFETY tests unconditionally.
25663         * tests/unistr/test-u32-mblen.c (main): Likewise.
25664         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
25665         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
25666         * tests/unistr/test-u32-next.c (main): Likewise.
25667         * tests/unistr/test-u32-strmblen.c (main): Likewise.
25668         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
25669         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
25670         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
25671         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
25672         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25673         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
25674         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
25675         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
25676         * lib/unistr/u16-check.c (u16_check): Update comment.
25677         * NEWS: Mention the changes that callers should be aware of.
25679 2016-11-19  Bruno Haible  <bruno@clisp.org>
25681         relocatable-prog-wrapper: Fix breakage on Cygwin.
25682         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
25683         (Depends-on): Remove intprops.
25684         * lib/relocwrapper.c: Update dependency tree.
25685         (strerror): Undefine.
25686         * build-aux/install-reloc (func_create_wrapper): Do not compile
25687         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
25689 2016-11-19  Bruno Haible  <bruno@clisp.org>
25691         strerror: Make it compile in C++ mode.
25692         * lib/strerror.c (strerror): Ignore the return value of memcpy().
25694 2016-11-15  Pedro Alves  <palves@redhat.com>
25696         sys_time: add gnulib::timeval for C++
25697         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
25698         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
25699         timeval macro.
25701 2016-11-14  Pedro Alves  <palves@redhat.com>
25703         snippet/c++defs: fix real-floating arg functions in C++ mode
25704         Also, define isfinite, isinf, isnan, signbit in the gnulib
25705         namespace instead of in the global namespace.
25706         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
25707         (_GL_END_NAMESPACE): New.
25708         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
25709         (isfinite, isinf, isnan, signbit) [__cplusplus &&
25710         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
25711         instead of in the global namespace.
25712         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
25713         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
25714         of in the global namespace.
25716 2016-11-13  Jim Meyering  <meyering@fb.com>
25718         strftime: don't use __THROW
25719         Each use of __THROW would provoke this from gcc-7-to-be:
25721           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
25722             on unit local functions [-Wattributes]
25723           static int iso_week_days (int, int) __THROW;
25724           ^~~~~~
25725         * lib/strftime.c (__THROW): Don't define.
25726         Remove each use of __THROW.
25727         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
25728         (tm_diff, iso_week_days, __strftime_internal): Likewise.
25730 2016-11-14  Paul Eggert  <eggert@union>
25732         obstack: port to gcc -fcheck-pointer-bounds
25733         Problem found by 'make check' failure on bleeding-edge coreutils
25734         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
25735         6.2.0-5ubuntu12), configured via "./configure
25736         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
25737         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
25738         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
25739         New macro, copied from fts_.h.
25740         (struct _obstack_chunk.contents): Use it.
25742 2016-11-14  Eric Blake  <eblake@redhat.com>
25744         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
25745         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
25746         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
25748 2016-11-14  Pádraig Brady  <P@draigBrady.com>
25750         strptime: fix compile error in recent change
25751         * lib/strptime.c (__strptime_internal): Fix ported code.
25753 2016-11-11  Bruno Haible  <bruno@clisp.org>
25755         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
25756         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
25757         (func_import): Extend determination of license_incompatibilities.
25758         (func_create_testdir): Extend table of license compatibility. Handle
25759         also the licenses GPLv3+, GPL, LGPLv3+.
25761 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25763         strftime: tune %q
25764         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
25766         Merge strftime.c changes from glibc
25767         This incorporates:
25768         2007-10-16 [BZ #5184] Add tzset_called argument
25769         2008-06-13 [BZ #6612] pass reference to tzset_called around
25770         2009-10-30 Implement Burmese language locale for Myanmar
25771         2010-01-09 Add support for XPG7 testing
25772         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
25773         2015-10-20 Convert miscellaneous function definitions to prototype style
25774         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
25775         it anyway and this lessens the difference between gnulib and glibc.
25776         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
25777         (__THROW): Define if standard headers do not.
25778         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
25779         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
25780         Declare with __THROW.
25781         (__strftime_internal): Rename from strftime_case_. Add arg for
25782         whether tzset is called.  All uses changed.  Call tzset at most
25783         once.  Allow %OC, for Burmese.
25784         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
25785         Don't assume values are in range.
25787 2016-11-12  Eric Blake  <eblake@redhat.com>
25789         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
25790         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
25791         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
25792         different value.
25794 2006-11-12  Pedro Alves  <palves@redhat.com>
25796         Fix gnulib C++ namespace support and std::frexp
25797         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
25798         _GL_CXXALIASWARN.
25800 2006-11-12  Pedro Alves  <palves@redhat.com>
25802         GNULIB_NAMESPACE::func need not pull in rpl_func
25803         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25804         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
25805         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
25806         struct instead of a function pointer.
25808 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
25810         manywarnings: fix -Wno-missing-field-initializers detection
25811         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
25812         to be independent of -Wunused-variable.  I.E. ensure the latter
25813         warning doesn't occur so that detection of the former is accurate.
25815 2016-11-05  Pádraig Brady  <pbrady@fb.com>
25817         strftime,strptime: support %q to represent the quarter
25818         * lib/strftime.c (strftime_case_): Add %q case.
25819         * lib/strptime.c (__strptime_internal): Likewise.
25820         * tests/test-strftime.c (quarter_test): A new test case.
25822 2016-11-03  Eric Blake  <eblake@redhat.com>
25824         bootstrap: Fix get_version() for AIX 5.3
25825         * build-aux/bootstrap (get_version): Factor out sed script, since
25826         indented comments choke AIX 5.3 sed.
25827         Reported-by: Michael Felt <aixtools@gmail.com>
25829 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
25831         intprops: port to older XL C
25832         Problem reported by Alexander Samoilov in:
25833         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
25834         http://savannah.nongnu.org/bugs/?49448
25835         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
25836         Define to 1 only for XL C 12.1 or later, since this bug
25837         occurs in XL C for AIX 6.0 but not in 12.1.
25839 2016-11-02  Pádraig Brady  <P@draigBrady.com>
25841         backupfile: initialize default suffix within the implementation
25842         * lib/backupfile.c (find_backup_file_name): Initialize the
25843         global variable here, to simplify usage, and to only call
25844         getenv() when needed.
25846 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25848         futimens: remove FIXME for old Linux kernels
25849         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
25850         this in 2012" FIXME, like that for utimensat.
25852         utimensat: remove FIXME for old Linux kernels
25853         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
25854         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
25855         this in 2012" FIXME, by assuming the file system bug is absent
25856         unless demonstrated to be present.  We no longer need to worry
25857         about Linux kernel 2.6.32 when building with newer kernels.
25859 2016-10-16  Bruno Haible  <bruno@clisp.org>
25861         qsort_r: Fix macrology for platforms that lack the function.
25862         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
25863         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
25864         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
25865         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
25866         not exist.
25867         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
25868         the function exists.
25869         * modules/qsort_r: Add comments.
25871 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25873         sys_types: fix Texinfo typos
25874         * doc/glibc-functions/gnu_dev_major.texi:
25875         * doc/glibc-functions/gnu_dev_makedev.texi:
25876         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
25878 2016-10-26  John David Anglin  <dave.anglin@bell.net>
25880         getprogname: port to HP-UX
25881         See Bug#24805.
25882         * lib/getprogname.c (getprogname) [__hpux]: Port.
25883         * tests/test-getprogname.c (STREQ) [__hpux]:
25884         Special-case for HP-UX limitations on program name length.
25886 2016-10-20  Bruno Haible  <bruno@clisp.org>
25888         Update doc about target platforms.
25889         * doc/gnulib-intro.texi (Target Platforms): Update list.
25891 2016-10-15  Bruno Haible  <bruno@clisp.org>
25893         opendir, readdir, closedir: Relicense under LGPLv2+.
25894         * modules/opendir (License): Change to LGPLv2+.
25895         * modules/readdir (License): Likewise.
25896         * modules/closedir (License): Likewise.
25898 2016-10-16  Bruno Haible  <bruno@clisp.org>
25900         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
25901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
25902         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
25903         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
25904         HAVE_DECL_STRERROR_R.
25906 2016-10-16  Bruno Haible  <bruno@clisp.org>
25908         Make the 'argp' module work without the 'error' module.
25909         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
25911 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25913         diffseq: restore TOO_EXPENSIVE heuristic
25914         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
25915         (Bug#24715).  The simplest solution is to restore the
25916         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
25917         using a higher threshold to avoid Bug#16848 on smaller files.
25918         * lib/diffseq.h (struct context): Restore member too_expensive.
25919         (struct partition): Restore members lo_minimal, hi_minimal.
25920         (diag, compareseq): Restore arg find_minimal.  All uses changed.
25921         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
25922         1993 to make 'diff' run faster (but not as well) on large inputs,
25923         but use a threshold of 4096 instead of the old 256.
25924         * lib/fstrcmp.c (strcmp_bounded):
25925         * lib/git-merge-changelog.c (compute_differences):
25926         Adjust to diffseq.h changes.
25928 2016-10-22  Bruno Haible  <bruno@clisp.org>
25930         iconv: Avoid compilation error when bootstrapping GNU libiconv.
25931         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
25932         declaration yet, define ICONV_CONST to empty.
25934 2016-10-15  Bruno Haible  <bruno@clisp.org>
25936         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
25937         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
25938         module.
25940 2016-10-16  Bruno Haible  <bruno@clisp.org>
25942         system-quote tests: Avoid compiler warning on AIX.
25943         * tests/test-system-quote-child.c (fopen): Redefine like the system's
25944         <stdio.h> does.
25946 2016-10-16  Bruno Haible  <bruno@clisp.org>
25948         Fix some "gcc -Wall" warnings.
25949         * tests/test-ffsl.c (main): Use variable x, not i.
25950         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
25951         freopen.
25952         * tests/test-sethostname1.c (main): Explicitly ignore the return value
25953         of sethostname.
25955 2016-10-16  Bruno Haible  <bruno@clisp.org>
25957         gnulib-tool: Make --create-testdir on all modules work again.
25958         * gnulib-tool (func_create_testdir): Don't include the
25959         non-recursive-gnulib-prefix-hack module.
25961 2016-10-21  Daiki Ueno  <ueno@gnu.org>
25963         libunistring: change the maintainer to 'all'
25964         * modules/gen-uni-tables, modules/libunistring:
25965         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
25966         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
25967         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
25968         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
25969         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
25970         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
25971         * modules/uniwidth/*: Change the maintainer to 'all'.
25973 2016-10-16  Bruno Haible  <bruno@clisp.org>
25975         Simplify "configure: checking ..." messages.
25976         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
25977         AC_MSG_NOTICE.
25978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25980 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25982         quotearg-tests: pacify gcc -Wall
25983         Problem reported by Bruno Haible in:
25984         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
25985         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
25986         * tests/test-quotearg.h: ... from here.
25988 2016-10-20  Pádraig Brady  <P@draigBrady.com>
25990         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
25991         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
25992         Needed on Centos <= 4.
25994 2016-10-20  Jim Meyering  <meyering@fb.com>
25996         printf.m4: fix a bug in detecting printf %j support
25997         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
25998         uintmax_t is defined in neither stdint.h nor inttypes.h.
25999         Before, this macro might have mistakenly set
26000         gl_cv_func_printf_sizes_c99=yes on such a system.
26001         Spotted by Zev Weiss.
26003 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
26005         sched: substitute HAVE_SYS_CDEFS_H too
26006         Problem reported by Tom G. Christensen in:
26007         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
26008         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
26009         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
26011 2016-10-19  Pádraig Brady  <P@draigBrady.com>
26013         quotearg: never write beyond the returned length
26014         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
26015         scan of the string when we initially encounter a single quote when
26016         shell quoting, so that if we then switch to a more concise quoting method
26017         we will not have written beyond that returned length.
26018         This is significant for sh-quote, which has separate routines
26019         to determine the length and do the actual quoting.
26020         * tests/test-quotearg.h: Reinstate the buffer bounds checking
26021         now that we never write more than the returned length.
26023 2016-10-18  Bruno Haible  <bruno@clisp.org>
26025         getprogname tests: Avoid failure in packages that use libtool.
26026         * tests/test-getprogname.c (main): Strip "lt-" prefix.
26027         Based on a patch by Jim Meyering.
26029 2016-10-16  Bruno Haible  <bruno@clisp.org>
26031         getprogname: Fix test failure on Cygwin. Comments.
26032         * lib/getprogname.h: Add comments.
26033         * lib/getprogname.c: Add comments. Fix #elif indentation.
26034         * tests/test-getprogname.c (main): On Cygwin, expect a result without
26035         ".exe" suffix.
26037 2016-10-16  Bruno Haible  <bruno@clisp.org>
26039         Make sure the libunistring detection rejects older versions with a
26040         known bug.
26041         * modules/unistr/u8-strtok (configure.ac): Bump required version.
26042         * modules/unistr/u16-strtok (configure.ac): Likewise.
26043         * modules/unistr/u32-strtok (configure.ac): Likewise.
26045 2016-10-18  Bruno Haible  <bruno@clisp.org>
26047         sh-quote, system-quote: revert regression of unit test.
26048         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
26049         * tests/test-system-quote-main.c (check_one): Likewise.
26051 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26053         quotearg: fix stale tests
26054         * tests/test-quotearg.c [locale_results]: Add the missing str7
26055         entries to the expected results.
26056         * tests/test-system-quote-main.c (check_one): Don't enforce that we
26057         don't write beyond the returned length, since that's no longer the
26058         case if we switch to a more concise quoting style.
26059         * tests/test-sh-quote.c (check_one): Likewise.
26060         (main): Adjust for the new more concise quoting style.
26061         Reported by Bruno Haible.
26063 2016-10-16  Jim Meyering  <meyering@fb.com>
26065         non-recursive-gnulib-prefix-hack: fix inconsequential typo
26066         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
26067         to "$1".  This macro is always invoked with $1 == lib.
26068         Spotted by Bruno Haible
26070 2016-10-16  Bruno Haible  <bruno@clisp.org>
26072         Fix a test crash.
26073         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
26074         fails.
26076 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26078         test-limits-h: suppress -Woverlength-strings
26079         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
26081 2016-10-15  Bruno Haible  <bruno@clisp.org>
26083         gettime, timespec, utimens: Relicense under LGPL.
26084         * modules/gettime (License): Change to LGPL.
26085         * modules/timespec (License): Likewise.
26086         * modules/utimens (License): Likewise.
26088 2016-10-14  Bruno Haible  <bruno@clisp.org>
26089             Pádraig Brady  <P@draigBrady.com>
26091         canonicalize-lgpl: Support the case path_max > INT_MAX.
26092         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
26093         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
26095 2016-10-13  Jim Meyering  <meyering@fb.com>
26097         getprogname: IBM z/OS: avoid NULL-dereference
26098         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
26099         upon strdup failure.
26101 2016-10-12  Jim Meyering  <meyering@fb.com>
26103         test-stdint: use _GL_VERIFY rather than "verify" for some tests
26104         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
26105         and an abbreviated diagnostic rather than verify with the full one,
26106         because the full-length strings would evoke warnings from gcc with
26107         -Woverlength-strings.
26109 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26111         stdint: port SIZE_MAX to glibc s390
26112         Problem reported by Eric Blake in:
26113         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
26114         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
26115         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
26116         correct type, if possible.
26118 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
26120         getprogname: port to IBM z/OS
26121         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
26123 2016-10-11  Jim Meyering  <meyering@fb.com>
26125         maint: remove stray space after "." in AC_DEFINE comment.
26126         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
26127         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26129 2016-10-05  Jim Meyering  <meyering@fb.com>
26131         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26132         * lib/long-options.c (parse_long_options): Add a break statement
26133         to avoid this new warning/failure:
26134         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26135           --create-testdir --dir=/t/x --with-tests --test long-options
26136         ../../gllib/long-options.c: In function 'parse_long_options':
26137         ../../gllib/long-options.c:66:12: error: this statement may \
26138           fall through [-Werror=implicit-fallthrough]
26139                    (*usage_func) (EXIT_SUCCESS);
26140                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26142 2016-10-05  Jim Meyering  <meyering@fb.com>
26144         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26145         Testing this module would fail when using GCC 7 like this:
26146         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26147           --dir=/tmp/x --with-tests --test utimecmp
26148         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26149         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26150           [-Werror=bool-operation]
26151                          time_t s = src_s & ~ (res == 2 * BILLION);
26152                                             ^
26153         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26154           [-Werror=bool-operation]
26155                src_s &= ~ (res == 2 * BILLION);
26156                         ^
26157         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26158         Instead, make it explicit that we intend to apply it to 0 or 1.
26160 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26162         dfa: save memory for states
26163         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
26164         states if dfa has a lot of caches.
26166 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
26168         wchar, wctype-h: fix for MinGW 3.22.2
26169         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
26170         special invocation, to fix issues with MinGW 3.22.2 wchar.h
26171         when included from <string.h>.
26172         * lib/wctype.in.h [__MINGW32__]: Add special invocation
26173         convention for MinGW 3.22.2, to solve issues with their
26174         wctype.h when included from <ctype.h>.
26176 2016-10-05  Jim Meyering  <meyering@fb.com>
26178         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26179         * lib/long-options.c (parse_long_options): Add a break statement
26180         to avoid this new warning/failure:
26181         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26182           --create-testdir --dir=/t/x --with-tests --test long-options
26183         ../../gllib/long-options.c: In function ‘parse_long_options’:
26184         ../../gllib/long-options.c:66:12: error: this statement may \
26185           fall through [-Werror=implicit-fallthrough]
26186                    (*usage_func) (EXIT_SUCCESS);
26187                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26189         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26190         Testing this module would fail when using GCC 7 like this:
26191         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26192           --dir=/tmp/x --with-tests --test utimecmp
26193         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26194         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26195           [-Werror=bool-operation]
26196                          time_t s = src_s & ~ (res == 2 * BILLION);
26197                                             ^
26198         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26199           [-Werror=bool-operation]
26200                src_s &= ~ (res == 2 * BILLION);
26201                         ^
26202         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26203         Instead, make it explicit that we intend to apply it to 0 or 1.
26205 2016-10-03  Pádraig Brady  <P@draigBrady.com>
26207         quotearg: minimize shell quoting using double quotes
26208         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
26209         quote in encountered then use double quotes (c style quoting)
26210         when possible, as it simplifies the quoting.
26211         * tests/test-quotearg-simple.c: Add test cases.
26212         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
26213         for the fact we now may write beyond the returned length.
26215 2016-10-02  Jim Meyering  <meyering@fb.com>
26217         vasnprintf.c: avoid spurious warning from GCC 7
26218         The presence of cpp directives renders this "FALLTHROUGH" comment
26219         ineffective, so does not suppress the -Wimplicit-fallthrough warning
26220         from GCC 7 built from git on 2016-10-02.
26221         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
26222         directives, so that it takes effect once again.  This is clearly
26223         not a proper change, and I will revert it once this bug is fixed:
26224         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
26226 2016-10-01  Jim Meyering  <meyering@fb.com>
26228         getprogname: correct the test for a __progname variable
26229         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
26230         and AC_LINK_IFELSE to check for a global __progname.  If found,
26231         define HAVE_VAR___PROGNAME.
26232         * lib/getprogname.c (getprogname): Reflect the new name of the
26233         feature- checked preprocessor symbol:
26234         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
26236 2016-09-28  Jim Meyering  <meyering@fb.com>
26238         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
26239         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
26240         fall-through case with a /* fallthrough */ comment.
26242         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
26243         * lib/dfa.c (dfassbuild): Mark the end of this case with a
26244         /* fallthrough */ comment.
26246         getprogname: avoid __progname vs program_invocation_short_name pitfall
26247         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
26248         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
26249         not with Fedora 24's glibc-2.23.1-10.
26250         * lib/getprogname.c (__progname): Move this declaration down...
26251         (getprogname): ... into the #elif block where used, and make it
26252         explicitly "extern".
26254         getprogname: port to OpenBSD 5.1
26255         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
26256         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
26257         * modules/getprogname (configure.ac): Move most of this code...
26258         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
26259         increment serial number, and add a test for __progname.
26260         https://bugs.gnu.org/24562
26261         Reported by Nelson H. F. Beebe.
26263 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26265         sched: port to GCC 6.2.1 on macOS Sierra
26266         Problem reported by Denis Davydov in:
26267         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
26268         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
26269         Include <sys/cdefs.h> before <sched.h>.
26270         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
26271         so that we needn’t worry about the sched.h include bug here.
26272         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
26273         and include it before <sched.h> if it exists, when
26274         checking for <sched.h>.
26276         tests/init.sh: port Alpine fix to AIX 7.1
26277         * tests/init.sh (compare_): When attempting to use diff -U3,
26278         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
26279         diff -u not outputting a space after leading '+', as the users
26280         of 'compare' should not be that picky about its output format.
26281         In the AIX 7.1 case, return with diff exit status (or with 2 if
26282         trouble), instead of some random nonzero exit status.
26283         * tests/test-init.sh (test_compare): Remove space after leading
26284         '+', so that AIX 7.1 'diff' passes the test.
26286 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26288         nl_langinfo: pacify GCC
26289         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
26290         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
26292         stdint: also set GL_GENERATE_LIMITS_H
26293         Problem reported by Jim Meyering in:
26294         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
26295         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
26297         limits-h, stdint: Don't assume extensions, fix typo
26298         * m4/limits-h.m4 (gl_LIMITS_H):
26299         * m4/stdint.m4 (gl_STDINT_H):
26300         Don't assume AC_USE_SYSTEM_EXTENSIONS.
26301         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
26302         reported by Jim Meyering in:
26303         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
26305 2016-09-21  Jim Meyering  <meyering@fb.com>
26307         getprogname: port to AIX
26308         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
26309         and strdup to obtain a short program name string.  Using code from
26310         Bruno Haible and an idea from Bastien ROUCARIÈS, in
26311         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26312         Assaf Gordon reported that this new file would fail to compile on
26313         AIX-7.1 32bit.
26315 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26317         extensions: fix typo in comment
26318         * m4/extensions.m4: Sync from Autoconf master.
26320         stdint: support new _WIDTH macros
26321         * doc/posix-headers/stdint.texi: Document this.
26322         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
26323         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
26324         support for INTMAX_WIDTH, etc. as well as for support for just C99.
26325         * modules/stdint (Depends-on): Add limits-h.
26326         (Makefile.am): Substitute HAVE_C99_STDINT_H.
26327         * modules/stdint-tests (Depends-on): Add extensions, so that
26328         INTMAX_MAX etc. are defined.
26329         * tests/test-stdint.c: Verify the new macros.
26331         limits-h: new module
26332         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
26333         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
26334         * doc/posix-headers/limits.texi: Document new module.
26335         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
26336         * modules/limit-h-tests, tests/test-limits-h.c: New files.
26338         stdio: don't redefine __USE_MINGW_ANSI_STDIO
26339         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
26340         if it is already defined.  Apparently GNU Emacs relies on this.  See:
26341         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
26343 2016-09-15  Eric Blake  <eblake@redhat.com>
26345         sys_types: avoid glibc 2.25 warnings about major()
26346         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
26347         older autoconf.
26348         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
26349         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
26350         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
26351         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
26353         mountlist: include sysmacros.h for glibc
26354         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
26355         AC_HEADER_MAJOR.
26356         * lib/mountlist.c (includes): Use correct headers.
26358 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26360         extensions: port to more ISO C TSes
26361         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
26362         master, to add support for more recent ISO C TRs and TSes.
26364 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26366         intprops: new macro TYPE_WIDTH
26367         * lib/intprops.h (TYPE_WIDTH): New macro.
26368         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
26369         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
26370         * lib/parse-datetime.y (parse_datetime2):
26371         Use it.
26373         extensions: port to recent ISO C TRs
26374         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26375         Sync from Autoconf master, to add support for recent ISO C TRs.
26376         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
26377         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
26378         the MinGW option is not an extension.
26380 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26382         dfa: port to Solaris 9
26383         Problems reported by Tom G. Christensen in:
26384         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
26385         * modules/dfa (Depends-on): Add isblank.
26386         * modules/dfa-tests (dfa_match_aux_LDADD):
26387         Rename from test_stat_LDADD, to fix typo.
26388         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
26390 2016-09-10  Jim Meyering  <meyering@fb.com>
26392         strverscmp: avoid link failure on OS X
26393         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
26394         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
26396 2016-08-16  Jim Meyering  <meyering@fb.com>
26398         dfa: new module, importing grep's DFA matcher
26399         Since grep's DFA matcher is now being used by two gnulib-enabled
26400         projects, grep and sed, it makes sense to version-control its
26401         sources and unit tests in one place: here.
26402         * modules/dfa: New module.
26403         * modules/dfa-tests: New file.
26404         * lib/dfa.c: New file, from grep.
26405         * lib/dfa.h: Likewise.
26406         * lib/localeinfo.c: Likewise.
26407         * lib/localeinfo.h: Likewise.
26408         * tests/dfa-match-aux.c: Likewise.
26409         * tests/dfa-invalid-char-class.sh: Likewise.
26410         * tests/dfa-match.sh: Likewise, with minor changes.
26411         * MODULES.html.sh (Misc): Add "dfa" to this list.
26413 2016-09-09  Jim Meyering  <meyering@fb.com>
26415         getprogname-tests: don't depend on assert-h
26416         * modules/getprogname-tests (Depends-on): Remove assert-h.
26417         It was not needed, and in fact would cause build failure for
26418         coreutils on some systems.  Reported by Assaf Gordon in https:
26419         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
26421 2016-09-07  Jim Meyering  <meyering@fb.com>
26423         getprogname-tests: work also when EXEEXT is nonempty
26424         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
26425         * tests/test-getprogname.c (main): Use it.
26426         Suggested by Gisle Vanem.
26428 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
26430         getprogname: fix errors in previous change
26431         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
26432         s/program_invocation_name/base/
26433         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
26435 2016-09-08  Pádraig Brady  <P@draigBrady.com>
26437         parse-datetime: restrict debug output to input string
26438         * lib/parse-datetime.y (parse_datetime2): If we parse
26439         all of the input but determine it's invalid, ensure
26440         we don't output the now invalid input pointer.
26441         This issue was seen with `date -d 'now +1'`.
26443 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26445         flexmember: new macro FLEXALIGNOF
26446         * lib/flexmember.h: Include <stddef.h>, for offsetof.
26447         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
26448         this macro.  Update comments.
26450 2016-09-07  Jim Meyering  <meyering@fb.com>
26452         getprogname: port to systems with __argv (mingw, msvc)
26453         * lib/getprogname.c (getprogname): Include "dirname.h" and use
26454         last_component: more general than open coding it with hard-coded "/".
26455         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
26456         * modules/getprogname (Depends-on): Add dirname-lgpl.
26457         (configure.ac): Check for __argv in <stdlib.h>.
26458         * modules/getprogname-tests: New file.
26459         * tests/test-getprogname.c: New file.
26460         Suggested by Gisle Vanem in
26461         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
26463 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26465         flexmember: port better to GCC + valgrind
26466         With a char[] flexible array member in a struct with nontrivial
26467         alignment, GCC-generated code can access past the end of the
26468         array, because GCC assumes there are padding bytes to get the
26469         struct aligned.  So the common idiom of malloc (offsetof (struct
26470         s, m), n) does not properly allocate an n-byte trailing member, as
26471         malloc’s argument should be the next multiple of alignof (struct s).
26472         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26473         Although C11 apparently permits this GCC optimization (i.e., there
26474         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
26475         See the thread containing:
26476         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
26477         * lib/flexmember.h: New file.
26478         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
26479         * lib/localename.c, lib/time_rz.c:
26480         Include flexmember.h.
26481         * lib/fnmatch_loop.c (struct patternlist):
26482         * lib/localename.c (struct hash_node):
26483         Use FLEXIBLE_ARRAY_MEMBER.
26484         * lib/fnmatch_loop.c (EXT):
26485         * lib/fts.c (fts_alloc):
26486         * lib/glob.c (glob_in_dir):
26487         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26488         * lib/localename.c (gl_lock_define_initialized):
26489         * lib/time_rz.c (tzalloc):
26490         Use FLEXSIZEOF instead of offsetof.
26491         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26492         Check that the size of the struct can be taken.
26493         * modules/flexmember (Files): Add lib/flexmember.h.
26494         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
26495         Add flexmember.
26497 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26499         getprogname: port to Solaris 10
26500         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
26501         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
26502         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
26504         stdalign: correct mistake in alignof doc
26505         Problem reported by Joseph Myers in:
26506         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
26507         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
26508         alignof(S) where S is a structure containing a flexible array
26509         member.  The Gnulib substitute does not support this, but C11 does.
26511 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26513         main.mk: remove sc_program_name, since there is no more need to
26514         use set_program_name in tools (getprogname is enough for most
26515         of the cases).
26516         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
26517         * top/maint.mk (sc_program_name): Remove.
26519 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26521         Port tests away from progname, since modules that need the
26522         program name already depend on getprogname.
26523         * modules/acl-tests (Depends-on): Remove progname.
26524         * modules/argmatch (Depends-on): Likewise.
26525         * modules/argmatch-tests (Depends-on): Likewise.
26526         * modules/argp-tests (Depends-on): Likewise.
26527         * modules/argp-version-etc-tests (Depends-on): Likewise.
26528         * modules/array-list-tests (Depends-on): Likewise.
26529         * modules/array-oset-tests (Depends-on): Likewise.
26530         * modules/avltree-list-tests (Depends-on): Likewise.
26531         * modules/avltree-oset-tests (Depends-on): Likewise.
26532         * modules/avltreehash-list-tests (Depends-on): Likewise.
26533         * modules/carray-list-tests (Depends-on): Likewise.
26534         * modules/copy-file-tests (Depends-on): Likewise.
26535         * modules/exclude-tests (Depends-on): Likewise.
26536         * modules/fchownat-tests (Depends-on): Likewise.
26537         * modules/fdopendir-tests (Depends-on): Likewise.
26538         * modules/filenamecat-tests (Depends-on): Likewise.
26539         * modules/fstatat-tests (Depends-on): Likewise.
26540         * modules/fstrcmp-tests (Depends-on): Likewise.
26541         * modules/linked-list-tests (Depends-on): Likewise.
26542         * modules/linkedhash-list-tests (Depends-on): Likewise.
26543         * modules/mkdirat-tests (Depends-on): Likewise.
26544         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
26545         * modules/nonblocking-socket-tests (Depends-on): Likewise.
26546         * modules/obstack-printf-tests (Depends-on): Likewise.
26547         * modules/openat-tests (Depends-on): Likewise.
26548         * modules/parse-datetime-tests (Depends-on): Likewise.
26549         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
26550         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
26551         * modules/quotearg-simple-tests (Depends-on): Likewise.
26552         * modules/quotearg-tests (Depends-on): Likewise.
26553         * modules/rbtree-list-tests (Depends-on): Likewise.
26554         * modules/rbtree-oset-tests (Depends-on): Likewise.
26555         * modules/rbtreehash-list-tests (Depends-on): Likewise.
26556         * modules/spawn-pipe-tests (Depends-on): Likewise.
26557         * modules/system-quote-tests (Depends-on): Likewise.
26558         * modules/uniname/uniname-tests (Depends-on): Likewise.
26559         * modules/uninorm/nfc-tests (Depends-on): Likewise.
26560         * modules/uninorm/nfd-tests (Depends-on): Likewise.
26561         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
26562         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
26563         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
26564         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
26565         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
26566         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
26567         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
26568         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
26569         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
26570         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
26571         * modules/unlinkat-tests (Depends-on): Likewise.
26572         * modules/version-etc-tests (Depends-on): Likewise.
26573         * modules/xalloc-die-tests (Depends-on): Likewise.
26574         * modules/xmemdup0-tests (Depends-on): Likewise.
26575         * modules/xprintf-posix-tests (Depends-on): Likewise.
26576         * modules/xvasprintf-tests (Depends-on): Likewise.
26577         * tests/test-argmatch.c: Do not include progname.h.
26578         (main) Stop calling set_program_name.
26579         * tests/test-argp-version-etc.c: Likewise.
26580         * tests/test-argp.c: Likewise.
26581         * tests/test-argv-iter.c: Likewise.
26582         * tests/test-array_list.c: Likewise.
26583         * tests/test-array_oset.c: Likewise.
26584         * tests/test-avltree_list.c: Likewise.
26585         * tests/test-avltree_oset.c: Likewise.
26586         * tests/test-avltreehash_list.c: Likewise.
26587         * tests/test-carray_list.c: Likewise.
26588         * tests/test-copy-acl.c: Likewise.
26589         * tests/test-copy-file.c: Likewise.
26590         * tests/test-exclude.c: Likewise.
26591         * tests/test-fchownat.c: Likewise.
26592         * tests/test-fdopendir.c: Likewise.
26593         * tests/test-filenamecat.c: Likewise.
26594         * tests/test-fstatat.c: Likewise.
26595         * tests/test-fstrcmp.c: Likewise.
26596         * tests/test-linked_list.c: Likewise.
26597         * tests/test-linkedhash_list.c: Likewise.
26598         * tests/test-mkdirat.c: Likewise.
26599         * tests/test-nonblocking-pipe-main.c: Likewise.
26600         * tests/test-nonblocking-socket-main.c: Likewise.
26601         * tests/test-obstack-printf.c: Likewise.
26602         * tests/test-openat.c: Likewise.
26603         * tests/test-parse-datetime.c: Likewise.
26604         * tests/test-pipe-filter-gi1.c: Likewise.
26605         * tests/test-pipe-filter-gi2-main.c: Likewise.
26606         * tests/test-pipe-filter-ii1.c: Likewise.
26607         * tests/test-pipe-filter-ii2-main.c: Likewise.
26608         * tests/test-quotearg-simple.c: Likewise.
26609         * tests/test-quotearg.c: Likewise.
26610         * tests/test-rbtree_list.c: Likewise.
26611         * tests/test-rbtree_oset.c: Likewise.
26612         * tests/test-rbtreehash_list.c: Likewise.
26613         * tests/test-sameacls.c: Likewise.
26614         * tests/test-set-mode-acl.c: Likewise.
26615         * tests/test-spawn-pipe-main.c: Likewise.
26616         * tests/test-system-quote-main.c: Likewise.
26617         * tests/test-unlinkat.c: Likewise.
26618         * tests/test-version-etc.c: Likewise.
26619         * tests/test-xalloc-die.c: Likewise.
26620         * tests/test-xfprintf-posix.c: Likewise.
26621         * tests/test-xmemdup0.c: Likewise.
26622         * tests/test-xprintf-posix.c: Likewise.
26623         * tests/test-xvasprintf.c: Likewise.
26624         * tests/uniname/test-uninames.c: Likewise.
26625         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26626         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26627         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26628         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26629         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26630         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26631         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26632         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26633         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26634         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26635         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26636         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26637         * tests/test-c-stack.c: (program_name): Do not define.
26638         (main): Do not set program_name.
26639         * tests/test-closein.c: Likewise.
26640         * tests/test-xstrtol.c: Likewise.
26641         * tests/test-yesno.c: Likewise.
26643 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26645         Port modules to use getprogname explicitly, instead of requiring
26646         progname to be used (or program_name to be provided).
26647         * lib/argmatch.c: Do not include progname.h.
26648         [TEST] (program_name): Do not define.
26649         [TEST] (main): Call getprogname instead of using program_name.
26650         * lib/c-stack.c: Do not include progname.h.
26651         (program_name): Do not define.
26652         (die): Call getprogname instead of using program_name.
26653         * lib/chdir-long.c: Do not include progname.h.
26654         [TEST_CHDIR] (main): Do not set program_name.
26655         * lib/error.c [!_LIBC]: Include progname.h.
26656         [!_LIBC] (program_name): Define using getprogname.
26657         * lib/euidaccess.c: Do not include progname.h.
26658         [TEST] (main): Do not set program_name.
26659         * lib/git-merge-changelog.c: Include getprogname.h instead of
26660         progname.h.
26661         (usage): Call getprogname instead of using program_name.
26662         (main): Likewise.  Stop calling set_program_name.
26663         * lib/group-member.c: Do not include progname.h.
26664         [TEST] (main): Do not set program_name.
26665         * modules/argmatch (Depends-on): Add getprogname.
26666         * modules/c-stack (Depends-on): Likewise.
26667         * modules/error (Depends-on): Likewise.
26668         * modules/git-merge-changelog (Depends-on): Likewise.
26669         Also remove progname.
26671 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
26673         * NEWS: Document the deprecation of the 'progname' module.
26675 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26677         getprogname: new module
26678         This provides a LGPL module for getting the name of the current
26679         program, using the same API found on *BSD systems.
26680         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
26681         * modules/getprogname: New files.
26682         * MODULES.html.sh (Misc): Add getprogname.
26684 2016-09-02  Jim Meyering  <meyering@fb.com>
26686         manywarnings: add -fno-common
26687         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
26688         to the list.  Quoting the manual, "Compiling with -fno-common is
26689         useful on targets for which it provides better performance, or if
26690         you wish to verify that the program will work on other systems that
26691         always treat uninitialized variable declarations this way [putting
26692         it in the data section]."  If diffutils had been using this sooner,
26693         it would have prevented this duplicate declaration issue:
26694         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
26696 2016-08-31  Simon Josefsson  <simon@josefsson.org>
26698         parse-datetime: Fix typo.
26699         * lib/parse-datetime.y (parse_datetime2): Fix typo.
26701 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26703         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
26704         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
26705         GCC 5 and 6 that have __builtin_sub_overflow but not
26706         __builtin_sub_overflow_p.  With the recent changes, these
26707         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
26708         implementation than with INT_SUBTRACT_OVERFLOW implementation,
26709         since the former needs just one runtime comparison whereas the
26710         latter needs two.
26712         strverscmp: sync with glibc
26713         Although this doesn't exactly synchronize with glibc
26714         byte-for-byte, it makes the code behave the same as glibc.
26715         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
26716         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
26717         difference shouldn't matter in practical use.  All uses changed
26718         back to isdigit.
26719         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
26720         (next_state): Now unsigned char array; redo elements.
26721         (result_type): Now signed char array; redo elements.
26722         (__strverscmp): Fix glibc bug 9913 by using new states.
26723         * tests/test-strverscmp.c (main): Test glibc bug 9913.
26725 2016-08-29  Jim Meyering  <meyering@fb.com>
26727         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
26728         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
26729         similarly to how it was done to intprops.h.
26731 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26733         intprops.h: port recent changes to GCC 6.2.0
26734         * lib/intprops.h (__has_builtin): Move earlier.
26735         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
26736         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
26737         the last argument can be null.  All uses changed.
26738         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
26739         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26740         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
26741         and it's not clear which GCC versions it works for.
26742         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
26743         its definiens.
26745         intprops.h: use __typeof__ with GCC 7
26746         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
26747         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
26748         This avoids computing the expression's value (which might overflow!).
26750 2016-08-29  Jim Meyering  <meyering@fb.com>
26752         intprops.h, xalloc-oversized.h: work with gcc 7
26753         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
26754         __builtin_mul_overflow each accept a NULL pointer as the third
26755         argument.  However in gcc 7, that is no longer accepted.
26756         Instead, one must use the "_p"-suffixed names, with which, the
26757         third parameter is no longer a pointer.
26758         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
26759         the definition: not true for gcc 7 and subsequent.
26760         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
26761         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26762         Provide new definitions for gcc 7 and subsequent.
26763         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
26764         that works with gcc-7.
26766         intprops.h: fix missing-backslash problems
26767         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
26768         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
26770 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26772         intprops: fix paren typo on old platforms
26773         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
26774         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
26775         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
26776         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
26777         && !defined LLONG_MAX]:
26778         Remove stray paren.
26780         intprops: port to OpenVMS
26781         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
26782         * doc/posix-headers/limits.texi: Document the problem.
26783         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
26784         Define if not already defined.
26786 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
26788         parse-datetime: improve debug implementation
26789         Follow-up to commit 12ad79069 ("add optional debug printing").
26790         Improve parse-datetime's debug implementation: remove macros,
26791         replace global debug flag variable with a function parameter,
26792         use nstrftime for formatting.
26793         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
26794         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
26795         (parse_datetime2): New function, accepts 'flags' parameter, supporting
26796         debug flag. Existing interface 'parse_datetime' left unmodified.
26797         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
26798         (struct parser_control): add 'parse_datetime_debug' member variable.
26799         (parse_datetime): Call new function 'parse_datetime2' without debug.
26800         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
26801         pc.parse_datetime_debug variable as needed.
26802         (to_year): Accept new flags parameter, instead of using global variable.
26803         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
26804         use struct 'debug' variable instead of global variable.
26805         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
26806         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
26807         correspnding functions directly instead of using macros.
26808         * modules/parse-datetime: Add gnulib's strftime module.
26810 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
26812         c-strcase-tests: port to EBCDIC
26813         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
26814         which assume ASCII encoding semantics to run only in ASCII
26815         mode, as they fail in EBCDIC.
26817         sigpipe-tests: fix typo
26818         * tests/test-sigpipe.sh: C, not B.
26820 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
26822         canonicalize-lgpl: fix errno after malloca fails
26823         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
26824         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
26825         * lib/canonicalize-lgpl.c (__realpath):
26826         Don't assume malloca sets errno on failure.
26828 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26830         strtod: port errno handling to z/OS
26831         * lib/strtod.c (strtod): Save and restore errno more reliably.
26833 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26835         strtod: port to z/OS
26836         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26837         implementation.
26839 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26841         strtod: port to z/OS
26842         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26843         implementation.
26845         regex, string: rename to avoid '__string'
26846         * lib/regex.h, lib/string.in.h: Do not use the identifier
26847         '__string', as it is effectively reserved by string.h on z/OS.
26849         c-strcase-tests, wcwidth-tests: depend on c-ctype
26850         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
26851         Add c-ctype.
26853 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26855         thread: port to z/OS
26856         * lib/glthread/thread.c, lib/glthread/thread.h:
26857         Rudimentary gl_thread support for z/OS.
26859         maint: port tests to z/OS errno behavior
26860         * tests/test-nonblocking-reader.h:
26861         * tests/test-nonblocking-writer.h:
26862         Accommodate z/OS errno code preferences. (I believe this should
26863         still be within spec; IBM is good at following the letter if not
26864         the spirit of such things.)
26866         maint: preprocessor changes to support z/OS
26867         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
26868         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
26869         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
26870         * tests/test-nonblocking-pipe.h:
26872         fclose, strstr-simple, wchar: port to z/OS
26873         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
26874         Changes to the Autoconf M4 code to support z/OS.  Note that
26875         fclose() is broken in a different way on z/OS than it is on other
26876         systems, thus the special-case in fclose.m4.
26878         iconv_open-utf-tests, iconv-tests: port to EBCDIC
26879         * tests/test-iconv-utf.c, tests/test-iconv.c:
26880         Added appropriately conditional #pragmas so that the test strings
26881         in test-iconv-utf.c are correctly interpreted in ASCII instead of
26882         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
26883         addressed in a more portable way by simply rewriting all the ASCII
26884         literal characters as octal escapes, but then you would lose the
26885         partial readability that the strings have now. Also, iconv_open()
26886         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
26888         c-strcase-tests, wcwidth-tests: port to EBCDIC
26889         * tests/test-c-strcasecmp.c: Include c-ctype.h.
26890         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
26891         * tests/test-wcwidth.c: Likewise.
26893 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26895         stdbool: don't require _Bool for C++
26896         Problem reported by David Seifert in:
26897         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
26898         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
26899         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
26900         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
26901         stricter about checking that bool and _Bool are compatible in C.
26903 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
26905         getdelim: remove dependency on realloc-posix
26906         * lib/canonicalize-lgpl.c (alloc_failed)
26907         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
26908         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
26909         Use __set_errno where needed, for consistency.
26910         * lib/getdelim.c (alloc_failed): New function.
26911         (getdelim): Use it.
26913 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
26915         parse-datetime: add optional debug printing
26916         Print parsing information, warnings, and errors to stderr.
26917         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
26918         * lib/parse-datetime.y:
26919         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
26920         (PROGRESS*): Same as DEBUG, for progress reporting.
26921         (dbg_printf): Print message to stderr, with 'date' prefix.
26922         (struct parser_control): Add 'debug_*_seen' variables.
26923         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
26924         (debug_print_current_time, debug_print_relateive_time): Prints the
26925         current/relative date/time value of parser_control.
26926         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
26927         (to_year): Warn about 2-digit year parsing.
26928         (yylex):   Warn about unrecognized words.
26929         (get_effective_timezone): Returns current timezone in minutes.
26930         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
26931         clearly and unambigiously as possible.
26932         (debug_mktime_not_ok): Print detailed information about failed
26933         date/time values.
26934         (parse_datetime): Add DEBUG messages for failures, warnings. Add
26935         PROGRESS messages for status messages.
26936         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
26938 2016-08-06  Jim Meyering  <meyering@fb.com>
26940         tests/init.sh: exclude dash with bad "local" semantics
26941         * tests/init.sh (gl_shell_test_script_): Add a function to
26942         eliminate a shell like "dash" (unlike bash, zsh) that has
26943         surprising/risky "local var='...'" semantics.  Inspired by
26944         the problem and discussion in https://bugs.gnu.org/24116#11.
26946 2016-08-02  Ján Tomko  <jtomko@redhat.com>
26948         maint.mk: expand the prohibit_doubled_word regex
26949         This check has a static list of words that are checked for
26950         repetitions.  Expand it before running the perl script to
26951         avoid using expensive captures.  This decreases the cost
26952         for libvirt from 1.66s to 0.66s.
26953         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
26954         (sc_prohibit_doubled_word): Use it.
26956 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26958         useless-if-before-free: skip non-matching lines early
26959         * build-aux/useless-if-before-free: First match each line with the
26960         simple/quick /\bif\b/ and reject if there is no match. This often
26961         saves the cost of the much more involved regular expression.
26962         For libvirt, this decreases the cost from 1.44s to 1.02s.
26964 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26966         maint.mk: speed up sc_po_check
26967         sc_po_check would skip files based on their names, or on the
26968         existence of files with derived names. Rewrite it to use perl
26969         instead of shell to make the check faster.
26970         * top/maint.mk (perl_translatable_files_list_): Define.
26971         (sc_po_check): Use it.
26973 2016-07-30  Ján Tomko  <jtomko@redhat.com>
26975         maint.mk: speed up require_config_h_first
26976         Instead of spawning three processes per file,
26977         rewrite the check in perl and run it once for all the files.
26978         * top/maint.mk (perl_config_h_first_): Define.
26979         (sc_require_config_h_first): Use it in place of shell code.
26981 2016-07-26  Ján Tomko  <jtomko@redhat.com>
26983         maint.mk: speed up sc_po_check
26984         sc_po_check would skip files based on their names, or on the
26985         existence of files with derived names. Rewrite it to use perl
26986         instead of shell to make the check faster.
26987         * top/maint.mk (perl_translatable_files_list_): Define.
26988         (sc_po_check): Use it.
26990 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26992         obstack: pacify GCC 6 with -Wnull-dereference
26993         Problem reported by Assaf Gordon in:
26994         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
26995         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
26996         Declare with __attribute_noreturn__.
26997         * lib/obstack.h (__attribute_noreturn__): New macro.
26999 2016-07-13  Eric Blake  <eblake@redhat.com>
27001         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
27002         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
27003         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
27005 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
27007         doc: mention glibc SSIZE_MAX buglet
27008         * doc/posix-headers/limits.texi (limits.h): Document the bug.
27010 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
27012         printf-posix: Fix mingw build
27013         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
27014         expression for detecting C symbol prefixes but forgot to qoute square
27015         brackets in the command line arguments for grep.  That way when
27016         building with mingw the condition was false although it ought to be
27017         true instead.  In particular scenarios this led to the following
27018         compile error:
27020             Cannot export rpl_printf: symbol not found
27021             Cannot export rpl_scanf: symbol not found
27022             collect2: error: ld returned 1 exit status
27024         Fix this by properly quoting square brackets.
27026 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27028         mktime: call tzset as per POSIX
27029         Problem reported by Ludovic Courtès in:
27030         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
27031         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
27032         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
27034 2016-06-26  Pádraig Brady  <P@draigBrady.com>
27036         fts: handle readdir() errors
27037         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
27038         but also upon error when it will also set errno.  Therefore
27039         flag the error case from readdir().  We treat the case where
27040         no items are read the same as if the dir can't be accessed,
27041         i.e. by setting fts_errno to FTS_DNR.
27043 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27045         intprops: port better to GCC 7
27046         GCC 7 __builtin_add_overflow supports a new usage form, where the
27047         last argument is a null pointer, and which merely returns 1 if an
27048         overflow would occur.  This is a constant expression if all
27049         arguments are constants, and should generate faster code when code
27050         needs to be generated.
27051         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
27052         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27053         Use builtin operations if available.
27054         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
27055         operations are available, as it's almost surely faster.
27057 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27059         intprops-test: port to GCC 6
27060         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
27061         since the bug is not fixed in GCC 6.1.
27063 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27065         xalloc-oversized: port to GCC 7; fewer warnings
27066         GCC 7 will have a better way to deal with integer overflow.
27067         Plus, fix a warnings problem reported by Tim Ruehsen in:
27068         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
27069         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
27070         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
27071         For GCC 5, use __xalloc_oversized if both args are constants,
27072         or if pedantic.
27074 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
27076         regex: port to Sun C
27077         Reported by Daiki Ueno.
27078         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
27079         __restrict, in prototype.  This fixes a problem I introduced in
27080         the 2016-02-19 merge from glibc.
27082 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27084         stdbool: Restore __bool_true_false_are_defined check
27085         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
27086         __bool_true_false_are_defined is still defined, even with C++11.
27088 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
27090         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
27091         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
27093 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27095         Use GCC_LINT, not lint
27096         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
27097         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
27098         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27099         Document problem with lint and _Noreturn.
27100         * lib/diffseq.h (IF_LINT, IF_LINT2):
27101         * lib/fts.c (sccsid):
27102         * lib/getndelim2.c (IF_LINT):
27103         * lib/gl_anylinked_list2.h (gl_linked_iterator)
27104         (gl_linked_iterator_from_to):
27105         * lib/gl_anytree_list2.h (gl_tree_iterator)
27106         (gl_tree_iterator_from_to):
27107         * lib/gl_anytree_oset.h (gl_tree_iterator):
27108         * lib/gl_array_list.c (gl_array_iterator)
27109         (gl_array_iterator_from_to):
27110         * lib/gl_array_oset.c (gl_array_iterator):
27111         * lib/gl_carray_list.c (gl_carray_iterator)
27112         (gl_carray_iterator_from_to):
27113         * lib/idcache.c:
27114         * lib/inet_ntop.c (IF_LINT):
27115         * lib/regcomp.c (build_charclass_op, create_tree):
27116         * lib/regex_internal.c (re_acquire_state)
27117         (re_acquire_state_context):
27118         * lib/trigl.c (rcsid):
27119         * lib/trim.c (IF_LINT):
27120         * lib/vasnprintf.c (IF_LINT):
27121         * lib/verify.h (assume):
27122         Treat GCC_LINT like lint.
27124 2016-05-29  Bruno Haible  <bruno@clisp.org>
27126         secure_getenv: Port to many more platforms.
27127         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
27128         functions.
27129         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
27130         for non-BSD Unix platforms and for native Windows.
27131         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
27132         Prompted by a request from Nikos Mavrogiannopoulos.
27134 2016-05-27  Eric Blake  <eblake@redhat.com>
27136         canonicalize: Fix broken probe for realpath.
27137         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
27138         in logic introduced in 54615b95.
27140 2016-05-26  Eric Blake  <eblake@redhat.com>
27142         unsetenv: relax to LGPLv2+
27143         * modules/unsetenv (License): Match setenv license.
27145 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
27147         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
27148         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
27149         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
27150         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
27151         (commonarg, dirargs, dirs, infoarg, generate_ascii)
27152         (generate_html, generate_info, generate_tex, outdir)
27153         (source_extra, split, srcfile, texarg): Move above 'version'.
27154         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
27156 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27158         manywarnings: update for GCC 6.1
27159         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27160         Add GCC 6.1 options that apply to C.
27161         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
27162         do not apply to C, are obsolescent, etc.
27164 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
27166         glob: size_t overflow checks
27167         * lib/glob.c (__has_builtin): New macro.
27168         (size_add_wrapv, glob_use_alloca): New static functions.
27169         (glob, glob_in_dir): Check for size_t overflow in several places,
27170         and fix some size_t checks that were not quite right.
27172         glob: don't assume INT_MAX < SIZE_MAX
27173         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
27174         latter is not portable to (probably theoretical) hosts where
27175         SIZE_MAX <= INT_MAX.
27177 2016-05-09  Bruno Haible  <bruno@clisp.org>
27179         Fix undefined behaviour in gettext.h.
27180         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
27181         pointer's value after the storage it points to has been freed.
27182         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
27183         Spotted by Coverity.
27185 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
27187         git-version-gen: avoid undefined shift
27188         Problem reported by Mosè Giordano in:
27189         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
27190         * build-aux/git-version-gen: Avoid undefined behavior if invoked
27191         with --prefix or --fallback but without a later argument.  While
27192         we're at it, omit unnecessary quotes.
27194 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
27196         glob: merge glibc changes into lib/glob.c
27197         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
27198         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
27199         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
27200           struct dirent [BZ #19779]
27201         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
27202           callback gl_readdir
27203         2015-10-20 Convert miscellaneous function definitions to prototype style
27204         2015-10-20 Convert 113 more function definitions to prototype style
27205           (files with assertions)
27206         2015-06-12 Fix getlogin_r namespace (bug 18527).
27207         2014-02-10 Use glibc_likely instead __builtin_expect.
27208         2013-10-20 When glob pattern contains a trailing slash match only
27209           directories. Fixes bug 10278.
27210         2013-09-04 glob: silence -Wattribute warnings
27211         2013-06-07 Avoid use of "register" as optimization hint.
27212         2012-09-25 Use size_t instead of int for internal variables in glob
27213           (bug 14621)
27214         2011-07-20 Check for overflows in expressions
27215         2011-05-28 Remove unused variable
27216         2011-05-22 Add a few more alloca size checks
27217         2010-03-27 Whitespace fixes
27218         2010-03-27 Fix one more issue with the glob patch
27219         2010-03-24 Fix glob with empty pattern
27220         2008-05-27 Remove useless more "if" tests before "free"
27221         * modules/glob (Depends-on): Add stdint.
27223 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27225         mktime: port to stricter signed overflow checking
27226         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
27227         (long_int): Require width for INT_MAX * 3 * (seconds per year),
27228         instead of merely for INT_MAX * 2.  In practice platforms that
27229         do the latter also do the former.
27230         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
27231         (shr): New static function, replacing SHR.  All uses changed.
27232         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
27233         and TIME_T_MAX.  All uses changed.
27234         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
27235         Use long_int, not time_t.
27236         (long_int_avg): New static function, replacing time_t_avg.
27237         All uses changed.  Round toward positive infinity, as that
27238         generates slightly better code.
27239         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
27240         by INT_ADD_WRAPV.
27241         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
27242         (convert_time): New static function.
27243         (ranged_convert): Use it
27244         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
27245         Use simpler test for loop exit.
27246         (__mktime_internal): Store negative of guessed offset, to simplify
27247         overflow checking.  Remove no-longer-needed test for small time_t
27248         overflows.
27250         mktime: speed up DEBUG_MKTIME benchmarks
27251         Call tzset just once, at the start, rather than for every test
27252         case.  This lets us measure the CPU cost of mktime as opposed to
27253         that of tzset.  This is relevant when TZ is not set and glibc is
27254         being used.  This speeds up tests by a factor of 40 on my Fedora
27255         23 x86-64 platform.
27256         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
27257         to call tzset and as a sanity check.  Later on, use localtime_r
27258         instead of localtime.
27260         mktime: resurrect DEBUG_MKTIME testing
27261         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
27262         Include <string.h>, for strcmp.
27264         mktime: simplify DEBUG_MKTIME
27265         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
27266         Simplify later usage accordingly.
27268         Port mktime_internal offset to unsigned time_t
27269         This avoids some assumptions about wraparound arithmetic on
27270         signed integer overflow.
27271         * lib/mktime-internal.h (mktime_offset_t): New type.
27272         (mktime_internal): Use it in decl.
27273         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
27275         * lib/mktime.c (__mktime_internal, localtime_offset):
27276         * lib/timegm.c (timegm): Use it.
27277         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
27278         (gl_FUNC_MKTIME): Require it.
27280 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27282         xstrtol: prohibit monstrosities like "1bB"
27283         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
27284         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
27285         "B" only if the first suffix needs a base.
27286         * tests/test-xstrtol.sh: Test this.
27288 2016-04-21  Pádraig Brady  <P@draigBrady.com>
27290         xstrtod: reinstate setting of *result upon ERANGE
27291         * lib/xstrtod.c (XSTRTOD): The user may decide to use
27292         the returned limits upon ERANGE, so allow and document that.
27294 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
27296         xstrtod: modify *result only if no errors
27297         * lib/xstrtod.c (XSTRTOD).
27299 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
27301         btowc: document problems in C locale
27302         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
27303         with mbrtowc.  See: http://bugs.gnu.org/23269#32
27305 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27307         mktime: improve integer overflow checking
27308         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
27309         (WRAPV): Remove; no longer needed.
27310         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
27311         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27312         Remove.  Use intprops.h defns instead.
27313         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
27314         Use bool for Boolean, for clarity.
27315         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
27316         detect integer overflow.
27317         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
27319         intprops: check two's complement assumption
27320         Suggested by Eric Blake in:
27321         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
27322         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
27323         short, int, long, and (if available) long long are two's complement.
27324         * modules/intprops (Depends-on): Add 'verify'.
27326         intprops, mktime, strtol: assume two's complement
27327         These macros were not portable to every conforming C11 ones'
27328         complement platform.  It's not worth the hassle of porting to some
27329         platforms that use ones' complement or signed magnitude, as such
27330         platforms are almost purely theoretical nowadays and porting even
27331         to some of them makes the code harder to review for little
27332         practical benefit.  Problem reported by Florian Weimer in:
27333         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
27334         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27335         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
27336         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
27337         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27338         (TYPE_SIGNED_MAGNITUDE):
27339         Remove.  All uses rewritten to assume two's complement, which is
27340         all we can reasonably test nowadays anyway.
27341         * top/maint.mk (_intprops_names): Remove the removed macros.
27343 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27345         stdint: port to strict C11 left shift
27346         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
27347         Pacify clang -Wshift-negative-value, which should be an issue only
27348         on clang setups where stdint.h does not conform to C11 or to C++11.
27349         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
27351 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27353         mbrtowc: work around glibc bug#19932
27354         Fix mbrtowc so that it never returns -1 in the C locale,
27355         as this conflicts with a future version of POSIX
27356         http://austingroupbugs.net/view.php?id=663#c2738
27357         and causes problems with GNU grep: http://bugs.gnu.org/23234
27358         See glibc bug 19932:
27359         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
27360         * doc/posix-functions/mbrlen.texi (mbrlen):
27361         * doc/posix-functions/mbrtowc.texi (mbrtowc):
27362         Document the glibc bug.
27363         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
27364         Include hard-locale.h, locale.h.
27365         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
27366         if the bug is possible.
27367         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
27368         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
27369         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
27370         * modules/mbrtowc (Depends-on): Add hard-locale.
27371         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
27372         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
27373         * tests/test-mbrtowc5.sh: New file.
27375 2016-04-03  Pedro Alves  <palves@redhat.com>
27377         stdint: detect good enough pre-C++11 stdint.h in C++ mode
27378         When gnulib is configured in C++ mode for a system with a working C99
27379         implementation of stdint.h that predates C++11, gnulib ends up
27380         substituting stdint.h anyway.  This works on most targets, but on e.g.,
27381         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
27382         MinGW is LLP64.  Instead of trying to detect the right types, detect
27383         good-enough-pre-C++11 stdint.h and in such case define
27384         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
27385         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
27386         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
27387         conforms to C99.  If it does, check whether it hides symbols
27388         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
27389         does, define those macros in config.h.
27391 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27393         argp: merge changes from glibc
27394         Among other things, this should fix problems found by a Coverity
27395         scan and reported by Andrei Borzenkov:
27396         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
27397         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
27398         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
27399         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
27400         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
27401         * lib/argp.h:
27402         Merge changes from glibc.
27403         * tests/test-argp-2.sh: Adjust to match new behavior.
27405 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
27407         stddef: support configuring with g++
27408         Problem reported by Ángel González in:
27409         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
27410         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
27411         Do not define if _GCC_MAX_ALIGN_T is defined.
27413 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27415         test-framework-sh: minor cleanups
27416         * tests/init.sh (testdir_prefix_): Output a trailing newline,
27417         since strictly speaking POSIX requires this.
27418         (setup_): Do not use the variable 'fail', as that makes the
27419         trace output harder to read ('fail' is typically used by
27420         tests to mean the test failed).  Treat // portably.
27421         Check that new directory is not merely a sibling of the tmp dir.
27422         Avoid unnecessary invocation of tr.
27424         test-framework-sh: revert port to NetBSD 7.0
27425         It was a false alarm; I misinterpreted Assaf Gordon's report.
27426         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27427         Restore.
27428         (test_dir_): Adjust to mktempd_ change.
27429         (mktempd_): Restore 2nd arg.  Use -t again.
27430         (base_template_, template_, nx_): Resurrect old code.
27432         Port better to Alpine Linux
27433         Its diff implementation does not support -c, but does support -U3.
27434         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27435         * tests/init.sh (diff_opt_): New var.
27436         (compare_): Prefer diff -U3 to diff -c to plain diff.
27438 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27440         test-framework-sh: port to NetBSD 7.0
27441         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27442         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27443         Remove.  All uses removed.
27444         (test_dir_): Adjust to mktempd_ change.
27445         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
27446         (base_template_, template_, nx_): Simplify by hardcoding.
27448 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27450         gitlog-to-changelog: suppress ignored chatter
27451         * build-aux/gitlog-to-changelog: Do not warn about skipping
27452         an SHA if it would have been ignored anyway.
27454 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
27456         setlocale: add "sv" to Windows language table
27457         * lib/setlocale.c (language_table) [W32]: Add "sv".
27458         Reported in <https://savannah.gnu.org/bugs/?44588>.
27460 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27462         sys_select: port to new Cygwin
27463         Problem reported by Ken Brown in:
27464         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
27465         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
27466         diagnostics.
27468 2016-03-17  Jim Meyering  <meyering@fb.com>
27470         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
27471         * tests/test-userspec.c (main): Remove unnecessary braces and fix
27472         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
27473           test-userspec.c:176:9: error: statement is indented as if it were \
27474             guarded by... [-Werror=misleading-indentation]
27475                    {
27476                    ^
27477           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
27478                  if (!diag && !T[i].result)
27479                  ^~
27481 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27483         time_rz: port to clang -Wunused-const-variable
27484         * lib/time_rz.c (TZ): Remove.  All uses removed.
27486         std-gnu11: improve clang support
27487         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
27488         2016-03-15 Also try clang
27489         2016-03-15 Port C11 and C++11 testing to clang
27491         select: port more to Intel 2016.1.150 compiler
27492         Problem reported by Balázs Hajgató in:
27493         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
27494         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
27496 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27498         select: try to port to 2016.1.150 compiler
27499         Problem reported by Balázs Hajgató in:
27500         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
27501         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
27502         POSIX specifies 'restrict'.
27504 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27506         localename-tests: memory allocation fixes
27507         * tests/test-localename.c (test_locale_name)
27508         (test_locale_name_thread): Don't call freelocale on a locale
27509         that was the base of a successful newlocale, as that
27510         results in a double free.  Problem reported by Assaf Gordon.
27511         (test_locale_name_thread): Free saved names after use, to pacify
27512         gcc -fsanitize=address.
27514 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
27516         intprops: make .h file license match module
27517         * lib/intprops.h: Change the license wording to match glibc format.
27518         This is what is in modules/intprops anyway.  See:
27519         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
27521 2016-03-08  Eric Blake  <eblake@redhat.com>
27523         acl: fix missing return on Cygwin
27524         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
27525         fall off end of function. Fixes http://bugs.gnu.org/22949
27527 2016-03-05  Bruno Haible  <bruno@clisp.org>
27529         extern-inline: port to PGI CC
27530         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
27531         keyword 'inline'.
27532         Reported by Adam James Stewart in:
27533         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
27535 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27537         signbit: port back to pre-C++11 GCC
27538         * lib/math.in.h (signbit): Do previous change only if
27539         __cplusplus < 201103.  See Jonathan Wakely in:
27540         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
27542 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
27544         mountlist: recognize autofs-mounted remote file systems, too
27545         Originally reported at: https://bugzilla.redhat.com/1309247
27546         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
27547         "-hosts" because it is used by autofs to mount remote file systems.
27549 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27551         signbit: port to C++ with GCC 6
27552         * lib/math.in.h (signbit) [__cplusplus]:
27553         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
27554         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
27556         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
27558         regex: make it closer to libc
27559         Make Idx a signed type, rather than possibly unsigned.
27560         The unsignedness was not really buying us anything, since the code
27561         overflows for other reasons before getting to PTRDIFF_MAX.  Making
27562         it signed allows us to use -1 and -2 with abandon, like libc does,
27563         thus lessening the number of differences between gnulib and libc.
27564         Also, it should help avoid gratuitous warnings like the one
27565         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
27566         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
27569         regex: merge patches from libc
27571         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
27572         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
27573         Convert miscellaneous function definitions to prototype style.
27574         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
27575         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
27576         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
27577         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
27578         (re_search_internal):
27579         Convert to prototype-style function definition.
27580         Use internal_function for internal functions.
27582 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
27584         stdalign: port to older HP and IBM cc
27585         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
27586         C compilers, by checking their version numbers.  These version
27587         numbers appear in MariaDB and in Qt code that dates way back and
27588         that conditiionally uses the 'aligned' attribute.
27590 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27592         stdalign: port to clang 3.7.0
27593         Problem reported by Herbert J. Skuhra in:
27594         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
27595         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
27596         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
27597         https://llvm.org/bugs/show_bug.cgi?id=26547
27599 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27601         readdir_r: now obsolescent
27602         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
27603         * lib/mountlist.c (read_file_system_list): Add a FIXME.
27605 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27607         misc: port better to gcc -fsanitize=address
27608         Without these patches, ./configure CFLAGS='-fsanitize=address'
27609         would compute incorrect values.  This patch fixes some (but not all)
27610         test failures with recent glibc, with this configuration.
27611         * m4/acl.m4 (gl_ACL_GET_FILE):
27612         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
27613         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
27614         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
27615         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
27616         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
27617         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
27618         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
27619         * m4/getline.m4 (gl_FUNC_GETLINE):
27620         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
27621         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
27622         * m4/regex.m4 (gl_REGEX):
27623         * m4/strndup.m4 (gl_FUNC_STRNDUP):
27624         * tests/test-calloc-gnu.c (main):
27625         * tests/test-duplocale.c (main):
27626         * tests/test-getgroups.c (main):
27627         * tests/test-getline.c (main):
27628         * tests/test-inttostr.c (main):
27629         * tests/test-localename.c (test_locale_name)
27630         (test_locale_name_thread, test_locale_name_environ)
27631         (test_locale_name_default):
27632         * tests/test-regex.c (main):
27633         * tests/test-setlocale1.c (main):
27634         * tests/test-stat.h (test_stat_func):
27635         Free heap-allocated storage before exiting.
27636         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
27637         Don't match *_foo symbols inserted by AddressSanitizer.
27638         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
27640 2016-02-02  Jim Meyering  <meyering@fb.com>
27642         verify-tests: also remove stray test-verify.Tpo
27643         * modules/verify-tests (Makefile.am): Arrange for "make clean"
27644         to remove the test-verify.Tpo file that is left behind by
27645         the automake-generated rule upon compilation failure.
27646         Otherwise, that .Tpo file would cause a failed "make distcheck"
27647         at least for grep.
27649 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27651         std-gnu11: new module
27652         This makes it easier for applications to prefer C11 and C++11
27653         to older variants, when compiling C and C++ code.
27654         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
27655         a nontrivial chunk of GPLed Autoconf source code.
27656         * COPYING: Mention the m4/*.m4 copyright situation.
27657         * MODULES.html.sh (std-gnu11): New module.
27658         * m4/std-gnu11.m4, modules/std-gnu11: New files.
27660 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27662         get-permissions, strftime: fix grammar in comments
27663         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
27664         some grammar fixes Alan Mackenzie made to GNU Emacs.
27666 2016-01-25  Daiki Ueno  <ueno@gnu.org>
27668         gettext: mark as obsolete
27669         Suggested by Paul Eggert in:
27670         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
27671         * modules/gettext (Status): Mark as obsolete.
27672         (Notice): Suggest to use 'gettext-h' instead.
27673         * modules/gettext-h (Description): Suggest GNU gettext, instead of
27674         the 'gettext' module.
27676 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27678         gnulib-tool: don't give up on ln -s so easily
27679         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
27680         because an earlier one failed.  The targets could be on different
27681         file systems.  Problem reported by KO Myung-Hun in:
27682         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
27684         closedir: fix OS/2-related typos
27685         Problem reported by KO Myung-Hun in:
27686         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
27687         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
27688         in the last couple of changes.
27690 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
27692         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
27693         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
27694         copying a directory.
27696 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27698         regex: treat [x] as x if x is a unibyte encoding error
27699         Problem reported by Aharon Robbins in:
27700         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
27701         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
27702         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
27704         closedir, dirfd, opendir: port to OpenSolaris 5.10
27705         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
27706         * m4/dirfd.m4 (gl_FUNC_DIRFD):
27707         * m4/opendir.m4 (gl_FUNC_OPENDIR):
27708         Don't use ${word##pat} substitution, as it doesn't work in
27709         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
27710         http://bugs.gnu.org/22443#11
27712 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27714         bootstrap: use American spelling
27715         * build-aux/bootstrap: Honor American spelling.
27717 2016-01-22  Karl Berry  <karl@freefriends.org>
27719         * doc/posix-functions/localtime.texi,
27720         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
27722 2016-01-21  Bruno Haible  <bruno@clisp.org>
27724         hash-pjw-bare: fix comment
27725         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
27727         wcwidth: Replace also on OpenBSD 5.8
27728         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
27729         * doc/posix-functions/wcwidth.texi: Update.
27731 2016-01-20  Pádraig Brady  <P@draigBrady.com>
27733         gnu-web-doc-update: fix addition of new files
27734         If there were already added (emnpty) dirs,
27735         then cvs aborts the add with the message:
27736           cvs [add aborted]: there is a version in <./dirname> already
27737         * build-aux/gnu-web-doc-update: Add directories separately
27738         to the addition of files, to avoid the above issue
27739         impacting the addition of files.
27741 2016-01-19  Daiki Ueno  <ueno@gnu.org>
27743         utimens-tests: avoid pulling gettext .m4 files
27744         Although this is not the right fix to the original problem:
27745         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
27746         it makes it possible again for consumer projects to use arbitrary
27747         version of gettext, through the steps described at:
27748         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
27749         See here for details:
27750         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
27751         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
27752         'gettext'.
27753         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
27754         'gettext'.
27756 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27758         regex: pacify static checkers
27759         Problem and draft fix reported by Aharon Robbins in:
27760         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27761         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
27762         Clear memory to pacify static checkers.
27764         regex: fix [ diagnostic
27765         Problem and fix reported by Aharon Robbins in:
27766         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27767         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
27769         regex: fix memory leaks
27770         Problem and draft fix reported by Aharon Robbins in:
27771         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27772         * lib/regcomp.c (build_range_exp, build_charclass_op)
27773         * lib/regex_internal.c (re_dfa_add_node):
27774         Fix memory leak on failure.
27776 2016-01-18  Pádraig Brady  <P@draigBrady.com>
27778         fts: don't unconditionally use leaf optimization for NFS
27779         NFS st_nlink are not accurate on all implementations,
27780         leading to aborts() if that assumption is made.
27781         See <https://bugzilla.redhat.com/1299169>
27782         * lib/fts.c (leaf_optimization_applies): Remove NFS from
27783         the white list, and document the issue.
27785 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27786             KO Myung-Hun  <komh@chollian.net>
27788         gnulib-tool: don't assume ln -s works
27789         * gnulib-tool (func_ln_s): New function.
27790         (func_ln): Use it.
27792 2016-01-15  KO Myung-Hun  <komh@chollian.net>
27794         utimes: detect utimes() correctly on OS/2 kLIBC
27795         utimes() of OS/2 kLIBC has some limitations.
27796         1. OS/2 itself supports a file date since 1980 year in local time.
27797         2. OS/2 itself supports only even seconds for a file time.
27798         3. utimes() of OS/2 kLIBC does not work on an opened file.
27799         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
27800         * doc/posix-functions/utimes.texi: Document the above limitations of
27801         utimes() on OS/2 kLIBC.
27803 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27804             KO Myung-Hun  <komh@chollian.net>
27806         openat_proc_name: port to OS/2 kLIBC
27807         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
27808         instead of /proc/self/fd.
27809         * lib/openat-proc.c (openat_proc_name):
27810         Don't assume file name length is less than INT_MAX.
27811         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
27813 2016-01-14  KO Myung-Hun  <komh@chollian.net>
27815         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
27816         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
27817         definitions of intptr_t and uintptr_t (which use int and unsigned)
27818         to avoid clashes with declarations of system functions like sbrk.
27819         * lib/stdint.in.h (intptr_t, uintptr_t): Check
27820         _INTPTR_T_DECLARED before defining them.
27822         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
27823         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
27824         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
27825         Declare on kLIBC.
27826         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
27827         fd associated with dirp.
27828         (_gl_register_dirp_fd): New. Register fd associated with dirp to
27829         dirp_fd_list.
27830         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
27831         (dirfd): Implemented for kLIBC.
27832         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
27833         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
27834         succeeds.
27835         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
27836         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27837         (REPLACE_DIRFD): Define to 1 if replaced.
27838         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
27839         * modules/closedir (Depends-on): Add dirfd.
27840         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
27841         condition.
27842         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
27843         * modules/opendir (Depends-on): Add dirfd.
27845         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
27846         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
27847         * lib/dup.c (dup_nothrow): New.
27848         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
27849         (klibc_dup2): New.
27850         * lib/fcntl.c (klibc_fcntl): New.
27851         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
27852         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
27853         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
27854         fd.
27856         pipe_filter_ii_execute: port to OS/2 kLIBC
27857         Pipes on kLIBC do not support O_NONBLOCK like Win32.
27858         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
27859         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
27860         Reuse Win32 code on OS/2 kLIBC.
27861         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
27862         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
27864         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
27865         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
27866         static inline function.  The implementation of wcwidth in wcwidth.c
27867         causes a "conflicting types" error.
27868         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
27870         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
27871         spawn() on OS/2 kLIBC is not silly like one on Windows
27872         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
27873         empty string on OS/2 kLIBC.
27875         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
27876         On OS/2 kLIBC, select() works only on sockets.
27877         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
27879         binary-io: don't put fd in binary mode if it is a console on EMX
27880         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
27881         a console on EMX.
27883 2016-01-15  Pádraig Brady  <P@draigBrady.com>
27885         doc: mention unfixed issues with unsupported localtime() values
27886         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
27887         returns nonsense for localtime(2^56).
27888         * doc/posix-functions/localtime_r.texi: Likewise.
27890 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27892         doc: mention setlocale() issues on OpenBSD
27893         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
27894         never fails, and the need to check categories individually.
27896 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27898         sig2str: list all signals on FreeBSD >= 7
27899         FreeBSD >= 7 is contravening POSIX by not defining NSIG
27900         to the maximal statically defined signal value.
27901         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
27902         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
27903         where available, even when NSIG is defined.
27905 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
27907         acl-permissions: port to USE_ACL==0 platforms
27908         I ran into this problem when building bleeding-edge GNU Emacs
27909         with gcc -fsanitize=address on Fedora 23.  On this platform
27910         the ACL library does not pass the 'configure' test and Emacs
27911         then does not build due in part to what appear to be typos in the
27912         ACL part of Gnulib.
27913         * lib/acl-internal.c (free_permission_context):
27914         * lib/acl-internal.h (struct permission_context):
27915         Test whether USE_ACL is nonzero, not whether it is defined.
27917 2016-01-12  Martin Sebor  <msebor@redhat.com>
27919         mktime: rename macro to avoid glibc clash
27920         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
27921         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
27923 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27925         Port "$@" to OpenIndiana ksh93
27926         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
27927         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
27928         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
27929         bug long-dead shells, so remove the workaround.
27930         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
27931         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
27932         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
27933         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
27934         Use "$@" instead of ${1+"$@"}.
27936         Port Universal Time settings to strict POSIX
27937         * build-aux/announce-gen, build-aux/bootstrap:
27938         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
27939         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
27940         * build-aux/gnupload, build-aux/mkinstalldirs:
27941         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
27942         * build-aux/update-copyright, build-aux/useless-if-before-free:
27943         * build-aux/vc-list-files, tests/test-strftime.c:
27944         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
27945         but POSIX says the behavior of TZ="UTC" is undefined.
27947 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
27949         msvc-inval: fix problem with unset shell var
27950         Problem reported by Karl Berry in:
27951         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
27952         * modules/msvc-inval (Depends-on):
27953         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
27954         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
27956 2016-01-01  Pádraig Brady  <P@draigBrady.com>
27958         tests: for compare_(), use cmp -s where available
27959         * tests/init.sh (compare_): Only fall back to cmp without
27960         the POSIX defined -s option, where this is not available.
27962 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27964         version-etc: new year
27965         * build-aux/gendocs.sh (version):
27966         * doc/gendocs_template:
27967         * doc/gendocs_template_min:
27968         * doc/gnulib.texi:
27969         * lib/version-etc.c (COPYRIGHT_YEAR):
27970         Update copyright dates by hand in templates and the like.
27971         * all files: Run 'make update-copyright'.
27973 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
27975         human: fix output buffer overrun by 1
27976         * lib/human.c (human_readable): Fix off-by-one typo in buffer
27977         calculation that could lead to a one-byte buffer overrun.
27979 2015-12-28  Daiki Ueno  <ueno@gnu.org>
27981         maint: fix operator precedence in mbrtowc test
27982         This is a fix for test breakage introduced by commit 45228d96; the
27983         equality expression must be parenthesized when negated with '!',
27984         otherwise we always get:
27986           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
27988         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
27989         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
27991 2015-12-23  James Youngman  <jay@gnu.org>
27993         regexprops-generic: update from regex.h
27994         * doc/regexprops-generic.texi: update by running the regexprops binary
27995         from findutils (the command line is 'regexprops "Regular Expressions"
27996         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
27997         gnulib with GNU grep had made this document out-of-date.
27999 2015-12-23  Pádraig Brady  <P@draigBrady.com>
28001         strftime-tests: avoid false failure on OS X
28002         * tests/test-strftime.c (struct localtime_rz_test): Add an
28003         ahistorical member which is used to warn rather than fail
28004         when tm_isdst isn't set for such entries.  This is the case for
28005         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
28007 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
28009         fts: ensure leaf optimization is used for NFS
28010         NFS provides usable dirent.d_type but not necessarily for all entries
28011         of large directories.  See <https://bugzilla.redhat.com/1252549>
28012         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
28014 2015-12-20  Pádraig Brady  <P@draigBrady.com>
28016         fts: enable leaf optimization for XFS
28017         XFS provides usable dirent.d_type only for DT_DIR,
28018         but the noleaf optimization still applies.
28019         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
28021 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28023         intprops: comment fix
28024         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
28025         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
28027         intprops-test: work around GCC bug 68971
28028         Problem reported by Pádraig Brady in:
28029         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
28030         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
28031         (main): Add a case that better tests 64-bit long in this area.
28033 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
28035         gnulib-tool: allow multiple --local-dir usage
28036         * gnulib-tool: Use --local-dir to construct compound
28037         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
28038         PATH_SEPARATOR early.
28039         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
28040         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
28041         func_determine_path_separator because that needs to be detected
28042         earlier now.
28043         (func_determine_path_separator): New function.
28044         (func_path_foreach, func_path_foreach_inner): New functions.
28045         (func_path_prepend, func_path_append): Likewise.
28046         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
28047         (func_lookup_file, func_all_modules): Use new functions to work
28048         with local_gnulib_path.
28049         (func_modules_in_dir, func_exists_module): New callbacks for
28050         func_path_foreach.
28051         (func_exists_module, func_get_tests_module): Likewise.
28052         (func_is_local_file, func_should_symlink): New helper methods.
28053         (func_add_file, func_update_file): Use new func_should_symlink
28054         instead, DRY.
28055         (func_reconstruct_cached_local_gnulib_path): New helper.
28056         (func_reconstruct_cached_dir): New callback.
28057         (func_import): The cached_local_gnulib_dir renamed to
28058         cached_local_gnulib_path similarly to local_gnulib_dir.
28059         Use new func_reconstruct_cached_local_gnulib_path.
28060         (func_count_relative_local_gnulib_path): New sub-method.
28061         (func_create_testdir): Use func_should_symlink, DRY.
28062         (func_create_megatestdir): Use new functions to work with
28063         local_gnulib_path correctly.
28064         (func_append_local_dir): New helper.
28066 2015-12-08  Pádraig Brady  <P@draigBrady.com>
28068         fix freadptr to work with ungetc on all uClibc configs
28069         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
28070         where GNU coreutils cut(1) generates invalid output on uClibc
28071         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
28072         * lib/freadptr.c (freadptr): Return NULL if there are
28073         ungotten chars.  In this case freadseek() will iterate
28074         again to process the ungotten character.
28076 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28078         xalloc-oversized: improve performance with GCC 5
28079         * lib/xalloc-oversized.h (xalloc_oversized):
28080         Improve performance with GCC 5 by using __builtin_mul_overflow.
28082 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28084         intprops: new public macro EXPR_SIGNED
28085         Emacs can use this macro, so make it public.
28086         * doc/intprops.texi (Arithmetic Type Properties): Rename from
28087         'Integer Type Determination', since some of these macros apply
28088         to non-integer types.  Clarify what kinds of constant expressions
28089         these macros return.  Say when the arguments can be non-integers.
28090         Mention newly published macro EXPR_SIGNED.
28091         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
28092         make it public.  All uses changed.
28094         intprops: fix typo in clang port
28095         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
28096         '__builtin_add_overflow' that is not caught by compiler.
28098 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28100         test-timespec: fix typo in previous change
28101         * tests/test-timespec.c (main): Fix typo that reduced test quality.
28103         timespec-sub: fix overflow bug; add tests
28104         * lib/timespec-add.c (timespec_add):
28105         * lib/timespec-sub.c (timespec_sub):
28106         Work even if time_t is narrower than int (a theoretical
28107         possibility).  Redo code for a bit more clarity.
28108         * lib/timespec-sub.c (timespec_sub):
28109         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
28110         * modules/timespec-tests, tests/test-timespec.c: New files.
28112         intprops-test: suppress -Woverlength-strings
28113         Problem reported by Pádraig Brady in:
28114         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
28115         It is not worth the hassle to port this test to compilers that
28116         cannot handle long strings in diagnostics.
28117         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
28119 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28121         quotearg: add quotearg_n_style_colon()
28122         This quotes with default options of the specified style,
28123         but with quoting enabled for instances of ':'.
28124         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
28125         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
28127 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28129         intprops: revise _WRAPV macros, revert _OVERFLOW
28130         The incompatible changes to the _OVERFLOW macros were too much of
28131         a hassle in practice, so revert them.  Instead, change the new
28132         _WRAPV macros to make them closer in behavior to GCC 5's new
28133         builtin_add_overflow etc. functions.  No other software was using
28134         these newly-added macros yet, so this should be OK.
28135         * NEWS: Revert previous change, since the incompatible change
28136         has been reverted, and nobody used the incompatible version.
28137         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
28138         Document revised behavior.
28139         (Integer Range Overflow): Adjust example to match above revisions.
28140         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
28141         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
28142         these can be used in integer constant expressions again.
28143         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
28144         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
28145         needed.
28146         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28147         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28148         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
28149         Remove, as they did not seem that useful.
28150         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
28151         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
28152         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
28153         Support new semantics.
28154         (__has_builtin): New macro, if not alreay defined.
28155         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
28156         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28157         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28158         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28159         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
28160         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
28161         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
28162         New macros.
28163         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
28165 2015-11-03  Jim Meyering  <meyering@fb.com>
28167         intprops: add parentheses for when OP has precedence lower than "-"
28168         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
28169         "a OP b" must be parenthesized for when OP is like "<<", which has
28170         lower precedence than the following "-". Reported by Pádraig Brady.
28172 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28174         quotearg: constify get_quoting_style parameters
28175         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
28176         * lib/quotearg.c (get_quoting_style): Likewise.
28178 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28180         quotearg: add support for $'' shell escaping
28181         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
28182         items and descriptions.
28183         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
28184         above types by quoting like "shell", but using $'...' syntax
28185         for non printable characters, which should provide unambiguous
28186         printable output for any input.
28187         * tests/test-quotearg-simple.c: Update accordingly.
28189 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28191         maint: use a more standard return from mbrtowc test
28192         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
28193         from the test program as this is non standard and often
28194         indicates an unhandled case in the test program.
28195         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28197 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28199         intprops: add WRAPV and const flavors for GCC 5
28200         If available, use GCC 5's builtin functions for efficient integer
28201         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
28202         and safely compute the low-order bits of the correct answer.
28203         A downside of these efficient functions is that they cannot be
28204         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
28205         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
28206         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
28207         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
28208         Document the changes.
28209         (Wraparound Arithmetic): New section.
28210         (Integer Range Overflow):
28211         Put this subsection last, since it's least useful.
28212         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
28213         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
28214         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
28215         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28216         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28217         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
28218         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
28219         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
28220         New macros.
28221         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
28222         Generate calls to GCC builtins if available, for speed.
28223         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28224         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28225         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28226         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
28227         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
28228         (CHECK_QUOTIENT, CHECK_REMAINDER):
28229         Test WRAPV and CONST flavors (when available) too.
28231 2015-10-30  Pádraig Brady  <P@draigBrady.com>
28233         doc: use extended timezone format in iso-8601 example
28234         * doc/parse-datetime.texi: The standard states that extended format
28235         is to be used consistently throughout.
28236         Note that lib/parse-datetime.y can handle either tz format.
28238 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
28240         stdalign: port to Sun C 5.9
28241         * doc/posix-headers/stdalign.texi: Document this.
28242         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
28243         __attribute__ ((__aligned__ (...))).
28245 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28247         time_rz: fix comment about tzalloc
28248         * lib/time_rz.c (tzalloc): Fix comment.
28250 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28252         stdalign: work around pre-4.9 GCC x86 bug
28253         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
28254         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
28255         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
28257 2015-10-18  Pádraig Brady  <P@draigBrady.com>
28259         maint.mk: sc_tight_scope: remove extraneous expressions
28260         * top/maint.mk (tight_scope): This is not really required since
28261         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
28262         that matches all nm entries.  But it does remove extraneous entries
28263         that may be confusing or cause issue in future maintenance.
28265 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28267         time_rz: return NULL if localtime_r fails
28268         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
28269         while still attempting to pacify bleeding-edge GCC.
28271         fts: port to C11 alignof
28272         * doc/posix-headers/stdalign.texi (stdalign.h):
28273         Document the C11 restriction.
28274         * lib/fts.c: Include stddef.h, for max_align_t.
28275         (fts_alloc): Align using max_align_t, not FTSENT.
28276         * modules/fts (Depends-on): Add stddef.
28278 2015-10-18  Jim Meyering  <meyering@fb.com>
28280         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
28281         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
28282         would see this:
28284         lib/time_rz.c: In function 'localtime_rz':
28285         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
28286           [-Werror=nonnull]
28287                    if (tm && !save_abbr (tz, tm))
28288                        ^
28290         That was complaining about "tm" because it is a parameter that was
28291         declared with the __nonnull__ attribute.
28292         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
28293         result of localtime_r.
28295 2015-10-17  Jim Meyering  <meyering@fb.com>
28297         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
28298         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
28299         name-extraction regexp mistakenly used \S+, and would mistakenly
28300         extract "*F" from "extern int *F()" rather than the desired "F".
28301         Use \w+ instead.
28303 2015-10-17  Jim Meyering  <meyering@fb.com>
28305         maint.mk: sc_tight_scope: factor and support OS X
28306         * top/maint.mk (_gl_tight_scope): Address three issues:
28307         - factor out four instances of code that wraps a string in "^...$"
28308         - allow nm-reported symbol names to have an optional leading "_"
28309         - add "main" to the list of ignored variable names, because on os x,
28310         "main" has nm-reported type "S" in the variable-checking section.
28312 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
28314         safe-alloc-tests: fix typo in license header
28315         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
28317 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
28319         copy-file: fix mem leak in error case
28320         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
28321         upon error opening or performing I/O to the src and dest files.
28323 2015-10-15  Mike Frysinger  <vapier@chromium.org>
28325         localename: control langinfo.h inclusion
28326         This header is only used to work around buggy behavior in old
28327         versions of glibc, so do not include it all the time.  Otherwise
28328         we get build failures on systems that do not provide langinfo.h.
28329         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
28330         in the source later on.
28331         The patch was originally submitted to gettext as:
28332         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
28334 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28336         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
28337         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
28338         * lib/u64.c, lib/unistd.c:
28339         Append 'typedef int dummy;', to pacify compilers that are picky
28340         about empty translation units.
28342 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
28344         accept4-tests: fix to avoid non portable flags
28345         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
28346         as they are the only documented ones, and passing others may trigger
28347         EINVAL (seen on FreeBSD 10.1-RELEASE).
28348         * doc/glibc-functions/accept4.texi: Mention that we don't provide
28349         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
28351 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
28353         gnulib-tool: fix tests of 'extensions' module
28354         This complements f8fe25fab60e3c687a124 commit.
28355         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
28356         emitting of initial gl_EARLY macros.
28357         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
28358         replaced with func_emit_pre_early_macros call.
28360 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28362         unicase/locale-language: fix typo in utf-8 cookie
28363         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
28364         Problem reported by Zbigniew Jędrzejewski-Szmek.
28366 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28368         xalloc: do not worry about GCC 5 warning on 32 bit
28369         * lib/xalloc.h: Revert previous change.
28370         I found a better way to fix this in coreutils.
28372 2015-10-02  Pádraig Brady  <P@draigBrady.com>
28374         xalloc: avoid GCC 5.1 warning on 32 bit
28375         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
28376         xalloc_oversized(), which was seen to give this warning
28377         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
28378         when simplifying conditional".
28380 2015-10-02  Daiki Ueno  <ueno@gnu.org>
28382         uniname/uniname-tests: avoid compiler warnings
28383         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
28384         unused local variables.
28385         (test_alias_lookup): Fix alias name display in failure cases.
28387 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28389         c-ctype: do not worry about EBCDIC + char signed
28390         Drop support for EBCDIC with char being signed, as this breaks too
28391         many programs.  Problem reported by Ben Pfaff in:
28392         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
28393         * lib/c-ctype.h: Verify that we are not using EBCDIC with
28394         char being signed.
28395         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
28396         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
28397         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
28398         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
28399         * tests/test-c-ctype.c (test_all):
28400         Simplify by assuming standard char values cannot be negative.
28401         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
28403 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28405         c-ctype: port better to z/OS EBCDIC
28406         Problems reported by Daniel Richard G. in:
28407         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
28408         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
28409         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
28410         (_C_CTYPE_OTHER_CNTRL): New macro.
28411         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
28412         from SCHAR_MIN, as the functions are defined only from values
28413         promoted from char or from unsigned char, not necessarily from
28414         signed char.
28416 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
28418         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
28420         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
28421         and ARFLAGS variables.  Doing this unconditionally could break
28422         later Automake's AM_PROG_AR invocation (at least it's
28423         AC_CHECK_TOOLS call to detect correct 'ar' binary).
28425         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
28426         Amsterdam Compiler Kit, so make the previous code to have effects
28427         only on ACK, and rather automatically call the Automake's
28428         AM_PROG_AR as soon as possible to decide other cases.
28430         References:
28431         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
28433         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
28434         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
28435         is possible, keep setting AR/ARFLAGS to reasonable defaults.
28436         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
28437         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
28438         'extensions' module is used.
28439         * modules/extensions (configure.ac-early): Remove as this snippet
28440         is added to gnulib-comp.m4 earlier anyway.
28442 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28444         sockets: MS Windows initalization fixes
28445         Problem reported by Test User in:
28446         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
28447         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
28448         Correct the endianness.
28449         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
28450         number mismatch, not just on <.  Cleanup before any such failure.
28452 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28454         gc: fix detection of installed libgcrypt version
28455         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
28456         at least as recent as 1.4.4.  The previously used macro is not
28457         available now, since modules were removed in version 1.6.0.
28459 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28461         c-ctype: rewrite to use inline functions
28462         This simplifies maintenance, since it makes for just one
28463         implementation of each function, letting the compiler have the fun
28464         of optimization.  In practice this works well nowadays with GCC.
28465         E.g., c_isascii might need only three instructions even though the
28466         source code lists every ASCII character individually in a large
28467         switch statement.
28468         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
28469         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
28470         * NEWS: Document the API change.
28471         * lib/c-ctype.c: Drastically simplify, since this now just expands
28472         inline functions.
28473         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28474         (C_CTYPE_INLINE): New macro.
28475         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
28476         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
28477         Verify that either ASCII or EBCDIC is being used.
28478         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
28479         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
28480         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
28481         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
28482         New private macros.
28483         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
28484         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
28485         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
28486         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
28487         (c_tolower, c_toupper): When converting, return the unsigned char,
28488         as that is what z/OS does.
28489         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
28490         of some c-ctype.h macros.
28491         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
28492         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
28493         c_tolower promotion to be compatible with z/OS.
28495 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
28497         gitlog-to-changelog: trim only trailing whitespaces
28498         This is fix for --format regression introduced by commit
28499         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
28500         doubled %n string) had no effect anymore.  This format
28501         specification has been used e.g. by GNU paxuitils (commit
28502         edfd8bcc3).
28504         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
28505         newlines in commmit messages.
28507 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28509         Test that c_iscntrl agrees with iscntrl, etc.
28510         Suggested by Daniel Richard G. in:
28511         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
28512         * modules/c-ctype-tests (Depends-on): Add ctype.
28513         * tests/test-c-ctype.c: Include <ctype.h>.
28514         (NCHARS): New constant.
28515         (test_agree_with_C_locale): New function.
28516         (main): Use it.
28517         (test_all): Use named constants.
28519         c-ctype: improve c_isascii testing
28520         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
28521         Add a test to count the number of ASCII characters.
28523 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28525         savewd: remove SAVEWD_CHDIR_READABLE
28526         It was problematic in the light of file systems that ignore umask.
28527         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
28528         * NEWS: Document this.
28529         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
28530         successful, -1 (setting errno) on failure, rather than something
28531         more complicated than that.
28532         * lib/mkdir-p.c (make_dir_parents):
28533         Do not use SAVEWD_CHDIR_READABLE.
28534         * lib/savewd.c (savewd_chdir):
28535         Remove support for SAVEWD_CHDIR_READABLE.
28536         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
28538         c-ctype: port better to EBCDIC
28539         Problems reported by Daniel Richard G. in
28540         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
28541         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
28542         Include "verify.h".
28543         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
28544         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
28545         Define as enum constants with value false, if not defined, so that
28546         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
28547         code more portable, as both branches of the 'if' are compiled on
28548         all platforms.
28549         (C_CTYPE_EBCDIC): New constant.
28550         Verify that the character set is either ASCII or EBCDIC.
28551         (to_char): New static function.
28552         (c_isascii, c_iscntrl):
28553         Assume standard control-character assignments for EBCDIC.
28554         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
28555         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
28556         Rewrite to use 'if' instead of 'ifdef'.
28557         Use to_char if non-ASCII.  Prefer <= to >=.
28558         Prefer true and false to 1 and 0, for booleans.
28559         (c_iscntrl): Use 'if', not 'ifdef'.
28560         * modules/c-ctype (Depends-on): Add verify.
28561         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
28562         (to_char): New function.
28563         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
28565 2015-09-21  Pádraig Brady  <P@draigBrady.com>
28567         nanosleep: fix return code for interrupted replacement
28568         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
28569         that we return -1 in the case the call is interrupted by a signal,
28570         rather than the current value of 1.
28571         Diagnosed and tested by Daniel Richard G.
28573 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
28575         Diagnose ERE '()|\1'
28576         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
28577         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
28578         track of the set of previously-completed subexpressions available
28579         before the first alternative, and restore this set just before
28580         parsing each subsequent alternative.  This lets us diagnose the
28581         invalid back-reference in the ERE '()|\1'.
28583         regex: merge patches from libc
28585         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
28586         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
28587         * lib/regex_internal.h:
28588         Include <libc-lock.h> instead of <bits/libc-lock.h>.
28590         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
28591         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
28592         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
28593         wcscoll.
28594         * lib/regexec.c (check_node_accept_bytes): Likewise.
28596         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28597         Fix regex wcrtomb namespace (bug 18496).
28598         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
28599         instead of wcrtomb.
28601         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28602         Fix regex wctype namespace (bug 18495).
28603         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
28604         instead of towlower.
28605         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
28606         instead of iswlower.  Call __towupper instead of towupper.
28607         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
28608         instead of iswalnum.
28610         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28611         * lib/regcomp.c (parse_bracket_exp): Initialize type to
28612         COLL_SYM in a couple of places to avoid uninitialized variable
28613         wanings on tilegx gcc 4.8.2.
28615         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28616         * lib/regex_internal.h: Remove NOT_IN_libc.
28618         2014-11-17  Andreas Schwab  <schwab@suse.de>
28619         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
28621         2014-09-11  Roland McGrath  <roland@hack.frob.com>
28622         Move findidx nested functions to top-level.
28623         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
28624         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
28625         Pass new arguments to findidx.
28626         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
28627         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
28628         Don't #include it inside the function.  Pass new arguments to findidx.
28629         * lib/regex_internal.h:
28630         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
28631         (re_string_elem_size_at): Don't #include it inside the function.
28632         Pass new arguments to findidx.
28634         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28635         Check if DEBUG is defined in regex_internal.c
28636         * lib/regex_internal.c: Check if DEBUG is defined and is set.
28638 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
28640         ceill: detect buggy OpenBSD implementation
28641         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
28642         which returns zero for small values.  Discussed here:
28643         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
28645 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
28647         mountlist: add me_mntroot field on Linux machines
28648         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
28649         mount_entry so Linux machines based on /proc/self/mountinfo can
28650         distinguish between bind mounts and original mounts.  In reality bind
28651         mounts aren't treated differently than mountroot=/ mounts by the
28652         kernel, but the user often wants these bind mounts distinguished.
28653         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
28654         More details at https://pad.lv/1432871
28656 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
28658         doc: Describe to use multiple instances of gnulib
28659         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
28660         instances of gnulib with different modules can be used, for example one
28661         for a lib and another one for associated tools.
28663 2015-09-01  Pádraig Brady  <P@draigBrady.com>
28665         base32: mark function as __attribute__ const
28666         * lib/base32.h (isbase32): Mark __attribute__ const as
28667         suggested by GCC, and consistent with the base64 module.
28669 2015-08-20  Daiki Ueno  <ueno@gnu.org>
28671         gnulib-tool: don't transform binary files with sed
28672         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
28673         .mo and .class files.
28674         Reported by Denis Denisov.
28676 2015-08-10  Daiki Ueno  <ueno@gnu.org>
28678         gperf: respect silent rules
28679         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
28680         V_GPERF_0 for silent rules.
28681         * modules/iconv_open (Makefile.am): Use V_GPERF.
28682         * modules/unicase/locale-language (Makefile.am): Likewise.
28683         * modules/unicase/special-casing (Makefile.am): Likewise.
28684         * modules/unictype/category-byname (Makefile.am): Likewise.
28685         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
28686         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
28687         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
28688         * modules/unictype/property-byname (Makefile.am): Likewise.
28689         * modules/unictype/scripts (Makefile.am): Likewise.
28690         * modules/uninorm/composition (Makefile.am): Likewise.
28692 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28694         Improve port of stdalign to C++11
28695         Problem reported by Sundaram in:
28696         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
28697         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
28698         (__alignas_is_defined): Define if C++11 or newer.
28700 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
28702         pmccabe2html: fix gawk regex escaping
28703         * build-aux/pmccabe2html: Add one more backslash to properly
28704         escape the gsub replacement value.  Fixes this error:
28705         gawk: ./build-aux/pmccabe2html:425: \
28706         warning: escape sequence `\&' treated as plain `&'
28708 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
28710         time_rz: port to pedantic memcpy
28711         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
28712         that reject memcpy (..., NULL, 0).
28714 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
28716         time_rz: port better to MinGW
28717         Don't change tzname, as this makes MinGW dump core (Bug#21020).
28718         Instead, store the tzname copy in the struct tm_zone object.
28719         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
28720         * lib/strftime.c [!_LIBC]:
28721         * lib/time_rz.c: Include time-internal.h.
28722         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
28723         name from *TZ rather than from TZNAME, doable because *TZ now has
28724         a tzname_copy member.
28725         * lib/time-internal.h: New file, with contents taken from
28726         lib/time_rz.c.  It's separate because strftime.c now accesses
28727         struct tm_zone members.
28728         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
28729         New member tzname_copy.
28730         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
28731         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
28732         Initialize tzname_copy member.
28733         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
28734         in tzname_copy member.
28735         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
28736         (restore_tzname): Remove; no longer needed.  All calls removed.
28737         * modules/time_rz (Files): Add lib/time-internal.h.
28739         time: port __need_time_t to MinGW
28740         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
28741         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
28743 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28745         strftime: fix newly-introduced bug on Solaris
28746         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
28747         consistently at the start, rather than doing some of the setup at
28748         the start and some in the %Z format spec.  This is cleaner, and
28749         works better with time_rz on platforms like Solaris where struct
28750         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
28751         mktime_z and localtime_rz can mess up the tzname cache.
28753         test-strftime: test for Solaris bug
28754         * modules/strftime-tests (Depends-on): Add strerror.
28755         * tests/test-strftime.c: Include <errno.h>.
28756         (posixtm_test): New function, containing the old 'main'.
28757         (struct tzalloc_test, struct localtime_rz_test): New types.
28758         (TZ, LT): New static vars.
28759         (tzalloc_test): New function.
28760         (main): Rewrite in terms of posixtm_test and tzalloc_test.
28762         time_rz: port to Solaris etc.
28763         Works around a tzname problem on platforms like Solaris that have
28764         tzname but not tm_zone, by setting tzname at the appropriate time
28765         and restoring it later.
28766         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
28767         New static vars.
28768         (save_abbr) [HAVE_TZNAME]: Set them.
28769         (revert_tz) [HAVE_TZNAME]: Clear or use them.
28770         (restore_tzname): New function.
28771         (localtime_rz, mktime_z): Use it.
28773         time_rz: now LGPL
28774         * modules/time_rz (License): Now LGPL, because strftime depends on it.
28776         time_rz: make a constant 'const'
28777         * lib/time_rz.c (local_tz): Now const.
28779         time_rz: fix off-by-one typo
28780         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
28782 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
28784         fprintftime, strftime: use timezone_t args
28785         * NEWS: Document the change.
28786         * lib/fprintftime.h (fprintftime):
28787         * lib/strftime.c (extra_args) [my_strftime]:
28788         * lib/strftime.h (nstrftime):
28789         Time zone arg is now of type timezone_t, not int.
28790         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
28791         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
28792         (my_strftime) [emacs && !my_strftime]:
28793         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
28794         Remove; Emacs doesn't need this any more.
28795         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
28796         fprintftime and nstrftime to call tzset.
28797         (ut) [!my_strftime]: Remove, replacing with ...
28798         (tz) [!my_stftime]: ... this new macro.  All uses changed.
28799         (strftime_case_): Use localtime_rz and mktime_z instead
28800         of localtime_r and mktime.
28801         * modules/fprintftime (Depends-on): Add time_rz.
28802         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
28803         * tests/test-strftime.c (main): Adjust to new nstrftime API.
28805         time_rz: new module
28806         * MODULES.html.sh: Add time_rz.
28807         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
28808         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
28809         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
28810         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
28811         New var HAVE_TIMEZONE_T (default 0).
28812         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
28813         New var GNULIB_TIME_RZ (default 0).
28814         * modules/time (time.h): Substitute the new vars.
28816         flexmember: license is now unlimited
28817         * modules/flexmember (License): Change to unlimited,
28818         since its only source file gives an unlimited license.
28820 2015-07-15  Eric Blake  <eblake@redhat.com>
28822         maint: update copyright paper procedures
28823         * config/srclist.txt: Drop outdated files.
28824         * doc/Copyright/conditions.txt: Update to latest.
28825         * doc/Copyright/assign.changes.manual: Delete.
28826         * doc/Copyright/assign.future.manual: Likewise.
28827         * doc/Copyright/assign.manual: Likewise.
28828         * doc/Copyright/assign.translation.manual: Likewise.
28829         * doc/Copyright/disclaim.changes.manual: Likewise.
28830         * doc/Copyright/disclaim.manual: Likewise.
28831         * doc/Copyright/disclaim.program: Likewise.
28833 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28835         localename: fix link error on Illumos
28836         Illumos defines __sun, but does not have getlocalename_l nor the
28837         equivalent.  This partially reverts commit 387c214.
28838         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
28839         available, as well as uselocale.
28840         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
28841         use getlocalename_l if it is not available.
28843 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28845         unistr/uN-strtok-tests: avoid a trivial leak
28846         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
28847         input and delim after the multibyte delimiter tests.
28849 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
28851         file-has-acl, acl-permissions: fix HP-UX typos
28852         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
28853         * lib/file-has-acl.c (file_has_acl):
28854         * lib/set-permissions.c (context_acl_from_mode)
28855         (context_aclv_from_mode, set_acls):
28856         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
28857         They were introduced by the recent ACL changes.
28859         regex: match current GNU grep behavior
28860         These symbols have not matched GNU grep behavior for quite some time.
28861         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
28862         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
28863         Change to match current GNU behavior.
28864         Simplify by expressing it as differences from POSIX BREs and EREs.
28865         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
28867 2015-07-03  Jim Meyering  <meyering@fb.com>
28869         set-permissions.c: adjust acl_from_mode's cpp guard
28870         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
28871         directives identical to those guarding the sole use.
28872         Otherwise, on some systems, we'd get a warning about
28873         the function being defined but not used.
28874         Also, filter through cppi to correct misleading indentation
28875         of cpp directives.
28877 2015-07-03  Pádraig Brady  <P@draigBrady.com>
28879         tests: restrict shells to those that support 'local'
28880         The local keyword is very widely supported and used
28881         in tests in coreutils and grep at least.  Therefore
28882         restrict to testing with shells that support it.
28883         This mainly excludes /bin/sh on Solaris.
28884         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
28886 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
28887         and Daiki Ueno  <ueno@gnu.org>
28889         unistr/uN-strtok: handle multibyte delimiters
28890         Previously, uN_strtok moved PTR to the next unit to the token end.
28891         When DELIM contained a multibyte character, the new position could
28892         be a middle of a multibyte character.
28893         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
28894         after the token.
28895         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
28896         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
28897         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
28898         * modules/unistr/u8-strtok (Depends-on): Depend on
28899         unistr/u8-strmblen.
28900         * modules/unistr/u16-strtok (Depends-on): Depend on
28901         unistr/u16-strmblen.
28902         * modules/unistr/u32-strtok (Depends-on): Depend on
28903         unistr/u32-strmblen.
28904         * tests/unistr/test-u-strtok.h: New file.
28905         * tests/unistr/test-u8-strtok.c: New file.
28906         * tests/unistr/test-u16-strtok.c: New file.
28907         * tests/unistr/test-u32-strtok.c: New file.
28908         * modules/unistr/u8-strtok-tests: New file.
28909         * modules/unistr/u32-strtok-tests: New file.
28910         * modules/unistr/u16-strtok-tests: New file.
28912 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
28914         update-copyright: fix test failure with perl >= 5.22 (trivial)
28915         * build-aux/update-copyright: Escape a literal left curly bracket,
28916         required with perl >= 5.22
28918 2015-07-02  Daiki Ueno  <ueno@gnu.org>
28920         u{16,32}-strstr-tests: relax timeout condition
28921         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
28922         tests can take longer than 5 seconds to complete.
28923         Reported by Dagobert Michelsen in:
28924         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
28925         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
28926         seconds to 10 seconds.
28927         * tests/unistr/test-u32-strstr.c (main): Likewise.
28929 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
28931         gnulib-common.m4: change the ARFLAGS default to 'cr'
28932         In some GNU/Linux distributions people started to compile 'ar'
28933         binary with --enable-deterministic-archives (binutils project).
28934         That, however, in combination with previous autotools long time
28935         working default AR{_,}FLAGS=cru causes warnings on such
28936         installations:
28937         ar: `u' modifier ignored since `D' is the default (see `U')
28938         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
28939         set already.
28941 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
28943         selinux-h: avoid double free after *getfilecon()
28944         Originally reported by Ben Shelton on bug-tar:
28945         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
28946         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
28947         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
28948         param should be freed by freecon(3) (regardless the return value).
28950 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
28952         fix pty related tests issues on Windows (trivial)
28953         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
28954         however it's still present in tests/ subdirectory of the final project.
28955         Therefore avoid it to pass `make check`.
28956         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
28957         will just return -ENOSYS, so avoid this non applicable test allowing
28958         the build to proceed.
28960 2015-07-01  Pádraig Brady  <P@draigBrady.com>
28962         acl: fix definition of acl_from_mode on FreeBSD
28963         This was causing basic coreutils copy operations to fail
28964         with ENOTSUP or ENOENT error messages.
28965         * lib/acl-internal.h (acl_from_mode): Only define when
28966         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
28967         of acl_from_mode() defined in lib/set-permissions.c to
28968         be used on FreeBSD at least.
28969         * lib/set-permissions.c: Fix up comment spelling,
28970         and a redundant variable assignment; noticed in passing.
28972 2015-06-30  Pádraig Brady  <P@draigBrady.com>
28974         readutmp: port to FreeBSD >= 9
28975         * lib/readutmp.h: Map utmpxname() to setutxdb().
28976         With that coreutils who(1) and pinky(1) tests pass.
28978 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
28980         mgetgroups: port to strict OS X
28981         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
28982         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
28983         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
28984         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
28986 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
28988         mgetgroups: port to strict OS X
28989         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
28990         Document the getgrouplist problem.
28991         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
28992         New macro.
28993         (mgetgroups): Use it.
28994         * m4/mgetgroups.m4 (gl_MGETGROUPS):
28995         Check for OS X signature for getgrouplist.
28997 2015-06-29  Jim Meyering  <meyering@fb.com>
28999         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
29000         It started like this when building coreutils' latest on OS X,
29001         invoking ./configure with a nonempty --cache=.cache:
29003           lib/linkat.c:46:42: error: operator '||' has no right operand
29004           lib/linkat.c: In function 'rpl_linkat':
29005           lib/linkat.c:330:27: error: #if with no expression
29007         Here's linkat.c's line 46:
29009           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
29011         Here's some context:
29013           $ grep linkat_nofoll .cache
29014           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
29015           $ grep LINKAT_SYM lib/config.h
29016           #define LINKAT_SYMLINK_NOTSUP
29018         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
29019         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
29020         but that violates a tenet of AC_CACHE_CHECK: it must
29021         have no side effect other than setting its cache variable.
29023         What happens is that when the cache is set, we'd skip the
29024         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
29025         defined to whatever value it happened to have in configure's
29026         environment.  In my case, it was not defined, so this later code:
29028           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
29029             [Define to 1 if linkat can create hardlinks to symlinks])
29031         would emit code with an empty RHS.
29033         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
29034         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
29036 2015-06-28  Jim Meyering  <meyering@fb.com>
29038         mountlist: avoid an unused-label warning on OS X
29039         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
29040         Building on OS X, I saw a warning about the "free_then_fail" label
29041         being unused.  Give it the _GL_UNUSED_LABEL attribute.
29043         error.c: correct printf-style format: %d -> %u
29044         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
29045         rather than %d, to match the type of "line_number", unsigned int.
29047 2015-06-25  Pádraig Brady  <P@draigBrady.com>
29049         fts: avoid reading beyond the heap allocation
29050         GCC 5.1.1 with -O2 and -fsanitize=address reports
29051         a read of size 4 from a heap object of size 3 is indeed invalid,
29052         though this may be due to incorrect padding assumptions by GCC, see:
29053         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
29054         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
29055         * modules/fts: Depend on stdalign.
29057 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29059         savedir: avoid undefined behavior in qsort call
29060         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29061         "runtime error: null pointer passed as argument 1,
29062          which is declared to never be null"
29063         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
29065 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29067         userspec: avoid undefined behavior in gettext call
29068         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29069         "runtime error: null pointer passed as argument 2,
29070          which is declared to never be null"
29071         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
29073 2015-06-20  Glenn Morris  <rgm@gnu.org>
29075         gitlog-to-changelog: improve gitmerge.el commits
29076         Let the Emacs ChangeLog generation process exclude "skipped"
29077         messages from merge commits (Bug#20717).
29078         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
29080 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29082         wchar: fix MinGW compilation warnings
29083         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
29084         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
29085         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
29087 2015-06-20  Daiki Ueno  <ueno@gnu.org>
29089         uniname/uniname-tests: use pristine data files
29090         For copyright and maintenance reasons, use the data files from UCD
29091         without modification.
29092         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
29093         (getfield): Remove.
29094         (aliases_count): New global variable.
29095         (fill_names): Skip comments and empty lines in the input.  Don't
29096         use getfield.
29097         (fill_aliases): Likewise.
29098         (main): Change the expected command line arguments to:
29099         NAMES... ["--" ALIASES...].
29100         * tests/uniname/test-uninames.sh: Adjust to the change in
29101         test-uninames.c.
29102         * tests/uniname/UnicodeDataNames.txt: Remove.
29103         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
29104         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
29105         file from Unicode 8.0.0.
29107 2015-06-19  Pádraig Brady  <P@draigBrady.com>
29109         linked-list, linkedhash-list: avoid compiler warnings
29110         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29111         -Werror=suggest-attribute=pure (from GCC 5.1.1).
29113 2015-06-19  Daiki Ueno  <ueno@gnu.org>
29115         libunistring: bump minimum version to 0.9.6
29116         * all modules depending on updated Unicode data: Regenerate.
29117         The modules are listed by a script that does:
29118         - for each file listed by: git show --oneline --name-only 705f4efc
29119           - deduce the containing modules, based on "Files:"
29120         - deduce the modules which depend on the containing modules, based
29121           on "Depends-on:"
29123 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29125         uniname/uniname: update to Unicode 8.0.0
29126         * lib/uniname/uninames.h: Regenerate.
29127         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
29128         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
29130 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29132         libunistring: update to Unicode 8.0.0
29133         * lib/gen-uni-tables.c (SIZEOF): New macro.
29134         (output_numeric): Increase the maximum number of fractions from
29135         128 to 160.  Increase the level3 value width from 7 bits to 8
29136         bits.  Use SIZEOF instead of a hard-coded integer.
29137         (output_blocks): Decrease the cut-off threshold from 0x30000 to
29138         0x28000.
29139         (fill_blocks): Increase the maximum number of blocks from 256 to
29140         384.  Use SIZEOF instead of a hard-coded integer.
29141         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
29142         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
29143         value width.
29144         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
29145         a new case added to LBP22.
29146         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
29147         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
29148         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
29149         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
29150         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
29151         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29152         lib/uniwidth/width.c.
29153         * all generated files under lib/uni* and tests/uni*: Regenerate.
29155 2015-06-16  Pádraig Brady  <P@draigBrady.com>
29157         gnu-web-doc-update: add --mirror to remove stale files
29158         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
29159         out of date files from the CVS server.  Since this is usually
29160         appropriate, a prompt is given when the option is not specified,
29161         along with the `cvs remove` command that would be run.
29163 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29165         acl-permissions: pacify -Wsuggest-attribute=const
29166         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
29167         * lib/acl-internal.h (free_permission_context):
29168         Declare with attribute const if ! (defined USE_ACL &&
29169         (HAVE_ACL_GET_FILE || defined GETACL)).
29171         fsync: document AIX misbehavior
29172         * doc/posix-functions/fsync.texi (fsync):
29173         Document failure on AIX with read-only file descriptor.
29175 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
29177         stdio: Don't redefine gets when using C++
29178         * lib/stdio.in.h (gets): Disable warning on C++.
29180 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
29182         acl-permissions: port to AIX, C89 HP-UX
29183         Problems reported by Michael Felt.
29184         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
29185         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
29186         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
29187         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
29188         Add cast for AIX, whose system calls are declared to accept
29189         char * even though the arguments are really char const *.
29190         * lib/get-permissions.c (get_permissions):
29191         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
29192         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
29193         that broke a build.
29194         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
29195         Rework types to pacify xlc.
29197 2015-06-03  Pádraig Brady  <P@draigBrady.com>
29199         vasprintf-posix: avoid compiling vasnprintf where possible
29200         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
29201         module where not required.  For example on a GNU/Linux system
29202         when gnulib-tool is run with the --conditional-dependencies option.
29204 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29206         file-has-acl: fix build on Mac OS X 10
29207         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
29208         which has an incompatible 6 parameter getxattr() call.
29209         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
29210         call on Mac OS X >= 10.4.
29211         * doc/glibc-functions/fgetxattr.texi: Likewise.
29212         * lib/file-has-acl.c: Revert to more complete combined check.
29213         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
29214         Reported by Jack Howarth.
29216 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29218         prefix-gnulib-mk: remove no longer needed special case
29219         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
29220         continued lib_SOURCES lines are no longer present,
29221         so special case handling of such entries is not required.
29223 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29225         acl: don't depend on the deprecated qacl module
29226         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
29228 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29230         gnulib-tool: concatenate lib_SOURCES to a single line
29231         * gnulib-tool: Refactor the line merging sed logic,
29232         and use that to output a single lib_SOURCES line for each module.
29233         gnulib using projects often postprocess this output to prepend
29234         subdir paths to each item, and having a single line simplifies this
29235         processing allowing better decoupling from the gnulib-tool output.
29237 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
29239         pthread_sigmask: discount system version if a simple macro (trivial)
29240         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
29241         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
29242         function to ensure it's available.
29244 2015-05-31  Pádraig Brady  <P@draigBrady.com>
29246         readlinkat: avoid OS X 10.10 trailing slash bug
29247         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
29248         has this bug.
29249         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
29250         that OS X 10.10 has this function.
29251         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
29252         as done for readlink().
29253         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
29254         trailing slash bug, and assume readlinkat() has the same issue.
29255         Also fix a typo where $gl_cv_decl_readlink_works was tested,
29256         rather than the correct $gl_cv_decl_readlinkat_works.
29258 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29260         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
29261         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
29262         module rewrite.
29264         acl-permissions: Fix build on Solaris and Cygwin
29265         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
29266         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
29267         ace_entries variables have moved into struct permission_context but
29268         they were still accessed as local variables here.
29270 2015-05-29  Pádraig Brady  <P@draigBrady.com>
29272         linkat: avoid OS X 10.10 trailing slash with symlink bug
29273         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
29274         causes the symlink to be dereferenced, and if it points
29275         to a non existent file, that file will be created as
29276         a hard link to "path1".
29277         This fixes a test failure in test-linkat.c.
29278         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
29279         this case.  The existing workaround in linkat.c for
29280         trailing slash issues, suffices for this case.
29281         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
29282         the list of platforms with trailing slash issues.
29284 2015-05-28  Pádraig Brady  <P@draigBrady.com>
29286         unlinkat: handle ignoring of ".." on Darwin 14
29287         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
29288         on Mac OS X 10.10, where it ignores paths with a trailing "..",
29289         so handle in the same manner.
29290         * m4/unlinkat.m4: Comment on this Darwin issue.
29291         * doc/posix-functions/unlink.texi: Update the latest version
29292         where the issue was seen.
29293         * doc/posix-functions/unlinkat.texi: Mention this issue.
29294         Fixes a test failure in test-unlinkat.c.
29296 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29298         qacl: split into qcopy-acl and qset-acl
29299         Emacs needs the former, but not the latter.
29300         * modules/acl-permissions: New file, containing most of the old qacl.
29301         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
29302         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
29303         * modules/qcopy-acl, modules/qset-acl: New files.
29304         * MODULES.html.sh (File system functions):
29305         Mention the new modules, and mention qacl while we're at it.
29307 2015-05-27  Glenn Morris  <rgm@gnu.org>
29309         gitlog-to-changelog: new option --ignore-line
29310         (This patch is imported from the GNU Emacs master.)
29311         This option ignores individual commit lines matching a pattern.
29312         * build-aux/gitlog-to-changelog: Add --ignore-line option.
29314 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
29316         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
29317         Implement get_permissions and set_permissions primitives for getting all
29318         the permissions of a file, storing them, and later setting them. (In the
29319         minimal case, the permissions consist only of a file mode.) Reimplement
29320         qset_acl and qcopy_acl based on these new primitives: this avoids code
29321         duplication and makes error handling more consistent.
29322         The Solaris and Cygwin code still uses duplicate code paths for setting
29323         a file mode while making sure that no acls exist and setting an explicit
29324         acl; this is no worse than before, but could be cleaned up.  The AIX
29325         code still doesn't read ACLs, it only makes sure that acls don't get in
29326         the way when setting a file mode.
29327         * lib/acl-internal.h (struct permission_context): New data structure.
29328         (get_permissions, set_permissions, free_permission_context): Declare.
29329         * lib/acl-internal.c (free_permission_context): New helper function.
29330         * lib/get-permissions.c (get_permissions): New helper function split off
29331         from qcopy_acl.
29332         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
29333         AIX, set a file's permissions based only on a file mode.
29334         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
29335         other platforms construct a temporary acl from the file mode and set
29336         that acl in the same way as setting an acl read from the source file.
29337         This should help avoid code duplication and inconsistent / buggy
29338         behavior.
29339         (set_acls): New helper function Split off from qcopy_acl.
29340         (chmod_or_fchmod): Moved here from qset-acl.c.
29341         (set_permissions): New helper function.
29342         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
29343         set_permissions.
29344         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
29345         * modules/qacl: Add get-permissions.c and set-permissions.c.
29347         file-has-acl: Split feature tests again (Bug#20667)
29348         * lib/file-has-acl.c: Instead of testing for
29349         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
29350         define them when needed.
29351         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
29352         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
29354 2015-05-27  Pádraig Brady  <P@draigBrady.com>
29356         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
29357         This avoids a conflict with "FORTIFY_SOURCE" variants
29358         of the string functions when they're replaced on NetBSD-6.0.1
29359         and Darwin-14.3.0 at least.
29360         * lib/string.in.h: Avoid including our "lib/string.h" while
29361         including the system <string.h>.
29363 2015-05-26  Eric Blake  <eblake@redhat.com>
29365         stdio: limit __gnu_printf__ witness to gcc 4.4+
29366         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
29367         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
29369         error: use correct printf attributes on mingw
29370         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
29372         inttypes: force correct mingw PRIdMAX even without <stdio.h>
29373         * modules/inttypes (Depends-on): Require extensions, so that mingw
29374         always uses GNU style inttypes.
29375         * lib/inttypes.in.h: On mingw, include <stdio.h>.
29377         stdio: fix probe on mingw under gcc 5.1
29378         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
29379         around new gcc preprocessor rules.
29381 2015-05-07  Glenn Morris  <rgm@gnu.org>
29383         gitlog-to-changelog: parse "Tiny-change"
29384         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
29385         "Copyright-paperwork-exempt".  (Bug#20324)
29387 2015-05-06  Pádraig Brady  <P@draigBrady.com>
29389         doc: document glibc posix_fallocate() issues
29390         * doc/posix-functions/posix_fallocate.texi: Mention the
29391         glibc efficiency problems and issues with NFS.
29393 2015-05-05  Karl Berry  <karl@freefriends.org>
29395         * build-aux/gendocs.sh (usage): document new css default
29396         for HTML (--htmlarg).
29398 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29400         extern-inline: no need for workaround in GCC 5.1
29401         * doc/extern-inline.texi (extern inline):
29402         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
29403         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
29404         around these bugs in GCC 5.1 and later.  Maybe in a decade or
29405         two we can remove these workarounds.
29407 2015-04-28  Pádraig Brady  <P@draigBrady.com>
29409         eealloc, pagealign_alloc, xalloc: avoid clang warnings
29410         Avoid [-Wunknown-attributes] warnings like:
29411         warning: unknown attribute '__alloc_size__' ignored
29412         * lib/xalloc.h: Don't use the __alloc_size__  attribute
29413         with clang, as support has been fully removed as of clang 3.5:
29414         https://github.com/llvm-mirror/clang/commit/c047507a
29415         * lib/eealloc.h: Likewise.
29416         * lib/pagealign_alloc.h: Likewise.
29418 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29420         tests: pacify GCC 5.1's stricter printf checking
29421         * tests/test-dirname.c (main):
29422         * tests/test-getaddrinfo.c (simple):
29423         * tests/test-getlogin.c (main):
29424         * tests/test-getndelim2.c (main):
29425         * tests/test-inttostr.c (CK):
29426         * tests/test-md5.c (main):
29427         * tests/test-read-file.c (main):
29428         * tests/test-sha1.c (main):
29429         Fix mismatches between printf format and value signedness.
29430         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
29431         Remove, as CAST_VAL always returned a value of type uintmax_t.
29433         fts: port to GCC 5.1 with --enable-gcc-warnings
29434         Without this fix, GCC 5.1 (correctly) warns about a subscript
29435         error on the fts_name component of FTSENT.  It's actually a
29436         flexible member, so define it that way on C99 or later hosts.
29437         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
29438         structure that now has a flexible array member.
29439         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
29440         (FTSENT): fts_name is now flexible on C99-or-later platforms.
29441         * modules/fts (Depends-on): Add flexmember.
29443 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
29445         file-has-acl: port to CentOS 6
29446         Problem reported by Tom G. Christensen in:
29447         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
29448         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
29449         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
29450         HAVE_GETXATTR.
29451         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
29452         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
29453         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
29454         file-has-acl.c actually needs.
29456 2015-04-26  Pádraig Brady  <P@draigBrady.com>
29458         file-has-acl: always return false when ACLs aren't supported
29459         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
29460         change the GNU/Linux getxattr path, to transform "not supported"
29461         errors to a false return rather than an error.  This is handled
29462         within file_has_acl() due to the platform specific tests to
29463         determine if ACLs are not supported.
29465 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
29467         gettext: propagate po/Makefile.in.in too
29468         * build-aux/po/Makefile.in.in: Copy from latest gettext.
29469         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
29470         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
29471         between Makefile.in.in and the gettext-runtime m4 files.
29473 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29475         file-has-acl: new module, split from acl
29476         And add a new module file-has-acl-tests to match.
29477         I ran into a problem with the recent changes to the acl module,
29478         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
29479         When using the fixed version with Emacs, I discovered that
29480         file-has-acl wasn't separated out well enough for Emacs (e.g., it
29481         had multiple libraries, but needed only one), so I fixed that too.
29482         * NEWS: Document this incompatible change.
29483         * modules/file-has-acl, modules/file-has-acl-tests: New files.
29484         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
29485         Initialize gl_need_lib_has_acl.
29486         (gl_FUNC_ACL): Require it.
29487         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
29488         Move the file-has-acl.c-relevant stuff to ...
29489         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
29490         use_xattrs = 0' typo, and omit some needless work.  Set
29491         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
29492         when gl_FUNC_ACL is called.
29493         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
29494         (Link): Remove $(LIB_HAS_ACL).
29495         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
29496         (check_PROGRAMS): Move stuff relevant to file-has-acl to
29497         modules/file-has-acl-tests.
29498         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
29500         manywarnings: add GCC 5.1 warnings
29501         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
29502         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
29503         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
29504         -Wsuggest-override, -Wuse-without-only.  Change
29505         -Wnormalized=... operands to match 5.1.
29506         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
29507         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
29508         -Wdiscarded-qualifiers, -Wformat-signedness,
29509         -Wincompatible-pointer-types, -Wint-conversion,
29510         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
29511         -Wshift-count-negative, -Wshift-count-overflow,
29512         -Wsizeof-array-argument, -Wsuggest-final-methods,
29513         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
29514         and add -Warray-bounds=2 as a special case.
29516 2015-04-21  Simon Josefsson  <simon@josefsson.org>
29518         doc: update FDL template to match FDL examples.
29519         * doc/alloca-opt.texi:
29520         * doc/alloca.texi:
29521         * doc/c-ctype.texi:
29522         * doc/c-strcase.texi:
29523         * doc/c-strcaseeq.texi:
29524         * doc/c-strcasestr.texi:
29525         * doc/c-strstr.texi:
29526         * doc/c-strtod.texi:
29527         * doc/c-strtold.texi:
29528         * doc/ctime.texi:
29529         * doc/error.texi:
29530         * doc/gcd.texi:
29531         * doc/gnulib-tool.texi:
29532         * doc/inet_ntoa.texi:
29533         * doc/intprops.texi:
29534         * doc/lib-symbol-visibility.texi:
29535         * doc/maintain.texi:
29536         * doc/parse-datetime.texi:
29537         * doc/quote.texi:
29538         * doc/regexprops-generic.texi:
29539         * doc/standards.texi: Remove spurious 'with' in FDL license
29540         template.
29542 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
29544         lstat: fix cross-compilation 'ln -s' problem
29545         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
29546         Have the test program call 'symlink' rather than a separate
29547         script run 'ln -s'; this is more likely to work in
29548         cross-compilation environments.  Reported by Pavel Fedin in:
29549         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
29551 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
29553         gendocs.sh: default to a common CSS style sheet for HTML output
29554         * build-aux/gendocs.sh (htmlarg): Change default value.
29556 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
29558         gnulib-tool: output bold attribute more portably
29559         * gnulib-tool (func_show_module_list): Change hexadecimal
29560         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
29561         encoded numbers as arguments to `printf' is not portable,
29562         and is not claimed by POSIX.  This is the case with FreeBSD.
29564 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29566         qacl: Simplify HP-UX acl_nontrivial check
29567         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
29568         acl_nontrivial. Check if the acl has at most three entries instead (it must
29569         have exactly three entries according to the HP-UX documentation). Ignore
29570         uids and gids as long as an entry is either for a user (i.e., the owner),
29571         a group (i.e., the owning group), or others.
29572         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
29573         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
29575 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
29577         acl: On Linux, check for acls without libacl
29578         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
29579         library function to check for the presence of acls, avoiding a library.
29580         * lib/file-has-acl.c: Include xattr headers if we have them.
29581         (file_has_acl): On Linux, use getxattr().
29582         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
29583         file_has_acl(). Check for xattr headers and getxattr().
29585 2015-04-14  Ángel González  <keisial@gmail.com>
29587         tempname: avoid unused parameter warnings (trivial)
29588         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
29589         (try_nocreate): Likewise.
29591 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
29593         fseeko: fix build failure on NetBSD >= 6 (trivial)
29594         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
29595         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
29597 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29599         gitlog-to-changelog: port to MS-Windows
29600         * build-aux/gitlog-to-changelog (git_dir_option):
29601         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
29602         MS-Windows Perl.  Reported by Eli Zaretskii in:
29603         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
29605 2015-04-07  Karl Berry  <karl@gnu.org>
29607         gendocs: new option --tex for passing args to texi2dvi.
29608         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
29609         (TEXI2DVI): cut to just command name.
29610         (usage): mention new option, and update copyright.
29611         <generate_tex>: use it.
29613 2015-04-07  Karl Berry  <karl@gnu.org>
29615         * config/srclistvars.sh (GETTEXT): new definition.
29616         * config/srclist.txt: use it for gettext .m4 files.
29617         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
29618         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
29619         and continuing into April.
29621 2015-04-07  Daiki Ueno  <ueno@gnu.org>
29623         uniname/uniname-tests: fix failure due to alias
29624         Reported by Jack Howarth in:
29625         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
29626         * tests/uniname/test-uninames.c (name_has_alias): New function.
29627         (test_inverse_lookup): Exclude character name with valid alias,
29628         from randomly generated character names.
29629         (main): Fill unicode_aliases before calling test functions.
29631 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
29633         hash: remove deprecated hash_insert0 function
29634         * lib/hash.h (hash_insert0): Remove deprecated function.
29635         * lib/hash.c (hash_insert0): Likewise.
29637 2015-04-02  Pádraig Brady  <P@draigBrady.com>
29639         mountlist: remove dependency on libmount
29640         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
29641         directly, rather than depending on libmount, which has many
29642         dependencies due to its dependence on libselinux, as detailed at:
29643         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
29644         Note we restrict this to __linux__ as that's probably where this
29645         interface will remain.  If ever porting, it would be best
29646         to first pull the makedev() wrapper from coreutils to a gnulib module.
29647         Note also we don't add a getline dependency to the mountlist module,
29648         as all Linux versions are sufficient.
29650 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29652         stddef: port to pre-C11 GCC on x86
29653         On this platform, max_align_t should have an alignment of 8 even
29654         though the storage alignments of double, long, etc. max out at 4.
29655         Inspired by a comment of Andreas Schwab's here:
29656         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
29657         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
29658         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
29659         * tests/test-stddef.c: Test __alignof__ too, if available.
29661 2015-03-24  Pádraig Brady  <P@draigBrady.com>
29663         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
29664         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
29666 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
29668         yesno: make EOL optional in ENABLE_NLS case also (trival)
29669         * lib/yesno.c (yesno): Check for EOL before replacing.
29670         * tests/test-yesno.sh: Add a test case (test along with gettext).
29672 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29674         fdopendir-tests: test it does not close its arg
29675         * tests/test-fdopendir.c (main): Test that fdopendir does not
29676         close its argument.  From a suggestion by David Grayson in:
29677         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
29679 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
29681         gitlog-to-changelog: trim trailing white space
29682         * build-aux/gitlog-to-changelog (main):
29683         Trim trailing white space from commit message lines.
29684         This is helpful for processing the GNU Emacs repository,
29685         which dates back to 1985 and contains a lot of such lines.
29687         gitlog-to-changelog: new option --ignore-matching
29688         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
29689         Support new option --ignore-matching=PAT, which ignores all
29690         commit messages whose first line matches PAT.
29692 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29694         fdopendir: port better to MinGW
29695         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
29696         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
29697         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
29698         * modules/fdopendir (Depends-on): Add dirfd.
29700 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
29702         fdopendir: fix typo in comment
29703         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
29705 2015-03-09  Eric Blake  <eblake@redhat.com>
29707         error: document all entry points provided
29708         * doc/glibc-functions/error_print_progname.texi
29709         (error_print_progname): Mention the error module.
29710         * doc/glibc-functions/error_at_line.texi (error_at_line):
29711         Likewise.
29712         * doc/glibc-functions/error_message_count.texi
29713         (error_message_count): Likewise.
29714         * doc/glibc-functions/error_one_per_line.texi
29715         (error_one_per_line): Likewise.
29717 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
29719         vasnprintf: pacify clang 3.5.0
29720         Problem reported by Werner Lemberg in:
29721         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
29722         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
29723         The casts aren't needed, since the characters in question are ASCII.
29725 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
29727         glob, etc.: port to MSVC v18 on MS-Windows 8.1
29728         * lib/dirent--.h (GNULIB_defined_opendir):
29729         * lib/dirent.in.h (GNULIB_defined_opendir)
29730         (GNULIB_defined_closedir):
29731         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
29732         #undef only if Gnulib defined it.
29734         poll: port to MSVC v18 on MS-Windows 8.1
29735         Problem reported by Gisle Vanem in:
29736         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
29737         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
29738         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
29739         Add sys_socket.
29741 2015-02-24  Pádraig Brady  <P@draigBrady.com>
29743         tests: support stderr verification with returns_()
29744         * tests/init.sh (returns_): Disable tracing for this wrapper
29745         function, so that stderr of the wrapped command is unchanged,
29746         allowing for verification of the contents.
29748 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
29750         passfd: avoid valgrind uninitalised data warning
29751         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
29752         to include just the fd we've initialized, rather than including
29753         the extra space used for alignment.
29755 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29757         uniwbrk/u32-wordbreaks-tests: fix copyright
29758         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
29760         dup2: doc and test for Android bug
29761         Reported by Kevin Cernekee in:
29762         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
29763         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29764         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
29766 2015-02-23  Kevin Cernekee  <cernekee@google.com>
29768         Replace dup2() on Android
29769         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
29770         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
29771         fails.  Using rpl_dup2() fixes this because it has an explicit test
29772         for this condition.
29774 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
29776         Android doesn't define RLIM_SAVED_*
29777         Portability problem reported by Kevin Cernekee in:
29778         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
29779         * doc/posix-headers/sys_resource.texi (sys/resource.h):
29780         Mention the portability problem.
29781         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
29782         Define if not defined.
29783         * m4/dup2.m4 (gl_FUNC_DUP2):
29784         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29785         Likewise.
29787 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
29789         vasnprintf-posix-tests: use consistent test
29790         * tests/test-vasnprintf-posix.c (test_function):
29791         Use "<" in assert instead of "<=", for consistency with other tests.
29793 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29795         printf, isinf, etc.: noncanonical != NaN
29796         Do not require that isinf, printf, etc. treat noncanonical
29797         values as NaNs.  Instead, require only that they do not crash.
29798         Problem reported by Joseph Myers in:
29799         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
29800         * doc/posix-functions/dprintf.texi (dprintf):
29801         * doc/posix-functions/fprintf.texi (fprintf):
29802         * doc/posix-functions/isfinite.texi (isfinite):
29803         * doc/posix-functions/isinf.texi (isinf):
29804         * doc/posix-functions/isnan.texi (isnan):
29805         * doc/posix-functions/printf.texi (printf):
29806         * doc/posix-functions/snprintf.texi (snprintf):
29807         * doc/posix-functions/sprintf.texi (sprintf):
29808         * doc/posix-functions/vdprintf.texi (vdprintf):
29809         * doc/posix-functions/vfprintf.texi (vfprintf):
29810         * doc/posix-functions/vprintf.texi (vprintf):
29811         * doc/posix-functions/vsnprintf.texi (vsnprintf):
29812         * doc/posix-functions/vsprintf.texi (vsprintf):
29813         Document this.
29814         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
29815         * m4/isinf.m4 (gl_ISINFL_WORKS):
29816         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
29817         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
29818         * tests/test-isfinite.c (test_isfinitel):
29819         * tests/test-isinf.c (test_isinfl):
29820         * tests/test-isnan.c (test_long_double):
29821         * tests/test-isnanl.h (main):
29822         * tests/test-snprintf-posix.h (test_function):
29823         * tests/test-sprintf-posix.h (test_function):
29824         * tests/test-vasnprintf-posix.c (test_function):
29825         * tests/test-vasprintf-posix.c (test_function):
29826         Test only that noncanonical values do not cause crashes, not that
29827         they are treated as NaNs.  In some cases this means a larger
29828         output buffer is needed.
29830 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
29832         fts: remove redundant close() (trivial)
29833         * lib/fts.c (fts_read): Remove redundant call to close().
29834         Spotted by coverity.
29836 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29838         getdtablesize: port better for Android
29839         Problem reported by Kevin Cernekee in:
29840         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
29841         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
29842         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
29843         Instead, just use getrlimit, taking care to avoid Cygwin bug.
29845         poll: fixes for large fds
29846         * lib/poll.c (poll): Don't check directly for NFD too large.
29847         Don't rely on undefined behavior in FD_SET when an arg exceeds
29848         FD_SETSIZE.  Always set revents afterwards, even if to zero.
29849         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
29850         as that makes the test a bit stricter.
29852 2015-02-19  Kevin Cernekee  <cernekee@google.com>
29854         fcntl: Fix cross compiling
29855         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
29856         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
29858 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
29860         dup2, fcntl: cross-compile better for Android
29861         Problem reported by Kevin Cernekee in:
29862         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
29863         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
29864         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
29865         there's little need to cross-compile for older kernels nowadays.
29866         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
29867         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
29869 2015-02-18  Pádraig Brady  <P@draigBrady.com>
29871         getopt: don't crash on memory exhaustion
29872         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
29873         memory exhaustion.  In the _LIBC case we use alloca() as is
29874         already done in glibc, so we don't need to consider the separate
29875         error path in that awkward case.  Also fix a memory leak when
29876         ambiguous options are present.
29877         Reported by Tobias Stoeckmann
29879 2015-02-17  Mike Miller  <mtmiller@ieee.org>
29881         tempname: allow compilation with C++ (trivial)
29882         * lib/tempname.h [C++]: Specify extern "C" linkage.
29883         * lib/tempname.h (try_tempname):
29884         * lib/tempname.c (__try_tempname, __gen_tempname):
29885         Rename 'try' to 'tryfunc'.
29887 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
29889         dup2, fcntl: port to AIX
29890         * m4/dup2.m4 (gl_FUNC_DUP2):
29891         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29892         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
29893         The former works on AIX 7.1 but the latter does not.
29894         Also, this may work better with Android; see:
29895         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
29897 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
29899         getdtablesize, dup2, fcntl: port to Android
29900         Problem reported by Kevin Cernekee in:
29901         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
29902         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
29903         Mention that getdtablesize doesn't work on Android.
29904         * lib/getdtablesize.c: Use getrlimit substitute only if
29905         getdtablesize is declared.  This should suffice for Cygwin
29906         while not breaking Android.
29907         * m4/dup2.m4 (gl_FUNC_DUP2):
29908         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29909         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
29910         standardized but the latter is not, and sysconf works on Android.
29911         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
29912         Also check that getdtablesize is declared.
29913         This removes the need for a special case for Android.
29915 2015-02-16  Kevin Cernekee  <cernekee@google.com>
29917         localename: Implement gl_locale_name_thread_unsafe for Android
29918         * lib/localename.c: Android API level >= 21 supports two hardcoded
29919         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
29920         the internal __locale_t struct.
29922 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
29924         fts: avoid crash when a cycle is added while traversing
29925         This could be triggered by auto-mounting a recursive bind mount.
29926         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
29927         * lib/fts.c (fts_read): Avoid removing the original hash table item
29928         when leaving a directory that caused a cycle, and preserve the FTS_DC
29929         flag.
29931 2015-02-16  Daiki Ueno  <ueno@gnu.org>
29933         uniname/uniname: support character alias
29934         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
29935         Generate one-way mapping from aliases to codepoints in the
29936         generated tables.  Special case variation selectors to reduce
29937         table size.
29938         * lib/uniname/uniname.c (unicode_character_name): Special case
29939         variation selectors.
29940         (unicode_name_character): Special case variation selectors and
29941         their aliases.
29942         * lib/uniname/uninames.h: Regenerate.
29943         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
29944         * modules/uniname/uniname-tests (Files): Add
29945         tests/uniname/NameAliases.txt.
29946         * tests/uniname/test-uninames.c: Mark as static.
29947         (ALIASLEN): Define.
29948         (struct unicode_alias): New struct.
29949         (unicode_aliases): New variable.
29950         (fill_aliases): New function.
29951         (test_alias_lookup): New test function.
29952         (main): Run the 'test_alias_lookup' test if the second argument is
29953         given.
29954         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
29955         second argument.
29957 2015-02-11  Kevin Cernekee  <cernekee@google.com>
29959         Fix FILE struct compatibility with Android API level >= 21
29960         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
29961         __sferror.  Recent versions of Bionic's stdio.h no longer define
29962         __sferror.
29963         * lib/fbufmode.c: Likewise.
29964         * lib/fflush.c: Likewise.
29965         * lib/fpurge.c: Likewise.
29966         * lib/freadable.c: Likewise.
29967         * lib/freadahead.c: Likewise.
29968         * lib/freading.c: Likewise.
29969         * lib/freadptr.c: Likewise.
29970         * lib/freadseek.c: Likewise.
29971         * lib/fseeko.c: Likewise.
29972         * lib/fseterr.c: Likewise.
29973         * lib/fwritable.c: Likewise.
29975         Assume unbroken ungetc() on Android
29976         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
29977         test case passed when running on an Android host, and the code
29978         hasn't really changed since 2009.
29980         getdtablesize: Fix Android build
29981         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
29982         versions have this symbol in the .so library (at least 32-bit
29983         platforms) but are missing the declaration in the header file,
29984         causing the m4 logic to guess incorrectly.
29986         localename: Fix Android build
29987         * modules/localename (Depends-on): Add langinfo.
29989         getugroups: Fix Android build
29990         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
29991         functions.
29993         euidaccess: Fix Android build
29994         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
29995         AT_EACCESS gets declared.
29997         linkat_nofollow: Add fallback case for cross compiling
29998         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
30000         net_if: Handle content-free <net/if.h> system headers
30001         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
30002         struct if_nameindex.  If not, enable the replacement header.
30004         signal_h: Fix Android build
30005         * lib/signal.in.h: Add Android to the list of platforms that declare
30006         pthread_sigmask() in <pthread.h> instead of <signal.h>.
30008         duplocale: Fix Android build of duplocale-tests
30009         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
30010         is included by test-duplocale.c (but not by duplocale.c).
30011         * modules/duplocale-tests (configure.ac): Check for monetary.h.
30012         * tests/test-duplocale.c: Skip test if monetary.h is absent.
30013         * doc/posix-headers/monetary.texi: Add Android to the list of
30014         platforms missing monetary.h.
30016 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30018         tests: avoid recent -Werror=unused-variable regression in test-locale
30019         * tests/test-locale.c (main): Reference the variable to avoid the
30020         "unused variable" warning.
30022 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30024         maint: various whitespace cleanups in tempname
30025         * lib/tempname.c: Normalize spacing and line length.
30026         * lib/tempname.h: Likewise.
30027         * modules/tempname: Likewise.
30029 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30031         tests: provide returns_() to simplify exit status checking
30032         * tests/init.sh (returns_): A new function for use in tests,
30033         to allow for easier checking of return values, where you expect
30034         a command to exit with failure status.  By checking for a particular
30035         exit code, you don't hide any crashes for example.
30037 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30039         mountlist: only use libmount when specified
30040         There are currently many shared libs dependencies introduced by
30041         libmount with associated runtime and virt mem overhead.
30042         Therefore don't enable by default.
30043         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
30045 2015-02-08  Daiki Ueno  <ueno@gnu.org>
30047         uniname/unimame-tests: don't link with -lunistring
30048         * modules/uniname/uniname-tests (Makefile.am): Don't link against
30049         $(LIBUNISTRING).  Document the rationale why we need to
30050         conditionalize the test.
30052 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30054         fstrcmp: don't assume strlen < INT_MAX
30055         * lib/fstrcmp.c: Include stddef.h and stdint.h.
30056         (uintptr_t): Remove, as we're now assuming stdint.
30057         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
30058         Prefer ptrdiff_t to int when the value could exceed INT_MAX
30059         if the input string is long.
30060         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
30061         uintptr_t to size_t when the underlying value is a pointer casted
30062         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
30063         * modules/fstrcmp (Depends-on): Add stdint.
30065         diffseq: prefer ptrdiff_t to ssize_t
30066         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
30067         ptrdiff_t is the natural type for signed indexes.
30068         On a few older platforms, ssize_t is narrower than size_t.
30070         xalloc: fix typo that suppressed warnings
30071         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
30072         This typo, introduced a couple of years ago, mistakenly suppressed
30073         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
30074         -Wmissing-declarations warnings.
30076         full-read: fix license notice typo
30077         * lib/full-read.h: Remove a stray line in the license notice.
30078         Reported by Sam Ellis in: http://bugs.gnu.org/19808
30080         crypto/gc: fix a -Wswitch warning
30081         Reported by Bruce Korb in:
30082         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
30083         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
30085 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30087         gnulib-tool: fix handling of patch(1) diagnostics
30088         * gnulib-tool: Send diagnostics from patch(1) to stderr,
30089         as otherwise gnulib-tool will reparse that output and attempt
30090         to lookup modules.
30092 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30094         bootstrap: exit immediately upon gnulib-tool failure
30095         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
30096         This was noticed when gnulib-tool exited early due to failure
30097         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
30098         but various confusing errors were then given as the build proceeded.
30100 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
30102         symlinkat: include all required header files
30103         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
30104         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
30105         Reported at https://savannah.gnu.org/bugs/index.php?44151
30106         and by Jack Howarth.
30108 2015-01-29  Pádraig Brady  <P@draigBrady.com>
30110         localename: support Solaris 12 and illumos
30111         * lib/localename.c (gl_locale_name_thread_unsafe): call
30112         getlocalename_l() on newer __sun platforms.
30113         Reported by Alexander Pyhalov.
30114         Fix suggested by Rich Burridge.
30116 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
30118         locale: fix tests on illumos (trivial)
30119         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
30120         so move from global scope to main().
30122 2015-01-24  Daiki Ueno  <ueno@gnu.org>
30124         unictype: avoid undefined left-shift behavior
30125         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
30126         gcc's -fsanitize=shift and running its tests triggered:
30127           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
30128             places cannot be represented in type 'int'
30129         Cast LHS to 'unsigned int' after integer promotion.
30130         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
30131         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
30133 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30135         libunistring: bump version of unitypes dependants
30136         Due to the header file search order, all the headers which depend
30137         on unitypes.h need to be generated, when the preinstalled
30138         libunistring is older.
30139         * modules/unicase/base (configure.ac): Bump minimum version to
30140         0.9.4.
30141         * modules/uniconv/base (configure.ac): Likewise.
30142         * modules/unilbrk/base (configure.ac): Likewise.
30143         * modules/uninorm/base (configure.ac): Likewise.
30144         * modules/unistdio/base (configure.ac): Likewise.
30145         * modules/unistr/base (configure.ac): Likewise.
30146         * modules/uniwbrk/base (configure.ac): Likewise.
30147         * modules/uniwidth/base (configure.ac): Likewise.
30149 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30151         unictype/category-none: fix link with libunistring
30152         Since _UC_CATEGORY_NONE is not a public symbol, it will be
30153         prefixed with "libstring_" when compiled as part of libunistring.
30154         To avoid undefined symbol at link time, increase the minimum
30155         version when the dependant modules are updated.
30156         * modules/unictype/category-none (configure.ac): Bump minimum
30157         version to 0.9.5.
30159 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30161         unitypes: fix build with installed libunistring
30162         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
30163         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
30164         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
30166 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30168         time: port to MinGW32 3.21
30169         Problem reported by Eli Zaretskii in:
30170         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
30171         * lib/time.in.h:
30172         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
30173         * modules/time (Depends-on):
30174         Fall back on unistd.h if the other include files don't define
30175         struct timespec.
30177         update-copyright: apply to self
30178         * build-aux/update-copyright: Fix copyright date.  How ironic!
30180 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30182         libunistring: update to Unicode 7.0.0
30183         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
30184         Manichaean names.
30185         * lib/unictype/joininggroup_name.h: Likewise.
30186         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
30187         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
30188         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
30189         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
30190         (fill_arabicshaping, joining_group_as_c_identifier): Support those
30191         enum values.
30192         (is_property_alphabetic): Accept newly added characters to
30193         cuneiform numeric signs.
30194         (is_property_default_ignorable_code_point): Reject U+0605.
30195         (FIELDLEN): Increase from 120 to 160.
30196         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
30197         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
30198         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
30199         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
30200         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
30201         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
30202         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
30203         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
30204         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
30205         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
30206         U+1E8D0..U+1E8D6.
30207         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
30208         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30209         lib/uniwidth/width.c.
30210         * all generated files under lib/uni* and tests/uni*: Regenerate.
30212 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30214         libunistring: update to Unicode 6.3.0
30215         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30216         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
30217         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
30218         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
30219         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
30220         Update WB5, WB9, WB10, WB13a, and WB13b.
30221         * tests/uniwbrk/test-uc-wordbreaks.c
30222         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
30223         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30224         (UC_BIDI_PDI): New enumeration values.
30225         (bidi_category_byname): Support those enum values.
30226         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
30227         dedicated property assigned.
30228         (is_property_case_ignorable): Check 0x0027.
30229         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30230         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30231         (output_wbp): Support those enum values.
30232         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30233         (UC_BIDI_PDI): New enumeration values.
30234         * lib/unictype/bidi_byname.gperf: Add those property names.
30235         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
30236         U+180E, U+1A1B, and U+2066..U+2069.
30237         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30238         lib/uniwidth/width.c.
30239         * all generated files under lib/uni* and tests/uni*: Regenerate.
30241 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30243         libunistring: update to Unicode 6.2.0
30244         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
30245         (unilbrk_table): Adjust table size.
30246         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30247         for LBP_RI.
30248         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
30249         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
30250         Normalize table index skipping ignored properties.
30251         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
30252         WBP_EXTEND and WBP_FORMAT, which are now computed without using
30253         the table.
30254         * lib/uniwbrk/wbrktable.h: Adjust table size.
30255         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
30256         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
30257         Support rule GB8a.
30258         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
30259         * tests/unigbrk/test-uc-is-grapheme-break.c
30260         (graphemebreakproperty_to_string): Support GBP_RI.
30261         * tests/uniwbrk/test-uc-wordbreaks.c
30262         (wordbreakproperty_to_string): Support WBP_RI.
30263         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
30264         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
30265         (output_lbp): Support LBP_RI.  Adjust some characters changed from
30266         LBP_AL to LBP_ID.
30267         (output_lbp): Support LBP_RI.
30268         (WBP_RI): New enumeration value.
30269         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30270         (output_wbp): Support WBP_RI.
30271         (GBP_RI): New enumeration value.
30272         (output_gbp_test, fill_org_gbp): Support GBP_RI.
30273         * all generated files under lib/uni* and tests/uni*: Regenerate.
30275 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30277         libunistring: update to Unicode 6.1.0
30278         * lib/gen-uni-tables.c (output_joining_group): Switch to
30279         3-level table to accommodate joining groups defined with higher
30280         codepoint value.  Since there are only 88 groups defined in
30281         Unicode 7.0.0, use 7-bit packed format for level3 entries.
30282         (get_lbp): Update for Unicode 6.1.0.
30283         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
30284         3-level table.
30285         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
30286         joining group name.
30287         * lib/unictype/joininggroup_name.h: Likewise.
30288         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
30289         (unilbrk_table): Adjust table size.
30290         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30291         for LBP_HL.
30292         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
30293         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
30294         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
30295         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
30296         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
30297         U+302E..U+302F.
30298         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30299         lib/uniwidth/width.c.
30300         * all generated files under lib/uni* and tests/uni*: Regenerate.
30301         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
30303 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30305         uniwbrk/u32-wordbreaks-tests: add conformance test
30306         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
30307         tests/uniwbrk/test-uc-wordbreaks.c,
30308         tests/uniwbrk/test-uc-wordbreaks.sh, and
30309         tests/uniwbrk/WordBreakTest.txt.
30310         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
30311         test-uc-wordbreaks to $(check_PROGRAMS), and define
30312         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
30313         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
30314         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
30316 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30318         uniwbrk: ignore Extended/Format characters at BOL not BOS
30319         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
30320         characters if the previous character property is one of
30321         WBP_NEWLINE, WBP_CR, and WBP_LF.
30323 2015-01-11  Jim Meyering  <meyering@fb.com>
30325         test-strstr.c: avoid a trivial leak
30326         * tests/test-strstr.c (main): Free haystack.
30328         update-copyright: recognize groff's \(co marker
30329         * build-aux/update-copyright (circle_c_re): Also accept
30330         uses of \(co, as found in gzip.1.
30332 2015-01-08  Pádraig Brady  <P@draigBrady.com>
30334         maint.mk: fix compatibility with OS X nm
30335         * top/maint.mk (_gl_tight_scope): Use the -g option to
30336         show exported items rather than the -e option which is
30337         ignored on all platforms except OS X where it gives an error.
30338         Reported by Assaf Gordon.
30340 2015-01-07  KO Myung-Hun  <komh@chollian.net>
30342         localcharset: improve charset detection on OS/2
30343         Use system codepage when appropriate.  Map OS/2 codepages to
30344         GNU canonical charset names if possible.
30345         * lib/config.charset: Don't output aliases if "$os" is os2*.
30346         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
30347         result for OS/2.
30348         (locale_charset) [OS2]: Use system codepage if codeset is omitted
30349         from the locale name which is neither "C" nor "POSIX".
30351 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30353         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
30354         This reverts the last patch but one, as it shouldn't be needed now
30355         that the typo is fixed.
30356         * lib/count-leading-zeros.h (count_leading_zeros_ll):
30357         * lib/count-trailing-zeros.h:
30358         * lib/count-one-bits.h:
30359         Go back to using 64-bit intrinsics.
30361         count-leading-zeros: fix pragma typos
30362         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
30363         Fix typos in declaration of intrinsics when _MSC_VER.
30365 2015-01-06  Pádraig Brady  <P@draigBrady.com>
30367         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
30368         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
30369         intrinsics in this case.
30370         * lib/count-trailing-zeros.h: Likewise.
30371         * lib/count-one-bits.h: Likewise.
30373 2015-01-06  Daiki Ueno  <ueno@gnu.org>
30375         uniname/uniname: update to Unicode 7.0.0
30376         To accommodate new characters added since Unicode 5.1.0, this
30377         changes the internal representation of codepoint ranges.
30378         Previously, we grouped codepoint ranges by manually assigned 4-bit
30379         tag, which only allowed 16 groups.  This removes the limitation by
30380         switching to binary search on a table.  For the detail rationale
30381         and the benchmark results, see:
30382         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
30383         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
30384         to INDEX, as it no longer represents a codepoint.
30385         (range): New struct.
30386         (main): Switch to intervals list from a bit-pattern based
30387         classification.
30388         * lib/uniname/uninames.h: Regenerate.
30389         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
30390         * modules/uniname/base (configure.ac): Bump minimum version to
30391         0.9.5.
30392         * modules/uniname/uniname (configure.ac): Bump minimum version to
30393         0.9.5.
30395 2015-01-05  Eric Blake  <eblake@redhat.com>
30397         doc: update INSTALL from autoconf
30398         * doc/install.texi: Resync from autoconf.
30399         * doc/INSTALL: Reflect recent autoconf update.
30400         * doc/INSTALL.ISO: Likewise.
30401         * doc/INSTALL.UTF-8: Likewise.
30403         stdio: fix use of PRIdMAX on modern mingw
30404         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
30405         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
30406         to work with modern mingw.
30408 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
30410         pthread: detect git mingw builds with only partial pollution
30411         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
30412         pollution, as seen temporarily in Fedora 21.
30414 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30416         lib-symbol-versions: cache script check
30417         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
30418         Cache the check for linker version scripts.
30419         From a suggestion by Christophe Curis in:
30420         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
30422 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
30424         maint: fix grammar nits in propername (trivial change)
30425         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
30426         and use an adequate verb and tense.
30428 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
30430         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30431         * module/gendocs: Add 'doc/gendocs_template_min'.
30433         * build-aux/gendocs.sh: Change email addresses and upstream URLs
30434         from to Gnulib's.
30435         (scripturl, templateurl): Adjust accordingly.
30437 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30439         gendocs: copyright date and version fix
30440         Reported by Karl Berry in:
30441         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
30442         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
30443         Fix copyright date.
30444         * build-aux/gendocs.sh (scriptversion): Update.
30446 2015-01-01  Karl Berry  <karl@gnu.org>
30448         * doc/install.texi,
30449         * build-aux/mdate-sh,
30450         * build-aux/depcomp,
30451         * build-aux/config.guess,
30452         * build-aux/config.sub,
30453         * build-aux/ar-lib,
30454         * build-aux/compile: revert copyright updates (some from last
30455         year) in slaved files.
30457 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30459         version-etc: new year
30460         * doc/gnulib.texi:
30461         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
30462         * all files: Run 'make update-copyright'.
30464 2014-12-30  Pádraig Brady  <P@draigBrady.com>
30466         xstrtol: ensure errno is reset
30467         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
30468         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
30470         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
30472 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30474         utimens: fix dependency typo
30475         * modules/utimens (Depends-on): Remove 'assure'.
30476         This bug was introduced in the recent 'assure' patch.
30478 2014-12-22  Eric Blake  <eblake@redhat.com>
30480         docs: mention why libgen.h is bad
30481         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
30483 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30485         assure: new module
30486         This works better than 'assert' when compiling with -DNDEBUG,
30487         as it avoids some compiler diagnostics in that case.
30488         Reported by Norihiro Tanaka in:
30489         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
30490         * MODULES.html.sh (func_all_modules): Add 'assure'.
30491         * lib/assure.h, modules/assure: New files.
30492         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
30493         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
30494         Prefer 'assure' to 'assert'.
30495         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
30496         * modules/chdir-long, modules/cycle-check, modules/fchdir:
30497         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
30498         Depend on 'assure'.
30500 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
30502         stdalign: port better to HP compilers
30503         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
30504         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
30506         stdalign: work around Apple GCC 4.0 bug
30507         Reported by David Fang in:
30508         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
30509         * lib/stdalign.in.h (_Alignas):
30510         * m4/stdalign.m4 (gl_STDALIGN_H):
30511         Do not use aligned attribute with GCC 4.0 on Apple.
30513 2014-12-16  Pádraig Brady  <P@draigBrady.com>
30515         getcwd: fix test failure on OS X 10.9
30516         * m4/getcwd-path-max.m4: Avoid the replacement if it
30517         won't be effective due to the PATH_MAX limitation of lstat().
30518         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
30519         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
30520         for this case for use in tests, and also exclude this
30521         case when setting REPLACE_GETCWD.
30522         * tests/test-getcwd.c (test_long_name): Restrict the
30523         tested path length so that lstat() will not be passed
30524         a path greater than PATH_MAX.
30525         Also key a test condition on HAVE_OPENAT_SUPPORT rather
30526         than AT_FDCWD, since the latter is set unconditionally
30527         since Sep 2009 in commit 52c658e9.
30529 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
30531         parse-datetime: avoid a compiler warning with byacc (trivial)
30532         * lib/parse-datetime.y (yylex): Use the same prototype in the
30533         function definition as the declaration, to avoid a -Wstrict-prototypes
30534         warning seen when using byacc.
30536 2014-12-12  Daiki Ueno  <ueno@gnu.org>
30538         unicase/locale-language-tests: fix LOCALE_FR test
30539         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
30540         a French locale with traditional encoding.
30541         Reported by umerqayam in:
30542         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
30544 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
30546         stddef: support C11's max_align_t
30547         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
30548         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
30549         Do not undef, as that might cause max_align_t to be defined twice.
30550         Instead, change use to check for _GL_STDDEF_WINT_T too.
30551         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
30552         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
30553         Check for max_align_t.
30554         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
30555         * modules/stddef-tests (Depends-on): Add stdalign.
30556         * tests/test-stddef.c: Test max_align_t.
30558 2014-12-11  Daiki Ueno  <ueno@gnu.org>
30560         unistd: fix iOS check conditional
30561         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
30562         as 0 or 1 in <TargetConditionals.h>, and the previous check always
30563         yielded true on non-iOS environment.
30564         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
30565         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
30566         they are defined.
30568 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
30570         posixtm: avoid compiler warning in a better way
30571         * lib/posixtm.c (IF_LINT): Remove.
30572         (year, posix_time_parse):
30573         Return true (not 0) if successful.  All callers changed.
30574         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
30576 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30578         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
30579         started with '/' on EMX.
30581 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30583         freopen: workaround freopen() on OS/2 kLIBC
30584         * lib/freopen.c (rpl_freopen): Workaround.
30585         * m4/freopen.m4: Add os2* case.
30587         get_shared_library_fullname: port to EMX
30588         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
30589         on EMX, respectively.
30590         (_DLL_InitTerm): New on EMX.
30591         (get_shared_library_fullname): Implement on EMX.
30593         find_executable: port to EMX
30594         * lib/progreloc.c (find_executable): Implement on EMX.
30596         sched: check struct sched_param in spawn.h as well
30597         * lib/sched.in.h: Include spawn.h on kLIBC.
30598         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
30600 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
30602         bootstrap: Allow perl modules in $buildreq
30603         * build-aux/bootstrap: Add case for perl modules.
30605 2014-12-08  Pádraig Brady  <P@draigBrady.com>
30607         apply _GL_ATTRIBUTE_PURE to some inline functions
30608         clang 3.4.2 flagged these inline functions as pure
30609         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
30610         * lib/sig-handler.h (get_handler): Likewise.
30611         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
30612         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
30614 2014-12-06  Pádraig Brady  <P@draigBrady.com>
30616         vasnprintf: fix potential use after free
30617         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
30618         flagged by clang-analyzer 3.4.2.
30620 2014-12-05  Pádraig Brady  <P@draigBrady.com>
30622         filevercmp, posixtm: avoid compiler warnings with -O3
30623         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
30624         * lib/posixtm.c: (IF_LINT): Define.
30625         (posix_time_parse): Use it to void a "may be used uninitialized"
30626         warning, seen only with -O3.
30628 2014-12-05  Bruno Haible  <bruno@clisp.org>
30630         Fix LDBL80_WORDS macro on big endian platforms.
30631         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
30632         LDBL80_WORDS macro.
30633         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30634         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30635         * tests/test-isfinite.c (test_isfinitel): Likewise.
30636         * tests/test-isinf.c (test_isinfl): Likewise.
30637         * tests/test-isnan.c (test_long_double): Likewise.
30638         * tests/test-isnanl.h (main): Likewise.
30639         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
30640         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
30641         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
30642         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
30643         Reported by Pádraig Brady.
30645 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
30647         git-version-gen: do not print new line characters
30648         * build-aux/git-version-gen: Use printf instead of echo and tr.
30650         gnulib-tool: recognize x:* as an absolute path
30651         * gnulib-tool (func_gnulib_dir): Add ?:* case.
30652         (func_relconcat): Likewise.
30654 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
30656         argp: avoid extraneous translation and mem leak with empty pre doc
30657         * lib/argp-help.c (argp_doc): Never translate the empty string,
30658         when "\v" is the first or last character of the string, as that
30659         has a reserved meaning to return the header info from a po file.
30660         This also fixes a small memory leak in the !post case.
30661         The issue can be seen with this command for example:
30662         LC_MESSAGES=en_US grub2-mknetdir --help
30664 2014-11-27  Daiki Ueno  <ueno@gnu.org>
30666         uniname/uniname-tests: skip if system's libunistring is used
30667         * modules/uniname/uniname-tests (Makefile.am): Skip test if
30668         uniname/uniname module is not compiled.
30670 2014-11-27  Pádraig Brady  <P@draigBrady.com>
30672         printf: fix configure check on big endian systems
30673         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
30675 2014-11-22  Daiki Ueno  <ueno@gnu.org>
30677         pipe-filter-gi, pipe-filter-ii: port to AIX
30678         On AIX 7.1, 'select' is defined as static and cannot be referred
30679         to from inline function.
30680         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
30681         the definition...
30682         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
30683         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
30685 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30687         gitlog-to-changelog: add --until
30688         * build-aux/gitlog-to-changelog: Support new --until option.
30689         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
30691 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
30693         extern-inline: update commentary about GCC bugs
30694         * m4/extern-inline.m4: Add another GCC bug number to comments.
30696 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30698         gen-uni-tables: untabify
30699         * lib/gen-uni-tables.c: Untabify.
30701 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30703         gen-uni-tables: check out-of-range values added to 3-level tables
30704         * lib/gen-uni-tables.c (output_category, output_bidi_category)
30705         (output_joining_type, output_ident_category): Check out-of-range
30706         values added to 3-level tables.
30708 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30710         gen-uni-tables: utilize 'assert'
30711         * lib/gen-uni-tables.c: Include <assert.h>.
30712         (output_category, output_combclass, output_decimal_digit_test)
30713         (output_decimal_digit, output_digit_test, output_digit)
30714         (output_numeric, get_mirror_value, fill_properties)
30715         (fill_property30, is_property_alphabetic)
30716         (is_property_default_ignorable_code_point)
30717         (is_property_uppercase, is_property_lowercase)
30718         (is_property_cased, is_property_case_ignorable)
30719         (is_property_changes_when_lowercased, is_property_iso_control)
30720         (is_property_math, fill_arabicshaping, output_joining_group)
30721         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
30722         (output_wbp, fill_org_gbp, get_decomposition)
30723         (output_decomposition, fill_composition_exclusions)
30724         (debug_output_composition_tables, output_composition_tables)
30725         (redistribute_casefolding_rules, output_casing_rules): Use
30726         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
30727         reporting.
30729 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30731         gen-uni-tables: cosmetic improvements
30732         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
30733         variables specification.
30734         (is_outdigit): Remove unused function.
30736 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
30738         fcntl-h-tests: port to PA-RISC GNU/Linux
30739         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
30741 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30743         fts: port to C89
30744         Problem reported for MSVC 16 by Gisle Vanem in:
30745         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
30746         * lib/fts.c (fts_build): Avoid declaration before statement.
30748 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30750         unistd: port to iOS
30751         Problem reported by André Klitzing in:
30752         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
30753         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
30755 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
30757         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
30758         Problem reported by Alan Modra in:
30759         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
30760         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
30761         Always cast the function arg, reverting this part of the previous
30762         change.
30764 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
30766         obstack: avoid potentially-nonportable function casts
30767         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
30768         Remove, replacing with ...
30769         (call_chunkfun, call_freefun): New static functions.
30770         All uses changed.  Avoid potentially-nonportable casts.
30771         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
30772         (_obstack_begin_worker): Omit last two args, since they
30773         rely on potentially-nonportable casts.  All callers changed.
30774         * lib/obstack.h (_OBSTACK_CAST): New macro.
30775         Use it everywhere the old API used a potentially-nonportable cast.
30776         The new API doesn't cast.
30777         (struct obstack): Use unions rather than requiring
30778         potentially-nonportable casts.
30779         (obstack_chunkfun, obstack_freefun): Return void.
30781 2014-11-03  Alan Modra  <amodra@gmail.com>
30783         obstack: fix macro return values
30784         * lib/obstack.h (obstack_next_free): Return void *.
30785         (obstack_1grow_fast, obstack_blank_fast): Return void.
30786         For __GNUC__ macros:
30787         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
30788         For !__GNUC__ macros:
30789         (obstack_make_room, obstack_grow, obstack_grow0)
30790         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
30792 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30794         obstack: do not assume system-supplied obstack is size_t safe
30795         * m4/obstack.m4: New file.
30796         * modules/obstack (Files): Add it.
30798         obstack: port to platforms that #define __alignof__
30799         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
30800         not if !_LIBC.  We don't know of any platforms that #define
30801         __alignof__, but it might be useful in tests.  Conversely,
30802         glibc assumes GCC.
30804 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30806         linkat: don't unconditionally replace on GNU/Linux
30807         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
30808         was redundant for a few reasons.  It was present to support compiling
30809         on new systems but running on the old narrow window of Linux 2.6.1[67].
30810         It setup and cleaned up test files which weren't actually used.
30811         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
30812         implicit in the following check.
30814 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30816         linkat: wrap to handle symlinks on OS X 10.10
30817         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
30818         but not usable because it doesn't support creating hardlinks
30819         to symlinks.  Therefore add a generic test for this capability
30820         and fallback to our emulation if linkat() fails with ENOTSUP.
30822 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30824         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
30825         * doc/posix-functions/open.texi (open):
30826         * doc/posix-functions/openat.texi (openat):
30827         Document that these functions do not set errno to ELOOP when
30828         a symlink is opened with O_NOFOLLOW.
30830 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30832         obstack: add NEWS entry for recent incompatible changes
30833         * NEWS: Describe recent changes.
30835 2014-10-30  Pádraig Brady  <P@draigBrady.com>
30837         mountlist: don't use libmount to decide on dummy/remote
30838         * lib/mountlist.c (read_file_system_list): Don't use the libmount
30839         routines to determine whether a file system is dummy or remote,
30840         as they're not currently compatible.  For example the remoteness
30841         is determined on file system type (for which the list seems incomplete),
30842         rather than simply checking for a ':' in the device name.
30843         Also libmount currently determines that 'tmpfs' is a dummy file system
30844         even though it has associated storage.
30846 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30848         obstack: prefer __alignof__ to alignof
30849         This is for portability to pre-4.7 GCC when compiling glibc.
30850         See Joseph S. Myers in:
30851         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
30852         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
30853         New macro, defined by including and using <alignof.h>.
30854         (MAX): New macro.
30855         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
30856         Do not use enums as they are not portable to some broken compilers.
30857         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
30859         obstack: prefer alignof to calculating alignments by hand
30860         * lib/obstack.c: Include <stdalign.h>.
30861         (struct fooalign): Remove.
30862         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
30863         * modules/obstack (Depends-on): Add stdalign.
30865 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
30867         obstack: use size_t alignments and check for overflow
30868         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
30869         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
30870         * lib/obstack.h (struct obstack.alignment_mask):
30871         Use _OBSTACK_SIZE_T, not int, for alignments.
30872         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
30873         overflows, e.g., when adding the alignment.
30875 2014-10-29  Alan Modra  <amodra@gmail.com>
30877         obstack: 64-bit obstack support, part 3
30878         This finally enables full 64-bit obstack support.  The glibc
30879         shared library specific code is removed from obstack.c too, and
30880         the error handling code conditionally compiled under control of
30881         another macro, _OBSTACK_NO_ERROR_HANDLER.
30882         * lib/obstack.h: Include string.h earlier.
30883         (_OBSTACK_INTERFACE_VERSION): Define.
30884         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
30885         * lib/obstack.c: Don't include shlib-compat.h.
30886         (OBSTACK_INTERFACE_VERSION): Delete.
30887         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
30888         glibc code is compatible with version 2.  Don't include stdio.h for
30889         __GNU_LIBRARY.
30890         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
30891         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
30892         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
30893         glibc shared library specific source.
30895         obstack: 64-bit obstack support, part 2
30896         This gets us 4G obstack support, without changing ABI
30897         compatibility, apart from possibly introducing some
30898         signed/unsigned comparison warnings in code that uses obstack.h.
30899         a) Replace "int" size parameters, return values, and macro local vars
30900            with _OBSTACK_SIZE_T, an "unsigned int" for now.
30901         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
30902         c) Make all obstack macros checking available room use obstack_room.
30903            "next_free + desired > chunk_limit" may wrap the lhs for chunks
30904            allocated near the top of memory.
30905         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
30906         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
30907         in place of "int" size parameters, return values and local vars.
30908         (_CHUNK_SIZE_T): Define.
30909         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
30910         union use an _OBSTACK_SIZE_T integer type.
30911         For __GNUC__ versions of the following macros...
30912         (obstack_room): Rename local var.
30913         (obstack_make_room): Use obstack_room.
30914         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30915         obstack_int_grow, obstack_blank): Likewise.
30916         (obstack_finish): Use unsigned comparison when comparing aligned
30917         next_free against chunk_limit.
30918         (obstack_free): Cast OBJ to remove possible const qualifier.
30919         For !__GNUC__ versions of the following macros...
30920         (obstack_make_room): Use obstack_room.
30921         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30922         obstack_int_grow, obstack_blank): Likewise.
30923         (obstack_finish): Use unsigned comparision when comparing aligned
30924         next_free against chunk_limit.
30925         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
30926         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
30927         _OBSTACK_SIZE_T.
30928         (_obstack_begin, _obstack_begin_1): Likewise.
30929         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
30930         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
30932         obstack: 64-bit obstack support, part 1
30933         a) Correct calls to alloc function, to use a size_t arg.  "long" is
30934            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
30935            and "size_t" 64 bits.
30936         b) Consolidate _obstack_begin and _obstack_begin1 code.
30937         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
30938         use "size_t" rather than "long".
30939         (_obstack_begin, _obstack_begin1): Likewise.
30940         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
30941         obstack_chunkfun): Update alloc function casts.
30942         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
30943         (chunkfun_type, freefun_type): New typdefs.
30944         (_obstack_begin_worker): Split out from ..
30945         (_obstack_begin, _obstack_begin_1): ..here.
30947         obstack: tidy part 2
30948         a) Don't be concerned about "not polluting the namespace with stddef.h
30949            symbols" in obstack.h, since gnulib string.h includes stddef.h
30950            anyway, and it seems unlikely that anyone would care.
30951         b) Don't roll our own slow memcpy in _obstack_newchunk.
30952         c) Rename obstack_free to _obstack_free.  This makes the naming
30953            consistent with other obstack functions and obviates the need for
30954            __obstack_free.  Ancient obstack.c defined both obstack_free and
30955            _obstack_free.  We continue to do that for _LIBC via an alias.
30956         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
30957            is clever, but nowadays gcc warns on undefined macros.  You'll get
30958            an undefined macro warning if simulating an old gcc with -U__GNUC__
30959            -U__GNUC_MINOR__ -D__GNUC__=1.
30960         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
30961         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
30962         (__obstack_free): Delete, update refs.
30963         (_obstack_free): Rename from obstack_free.
30964         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
30965         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
30966         * lib/obstack.c: Don't include stddef.h.
30967         (COPYING_UNIT): Delete.
30968         (_obstack_begin): Formatting fix.
30969         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
30970         (_obstack_free): Rename from __obstack_free, update alias.  Move
30971         undef of obstack_free to where it is needed.
30973         obstack: tidy part 1
30974         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
30975            to me, and result in overlong lines after later patches.
30976         b) Move error handling code, to avoid a forward declaration and to
30977            simplify later patches in this series.
30978         * lib/obstack.h (struct obstack <temp>): Rename fields of union
30979         and update all uses.
30980         * lib/obstack.c: Include stdlib.h earlier.
30981         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
30982         in file.
30983         (print_and_abort): Remove now redundant forward declaration.
30985 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30987         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
30988         Without this change, in bleeding-edge fileutils Autoconf complains
30989         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
30990         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
30991         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
30992         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
30994 2014-10-24  Daiki Ueno  <ueno@gnu.org>
30996         iconv: avoid false detection of non-working iconv
30997         The INBUF arguments of iconv can be either 'const char **'
30998         or 'char **'.  If CC is g++, the difference causes a compile error
30999         and thus leads to a false detection of non-working iconv.
31000         Reported by Eli Zaretskii and Werner LEMBERG in:
31001         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
31002         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
31003         iconv.  Bump serial number.
31005 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31007         bootstrap: print more diagnostics for missing programs
31008         * build-aux/bootstrap: only suppress stderr when checking for
31009         alternative program names.  This supports programs issuing non
31010         standard error messages.
31012 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31014         bootstrap: only update the gnulib submodule
31015         * build-aux/bootstrap: Restrict the "submodule update" command
31016         to the gnulib path.
31018 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31020         symlinkat: port to AIX 7.1
31021         * doc/posix-functions/symlinkat.texi (symlinkat):
31022         Mention AIX porting problem.
31023         * lib/symlinkat.c: Always include errno.h.
31024         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
31025         * lib/unistd.in.h (symlinkat): Add replacement machinery.
31026         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
31027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
31028         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
31029         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
31030         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
31032         readlinkat: port to AIX 7.1
31033         * doc/posix-functions/readlink.texi (readlink):
31034         * doc/posix-functions/readlinkat.texi (readlinkat):
31035         Mention AIX porting problem.
31036         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
31037         New function.
31038         * lib/unistd.in.h (readlinkat): Add replacement machinery.
31039         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
31040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
31041         * modules/readlinkat (configure.ac): Also compile replacement
31042         if REPLACE_READLINKAT.
31043         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
31045 2014-10-12  Karl Berry  <karl@gnu.org>
31047         * doc/posix-functions/dirname.texi: remove spurious {.
31049 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
31051         basename, dirname: Improve documentation.
31052         * doc/posix-functions/basename.texi: Mention dirname module and
31053         base_name() function.
31054         * doc/posix-functions/dirname.texi: Mention dir_name() and
31055         mdir_name() functions.
31056         Suggested by Werner LEMBERG <wl@gnu.org>.
31058 2014-09-24  Jim Meyering  <meyering@fb.com>
31060         exclude: declare exclude_patopts static
31061         * lib/exclude.c (exclude_patopts): Declare static,
31062         to avoid triggering a -Wmissing-prototypes warning.
31063         The alternative (declaring it in the .h file) would
31064         require publicizing the private "struct patopts".
31066 2014-09-21  Werner Lemberg  <wl@gnu.org>
31068         dirname: support compilation with C++
31069         * lib/dirname.h: Add necessary C linkage declarations.
31071 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31073         qsort_r: include <config.h>
31074         Problem reported by Tom G. Christensen in:
31075         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
31076         * lib/qsort.c [!_LIBC]: Include <config.h> first.
31078 2014-09-16  Dylan Cali  <calid1984@gmail.com>
31080         avltree-list: avoid compiler warnings (trivial)
31081         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31082         -Werror=suggest-attribute=pure.
31083         * lib/gl_array_list.c: Likewise.
31084         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
31085         declaration to avoid -Werror=missing-prototypes.  This is not added
31086         to a header as only exported for tests.  Add (void) to the
31087         check_invariants() call to indicate we're discarding the result
31088         in this context which avoids -Werror=unused-value.  Note we don't
31089         use ignore_value here to avoid a dependency as we know we'll not
31090         be adding __attribute__((warn_unused_result)) to check_invariants().
31091         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
31093 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31095         qsort_r: new module, for GNU-style qsort_r
31096         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
31098 2014-09-15  Werner LEMBERG  <wl@gnu.org>
31100         strerror_r-posix: support compilation with C++
31101         * lib/strerror_r.c: Add necessary C linkage declarations.
31103 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
31105         fcntl-h: fix compilation with Intel C++ compiler (trivial)
31106         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
31108 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
31110         mountlist: use /proc/self/mountinfo when available
31111         Use libmount to propagate device IDs provided by Linux in
31112         /proc/self/mountinfo.  This will give more accurate output when
31113         using df in chroot'ed environments as the device IDs are not
31114         determined by stat() which may be inaccurate within the chroot.
31115         * lib/mountlist.c (read_file_system_list): Use the libmount routines
31116         from util-linux to parse "/proc/self/mountinfo" or fall back to
31117         standard getmntent() processing.
31118         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
31119         getmntent() is used, as is the case on GNU/Linux.
31121 2014-09-07  Eric Wong  <normalperson@yhbt.net>
31123         users.txt: add cmogstored
31124         cmogstored has used gnulib since the beginning in 2012 to support
31125         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
31127 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31129         Trivial change.
31130         * gnulib-tool: Use same options as build-aux/bootstrap to download
31131         PO files.
31133 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31135         Trivial change.
31136         * gnulib-tool: Fallback to wget when rsync of PO files fails.
31138 2014-09-04  Eric Blake  <eblake@redhat.com>
31140         maintainer-makefile: add syntax check for useless ';;'
31141         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
31143 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
31145         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
31146         Problem reported by Assaf Gordon in:
31147         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31148         Apparently Ubuntu is doing some fancy link-time optimization
31149         that doesn't work with -lpthread but does work with -pthread.
31150         Work around the bug by preferring -pthread to -lpthread.
31151         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31152         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
31153         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31154         Treat -pthread like -lpthread.
31156 2014-09-04  Eric Blake  <eblake@redhat.com>
31158         error: drop spurious semicolon
31159         * lib/error.c (__error_at_line): Fix ';;'.
31161 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31163         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
31164         * m4/gnulib-common.m4 (AC_C_RESTRICT):
31165         Override AC_C_RESTRICT unconditionally.
31166         Update from autoconf, incorporating:
31167         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
31168         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
31170 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31172         manywarnings: add GCC 4.9 warnings
31173         Also, make it easier to maintain this in the future.
31174         * build-aux/gcc-warning.spec: Add -Wabi-tag,
31175         -Wconditionally-supported, -Wdelete-incomplete,
31176         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
31177         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
31178         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
31179         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
31180         only for older GCC versions that need them.  Handle
31181         -Wnormalized=nfc specially, so that the 'comm' command used
31182         for maintenance doesn't get confused.
31184 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31186         vasnprintf: fix bugs in width computation
31187         * lib/vasnprintf.c (VASNPRINTF):
31188         Rework previous change, which introduced a bug,
31189         to avoid the warning in a different way.
31190         Avoid undefined behavior if the width arg is less than -INT_MAX.
31191         Avoid unnecessary use of HAS_WIDTH local.
31193 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
31195         vasnprintf: Avoid signed/unsigned comparison warning.
31196         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
31197         compare end addr of generated string w/ maximum end addr.
31199 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31201         parse-datetime: Avoid pointer difference.
31202         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
31203         instead of calculating difference of pointers.  This removes an
31204         annoying warning, devoid of any use.
31206 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31208         qsort_r: new module, for GNU-style qsort_r
31209         This works even on FreeBSD, which has an incompatible qsort_r API.
31210         * MODULES.html.sh: Add it.
31211         * doc/glibc-functions/qsort_r.texi: It's now supported.
31212         * lib/qsort.c: New file, taken from glibc with minor changes
31213         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
31214         removed.
31215         * lib/qsort_r.c: New file, compiled only on FreeBSD.
31216         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
31217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
31218         * modules/qsort_r, modules/qsort_r-tests: New files.
31219         * modules/stdlib (Makefile): Set up its defaults.
31220         * tests/test-qsort_r.c: New file.
31222 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31224         vla: new module
31225         GNU RCS can use this, mostly for documentation I expect.  See:
31226         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
31227         * MODULES.html.sh: Add vla.
31228         * lib/vla.h, modules/vla: New files.
31230 2014-08-07  Daiki Ueno  <ueno@gnu.org>
31232         localename: make gl_locale_name_thread really thread-safe on Windows
31233         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
31234         "glthread/lock.h".
31235         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
31236         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
31238 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
31240         getpass: don't assume struct termios
31241         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
31242         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
31243         * lib/getpass.c (getpass): Port to systems lacking struct termios.
31245         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
31246         Problem reported by Jonas 'Sortie' Termansen in:
31247         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
31248         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
31249         Implement via sysconf for platforms that lack getdtablesize.
31251         vararrays: modernize AC_C_VARARRAYS for C11
31252         This backports a change I recently made to Autoconf.
31253         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
31254         VLAs are not supported, as this is what C11 does.  The old macro
31255         HAVE_C_VARARRAYS is still defined if they are supported, but is
31256         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
31258 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
31260         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
31261         * build-aux/install-reloc (func_create_wrapper): Also wrap
31262         strerror-override, stat, stat.
31264 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31266         sys_select: fix FD_ZERO problem on Solaris 10
31267         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
31268         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
31269         to expand to an expression that invoked memset without necessarily
31270         including <string.h>.  The problem was that the first include
31271         defined _SYS_TIME_H, causing the second include to short-circuit.
31272         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
31273         Also, fix what appears to be a cut-and-paste typo, by replacing
31274         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
31275         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
31277         accept: document Solaris 10 type glitch
31278         * doc/posix-functions/accept.texi (accept): Mention that
31279         Solaris 10 'accept' takes void * last arg, not socklen_t *.
31281 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
31283         extern-inline: port to FreeBSD, DragonFly
31284         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
31285         is present if either __DragonFly__ or __FreeBSD__ is defined.
31286         FreeBSD problem reported by Andrey Borzenkov in:
31287         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
31288         Also, worry about __APPLE__ only if __MACH__ is also defined,
31289         as this is more consistent with the rest of gnulib.
31290         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
31291         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
31293 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31295         regex: Make #if/#ifdef usage consistent for DEBUG
31296         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
31297         of the inconsistent usage of #if and #ifdef as that works with
31298         both Glibc and Gnulib's style.
31300 2014-07-31  Eric Blake  <eblake@redhat.com>
31302         openat-die: use _Noreturn markup
31303         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
31304         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
31305         _Noreturn.
31307 2014-07-30  Eric Blake  <eblake@redhat.com>
31309         test-open: port to cygwin, which lacks Fortify
31310         * tests/test-open.h (ALWAYS_INLINE): New macro.
31311         (__always_inline): Don't abuse internal symbol on non-glibc.
31313 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
31315         localename: Enforce declarations before statements.
31316         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
31317         first statement.
31319 2014-07-18  Jim Meyering  <meyering@fb.com>
31321         test-userspec: don't look up numeric user names
31322         * tests/test-userspec.c: I found a system for which getpwnam("0")
31323         returned a pointer to a non-root user's entry, and that made the
31324         test fail.
31325         (T): Prefix each numeric input with "+", to inhibit lookup.
31327 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
31329         localcharset, localename: MS-Windows support for non-default locales
31330         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
31331         falling back on the default system codepage, try extracting
31332         the codepage from what 'setlocale' returns.  This allows to
31333         take into account changes of the codeset due to non-default
31334         locale set by a previous call to 'setlocale'.
31335         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
31336         Define if not already defined.
31337         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
31338         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
31339         current locale by calling 'setlocale', then converting the
31340         locale name into LCID by calling 'get_lcid'.  This allows to
31341         take into account changes in the current locale from the
31342         default one, in contrast to GetThreadLocale.
31344 2014-07-14  Daiki Ueno  <ueno@gnu.org>
31346         announce-gen: avoid failure when Digest::SHA is installed
31347         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
31348         Digest::SHA1->new in print_checksums fails.
31349         * build-aux/announce-gen (digest_classes): New associative array
31350         for available message digest implementations.
31351         (print_locations): Use it.
31353 2014-07-13  Pádraig Brady  <P@draigBrady.com>
31355         gettext: revert "update macros to version 0.19"
31356         This reverts commit 9b9370ca, as it currently requires that
31357         developers of any project that explicitly uses the gettext module
31358         or implicitly uses it through the utimens-tests or
31359         futimens-tests modules, use gettext >= 0.19.
31360         However there are some stability and availablity issues with
31361         that version at present.  We can reinstate this soon, when stability
31362         is addressed and packages are more readily available.
31364 2014-07-12  Jim Meyering  <meyering@fb.com>
31366         regex: don't deref NULL upon heap allocation failure
31367         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
31368         failure in one more place.
31369         To trigger the segfault, configure grep -with-included-regex,
31370         build it, and run these commands:
31371         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
31372         I discovered this while replying to a private report from
31373         Jens Schleusener about excessive memory consumption by grep
31374         when using a regular expression like the one above.
31376 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
31378         regex: fix memory leak in compiler
31379         Fix by Andreas Schwab in:
31380         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
31381         * lib/regcomp.c (parse_reg_exp): Deallocate partially
31382         constructed tree before returning error.
31384 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31386         announce-gen: avoid perl warnings
31387         * build-aux/announce-gen: add two minor checks to avoid
31388         "use of uninitialized value" warnings when command-line parameters are
31389         missing.
31391 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31393         localename: avoid -Wsuggest-attribute={const,pure} warnings
31394         * lib/localename.c (string_has): Tag internal function as pure.
31395         * lib/localename.h (gl_locale_name_default): Tag extern declaration
31396         as const when appropriate.
31398 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
31400         nl_langinfo: Fix last change.
31401         * lib/nl_langinfo.c (includes): Drop redundant include.
31403 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31405         error: Fix -Wundef warnings in glibc
31406         * lib/error.c [_LIBC]: Define default macros for
31407         glibc.
31408         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
31409         Check _LIBC before STRERROR_R_CHAR_P.
31411         error: Sync from glibc master
31412         * lib/error.c [_LIBC]: Remove INTUSE usage.
31413         (error_tail): Remove unused macro ALLOCA_LIMIT.
31414         Fix potential buffer overflow.  Fix potential NULL dereference
31415         in strcmp.
31417 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
31419         nl_langinfo: fix build under mingw
31420         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
31422 2014-07-09  Andrew D Warshall  <warshall@99main.com>
31424         mountlist: do not classify a bind-mounted dir entry as "dummy"
31425         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
31426         1-argument getmntent() (instead of assuming absence).
31428 2014-07-08  Eric Blake  <eblake@redhat.com>
31430         maint.mk: less syntax-check noise when SIGPIPE is ignored
31431         * top/maint.mk (_sc_header_without_use)
31432         (sc_require_config_h_first): Parse full list.
31434 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
31435             Paul Eggert  <eggert@cs.ucla.edu>
31437         nl_langinfo: CODESET on MS-Windows and more items from localeconv
31438         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
31439         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
31440         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
31441         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
31442         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
31443         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
31444         Include <stdio.h> if Microsoft Windows.
31445         Include <time.h> if !REPLACE_NL_LANGINFO.
31446         (ctype_codeset): New function, taken from rpl_nl_langinfo,
31447         and with improvements for Microsoft Windows.
31448         (rpl_nl_langinfo): Use it.
31449         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
31450         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
31451         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
31452         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
31453         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
31454         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
31455         corresponding values returned by 'localeconv'.  Compute the values
31456         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
31457         'strftime' with a suitable struct tm value.
31459 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31461         Bruno Haible has stepped down as maintainer.
31462         See Karl Berry in:
31463         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
31464         Daiki Ueno has volunteered to maintain libunistring; see:
31465         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
31466         * modules/gen-uni-tables, modules/libunistring:
31467         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
31468         * modules/unicase/base, modules/unicase/cased:
31469         * modules/unicase/empty-prefix-context:
31470         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
31471         * modules/unicase/locale-language, modules/unicase/special-casing:
31472         * modules/unicase/tocasefold, modules/unicase/tolower:
31473         * modules/unicase/totitle, modules/unicase/toupper:
31474         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
31475         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
31476         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
31477         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
31478         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
31479         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
31480         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
31481         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
31482         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
31483         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
31484         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
31485         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
31486         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
31487         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
31488         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
31489         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
31490         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
31491         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
31492         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
31493         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
31494         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
31495         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
31496         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
31497         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
31498         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
31499         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
31500         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
31501         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
31502         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
31503         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
31504         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
31505         * modules/unicase/ulc-casexfrm, modules/unicodeio:
31506         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
31507         * modules/uniconv/u16-conv-to-enc:
31508         * modules/uniconv/u16-strconv-from-enc:
31509         * modules/uniconv/u16-strconv-from-locale:
31510         * modules/uniconv/u16-strconv-to-enc:
31511         * modules/uniconv/u16-strconv-to-locale:
31512         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
31513         * modules/uniconv/u32-strconv-from-enc:
31514         * modules/uniconv/u32-strconv-from-locale:
31515         * modules/uniconv/u32-strconv-to-enc:
31516         * modules/uniconv/u32-strconv-to-locale:
31517         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
31518         * modules/uniconv/u8-strconv-from-enc:
31519         * modules/uniconv/u8-strconv-from-locale:
31520         * modules/uniconv/u8-strconv-to-enc:
31521         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
31522         * modules/unictype/bidicategory-all:
31523         * modules/unictype/bidicategory-byname:
31524         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
31525         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
31526         * modules/unictype/bidiclass-byname:
31527         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
31528         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
31529         * modules/unictype/block-all, modules/unictype/block-list:
31530         * modules/unictype/block-of, modules/unictype/block-test:
31531         * modules/unictype/category-C, modules/unictype/category-Cc:
31532         * modules/unictype/category-Cf, modules/unictype/category-Cn:
31533         * modules/unictype/category-Co, modules/unictype/category-Cs:
31534         * modules/unictype/category-L, modules/unictype/category-LC:
31535         * modules/unictype/category-Ll, modules/unictype/category-Lm:
31536         * modules/unictype/category-Lo, modules/unictype/category-Lt:
31537         * modules/unictype/category-Lu, modules/unictype/category-M:
31538         * modules/unictype/category-Mc, modules/unictype/category-Me:
31539         * modules/unictype/category-Mn, modules/unictype/category-N:
31540         * modules/unictype/category-Nd, modules/unictype/category-Nl:
31541         * modules/unictype/category-No, modules/unictype/category-P:
31542         * modules/unictype/category-Pc, modules/unictype/category-Pd:
31543         * modules/unictype/category-Pe, modules/unictype/category-Pf:
31544         * modules/unictype/category-Pi, modules/unictype/category-Po:
31545         * modules/unictype/category-Ps, modules/unictype/category-S:
31546         * modules/unictype/category-Sc, modules/unictype/category-Sk:
31547         * modules/unictype/category-Sm, modules/unictype/category-So:
31548         * modules/unictype/category-Z, modules/unictype/category-Zl:
31549         * modules/unictype/category-Zp, modules/unictype/category-Zs:
31550         * modules/unictype/category-all, modules/unictype/category-and:
31551         * modules/unictype/category-and-not, modules/unictype/category-byname:
31552         * modules/unictype/category-longname, modules/unictype/category-name:
31553         * modules/unictype/category-none, modules/unictype/category-of:
31554         * modules/unictype/category-or, modules/unictype/category-test:
31555         * modules/unictype/category-test-withtable:
31556         * modules/unictype/combining-class:
31557         * modules/unictype/combining-class-all:
31558         * modules/unictype/combining-class-byname:
31559         * modules/unictype/combining-class-longname:
31560         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
31561         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
31562         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
31563         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
31564         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
31565         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
31566         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
31567         * modules/unictype/digit, modules/unictype/joininggroup-all:
31568         * modules/unictype/joininggroup-byname:
31569         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
31570         * modules/unictype/joiningtype-all:
31571         * modules/unictype/joiningtype-byname:
31572         * modules/unictype/joiningtype-longname:
31573         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
31574         * modules/unictype/mirror, modules/unictype/numeric:
31575         * modules/unictype/property-all, modules/unictype/property-alphabetic:
31576         * modules/unictype/property-ascii-hex-digit:
31577         * modules/unictype/property-bidi-arabic-digit:
31578         * modules/unictype/property-bidi-arabic-right-to-left:
31579         * modules/unictype/property-bidi-block-separator:
31580         * modules/unictype/property-bidi-boundary-neutral:
31581         * modules/unictype/property-bidi-common-separator:
31582         * modules/unictype/property-bidi-control:
31583         * modules/unictype/property-bidi-embedding-or-override:
31584         * modules/unictype/property-bidi-eur-num-separator:
31585         * modules/unictype/property-bidi-eur-num-terminator:
31586         * modules/unictype/property-bidi-european-digit:
31587         * modules/unictype/property-bidi-hebrew-right-to-left:
31588         * modules/unictype/property-bidi-left-to-right:
31589         * modules/unictype/property-bidi-non-spacing-mark:
31590         * modules/unictype/property-bidi-other-neutral:
31591         * modules/unictype/property-bidi-pdf:
31592         * modules/unictype/property-bidi-segment-separator:
31593         * modules/unictype/property-bidi-whitespace:
31594         * modules/unictype/property-byname:
31595         * modules/unictype/property-case-ignorable:
31596         * modules/unictype/property-cased:
31597         * modules/unictype/property-changes-when-casefolded:
31598         * modules/unictype/property-changes-when-casemapped:
31599         * modules/unictype/property-changes-when-lowercased:
31600         * modules/unictype/property-changes-when-titlecased:
31601         * modules/unictype/property-changes-when-uppercased:
31602         * modules/unictype/property-combining:
31603         * modules/unictype/property-composite:
31604         * modules/unictype/property-currency-symbol:
31605         * modules/unictype/property-dash:
31606         * modules/unictype/property-decimal-digit:
31607         * modules/unictype/property-default-ignorable-code-point:
31608         * modules/unictype/property-deprecated:
31609         * modules/unictype/property-diacritic:
31610         * modules/unictype/property-extender:
31611         * modules/unictype/property-format-control:
31612         * modules/unictype/property-grapheme-base:
31613         * modules/unictype/property-grapheme-extend:
31614         * modules/unictype/property-grapheme-link:
31615         * modules/unictype/property-hex-digit:
31616         * modules/unictype/property-hyphen:
31617         * modules/unictype/property-id-continue:
31618         * modules/unictype/property-id-start:
31619         * modules/unictype/property-ideographic:
31620         * modules/unictype/property-ids-binary-operator:
31621         * modules/unictype/property-ids-trinary-operator:
31622         * modules/unictype/property-ignorable-control:
31623         * modules/unictype/property-iso-control:
31624         * modules/unictype/property-join-control:
31625         * modules/unictype/property-left-of-pair:
31626         * modules/unictype/property-line-separator:
31627         * modules/unictype/property-logical-order-exception:
31628         * modules/unictype/property-lowercase, modules/unictype/property-math:
31629         * modules/unictype/property-non-break:
31630         * modules/unictype/property-not-a-character:
31631         * modules/unictype/property-numeric:
31632         * modules/unictype/property-other-alphabetic:
31633         * modules/unictype/property-other-default-ignorable-code-point:
31634         * modules/unictype/property-other-grapheme-extend:
31635         * modules/unictype/property-other-id-continue:
31636         * modules/unictype/property-other-id-start:
31637         * modules/unictype/property-other-lowercase:
31638         * modules/unictype/property-other-math:
31639         * modules/unictype/property-other-uppercase:
31640         * modules/unictype/property-paired-punctuation:
31641         * modules/unictype/property-paragraph-separator:
31642         * modules/unictype/property-pattern-syntax:
31643         * modules/unictype/property-pattern-white-space:
31644         * modules/unictype/property-private-use:
31645         * modules/unictype/property-punctuation:
31646         * modules/unictype/property-quotation-mark:
31647         * modules/unictype/property-radical:
31648         * modules/unictype/property-sentence-terminal:
31649         * modules/unictype/property-soft-dotted:
31650         * modules/unictype/property-space:
31651         * modules/unictype/property-terminal-punctuation:
31652         * modules/unictype/property-test, modules/unictype/property-titlecase:
31653         * modules/unictype/property-unassigned-code-value:
31654         * modules/unictype/property-unified-ideograph:
31655         * modules/unictype/property-uppercase:
31656         * modules/unictype/property-variation-selector:
31657         * modules/unictype/property-white-space:
31658         * modules/unictype/property-xid-continue:
31659         * modules/unictype/property-xid-start:
31660         * modules/unictype/property-zero-width, modules/unictype/scripts:
31661         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
31662         * modules/unictype/syntax-c-whitespace:
31663         * modules/unictype/syntax-java-ident:
31664         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
31665         * modules/unigbrk/u16-grapheme-breaks:
31666         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
31667         * modules/unigbrk/u32-grapheme-breaks:
31668         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
31669         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
31670         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
31671         * modules/unigbrk/uc-is-grapheme-break:
31672         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
31673         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
31674         * modules/unilbrk/u16-width-linebreaks:
31675         * modules/unilbrk/u32-possible-linebreaks:
31676         * modules/unilbrk/u32-width-linebreaks:
31677         * modules/unilbrk/u8-possible-linebreaks:
31678         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
31679         * modules/unilbrk/ulc-possible-linebreaks:
31680         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
31681         * modules/uniname/uniname, modules/uninorm/base:
31682         * modules/uninorm/canonical-decomposition:
31683         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
31684         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
31685         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
31686         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
31687         * modules/uninorm/nfkc, modules/uninorm/nfkd:
31688         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
31689         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
31690         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
31691         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
31692         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
31693         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
31694         * modules/unistdio/base, modules/unistdio/u-printf-args:
31695         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
31696         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
31697         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
31698         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
31699         * modules/unistdio/u16-u16-sprintf:
31700         * modules/unistdio/u16-u16-vasnprintf:
31701         * modules/unistdio/u16-u16-vasprintf:
31702         * modules/unistdio/u16-u16-vsnprintf:
31703         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
31704         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
31705         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
31706         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
31707         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
31708         * modules/unistdio/u32-u32-asnprintf:
31709         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
31710         * modules/unistdio/u32-u32-sprintf:
31711         * modules/unistdio/u32-u32-vasnprintf:
31712         * modules/unistdio/u32-u32-vasprintf:
31713         * modules/unistdio/u32-u32-vsnprintf:
31714         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
31715         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
31716         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
31717         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
31718         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
31719         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
31720         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
31721         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
31722         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
31723         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
31724         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
31725         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
31726         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
31727         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
31728         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
31729         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
31730         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
31731         * modules/unistr/u16-check, modules/unistr/u16-chr:
31732         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
31733         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
31734         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
31735         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
31736         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
31737         * modules/unistr/u16-move, modules/unistr/u16-next:
31738         * modules/unistr/u16-prev, modules/unistr/u16-set:
31739         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
31740         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
31741         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
31742         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
31743         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
31744         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
31745         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
31746         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
31747         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
31748         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
31749         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
31750         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
31751         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
31752         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
31753         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
31754         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
31755         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
31756         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
31757         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
31758         * modules/unistr/u32-next, modules/unistr/u32-prev:
31759         * modules/unistr/u32-set, modules/unistr/u32-startswith:
31760         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
31761         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
31762         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
31763         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
31764         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
31765         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
31766         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
31767         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
31768         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
31769         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
31770         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
31771         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
31772         * modules/unistr/u8-check, modules/unistr/u8-chr:
31773         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
31774         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
31775         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
31776         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
31777         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
31778         * modules/unistr/u8-next, modules/unistr/u8-prev:
31779         * modules/unistr/u8-set, modules/unistr/u8-startswith:
31780         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
31781         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
31782         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
31783         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
31784         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
31785         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
31786         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
31787         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
31788         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
31789         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
31790         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
31791         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
31792         * modules/uniwbrk/base, modules/uniwbrk/table:
31793         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
31794         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
31795         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
31796         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
31797         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
31798         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
31799         * modules/uniwidth/width, modules/utf16-ucs4:
31800         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
31801         * modules/utf8-ucs4-unsafe:
31802         Change maintainer from Bruno Haible to Daiki Ueno.
31803         This is my guess at the libunistring modules; please feel free
31804         to fix if I guessed incorrectly.
31805         * modules/accept4, modules/acl, modules/acos, modules/acosf:
31806         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
31807         * modules/areadlink, modules/array-list, modules/array-mergesort:
31808         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
31809         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
31810         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
31811         * modules/binary-io, modules/bison-i18n, modules/btowc:
31812         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
31813         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
31814         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
31815         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
31816         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
31817         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
31818         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
31819         * modules/closedir, modules/concat-filename, modules/copy-file:
31820         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
31821         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
31822         * modules/csharpcomp-script, modules/csharpexec:
31823         * modules/csharpexec-script, modules/ctype, modules/diffseq:
31824         * modules/dprintf, modules/dprintf-posix, modules/dup:
31825         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
31826         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
31827         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
31828         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
31829         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
31830         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
31831         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
31832         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
31833         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
31834         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
31835         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
31836         * modules/findprog, modules/findprog-lgpl, modules/floor:
31837         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
31838         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
31839         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
31840         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
31841         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
31842         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
31843         * modules/freadable, modules/freadahead, modules/freadptr:
31844         * modules/freadseek, modules/freopen, modules/frexp:
31845         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
31846         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
31847         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
31848         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
31849         * modules/ftello, modules/full-read, modules/full-write:
31850         * modules/fwritable, modules/fwriteerror, modules/gcd:
31851         * modules/get-rusage-as, modules/get-rusage-data:
31852         * modules/getdtablesize, modules/getrusage, modules/gettext:
31853         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
31854         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
31855         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
31856         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
31857         * modules/iconv, modules/iconv-h, modules/iconv_open:
31858         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
31859         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
31860         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
31861         * modules/integer_length_ll, modules/ioctl, modules/isatty:
31862         * modules/isblank, modules/isnand, modules/isnand-nolibm:
31863         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
31864         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
31865         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
31866         * modules/javaexec, modules/javaexec-script, modules/javaversion:
31867         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
31868         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
31869         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
31870         * modules/lib-symbol-visibility, modules/libsigsegv:
31871         * modules/linked-list, modules/linkedhash-list, modules/list:
31872         * modules/localcharset, modules/locale, modules/localeconv:
31873         * modules/localename, modules/lock, modules/log, modules/log-ieee:
31874         * modules/log10, modules/log10-ieee, modules/log10f:
31875         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
31876         * modules/log1p, modules/log1p-ieee, modules/log1pf:
31877         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
31878         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
31879         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
31880         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
31881         * modules/logf, modules/logf-ieee, modules/login_tty:
31882         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
31883         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
31884         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
31885         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
31886         * modules/mbscspn, modules/mbsinit, modules/mbslen:
31887         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
31888         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
31889         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
31890         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
31891         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
31892         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
31893         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
31894         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
31895         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
31896         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
31897         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
31898         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
31899         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
31900         * modules/posix_spawn, modules/posix_spawn-internal:
31901         * modules/posix_spawn_file_actions_addclose:
31902         * modules/posix_spawn_file_actions_adddup2:
31903         * modules/posix_spawn_file_actions_addopen:
31904         * modules/posix_spawn_file_actions_destroy:
31905         * modules/posix_spawn_file_actions_init:
31906         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
31907         * modules/posix_spawnattr_getpgroup:
31908         * modules/posix_spawnattr_getschedparam:
31909         * modules/posix_spawnattr_getschedpolicy:
31910         * modules/posix_spawnattr_getsigdefault:
31911         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
31912         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
31913         * modules/posix_spawnattr_setschedparam:
31914         * modules/posix_spawnattr_setschedpolicy:
31915         * modules/posix_spawnattr_setsigdefault:
31916         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
31917         * modules/pow, modules/powf, modules/printf-frexp:
31918         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
31919         * modules/progname, modules/propername, modules/pselect:
31920         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
31921         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
31922         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
31923         * modules/read, modules/readdir, modules/readlink:
31924         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
31925         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
31926         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
31927         * modules/relocatable-script, modules/remainder:
31928         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
31929         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
31930         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
31931         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
31932         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
31933         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
31934         * modules/setlocale, modules/sh-quote, modules/shutdown:
31935         * modules/signal, modules/signbit, modules/sigpipe:
31936         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
31937         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
31938         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
31939         * modules/snippet/link-warning, modules/snippet/unused-parameter:
31940         * modules/snprintf, modules/snprintf-posix, modules/spawn:
31941         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
31942         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
31943         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
31944         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
31945         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
31946         * modules/streq, modules/strerror_r-posix, modules/striconv:
31947         * modules/striconveh, modules/striconveha, modules/strncat:
31948         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
31949         * modules/sublist, modules/sys_resource, modules/sys_utsname:
31950         * modules/sys_wait, modules/system-posix, modules/system-quote:
31951         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
31952         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
31953         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
31954         * modules/truncf, modules/truncf-ieee, modules/truncl:
31955         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
31956         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
31957         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
31958         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
31959         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
31960         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
31961         * modules/wait-process, modules/waitpid, modules/wcpcpy:
31962         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
31963         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
31964         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
31965         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
31966         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
31967         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
31968         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
31969         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
31970         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
31971         * modules/write, modules/xconcat-filename, modules/xlist:
31972         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
31973         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
31974         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
31975         * modules/y0, modules/y1, modules/yn:
31976         Remove Bruno Haible as maintainer; if he's the sole maintainer,
31977         change the maintainer to 'all'.  Let's hope someone volunteers.
31979 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
31981         mktime: merge #if/#ifdef usage from glibc
31982         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
31983         as that works with both Glibc's and Gnulib's style.
31984         See thread starting at Siddhesh Poyarekar's bug report at:
31985         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
31987 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
31989         git-version-gen: improve option descriptions
31990         * build-aux/git-version-gen: Mention that --prefix and --fallback
31991         have a mandatory argument.
31993 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
31995         regex: fix memory leak in compiler
31996         Fix by Andreas Schwab in:
31997         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
31998         * lib/regcomp.c (parse_expression): Deallocate partially
31999         constructed tree before returning error.
32001         regex: merge patch from libc
32002         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
32003         Combine __USE_BSD and __USE_SVID into __USE_MISC.
32004         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
32006 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32008         acl: port to gcc -Wredundant-decls
32009         From a request by Dmitry Antipov in:
32010         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
32011         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
32012         "#ifndef _GL_ACL_H".
32014 2014-06-11  Bruce Korb  <bkorb@gnu.org>
32015         Jim Meyering  <meyering@fb.com>
32017         parse-duration: eliminate 68-year duration limit
32018         * lib/parse-duration.c: Include "intprops.h".
32019         (TIME_MAX): Rename to MAX_DURATION and define to
32020         TYPE_MAXIMUM(time_t).
32021         * modules/parse-duration (Depends-on): Add intprops.
32022         Reported by Jonas 'Sortie' Termansen.
32024 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32026         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
32027         * modules/pthread (Depends-on): Add 'extensions', as it defines
32028         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
32029         (configure.ac-early): New section.
32030         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
32031         it is no longer needed.
32033 2014-06-14  Pádraig Brady  <P@draigBrady.com>
32035         pthread: define thread-safe macros on some platforms
32036         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
32037         for thread-safe operation on some platforms.
32039 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32041         regex: don't be multithreaded if USE_UNLOCKED_IO.
32042         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
32043         * lib/regex_internal.h: Do not use multithreaded version if
32044         USE_UNLOCKED_IO is defined.  This is a hack, but it works
32045         around a porting bug with coreutils 8.22 on AIX 7.1.
32047 2014-06-11  Daiki Ueno  <ueno@gnu.org>
32049         gettext: update macros to version 0.19
32050         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
32051         depend on gl_EXTERN_INLINE and drop support for older Bison
32052         versions.
32054 2014-06-10  Pádraig Brady  <P@draigBrady.com>
32056         select,poll: fix console handle check on windows 8
32057         lib/poll.c (IsConsoleHandle): Change from testing the lower
32058         2 bits of the handle to the more expensive but accurate syscall.
32059         lib/select.c: Likewise.
32061 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32063         select: fix waiting on anonymous pipes on MS-Windows
32064         * lib/select.c (rpl_select): Fall back to polling when select()
32065         indicates there is nothing to check, while due to the timeout not
32066         expiring, activity is indicated on one of the handles.
32067         Also clear the TIMEOUT argument if the timer does expire.
32069 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32071         times: fix to return non constant value on MS-Windows
32072         * lib/times.c (times): Don't use the process creation time,
32073         rather clock() which on windows returns the number of
32074         clock ticks since the process started.
32076 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
32078         isatty: fix to work on windows 8
32079         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
32080         2 bits of the handle to the more expensive but accurate syscall.
32082 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32084         maint: fix typo in fdl.texi
32085         * doc/fdl.texi: Fix typo (missing '@').
32086         Somehow this was in fdl.texi but not fdl-1.3.texi.
32088 2014-06-06  Ben Walton  <bdwalton@gmail.com>
32090         mountlist: avoid hasmntopt const type warning on solaris
32091         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
32092         with char * instead of const char *.  Passing the constant string
32093         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
32094         to avoid the warning.
32096 2014-06-04  Eric Blake  <eblake@redhat.com>
32098         maintainer-makefile: delete obsolete code
32099         * top/maint.mk (build_aux): Drop old code, as threatened.
32101         maintainer-makefile: avoid spurious error messages
32102         * top/maint.mk (syntax-check): Guard definition and use of
32103         $(shell) by whether Makefile is present.
32105 2014-06-03  Ben Walton  <bdwalton@gmail.com>
32107         rename: avoid unused-but-set-variable compiler warning
32108         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
32109         it is possible that dst_exists may be set but not used.  Mark it with
32110         the unused attribute to avoid compiler warnings.
32112 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32114         rename: mark a label as potentially unused
32115         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
32116         by marking the out label as potentially unused.
32117         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
32119 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32121         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
32122         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
32124 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32126         acl: apply pure attribute to two functions
32127         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
32128         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
32130 2014-06-01  Pádraig Brady  <P@draigBrady.com>
32132         gnulib-common.m4: add _GL_UNUSED_LABEL
32133         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
32134         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
32136 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32138         dup2, fcntl, fcntl-h: port to AIX 7.1
32139         This fixes some porting problems discovered when testing the latest
32140         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
32141         in grep but it could be important for other applications.
32142         * doc/posix-functions/dup2.texi:
32143         * doc/posix-functions/fcntl.texi:
32144         * doc/posix-headers/fcntl.texi:
32145         Document AIX bugs.
32146         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
32147         Define to 0 if outside 'int' range.
32148         * m4/dup2.m4 (gl_FUNC_DUP2):
32149         * m4/fcntl.m4 (gl_FUNC_FCNTL):
32150         Check for getdtablesize.  If it's available, test a value just
32151         outside its range instead of testing 1000000.  When cross-compiling,
32152         guess that AIX will fail this improved test.
32154 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32156         printf, config.rpath: Port to FreeBSD 10.
32157         Problem reported by Tijl Coosemans in:
32158         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
32159         * build-aux/config.rpath (hardcode_libdir_flag_spec)
32160         (hardcode_direct): Simplify FreeBSD configuration.
32161         (library_names_spec): Don't mishandle FreeBSD 10+.
32162         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
32163         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
32164         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
32165         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
32166         Don't mishandle FreeBSD 10+ when cross-compiling.
32168         ftoastr: work around compiler bug in IBM xlc 12.1
32169         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
32170         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
32171         around a compiler bug in IBM xlc 12.1.0.0: it complains
32172         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
32173         _GL_FLT_PREC_BOUND.'
32175 2014-05-30  Kieran Colford  <colfordk@gmail.com>
32177         valgrind-tests: fixed misleading help message
32178         * m4/valgrind-tests.m4: The help message generated by configure
32179         implied that valgrind was disabled by default, which it wasn't.
32180         Adjusted the help message using s/enable/disable/ to clarify.
32182 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
32184         isfinite, isinf, isnan tests: fix for little-endian PowerPC
32185         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
32186         first double of a PowerPC "double double" pair.
32187         * tests/test-isinf.c (test_isinfl): Likewise.
32188         * tests/test-isnan.c (test_long_double): Likewise.
32189         * tests/test-isnanl.h (main): Likewise.
32190         * tests/test-signbit.c (test_signbitl): Likewise.
32192 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32194         exclude-tests: port to AIX 7.1
32195         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
32196         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
32197         the regex code uses locks.
32199 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
32201         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
32202         Without this fix, Emacs would sometimes call sigprocmask instead
32203         of pthread_sigmask, which is a no-no in multithreaded applications.
32204         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
32205         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32206         Suppress check for pthread_sigmask working without -lpthread if
32207         the application always links with -lpthread.  Do not link with
32208         $LIBMULTITHREAD if gl_THREADLIB is not defined.
32209         * m4/timer_time.m4 (gl_TIMER_TIME):
32210         Require gl_THREADLIB only if it is defined.  Do not append
32211         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
32213 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
32215         gnulib-tool: wget translations using --no-verbose rather than --quiet
32216         This allows the user to see error messages if any (--quiet hides them)
32217         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
32219 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
32221         gnulib-tool: adjust translation wget to avoid a https redirection
32222         Context: http://translationproject.org/latest/gnulib redirects to
32223            https://translationproject.org/latest/gnulib/
32224         Rationale: if the user falls back to wget, she doesn't have rsync and
32225         is probably in a minimal build environment, where packages such as
32226         'ca-certificates' are missing as well, resulting in a failed (and
32227         difficult to detect since ignored) translation initial fetch.
32228         Consequently let's avoid https if possible, and add the missing
32229         trailing slash.  This also avoids an unnecessary 302 redirection.
32230         * gnulib-tool: Add trailing slash to gnulib URL.
32232 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32234         getlogin_r-tests: check return value rather than errno
32235         * tests/test-getlogin_r.c (main): As per POSIX we should be
32236         verifying the return value from getlogin_r() rather than errno.
32238 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32240         getlogin_r-tests: fix various issues in recent change
32241         * tests/test-getlogin_r.c: Include required headers that were
32242         missed in recent commit eec20b4e.
32243         Also consistently check the errno rather than the return value from
32244         getlogin_r as POSIX only specifies that non zero is returned on error.
32245         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
32247 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32249         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
32250         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
32251         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
32252         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
32253         * lib/spawn-pipe.c:
32254         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
32255         and then 'int open64(const char *, int, ...);', which means the
32256         declaration for 'open' gets lost if we later '#undef open'.
32257         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
32258         where the compilation reported the non-fatal error "In function
32259         'openat_proc_name' ... warning: implicit declaration of function
32260         'open'".  In this case the error is relatively harmless, but in
32261         other cases it might not be so minor.
32263 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32265         xalloc: don't potentially generate invalid code for xmemdup calls
32266         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
32267         this function can initialize the newly-allocated storage with new
32268         pointers, which means this function is not malloc-like.  See:
32269         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
32271 2014-05-19  Pádraig Brady  <P@draigBrady.com>
32273         getlogin_r-tests: avoid false failure under sudo/ssh etc.
32274         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
32275         changes from commit 97249cf29 to not depend on environment variables.
32277 2014-05-18  Pádraig Brady  <P@draigBrady.com>
32279         getlogin-tests: avoid false failure under cron
32280         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
32281         since that's not what's under test.  Centos 6 was seen to return
32282         EINVAL for ttyname() when run from cron.
32284 2014-05-16  Jim Meyering  <meyering@fb.com>
32286         mbrtowc.m4: fix a comment typo
32287         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
32288         emitted documentation string.
32290 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32292         mbrlen, mbrtowc: fix bug with empty input
32293         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
32294         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
32295         so this is mainly for documentation.
32296         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
32297         (gl_FUNC_MBRTOWC): Use it.
32298         * tests/test-mbrtowc.c (main): Test for the bug.
32300 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32302         doc: document mbrtowc and mbrlen problem with empty input
32303         * doc/posix-functions/mbrlen.texi (mbrlen):
32304         * doc/posix-functions/mbrtowc.texi (mbrtowc):
32305         Document portability problem when the input string is empty.  See:
32306         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
32308         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
32309         Problem reported by Eli Zaretskii in:
32310         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
32311         * doc/posix-functions/execl.texi (execl):
32312         * doc/posix-functions/execle.texi (execle):
32313         * doc/posix-functions/execlp.texi (execlp):
32314         * doc/posix-functions/execv.texi (execv):
32315         * doc/posix-functions/execve.texi (execve):
32316         * doc/posix-functions/execvp.texi (execvp):
32317         Mention spawn+exit problem on non-Cygwin Windows platforms.
32319 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
32321         getlogin-tests: avoid false failure under sudo/ssh etc.
32322         * modules/getlogin-tests (configure.ac): Check for ttyname().
32323         * tests/test-getlogin.c (main): Don't depend on environment variables
32324         to correlate with getlogin(), since sudo and ssh etc. can tamper
32325         with the LOGNAME and USER env vars.  Instead lookup the name from
32326         the uid associated with the stdin tty.
32328 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32330         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
32331         These were found when building the latest grep snapshot on IRIX 6.5.
32332         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
32333         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
32334         never used later.
32335         * lib/quotearg.c (quoting_options_from_style):
32336         * lib/xstrtol.c (__xstrtol):
32337         Use enum instead of 0, to pacify IRIX 6.5 cc.
32339 2014-04-18  Pádraig Brady  <P@draigBrady.com>
32341         gitlog-to-changelog: revert inclusion of git-log-fix file
32342         * build-aux/git-log-fix: Delete dummy file.
32343         * modules/gitlog-to-changelog: Don't reference (overwrite)
32344         the project specific git-log-fix file.
32346 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
32348         maint.mk: Relax the copyright check to cater for non FSF projects
32349         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
32350         to not require the "Free" suffix after the copyright years.
32352 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
32354         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
32355         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
32356         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
32357         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
32358         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
32360 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
32362         exclude: port to strict C99
32363         Strict C does not allow converting a function pointer to void *
32364         and vice versa.  Pass a pointer to a function pointer instead.
32365         * lib/exclude.c (add_exclude_file):
32366         Pass the address of the function pointer.
32367         (call_addfn): And deference the address here, to match.
32369 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32371         regex: do not depend on malloc-gnu
32372         * modules/regex (Depends-on): Remove malloc-gnu.
32373         It's no longer needed, because of the 2012-12-29 patch
32374         "regex: port to hosts where malloc (0) == NULL".
32375         Reported by Nathan Kennedy in:
32376         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
32378 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
32380         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
32381         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
32382         * doc/posix-functions/expl.texi: Mention the workaround.
32384 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32386         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
32387         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
32388         size to be zero even when the pointer is nonnull.  This
32389         accommodates the use case where P is malloc (0) and *PN is 0 on a
32390         host where malloc (0) yields nonnull.
32392 2014-04-09  Eric Blake  <eblake@redhat.com>
32394         fts: avoid unnecessary strlen calls
32395         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
32397 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32399         fts: avoid unnecessary strlen calls
32400         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
32401         when that can be faster than strlen.
32403 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32405         fts: avoid unnecessary strlen calls
32406         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
32407         (fts_build): Store the length of the dp->d_name entry in a local variable
32408         instead of calling strlen() several times via the above, removed macro.
32409         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
32410         run by ~4%, yet this reduces the execution time by about a third if run
32411         via "ltrace -c rm -rf some-dir".
32413 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32415         obstack: Remove ancient NeXTSTEP gcc support conditional
32416         This change will ease merging with glibc.  The "#if ... __NEXT__"
32417         causes a warning with -Wundef which glibc now enables by default.
32418         Problem reported by Will Newton in
32419         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
32420         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
32421         so go with that.
32422         * lib/obstack.h (__extension__):
32424 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32426         obstack: merge with glibc changes
32427         * lib/obstack.c, lib/obstack.h: Merge from glibc.
32428         This is mostly indenting and commentary changes.
32429         Instances of 'register' have been removed.
32431 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32433         strftime: wrap macros in "do {...} while(0)"
32434         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
32435         this macro in "do {...} while(0)" to prevent false use as a
32436         single statement, e.g., in an un-braced "{}" else-block.
32437         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
32438         (strftime_case_): Remove 'else' after 'goto' - which was the
32439         only non-fatal, un-braced use of one of the above macros.
32440         Spotted by coverity (NESTING_INDENT_MISMATCH).
32442 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32444         modechange: avoid memory leaks for invalid octal modes
32445         * lib/modechange.c (mode_compile): During the parsing of
32446         notations like +40, free the 'mc' buffer for invalid mode
32447         strings like +17777 (greater than the maximum octal mode),
32448         =18 (bad octal mode characters) or u=1 ('affected' with
32449         octal modes).
32450         Reproducer, e.g.:
32451             $ valgrind --leak-check=full chmod +17777 file
32452         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
32453         add notations +40, 00440, etc.".
32454         Spotted by coverity (RESOURCE_LEAK).
32456 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
32458         gitlog-to-changelog: include a dummy git-log-fix file
32459         Problem reported by Nathan Stratton Treadway in:
32460         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
32461         * build-aux/git-log-fix: New file.
32463 2014-03-13  Jim Meyering  <meyering@fb.com>
32465         gitlog-to-changelog: also include the file, git-log-fix
32466         * modules/gitlog-to-changelog (Files): Add git-log-fix.
32467         Reported by Assaf Gordon.
32469 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
32471         regex: port to OS X 10.8.5 en_US.UTF-8 locale
32472         This fixes a bug when ignoring case and when comparing the
32473         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
32474         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
32475         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
32476         titlecase letter is neither lowercase nor uppercase, but
32477         uppercasing the titlecase letter (via towupper) yields the
32478         uppercase letter, so the two letters should match when ignoring case.
32479         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
32480         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
32481         Don't test whether a character is lowercase before uppercasing it.
32483 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
32485         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
32486         This is basically one of the options Bruno Haible proposed in:
32487         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
32488         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
32489         * lib/stdint.in.h: Use it.
32490         * modules/stdint (Depends-on): Add sys_types.
32492 2014-02-26  Pádraig Brady  <P@draigBrady.com>
32494         parse-datetime: fix crash or infloop in TZ="" parsing
32495         * lib/parse-datetime.y (parse_datetime): Break out of the
32496         TZ="" parsing loop once the second significant " is found.
32497         Also skip over any subsequent whitespace to be consistent
32498         with the non TZ= case.
32499         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
32501 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32503         savedir: new symbol for fast-read version
32504         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
32505         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
32506         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
32507         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
32509 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32511         unistd: port readlink to Mac OS X 10.3.9
32512         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
32513         around self-include problem in Mac OS X 10.3.9 when combined with
32514         readlink module.  Problem reported by Klaus Zietler in
32515         <http://bugs.gnu.org/16825>.
32517 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
32519         diffseq: remove TOO_EXPENSIVE heuristic
32520         Problem with diffutils reported by Vincent Lefevre in
32521         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
32522         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
32523         Although appropriate for circa-1993 hardware, these days the heuristic
32524         seems to be more trouble than it's worth.
32525         * lib/diffseq.h: Modernize citations.
32526         (struct context): Remove member too_expensive.
32527         All uses changed.
32528         (struct partition): Remove members lo_minimal, hi_minimal.
32529         All uses changed.
32530         (diag, compareseq): Remove arg find_minimal.  All uses changed.
32531         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
32532         1993 to make 'diff' run faster (but not as well) on large inputs.
32533         These days, computers are fast enough that it's typically better
32534         to run slower but more accurately.
32535         * lib/fstrcmp.c: Remove duplicate comment.
32536         * lib/fstrcmp.c (strcmp_bounded):
32537         * lib/git-merge-changelog.c (compute_differences):
32538         Adjust to diffseq.h changes.
32539         * NEWS: Document the change.
32541         savedir: simplify by using stpcpy
32542         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
32543         (streamsavedir): Use stpcpy instead.
32544         * modules/savedir (Depends-on): Add stpcpy.
32546 2014-02-21  Pádraig Brady  <P@draigBrady.com>
32548         spawn: fix link error on uclibc
32549         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
32550         to incorporate -lrt if needed (on uclibc for example).
32551         * modules/posix_spawn: Reference the substituted LIB.
32553 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
32554         timer: fix uClibc detection of threading
32555         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
32556         enabled in uClibc.
32558 2014-02-21  Eric Blake  <eblake@redhat.com>
32560         maintainer-makefiles: provide AC_PROG_SED for older autoconf
32561         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
32563 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
32565         exclude: add support for posix regexps
32567         This commit adds support for POSIX extended regular expressions
32568         and fixes a long-standing memory leak (pattern buffer was never
32569         freed).  It also implements a new interface function to read
32570         exclude patterns from a FILE, which passes an additional parameter
32571         to its callback function, thereby allowing to preserve its state
32572         between invocations.
32574         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
32575         (pattern_buffer): New struct.
32576         (exclude): New member patbuf.
32577         (exclude_add_pattern_buffer): New function.
32578         (free_exclude_segment): Free regexps.
32579         (free_exclude): Free allocated pattern buffers.
32580         (exclude_patopts): New function.
32581         (file_pattern_matches): Use exclude_patopts.
32582         (add_exclude): support regexps.
32583         (add_exclude_fp): New function.
32584         (add_exclude_file): Rewrite using add_exclude_fp.
32585         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32586         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32587         (add_exclude_fp)
32588         (add_exclude_file): Rewrite using add_exclude_fp.
32589         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32590         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32591         (add_exclude_fp)
32592         (exclude_add_pattern_buffer): New prototypes.
32593         * modules/exclude: Depends on regex and filename.
32595 2014-02-20  Eric Blake  <eblake@redhat.com>
32597         maintainer-makefiles: use $(SED) for syntax check
32598         * modules/maintainer-makefile (configure.ac): Check for sane sed.
32599         * top/maint.mk: Change sed to $(SED).
32601 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
32602             Paul Eggert  <eggert@cs.ucla.edu>
32604         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
32605         Patch based on an idea by Dick Streefland in
32606         <https://savannah.gnu.org/patch/?7892>.
32607         * NEWS: Document this.
32608         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
32609         (direntry_t, comparison_function): New types.
32610         (direntry_cmp_name): New function.
32611         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
32612         (streamsavedir, savedir): New arg OPTION.
32613         (streamsavedir): Simplify memory allocation.
32614         (fdsavedir): Remove.
32615         * lib/savedir.h (enum savedir_option): New type.
32616         (streamsavedir, savedir): New arg OPTION.
32617         (fdsavedir): Remove.
32619 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32621         file-type: add support for doors and other less-common file types
32622         Problem with S_ISDOOR reported by Rich Burridge.
32623         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
32624         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
32625         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
32627 2014-01-23  Eric Blake  <eblake@redhat.com>
32629         pthread: work around winpthread header pollution on mingw
32630         * lib/time.in.h: Move pthread workarounds...
32631         * lib/pthread.in.h: ...here.
32632         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
32633         detect macro pollution on mingw.
32634         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
32636 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32638         qacl: check for fchmod
32639         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
32640         and qset-acl.c both use HAVE_FCHMOD.
32642 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32644         fdopen-tests: port to Tru64
32645         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
32646         descriptor that is not open, as POSIX doesn't specify the
32647         resulting behavior and the test does not work on Tru64.
32648         Problem reported by Steven M. Schweda in:
32649         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
32651         stdalign: port to HP-UX compilers
32652         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
32653         if __HP_cc or __HP_aCC are nonzero.
32655 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32657         strtoimax: port to platforms lacking 'long long'
32658         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
32659         check whether strtoll is declared, which causes the C file to
32660         wrongly report an error.  Problem reported by Steven M. Schweda in:
32661         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
32662         * lib/strtoimax.c (strtoull):
32663         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
32664         (strtoll): Declare only if HAVE_LONG_LONG_INT.
32666 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
32668         relocatable-perl: fix texi syntax
32669         * doc/relocatable-maint.texi: Escape braces.
32671 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
32673         relocatable-perl: like relocatable-script, but for Perl scripts
32674         * build-aux/relocatable.pl.in: Add.
32675         * doc/relocatable-maint.texi: Add documentation.
32676         * modules/relocatable-perl: Add.
32678 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
32680         tests: fix export bug in previous patch
32681         Problem reported by Jim Meyering.
32682         * tests/init.sh (re_shell): New var, which is exported instead of
32683         re_shell_.
32685         tests: simplify porting to Solaris 10 /bin/sh
32686         Some test cases in 'grep' need a shell that groks '$(';
32687         export re_shell_ for their benefit.  Problem reported for 'grep'
32688         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
32689         * tests/init.sh (re_shell_): Export if it's used.
32691 2014-01-06  Eric Blake  <eblake@redhat.com>
32693         md5, sha1, sha256, sha512: support older autoconf
32694         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
32695         for autoconf < 2.63b.
32697         include_next: port to autoconf 2.63
32698         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
32700 2014-01-04  Jim Meyering  <meyering@fb.com>
32702         maint: add a gnulib-local rule to keep non-ascii out of .texi files
32703         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
32704         so that "make sc_maint" will ding anyone who puts non-ascii
32705         in any of gnulib's .texi files.
32707 2014-01-03  Jim Meyering  <meyering@fb.com>
32709         freadable, fwritable, fwriting: declare with the "pure" attribute
32710         * lib/freadable.h (freadable): Declare with the "pure" attribute.
32711         * lib/fwritable.h (fwritable): Likewise.
32712         * lib/fwriting.h (fwriting): Likewise.
32713         Suggested by Bruno Haible.
32715         maint.mk: adapt openat.h-include-without-use test
32716         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
32717         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
32718         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
32719         With this change, running "make sc_maint" in gnulib's top-level
32720         directory now passes for me.
32722 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32724         doc: use ASCII in .texi files where UTF-8 isn't needed
32725         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
32726         * doc/posix-functions/setkey.texi, doc/regex.texi:
32727         Use ASCII input, not UTF-8.
32729 2014-01-02  Jim Meyering  <meyering@fb.com>
32731         freading: declare with the "pure" attribute
32732         * lib/freading.h (freading): Declare with the "pure" attribute.
32734         manywarnings: remove -Wmudflap
32735         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
32736         it is no longer supported in gcc-4.9-to-be.
32738 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32740         relocatable-script: remove unused code
32741         Problem reported by Reuben Thomas in:
32742         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
32743         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
32745 2014-01-01  Jim Meyering  <meyering@fb.com>
32747         maint: fix public-submodule-commit to work with newer git
32748         * top/maint.mk (public-submodule-commit): Remove excess quoting.
32749         We were over-quoting the test arguments, and somewhere prior to
32750         version 1.8.5.2.229, git stopped removing those excess quotes,
32751         which made the test fail, since the unexpanded strings would
32752         always differ; using GIT_TRACE=1 confirmed that the git merge-base
32753         command wasn't even being run.
32755 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32757         doc: update main copyright year
32758         * doc/gnulib.texi: Update copyright date.
32760 2014-01-01  Eric Blake  <eblake@redhat.com>
32762         version-etc: new year
32763         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
32764         * all files: run 'make update-copyright'
32766 2013-12-24  Eric Blake  <eblake@redhat.com>
32768         passfd: give nicer error for recvfd at eof
32769         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
32770         * tests/test-passfd.c (main): Enhance test to cover this.
32772 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32774         gettimeofday: port recent C++ fix to Emacs
32775         Without this further patch, Emacs won't build due to
32776         the portcheck failing.  Also, this simplifies the patch a bit.
32777         * lib/time.in.h (localtime, gmtime): Don't replace unless
32778         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
32779         * lib/time.in.h (localtime, gmtime):
32780         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
32781         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32782         * modules/time (time.h):
32783         Don't worry about the possibility of localtime and gmtime
32784         being absent; they're present in all C libraries we know about.
32785         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32786         Don't assume sys_time is present and has been initialized.
32787         Instead, use a hack that should work even if it hasn't been.
32788         Don't use a portcheck for gmtime or localtime; this supports
32789         the hack.
32790         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
32792 2013-12-17  John W. Eaton  <jwe@gnu.org>
32794         gettimeofday: fix C++ crosscompilation
32796         Never replace gmtime and localtime by macros when compiling with
32797         C++, this prevents <ctime> from being included.
32799         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
32800         define gmtime and localtime as preprocessor macros.  Instead
32801         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
32802         REPLACE_LOCALTIME substitutions.
32803         * lib/time.in.h: Declare gmtime and localtime when needed.
32804         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
32805         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
32806         * modules/time: Depend on gettimeofday, and substitute the above
32807         variables in time.h.
32809 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32811         qacl: port to Windows better
32812         See Eli Zaretskii in
32813         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
32814         * lib/file-has-acl.c (acl_access_nontrivial):
32815         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
32816         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
32818 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
32820         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
32821         * lib/gl_openssl.h: Cast void pointers to a specific type.
32823 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32825         open-tests: fix build failure with -Werror=old-style-declaration
32826         * tests/test-open.h: Reorder the inline to avoid the issue.
32828 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32830         md5, sha1, sha256, sha512: fix link error with partial libcrypto
32831         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
32832         init time, so that if early checks find crypto routines,
32833         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
32834         avoiding link failures.
32836 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32838         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
32839         This provides a new way to specify the default for
32840         gl_CRYPTO_CHECK, one that is reflected in the --help message.
32841         Emacs uses this, as well as the old way.
32842         This attempts to implement a suggestion by Pádraig Brady in
32843         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
32844         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
32845         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
32847         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
32848         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
32849         Add support for a new option, --with-openssl=auto, which causes
32850         the library to be used if available and silently ignored if not.
32851         Add support to allow configure.ac to specify its own
32852         default, by setting with_openssl_default before invoking gl_INIT.
32854 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32856         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
32857         Problem reported by Daiki Ueno in:
32858         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
32859         * tests/test-open.h (__always_inline):
32860         New macro, if not already defined.
32861         (test_open): Use it.
32863 2013-12-04  Eric Blake  <eblake@redhat.com>
32865         include_next: minimize code duplication
32866         * modules/include_next (Depends-on): Add absolute-header.
32867         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
32868         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
32870 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32872         getcwd: fix compile error in configure check
32873         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
32875 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32877         regex: suppress core dumps from detection code
32878         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
32879         to suppress core dumps that may well occur on glibc systems.
32880         These core dumps might not be cleaned up automatically, or could
32881         trigger some system core dump handling logic.
32883 2013-12-03  Pádraig Brady  <P@draigBrady.com>
32885         md5, sha1, sha256, sha512: support mandating use of openssl
32886         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
32887         description, to list the now 3 separate options.  also don't
32888         mention the default=no, since this is implicit given the option
32889         is described as --with-openssl rather than --without-openssl.
32890         If projects change the default they're free to document that.
32891         with --with-openssl[=yes] we now error out when the specified
32892         hash algorithm is not available in libcrypto.
32894 2013-12-03  Ivailo  <xakepa10@gmail.com>
32896         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
32897         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
32898         -Wformat-nonliteral checks, as these edge cases are part of the test.
32900 2013-12-03  Eric Blake  <eblake@redhat.com>
32902         regex: avoid glibc deadlock during configure
32903         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
32904         glibc bug 15078 in turn triggers bug 16159.
32905         Reported by Michal Privoznik.
32907 2013-12-02  Pádraig Brady  <P@draigBrady.com>
32909         md5, sha1, sha256, sha512: use openssl routines if available.
32910         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
32911         routines will be used if available, requiring apps to link @LIB_CRYPTO@
32912         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
32913         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
32914         in the standard system location.
32915         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
32916         * m4/sha256.m4: Likewise with SHA256.
32917         * m4/sha512.m4: Likewise with SHA512.
32918         * m4/md5.m4: Likewise with MD5.
32919         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
32920         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
32921         * lib/sha256.h: Likewise with SHA256.
32922         * lib/sha512.h: Likewise with SHA512.
32923         * lib/md5.h: Likewise with MD5.
32924         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
32925         * lib/sha256.c: Likewise with SHA256.
32926         * lib/sha512.c: Likewise with SHA512.
32927         * lib/md5.c: Likewise with MD5.
32928         * modules/crypto/sha1 (Link:): Add the new optional lib.
32929         (Depends-on:): Add dependency on extern-inline.
32930         * modules/crypto/sha256: Likewise.
32931         * modules/crypto/sha512: Likewise.
32932         * modules/crypto/md5: Likewise.
32933         * modules/crypto/sha1-tests: Reference the lib here too.
32934         * modules/crypto/md5-tests: Likewise.
32935         * modules/crypto/gc-des-tests: Likewise.
32936         * modules/crypto/gc-hmac-md5-tests: Likewise.
32937         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32938         * modules/crypto/gc-hmac-sha256-tests: Likewise.
32939         * modules/crypto/gc-hmac-sha512-tests: Likewise.
32940         * modules/crypto/gc-md5-tests: Likewise.
32941         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32942         * modules/crypto/gc-sha1-tests: Likewise.
32943         * modules/crypto/gc-tests: Likewise.
32944         * modules/crypto/hmac-md5-tests: Likewise.
32945         * modules/crypto/hmac-sha1-tests: Likewise.
32946         * modules/crypto/hmac-sha256-tests: Likewise.
32947         * modules/crypto/hmac-sha512-tests: Likewise.
32949 2013-11-29  RV1971  <rv1971@web.de>
32951         base64: (trivial) fix compilation regression on some compilers
32952         * lib/base64.c: Don't return the void function,
32953         instead split to a separate return statement.
32955 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32957         ignore-value: revert previous code change
32958         * lib/ignore-value.h (ignore_value): Use __extension__ and
32959         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
32960         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
32961         Change the comment to try to explain this better.
32963 2013-11-27  Pádraig Brady  <P@draigBrady.com>
32965         selinux-h: improve stub types and add more stub functions
32967         * lib/se-selinux.in.h: Change security_context_t to a typedef
32968         rather than a define, as it's a pointer type and so is better
32969         as a typedef to avoid issues declaring multiple variables
32970         with the comma operator.  Also add stub for string_to_security_class().
32971         * lib/se-context.in.h: Add stub functions for
32972         context_{type,range,role,user}_get().
32974 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32976         ignore-value: prefer GCC version back through 2.0
32977         The code didn't match the comments, so I did a bit of software
32978         archaeology.  GCC 2.0 seems to support __extension__ and
32979         __typeof__, so fix both code and comments to use 2.0.
32980         * lib/ignore-value.h (ignore_value): Use __extension__ and
32981         __typeof__ for GCC 2.0 through 3.3, too.
32983 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
32985         pty: Activate the signature wrapper of forkpty.
32986         The intended preprocessor macro HAVE_FORKPTY is
32987         never defined, yet `lib/forkpty.c' depends on it.
32989         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
32990         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
32991         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
32993 2013-11-18  Jim Meyering  <meyering@fb.com>
32994         and Paul Eggert  <eggert@cs.ucla.edu>
32996         quotearg: don't attempt to store 1 << 31 into an "int"
32997         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
32998         gcc's new -fsanitize=undefined and running its tests triggered some
32999         new test failures due to undefined behavior, all with this diagnostic:
33000           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
33001             cannot be represented in type int
33002         Rather than shifting "1" left to form a mask, shift the bits right and
33003         simply use "1" as the mask.
33005 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
33007         error: depend on stdio
33008         Problem reported by Nikos Mavrogiannopoulos in
33009         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
33010         * modules/error (Depends-on): Add stdio.
33012 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
33014         * doc/relocatable-maint.texi (Supporting Relocation): Improve
33015         wording.
33016         Reported by Reuben Thomas <rrt@sc3d.org>.
33018 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
33020         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
33021         New function and macro, to work around _DARWIN_C_SOURCE problem.
33022         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
33024 2013-11-11  Pádraig Brady  <P@draigBrady.com>
33026         base64: provide a fast path for encoding well sized buffers
33027         Avoid conditionals in the base64 encoding loop,
33028         which was seen to give 60% better throughput.
33029         * lib/base64.c (base64_encode_fast): A new function to be called
33030         when we don't want to NUL terminate, and we have enough space
33031         in the output to encode the given input.
33032         (base64_encode): Call the _fast() version when appropriate.
33033         Also remove a redundant mask with 0x3F on the first encoded byte.
33035 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33037         extern-inline: port better to OS X 10.9
33038         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
33039         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
33040         OS X 10.9, except for g++ where the bug is still present.
33041         See <http://trac.macports.org/ticket/41033>.
33043 2013-11-08  Eric Blake  <eblake@redhat.com>
33045         fpending: fix regression on DragonFly BSD
33046         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
33047         * lib/fpending.h (__fpending): Don't declare twice.
33048         Reported by GW in
33049         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
33051 2013-11-05  Jim Meyering  <meyering@fb.com>
33053         hash: relax license to LGPLv2+, for libguestfs
33054         * modules/hash (License): Change from GPL to LGPLv2+.
33056 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33058         intprops: port to Oracle Studio c99
33059         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
33060         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
33062 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
33064         obstack: pacify HP C
33065         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
33066         warning "conversion from pointer to smaller integer" from HP
33067         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
33068         C89 or later nowadays, so cast to void instead of int.  Privately
33069         reported by H.Merijn Brand.  Also, change header to match glibc's,
33070         to make checking against glibc easier.
33072 2013-10-29  Jim Meyering  <meyering@fb.com>
33074         maint.mk: prefer gpgv2 over gpgv
33075         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
33076         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
33077         Reported by Gary Vaughan.
33079 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33081         isnan: port to VAX
33082         Reported by John Klos for NetBSD-5/VAX in
33083         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
33084         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
33085         (FUNC): Use it.
33087 2013-10-28  Jim Meyering  <meyering@fb.com>
33089         gnulib-tool: protect against CDPATH
33090         * gnulib-tool: Many "cd" built-in functions print a directory name
33091         to stdout when CDPATH is set, e.g.,
33092           $ bash -c 'CDPATH=/; cd tmp'
33093           /tmp
33094         Unset it, when possible.  Prompted by a comment from Bruce Korb.
33096         maint.mk: restore functionality removed by recent change...
33097         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
33098         the context of a shallow-cloned gnulib repository: "git describe"
33099         would fail in such a directory.  However, that change made it so
33100         the reported gnulib revision no longer includes the version number
33101         or a commit count, even when run from a full clone.
33102         * top/maint.mk (gnulib-version): Use the full "git describe"
33103         output when possible, e.g., the form above, rather than the
33104         abbreviated, no-tag, no-commit-count string, and fall back to
33105         using a 10-byte hash, rather than the default minimal-length
33106         hash prefix, since while the minimal-length one may be fine today,
33107         it is likely not to be unique for very long.
33109 2013-10-26  Jim Meyering  <meyering@fb.com>
33111         maint.mk: fix "release" target to build _version
33112         This fixes a bug in README-release whereby following the outlined
33113         steps, one would publish a tarball whose programs would report
33114         --version output not consistent with the package version number.
33115         This bug caused grep-2.15 to produce a grep program whose
33116         --version option made it print 2.14.56-1e3d rather than 2.15.
33117         * top/maint.mk (release): Making this target build "_version"
33118         ensures that the new version number is reflected in configure.
33120 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
33122         install-reloc: Support multi-binary installation.
33123         * build-aux/install-reloc: Support installing multiple programs in
33124         one invocation, as done by Automake starting with commit
33125         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
33126         Haible <bruno@clisp.org>, archived at
33127         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
33128         Reported by Sylvain <beuc@gnu.org>.
33130 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33132         selinux-h: Really build without selinux when library is missing.
33133         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
33134         continue without selinux, as already told in the warning message.
33136 2013-10-21  Jim Meyering  <meyering@fb.com>
33138         regex: also remove dependency on HAVE_WCSCOLL
33139         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
33141 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
33143         xfreopen: Fix typo. s/frepoen/freopen/
33144         * lib/xfreopen.c: Fix description.
33145         * modules/xfreopen: Likewise.
33147 2013-10-21  Jim Meyering  <meyering@fb.com>
33149         regex: don't depend on wcscoll
33150         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
33151         It is no longer used.
33153 2013-10-20  Jim Meyering  <meyering@fb.com>
33155         error: add the printf attribute to a static function
33156         * lib/error.c (error_tail): Add the printf attribute, to placate
33157         gcc's -Werror=suggest-attribute=format option.
33159 2013-09-30  Jim Meyering  <meyering@fb.com>
33161         fpending, obstack, strerror-override: use pure+const function attrs
33162         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
33163         * lib/obstack.c (_obstack_allocated_p): Likewise.
33164         * lib/obstack.h (_obstack_memory_used): Likewise.
33165         (_obstack_memory_used): Likewise.
33166         * lib/strerror-override.h (strerror_override): Declare with
33167         the "const" attribute.
33169 2013-10-18  Eric Blake  <eblake@redhat.com>
33171         extern-inline: make safe for -Wundef usage
33172         Reported by Vladimir 'phcoder' Serbinenko in
33173         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
33174         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
33176 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33178         mkfifo-tests, etc.: allow HP-UX 11.11 bug
33179         Problem reported by Daniel Richard G. in
33180         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
33181         * doc/posix-functions/mkfifo.texi (mkfifo):
33182         * doc/posix-functions/mkfifoat.texi (mkfifoat):
33183         * doc/posix-functions/mknod.texi (mknod):
33184         * doc/posix-functions/mknodat.texi (mknodat):
33185         Document the HP-UX 11.11 bug.
33186         * tests/test-mkfifo.h (test_mkfifo):
33187         Allow the HP-UX 11.11 bug.
33189 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33191         acl: allow cross-compilation to Gentoo
33192         Problem reported by Gabriel Marcano in
33193         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
33194         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
33195         test only whether it links.
33197 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33199         mgetgroups: remove dependency on realloc-gnu
33200         The dependency violates the comment in realloc-gnu, which
33201         says that tests can't depend on realloc-gnu; some tests depend
33202         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
33203         Problem reported by Daniel Richard G. in
33204         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
33205         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
33206         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
33207         not realloc-gnu.
33209 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33211         regex-tests: port to HP-UX 11.11
33212         Problem reported by Daniel Richard G. in
33213         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
33214         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
33216 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33218         verify: document some 'assume' pitfalls
33219         * doc/verify.texi (Compile-time Assertions):
33220         Mention that 'assume (E)' can sometimes slow things down.
33221         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
33223 2013-10-10  Eric Blake  <eblake@redhat.com>
33225         strtoumax: fix typo in previous commit.
33226         * modules/strtoumax (Depends-on): Fix typo.
33227         * modules/strtoimax (Depends-on): Likewise.
33229 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33231         strtoumax: port to Solaris 8
33232         This problem was introduced in the recent HP-UX patch.
33233         Reported by Tom G. Christensen in
33234         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
33235         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
33236         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
33238 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33240         strtoimax, strtoumax: port to HP-UX 11.11
33241         Problem reported by Daniel Richard G. in
33242         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
33243         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
33244         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
33245         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
33246         REPLACE_STRTOUMAX.
33247         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
33248         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
33249         Replace the function if defined as a macro but not as a function.
33250         * modules/inttypes-incomplete (inttypes.h): Substitute
33251         REPLACE_STRTOUMAX.
33252         * modules/strtoumax (configure.ac): Replace strtoumax if
33253         REPLACE_STRTOUMAX.
33255 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33257         strtoimax: port to HP-UX 11.11
33258         Problem reported by Daniel Richard G.
33259         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
33260         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
33261         they might clash with inttypes.h.
33263 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33265         New module 'count-trailing-zeros'.
33266         * MODULES.html.sh: Mention it.
33267         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
33268         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
33269         * modules/count-trailing-zeros-tests:
33270         * tests/test-count-trailing-zeros.c:
33271         New files.
33273         count-leading-zeros: port to MSC; support types wider than 64 bits
33274         The ideas behind the MSC port are stolen from Emacs.
33275         * lib/count-leading-zeros.h:
33276         Don't include verify.h: it's no longer needed, as types wider than
33277         64 bits are now supported.
33278         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
33279         performance with MSC.  All uses changed.  Do not assume that TYPE
33280         has at most 64 bits.
33281         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
33282         All uses changed.  Fold the subtraction from 31 into the table.
33284         count-one-bits: port to MSC; support types wider than 64 bits
33285         The ideas behind the MSC port are stolen from Emacs.
33286         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33287         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
33288         Don't include verify.h: it's no longer needed, as types wider than
33289         64 bits are now supported.
33290         (COUNT_ONE_BITS_GENERIC): New macro.
33291         (popcount_supported) [_MSC_VER]: New inline function.
33292         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
33293         performance with MSC.  All uses changed.  Do not assume that TYPE
33294         has at most 64 bits.
33295         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
33297 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
33299         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
33300         * lib/mountlist.c (read_file_system_list): fix leak of directory
33301         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
33303 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33305         tests: improve diagnostic when an assertion fails
33306         * tests/macros.h (ASSERT): Report the assertion that failed.
33308 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33310         verify: new macro 'assume'
33311         This is taken from Emacs, and should be generally useful.
33312         * doc/verify.texi (assume): Document it.
33313         * lib/verify.h (assume): New macro.
33314         (__has_builtin): Expand to 0 if not defined.
33316 2013-09-26  Eric Blake  <eblake@redhat.com>
33318         dup2, dup3: work around another cygwin crasher
33319         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
33320         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
33321         * tests/test-dup2.c (main): Likewise.
33322         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
33323         * lib/dup3.c (dup3): Likewise.
33324         * doc/posix-functions/dup2.texi (dup2): Document it.
33325         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33327         getdtablesize: work around cygwin issue
33328         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
33329         * modules/getdtablesize (configure.ac): Build replacement.
33330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
33331         * modules/unistd (Makefile.am): Expose the witness.
33332         * lib/unistd.in.h (getdtablesize): Declare replacement.
33333         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
33334         * tests/test-getdtablesize.c (main): Test it.
33335         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
33337 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
33339         pmccabe2html: escaping of special characters
33340         Escape all '<', '>', and '&' in HTML output.
33341         * build-aux/pmccabe2html (html_fnc): Call gsub()
33342         instead of sub() to capture all '<', '>', and '&'.
33343         Neither of '<' and '>' is special in a regexp,
33344         so first arguments to gsub() are corrected. Also,
33345         in replacement strings, ampersand must be escaped.
33346         Finally, '&' must be handled first, then '<' and '>'.
33348 2013-09-24  Eric Blake  <eblake@redhat.com>
33350         manywarnings: enable nicer gcc warning messages
33351         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
33352         some -f options for optimal warnings.
33354 2013-09-21  Jim Meyering  <meyering@fb.com>
33356         timespec: use the new TIMESPEC_RESOLUTION in a few more places
33357         * lib/timespec-add.c (timespec_add): Also replace 999999999
33358         with TIMESPEC_RESOLUTION - 1.
33359         * lib/timespec-sub.c (timespec_sub): Likewise.
33361 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
33363         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
33364         Problem reported by Dagobert Michelsen via Eric Blake in
33365         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
33366         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
33367         not AC_COMPILE_IFELSE.
33369 2013-09-23  Eric Blake  <eblake@redhat.com>
33371         configmake: support new --runstatedir option
33372         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
33373         even if autoconf was too old to provide the command line option.
33374         * modules/configmake (Makefile.am): Propagate it to .h file.
33376 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33378         ctype, string: depend on extern-inline
33379         This is needed to complete the recent OS X fixes.
33380         Also, fix related documentation as suggested by Eric Blake.
33381         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33382         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
33383         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
33384         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
33385         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
33386         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
33387         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
33388         * doc/posix-functions/toupper.texi:
33389         List the 'ctype' gnulib module.
33390         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
33391         * doc/posix-functions/strncpy.texi:
33392         List the 'string' gnulib module.
33393         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
33394         Add string.
33395         * modules/ctype, modules/string (Depends-on): Add extern-inline.
33397 2013-09-19  Pádraig Brady  <P@draigBrady.com>
33399         userspec: support optional parameters to parse_user_spec()
33400         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
33401         then avoid group processing and treat the full spec as a user.
33402         (parse_with_separator): Allow the USERNAME and GROUPNAME to
33403         be optional params (NULL), in which case they're ignored.
33405 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
33407         timespec: new function make_timespec, and new constants
33408         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
33409         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
33410         (make_timespec): New function.
33411         * lib/dtotimespec.c (dtotimespec):
33412         * lib/timespec-add.c (timespec_add):
33413         * lib/timespec-sub.c (timespec_sub):
33414         * lib/utimens.c (validate_timespec):
33415         * lib/utimensat.c (rpl_utimensat):
33416         Use these new constants and functions.
33418         stdio: OS X port of putc_unlocked + extern inline
33419         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
33420         * doc/posix-functions/putc_unlocked.texi:
33421         * doc/posix-functions/putchar_unlocked.texi:
33422         Document this portability problem.
33424         signal: OS X port of sigaddset etc. + extern inline
33425         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
33426         (sigismember): #undef on problematic Apple platforms.
33427         * doc/posix-functions/sigaddset.texi:
33428         * doc/posix-functions/sigdelset.texi:
33429         * doc/posix-functions/sigemptyset.texi:
33430         * doc/posix-functions/sigfillset.texi:
33431         * doc/posix-functions/sigismember.texi:
33432         Document this portability problem.
33434         extern-inline: do not always suppress extern inline on OS X
33435         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
33436         extern inline on Apple only if the particular compile-time
33437         configuration is known to have the problem.
33438         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
33439         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
33440         other Gnulib modules.
33442         extern-inline: document fixes for ctype and wctype macros
33443         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33444         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
33445         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
33446         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
33447         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
33448         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
33449         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
33450         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
33451         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
33452         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
33453         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
33454         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
33455         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
33456         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
33457         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
33458         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
33459         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
33460         * doc/posix-functions/strncpy.texi:
33461         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
33462         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
33463         Document that Gnulib fixes portability problems with these
33464         functions on OS X 10.8 and earlier when called from plain inline
33465         or extern inline functions.
33467 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
33469         fflush, freadahead, fseeko: Fix for Android
33470         Suggested by Bruno Haible in:
33471         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
33472         * lib/stdio-impl.h: Use local __sfileext definition.
33474 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
33476         pmccabe2html: Portability to other awk versions.
33477         The functions systime() and strftime() are available
33478         in Gawk only.  Properly close two HTML-tags 'style'
33479         and 'span'.
33480         * build-aux/pmccabe2html (BEGIN): Store timing
33481         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
33482         systime() in HTML_COMMENT.
33483         (html_header): Correctly close tag 'style'.
33484         (END): Replace strftime() by CHRONOS_TIME.  Close
33485         tag 'span' correctly, not as 'div'.
33487 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33489         getgroups: statement without effect
33490         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
33491         Change equality conditional to expected assignment.
33493 2013-09-09  Eric Blake  <eblake@redhat.com>
33495         glob: fix compilation
33496         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
33498 2013-09-07  Eric Blake  <eblake@redhat.com>
33500         glob: fix build for platforms without __THROW
33501         * lib/glob.in.h (__THROW): Add definition again.
33503 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
33505         regex-quote: fix buffer access out of bounds
33506         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
33507         * lib/regex-quote.c (regex_quote_spec_pcre):
33508         Fix typo that resulted in an out-of-bounds read.
33510 2013-09-04  Eric Blake  <eblake@redhat.com>
33512         glob: avoid -Wattribute warnings on glibc
33513         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
33514         __THROWNL, not __THROW, on static functions.
33515         * lib/glob.in.h (__THROW): Adjust...
33516         (__THROWNL): ...accordingly.
33518 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33520         headers: check that _GL_INLINE_HEADER_BEGIN is defined
33521         Suggested by Bruce Korb in:
33522         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
33523         * doc/extern-inline.texi (extern inline):
33524         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
33525         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
33526         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
33527         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
33528         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
33529         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
33530         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
33531         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
33532         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
33533         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
33534         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
33535         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
33536         * lib/xtime.h:
33537         Check that _GL_INLINE_HEADER_BEGIN is defined.
33539 2013-08-29  Pádraig Brady  <P@draigBrady.com>
33541         bootstrap: remove the --version requirement from ancillary tools
33542         * build-aux/bootstrap (check_exists): A new refactored function to
33543         determine if a command exists.
33544         (find_tool): Use the new function which does not require the
33545         --version option to be supported.
33546         (check_versions): Use the new function.
33548 2013-08-26  Simon Josefsson  <simon@josefsson.org>
33550         gc: support HMAC-SHA256 and HMAC-SHA512.
33551         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
33552         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
33553         functions.
33554         (gc_hmac_md5): Use symbolic constant.
33555         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
33556         (gc_hmac_sha256, gc_hmac_sha512): New functions.
33557         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
33558         * m4/sha256.m4: Protect against empty expansion.
33559         * m4/sha512.m4: Likewise.
33560         * lib/hmac-sha256.c: New file.
33561         * lib/hmac-sha512.c: Likewise.
33562         * m4/gc-hmac-sha256.m4: Likewise.
33563         * m4/gc-hmac-sha512.m4: Likewise.
33564         * m4/gc-sha256.m4: Likewise.
33565         * m4/gc-sha512.m4: Likewise.
33566         * modules/crypto/gc-hmac-sha256: Likewise.
33567         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33568         * modules/crypto/gc-hmac-sha512: Likewise.
33569         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33570         * modules/crypto/hmac-sha256: Likewise.
33571         * modules/crypto/hmac-sha256-tests: Likewise.
33572         * modules/crypto/hmac-sha512: Likewise.
33573         * modules/crypto/hmac-sha512-tests: Likewise.
33574         * tests/test-gc-hmac-sha256.c: Likewise.
33575         * tests/test-gc-hmac-sha512.c: Likewise
33576         * tests/test-hmac-sha256.c: Likewise.
33577         * tests/test-hmac-sha512.c: Likewise
33579 2013-08-24  Daiki Ueno  <ueno@gnu.org>
33581         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
33582         of AC_CHECK_DECLS.
33584 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33586         selinux-at: omit unnecessary include
33587         * lib/selinux-at.c: Don't include dosname.h; not needed, since
33588         this source file doesn't use its macros, and subsidiary files that
33589         use the macros already include it.
33591 2013-08-21  Eric Blake  <eblake@redhat.com>
33593         d-ino: avoid false negative on symlink
33594         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
33595         Reported by Stephane Chazelas.
33597 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
33599         bootstrap: port to OpenBSD sed
33600         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
33601         does not interpret `-' as a file argument to mean stdin.
33603 2013-08-15  Eric Blake  <eblake@redhat.com>
33605         warnings: minor optimization
33606         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
33608         warnings: check -Wfoo rather than -Wno-foo
33609         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
33610         -Wno-, test if the compiler recognizes the positive form instead.
33612 2013-08-15  Karl Berry  <karl@gnu.org>
33614         * config/srclist-update: add option "doclicense" to placate
33615         pulling *.texi files from Emacs.  Write terse usage
33616         documentation at the top.
33618 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
33620         xvasprintf-tests: port to GCC with hardening flags
33621         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
33622         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
33623         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
33625 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33627         fpending: port to recent Cygwin change to stdio_ext.h
33628         Reported by LRN in
33629         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
33630         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
33631         just declare __fpending unless it's a macro.
33632         A duplicate decl shouldn't hurt.
33633         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
33634         call compiles and links, instead of separately checking for
33635         decl and lib function.
33636         * modules/fpending (configure-ac):
33637         Adjust to fpending.m4's renaming of shell variable.
33639 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33641         sys_time: port to OpenBSD
33642         * lib/sys_time.in.h: Simply delegate to the system's header
33643         in the BSDish cases as well.  Problem reported by Mike Miller in
33644         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
33645         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
33646         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
33647         wider than time_t.
33649 2013-08-09  Pádraig Brady  <P@draigBrady.com>
33651         bootstrap: support checksum utils having -c but not --status
33652         * build-aux/bootstrap: Only look for sha1sum if updating po files.
33653         Add sha1 to the list of supported checksum utils since it's now
33654         supported through adjustments below.
33655         (update_po_files): Remove the use of --status
33656         in a way that will suppress all error messages, but since this is
33657         only used to minimize updates, it shouldn't cause an issue.
33658         Exit early if there is a problem updating the po file checksums.
33659         (find_tool): Remove the check for --version support as this
33660         is optional as per commit 86186b17.  Don't even check for the
33661         presence of the command as if that is needed, it's supported
33662         through configuring prerequisites in bootstrap.conf.
33663         Prompt that when a tool isn't found, one can define an environment
33664         variable to add to the hardcoded search list.
33666 2013-08-05  Jim Meyering  <meyering@fb.com>
33668         regex: port to non-glibc/lock-using systems
33669         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
33670         system with GNULIB_LOCK would fail due to absence of the
33671         included "glthread/lock.h".  This would affect any package
33672         for which the "lock" module is used only by the regex module,
33673         and not explicitly used.
33674         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
33675         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
33676         Add a dependency on the "lock" module.
33678 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33680         localecharset: make locale_charset thread-safe on Mac OS X
33681         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
33682         instead of MB_CUR_MAX.
33684 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33686         gettext: update to version 0.18.3
33687         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
33688         require AC_PROG_SED to allow user to specify custom sed command when
33689         generating en@quot PO file.
33691 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
33693         bootstrap: use correct source when copying build-aux files
33694         * build-aux/bootstrap (gnulib_extra_files): This variable is
33695         relative to upstream gnulib layout, not downstream.
33697 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
33699         tmpdir: fix bug in VMS port
33700         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
33701         See Steven M. Schweda in
33702         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
33704 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33706         tmpdir: port to VMS, to // != /, and to long dirs
33707         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
33708         __secure_getenv, so that we're more like the glibc version.
33709         All uses changed.
33710         (path_search): Don't put slash after directory if __VMS.
33711         Problem reported by Steven M. Schweda in
33712         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
33713         Simplify code to add slash; no need for a loop.
33714         Do not remove trailing slash from "//".
33715         Do not assume dlen <= INT_MAX.
33717 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33719         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
33720         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
33721         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
33722         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
33724         accept4, dup3, pipe2: port to Cygwin
33725         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
33726         * lib/accept4.c (accept4) [O_BINARY]:
33727         * lib/dup3.c (dup3) [O_BINARY]:
33728         * lib/pipe2.c (pipe2) [O_BINARY]:
33729         Use set_binary_mode, not setmode.
33730         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
33731         * modules/binary-io (Depends-on): Remove module indicator.
33732         These last two bits undo the previous change to pipe2 and binary-io.
33734 2013-07-09  Pádraig Brady  <P@draigBrady.com>
33736         mountlist: add support for deallocating returned list entries
33737         * lib/mountlist.c (free_mount_entry): A new exported function
33738         to deallocate a mount list entry.
33739         (read_file_system_list): Refactor to use the new deallocation function.
33740         Suggested by Anton Ovchinnikov.
33742 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
33744         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
33745         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
33746         * lib/stdalign.in.h (_Alignas, _Alignof):
33747         Port to FreeBSD 9.1, and to C11 and C++11.
33748         (_Alignas): Also support ICC.
33749         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
33750         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
33752 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33754         fnmatch: don't goto over declaration
33755         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
33756         undefined behavior for goto over a declaration.
33757         Problem reported by Charlie Brown in
33758         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
33760         pipe2: decouple from binary-io a bit
33761         This is for Emacs, which needs pipe2 but not binary-io.
33762         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
33763         * modules/binary-io (Depends-on): Add module indicator.
33765 2013-07-03  Eric Blake  <eblake@redhat.com>
33767         mgetgroups: relax license to LGPLv2+
33768         * modules/getugroups (License): Change from GPLv3+.
33769         * modules/mgetgroups (License): Likewise.
33770         * modules/getgroups (License): Change from LGPLv3+.
33772         xalloc-oversized: relax license to LGPLv2+
33773         * modules/xalloc-oversized (License): Change from GPLv3+.
33775         nproc: relax license to LGPLv2+
33776         * modules/nproc (License): Change from LGPLv3+.
33778         bootstrap: honor --no-git
33779         * build-aux/bootstrap: Don't even try to use git when user is
33780         pointing to a static checkout.
33782 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33784         ignore-value: port to gcc -pedantic
33785         * lib/ignore-value.h (ignore_value):
33786         Port to gcc -pedantic, by using __extension__.
33787         Reindent as per usual gnulib style nowadays.
33788         Simplify GCC version check.
33790 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33792         extern-inline: port to gcc -std=c89
33793         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33794         Do not use __gnu_inline__ if pedantic and pre-C99.
33796 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33798         doc: document extern-inline
33799         * doc/extern-inline.texi: New file.
33800         * doc/gnulib.texi (alloca-opt): Include it.
33801         * m4/extern-inline.m4: Move some comments to documentation,
33802         and others closer to what they describe.
33804         doc: chatter less
33805         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
33806         (updated-stamp): Use it.  This causes 'make' to output just
33807         one file name rather than zillions.
33809         fflush, fseeko: port to musl cross-compiles
33810         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
33811         on some implementation that (1) is not known to be buggy,
33812         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
33813         cross-compiled to so we can't easily check for lack of
33814         conformance.  This is for cross-compiling to musl.
33815         Reported by Rich Felker in
33816         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
33817         * m4/fclose.m4 (gl_FUNC_FCLOSE):
33818         * m4/fflush.m4 (gl_FUNC_FFLUSH):
33819         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
33820         Adjust to above change.
33821         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
33822         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
33823         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
33824         known not to work, or unknown.
33826 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33828         msvc-inval: port to mingw-w64
33829         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
33830         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
33831         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
33833 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
33835         getcwd-lgpl: port to Tru64
33836         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
33837         Problem reported by Steven M. Schweda in
33838         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
33840         tests: port large-fd POSIX spawn tests to OS X
33841         Problem reported by Daiki Ueno in
33842         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
33843         * tests/test-posix_spawn_file_actions_addclose.c:
33844         * tests/test-posix_spawn_file_actions_adddup2.c:
33845         * tests/test-posix_spawn_file_actions_addopen.c:
33846         Include <limits.h>, for OPEN_MAX, if available.
33847         (big_fd): New static function.
33848         (main): Use it.
33850 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
33852         tests/nap.h: use an adaptive delay to avoid ctime update issues
33853         The recent change in nap.h (5191133e) decreased the probability of lost
33854         races to about a third, however such problems could still be observed
33855         in virtual machines and openSUSE's OBS.
33856         Before, nap() detected the needed time once empirically and then used
33857         that delay (together with a small correction multiplier) in further
33858         calls.  This problem has been reported and discussed several times,
33859         including guesses about possible kernel issues:
33860         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
33861         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
33862         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
33863         http://bugs.gnu.org/12820
33864         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
33865         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
33866         Now, nap() avoids the race alltogether by verifying on a reference
33867         file whether a timestamp difference has happened.
33868         * tests/nap.h (nap_fd): Define file descriptor variable for the
33869         witness file.
33870         (nap_works): Change return value to bool.  Change passing
33871         the old file's status by value instead of by reference as this function
33872         does no longer update that timestamp; rename the function argument from
33873         st to old_st.  Remove the local variables cdiff and mdiff because that
33874         function now returns true/false instead of the precise delay.
33875         (guess_delay): Remove function.
33876         (clear_tmp_file): Add new function to close and unlink the witness file.
33877         (nap): Instead of re-using the delay which has been calculated during
33878         the first call, avoid the race by actually verifying that a timestamp
33879         difference can be observed on the current file system.  Use an adaptive
33880         approach for the delay to minimize execution time.  Assert that the
33881         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
33882         = 2^31 - 1 = 2.1s.
33883         Use atexit to call clear_tmp_file when the process terminates.
33885 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
33887         sig2str: port to C++
33888         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
33889         Reported by Daniel J Sebald in
33890         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
33892 2013-05-30  Eric Blake  <eblake@redhat.com>
33894         docs: mention cygwin shortcoming in <sys/un.h>
33895         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
33897         vasnprintf: silence mingw compiler warning
33898         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
33900 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33902         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
33903         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
33904         This fixes a porting bug I recently reintroduced in regex, and
33905         some other instances that I discovered while testing the fix.
33906         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
33907         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
33908         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
33909         with an empty argument if this is a pedantic pre-C99 GCC.
33910         * lib/verify.h: Do not use _Static_assert if this is a pedantic
33911         pre-C11 GCC.
33913         regex: adapt to locking regime instead of depending on pthread
33914         Instead of depending on pthread, adapt to whatever thread
33915         modules are in use.  Problem reported by Ludovic Courtès in
33916         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
33917         and by Mats Erik Andersson in
33918         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
33919         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
33920         Support either the 'lock' module, or the 'pthread' module, or
33921         no module.
33922         (lock_lock, lock_unlock): New macros.
33923         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
33924         * modules/lock, modules/pthread (configure.ac): Add module indicator.
33925         * modules/regex (Depends-on): Remove pthread.
33927 2013-05-22  Eric Blake  <eblake@redhat.com>
33929         getgroups: document portability issues
33930         * doc/glibc-functions/initgroups.texi (initgroups): Mention
33931         multithread safety.
33932         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
33933         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
33934         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
33935         getugroups.
33936         * doc/posix-functions/getgroups.texi (getgroups): Mention
33937         multithread safety and mgetgroups.
33939 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
33941         test-lchown, test-chown: also skip test if chown fails with EPERM
33942         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
33943         skip this test, to handle FAT file systems.
33944         * tests/test-chown.h (test_chown): Likewise.
33946 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33948         regex: fix dfa race in multithreaded uses
33949         Problem reported by Ludovic Courtès in
33950         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
33951         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
33952         New macros.  All uses of __libc_lock_define, __libc_lock_init
33953         changed to use the first two of these.
33954         (__libc_lock_lock, __libc_lock_unlock): New macros, for
33955         non-glibc platforms.
33956         (struct re_dfa_t): Define the lock unconditionally.
33957         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
33958         '#ifdef _LIBC"s.
33959         * modules/regex (Depends-on): Add pthread, if we use the
33960         included regex.
33962         * lib/regcomp.c: Do actions that are not needed for glibc,
33963         but may be needed elsewhere.
33964         (regfree, re_compile_internal): Destroy the lock.
33965         (re_compile_internal): Check for lock-initialization failure.
33967         malloca: port to compilers that reject size-zero arrays
33968         This fixes a bug introduced in my previous patch.
33969         * lib/malloca.c (struct preliminary_header): Use an int
33970         rather than a character array of size int; that's simpler.
33971         (struct header): Remove, replacing with ...
33972         (union header): New type.  This avoids the need for declaring a
33973         character array of size zero, which is not allowed on some platforms.
33974         All uses changed.
33976 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
33978         parse-datetime, tests: don't use "string" + int
33979         Recent versions of 'clang' complain about C source code that
33980         uses expressions of the form '"string literal" + integer',
33981         I guess on the theory that it's confusing for readers who are
33982         used to C++.  On those grounds I suppose it's OK to make this
33983         minor style change.
33984         * lib/parse-datetime.y (parse_datetime):
33985         * tests/test-fchdir.c (main):
33986         * tests/test-snprintf-posix.h (test_function):
33987         * tests/test-snprintf.c (main):
33988         * tests/test-vasnprintf-posix.c (test_function):
33989         * tests/test-vasnprintf.c (test_function):
33990         * tests/test-vsnprintf.c (main):
33991         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
33992         Rewrite '"str" + E' to '&"str"[E]'.
33994 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33996         argmatch: port to C++
33997         * lib/argmatch.h [__cplusplus]: Add extern "C".
33999         argp: typo fix
34000         * lib/argp-help.c: Typo in comment.
34002 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34004         manywarnings: update for GCC 4.8.0
34005         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
34006         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
34007         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
34008         -Wmissing-noreturn, as they are duplicates of other warnings.
34009         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
34010         was documented to be flaky in earlier versions of GCC.
34012         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
34013         * tests/test-spawn.c (main):
34014         * tests/test-sys_socket.c (main):
34015         * tests/test-sys_wait.c (main):
34016         Don't have a switch value that isn't covered by a case.
34018         getaddrinfo-tests: port --enable-gcc-warnings to clang
34019         * tests/test-getaddrinfo.c (simple):
34020         Avoid casts from looser to stricter-aligned pointers.
34022         thread: port --enable-gcc-warnings to clang
34023         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
34024         Include <signal.h>, to pacify a warning about pthread_sigmask.
34026         stdio: use __REDIRECT for fwrite, fwrite_unlocked
34027         * lib/stdio.in.h (fwrite):
34028         When working around bug 11959, use __REDIRECT rather than '#define
34029         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
34030         fix the -Wunused-value issue with clang, and it works with GCC too.
34031         Problem with targeting reported by Eric Blake in
34032         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
34033         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
34034         debugging the fwrite issue.
34036         stdio: port --enable-gcc-warnings to clang
34037         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
34038         since the GCC workaround for fwrite does not pacify clang.
34040         sig2str: port --enable-gcc-warnings to clang
34041         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
34043         obstack: port --enable-gcc-warnings to clang
34044         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
34045         Avoid casts from looser to stricter-aligned pointers.
34047         memchr2: port --enable-gcc-warnings to clang
34048         * lib/memchr2.c (memchr2):
34049         Avoid casts from looser to stricter-aligned pointers.
34051         mbsstr: port --enable-gcc-warnings to clang
34052         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
34053         Avoid casts from looser to stricter-aligned pointers.
34055         malloca: port --enable-gcc-warnings to clang
34056         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
34057         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
34059         inttostr: port --enable-gcc-warnings to clang
34060         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
34062         warnings: port to clang
34063         Problem reported by Daniel P. Berrange via Eric Blake in
34064         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
34065         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
34066         (gl_WARN_ADD): Use it.
34068 2013-05-11  Jim Meyering  <meyering@fb.com>
34070         quotearg: do not read beyond end of buffer
34071         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
34072         end of an ARG for which no length was specified.  With an N-byte
34073         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
34074         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
34075         via coreutils' misc/sort-debug-keys.sh test and detected by running
34076         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
34077         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
34078         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
34079         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
34080         characters correctly."
34082 2013-05-11  Daiki Ueno  <ueno@gnu.org>
34084         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
34085         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
34086         compilation target is Mac OS X 10.6.
34087         Problem reported by parafin and Andoni Morales in
34088         <http://savannah.gnu.org/bugs/?37844> and
34089         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
34091 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34093         mkdir-p: remove assumptions about umask and mode
34094         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
34095         umask is 0, or that MODE is a subset of MODE_BITS.
34097 2013-05-10  Eric Blake  <eblake@redhat.com>
34099         maint.mk: catch more abuse of HAVE_DECL in syntax-check
34100         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
34102 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
34104         deps: require Automake >= 1.9.6 in generated Makefile fragments
34106         That is the same minimal version required in the DEPENDENCIES file.
34107         Moreover, the old code generated a requirement of Automake >= 1.5,
34108         and that is an insanely outdated version.
34110         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
34111         * tests/havelib/rpathlx/Makefile.am: Likewise.
34112         * tests/havelib/rpathly/Makefile.am: Likewise.
34113         * tests/havelib/rpathlyx/Makefile.am: Likewise.
34114         * tests/havelib/rpathlz/Makefile.am: Likewise.
34115         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
34116         * tests/havelib/rpathx/Makefile.am: Likewise.
34117         * tests/havelib/rpathy/Makefile.am: Likewise.
34118         * tests/havelib/rpathz/Makefile.am: Likewise.
34120 2013-05-08  Eric Blake  <eblake@redhat.com>
34122         bootstrap: AC_INIT may have more than four parameters
34123         * build-aux/bootstrap (extract_package_name): Correctly extract
34124         non-empty tarname field.  Avoid range in regex.
34125         Based on a report by Sami Kerola <kerolasa@iki.fi>.
34127 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34129         qacl: port to MS-Windows port of GNU Emacs
34130         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
34131         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
34132         port of GNU Emacs.  Problem reported by Eli Zaretskii in
34133         <http://bugs.gnu.org/14295#14>.
34135 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
34137         acl: include quote.h
34138         * lib/copy-acl.c: Include quote.h.
34139         * lib/set-acl.c: Likewise.
34141 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
34143         fchownat, renameat, unlinkat: update statat dependencies
34144         These modules use statat and lstatat, not fstatat; so depend on
34145         the statat module, which was split out recently from fstatat.
34146         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
34147         * modules/renameat: Likewise.  Also delete fstat.
34148         URL: http://bugs.gentoo.org/468790
34150 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
34152         Assume gnulib is checked out from Git, not CVS
34154         In fact, access to the gnulib repository through CVS has been
34155         disabled, or more precisely, got broken and was never restored; see:
34156         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
34158         Note that support for CVS is not removed completely and unthinkingly
34159         by this change: only support for CVS checkouts of gnulib itself is
34160         removed.  For example, the 'bootstrap' script still cater to .cvsingore
34161         files and CVS directories, for the benefit of those poor gnulib clients
34162         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
34164         * gnulib-tool: Simplify accordingly.
34165         * posix-modules: Likewise.
34166         * MODULES.html.sh: Likewise.
34167         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34168         repository.
34169         * doc/gnulib-intro.texi: Likewise.
34170         * doc/gnulib-readme.texi: Likewise.
34171         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
34172         sample '.gitignore' file rather than a sample '.cvsignore'.
34173         * NEWS: Update.
34174         * m4/extensions.m4: While at it, remove a comment mistakenly referring
34175         to "CVS Autoconf" rather than "git Autoconf".
34177 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
34179         utimensat-tests, etc.: try to fix some races
34180         Problem reported by Bernhard Voelker in
34181         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
34182         I don't know whether this patch fixes that race condition, but it
34183         fixes *some* race conditions, so it should be a win.
34184         * modules/chown-tests (Depends-on):
34185         * modules/fchownat-tests (Depends-on):
34186         * modules/fdutimensat-tests (Depends-on):
34187         * modules/futimens-tests (Depends-on):
34188         * modules/lchown-tests (Depends-on):
34189         * modules/stat-time-tests (Depends-on):
34190         * modules/utimens-tests (Depends-on):
34191         * modules/utimensat-tests (Depends-on):
34192         Depend on nanosleep, not usleep.
34193         * modules/chown-tests (test_chown_LDADD):
34194         * modules/lchown-tests (test_lchown_LDADD):
34195         * modules/stat-time-tests (test_stat_time_LDADD):
34196         New macro.
34197         * modules/fchownat-tests (test_fchownat_LDADD):
34198         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
34199         * modules/futimens-tests (test_futimens_LDADD):
34200         * modules/utimens-tests (test_utimens_LDADD):
34201         * modules/utimensat-tests (test_utimensat_LDADD):
34202         Add $(LIB_NANOSLEEP).
34203         * modules/stat-time-tests (Files): Add tests/nap.h.
34204         * tests/nap.h: Include <limits.h>, for INT_MAX.
34205         (lt_mtime): Remove.
34206         (diff_timespec): New function.
34207         (get_stat): Rename from get_mtime.  All callers changed.
34208         (nap_works): Determine the needed delay by inspecting the
34209         file system's timestamp jumps; this should be more reliable.
34210         Look at both mtime and ctime, and take the maximum of the two jumps.
34211         (nap_works, guess_delay):
34212         Return a nanosecond count, not a microsecond count.
34213         All callers changed.
34214         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
34215         failure.
34216         (nap): Multiply the guess by 1.125, to accommodate the case where
34217         the file system's clock is a bit slower than nanosleep's clock.
34218         * tests/test-stat-time.c (BASE): New macro.
34219         Include nap.h.
34220         (nap): Remove; nap.h now defines this.  This removes a duplicate
34221         implementation of 'nap'.
34223         utimens, utimensat: work around Solaris UTIME_OMIT bug
34224         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
34225         Linux kernel 2.6.32 does.  Work around it in the same way.
34226         * doc/posix-functions/futimens.texi (futimens):
34227         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
34228         * lib/utimens.c (fdutimens, lutimens):
34229         * lib/utimensat.c (rpl_utimensat): Work around the bug.
34231         gettext: now it's your responsibility to add -I$(top_builddir)/intl
34232         Formerly, it was your responsibility to do this for all Makefile.ams
34233         other than Gnulib's.  Now it's your responsibility to do it for
34234         Gnulib's Makefile.am, too.
34235         * NEWS: Document this.
34236         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
34238         acl: include errno.h to get errno
34239         Reported by Daiki Ueno in
34240         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
34241         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
34243 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
34245         tests: don't assume getdtablesize () <= 10000000
34246         * modules/cloexec-tests:
34247         * modules/dup2-tests:
34248         * modules/dup3-tests:
34249         * modules/nonblocking-tests:
34250         * modules/posix_spawn_file_actions_addclose-tests:
34251         * modules/posix_spawn_file_actions_adddup2-tests:
34252         * modules/posix_spawn_file_actions_addopen-tests:
34253         * modules/unistd-safer-tests:
34254         Depend on the getdtablesize module.
34255         * tests/test-cloexec.c:
34256         * tests/test-dup-safer.c:
34257         * tests/test-dup2.c:
34258         * tests/test-dup3.c:
34259         * tests/test-fcntl.c:
34260         * tests/test-nonblocking.c:
34261         * tests/test-posix_spawn_file_actions_addclose.c:
34262         * tests/test-posix_spawn_file_actions_adddup2.c:
34263         * tests/test-posix_spawn_file_actions_addopen.c:
34264         Don't assume getdtablesize () <= 10000000.
34266 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
34268         extern-inline: work around bug in Sun c99
34269         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34270         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
34272 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
34274         qacl: new module, broken out from the acl module
34275         This is for GNU Emacs, which wants the acl functions but does
34276         not want 'error' invoked when they fail.
34277         * lib/acl-internal.h: Do not include error.h, quote.h.
34278         (ENOSYS, ENOTSUP): Remove; no longer needed.
34279         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
34280         * lib/acl.h: Include <stdbool.h>.
34281         (acl_errno_valid): New function.
34282         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
34283         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
34284         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
34285         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
34286         (ACL_INTERNAL_INLINE): Remove; no longer needed.
34287         * lib/file-has-acl.c (file_has_acl):
34288         * lib/qcopy-acl.c (qcopy_acl):
34289         * lib/qset-acl.c (qset_acl):
34290         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
34291         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
34292         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
34293         lib/file-has-acl.c, m4/acl.m4 to qacl module.
34294         Add lib/set-acl.c.
34295         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
34296         Add qacl.
34297         (configure.ac): Move gl_FUNC_ACL to qacl module.
34298         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
34299         Rename set-mode-acl.c to set-acl.c.
34300         * lib/acl-errno-valid.c: New file.
34301         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
34302         copy_acl function remains in copy-acl.c.
34303         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
34304         (_): Remove; not needed.
34305         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
34306         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
34307         * modules/qacl: New file, moved from the old modules/acl.
34308         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
34309         Remove set-mode-acl.c, copy-acl.c.
34310         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
34312         alignof, intprops, malloca: port better to IBM's C compiler
34313         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
34314         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
34315         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
34317 2013-04-25  Daiki Ueno  <ueno@gnu.org>
34319         wctype-h: fix gettext link error on mingw
34320         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
34321         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
34322         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
34323         rpl_towupper and rpl_towupper.
34325 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
34327         regex-tests, regex: allow glibc re_search behavior
34328         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
34329         re_search input data to make the multi-character collating element
34330         in it clearly visible, and treat re_search return code 0 as valid.
34331         * m4/regex.m4 (gl_REGEX): Likewise.
34333 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34335         stdalign: doc fix
34336         * doc/posix-headers/stdalign.texi (stdalign.h):
34337         Gnulib doesn't support '_Alignof expr'.
34339 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34341         stdalign: port to stricter ISO C11
34342         ISO C11 says that _Alignof's operand must be a parenthesized type.
34343         Problem reported by Eli Zaretskii in
34344         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
34345         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
34346         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
34348 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
34350         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
34351         Problem reported by Marco Atzeri in
34352         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
34353         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
34354         Simply delegate to the system <sys/select.h> in this case too.
34355         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
34356         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
34357         be needed on Solaris either.
34358         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
34359         Simply delegate to the system <sys/time.h> in this case.
34361 2013-03-19  Karl Berry  <karl@gnu.org>
34363         * build-aux/gnupload: check for erroneous (with gnupload) use of
34364         ftp-upload.gnu.org, tweak help.
34366 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34368         copy-file, rpmatch: fix problems found by cppcheck
34369         Reported by Arno Onken in
34370         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
34371         * lib/rpmatch.c (try): Fix memory leak.
34372         * lib/copy-file.c: Include "ignore-value.h".
34373         (qcopy_file_preserving): Ignore chown value.
34374         * modules/copy-file (Depends-on): Add ignore-value.
34376 2013-01-27  Jim Meyering  <jim@meyering.net>
34378         prefix-gnulib-mk: give better diagnostics
34379         * build-aux/prefix-gnulib-mk: Don't just "die".
34380         Give better diagnostics upon failure.
34382 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
34384         putenv: port to Solaris 10
34385         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
34386         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
34387         is not what is wanted here.
34388         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
34389         declaration, not for its existence.
34391 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
34393         mktime: fix configure typo
34394         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
34396 2013-03-12  Eric Blake  <eblake@redhat.com>
34398         regex-tests: skip UTF-8 test on mingw
34399         * modules/regex-tests (Depends-on): Add localcharset.
34400         * tests/test-regex.c (main): Use it to skip test on mingw.
34402 2013-03-11  Eric Blake  <eblake@redhat.com>
34404         tests: make it easier to bypass alarm time in debugger
34405         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
34406         * tests/test-memmem.c (main): Likewise.
34407         * tests/test-passfd.c (main): Likewise.
34408         * tests/test-ptsname.c (main): Likewise.
34409         * tests/test-ptsname_r.c (main): Likewise.
34410         * tests/test-strcasestr.c (main): Likewise.
34411         * tests/test-strstr.c (main): Likewise.
34413         regex: port to mingw's recent addition of undeclared alarm
34414         * doc/posix-functions/alarm.texi (alarm): Document that alarm
34415         exists but still doesn't work in newer mingw.
34416         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
34417         not existence.  Ensure SIGALRM is not trapped.
34418         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
34419         * m4/regex.m4 (gl_REGEX): Likewise.
34420         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
34421         * tests/test-regex.c (main): Use correct probe for alarm.
34423         putenv: avoid compilation warning on mingw
34424         * lib/putenv.c (_unsetenv): Protect variable declaration.
34425         (putenv): Fix indentation.
34427 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
34429         unistd: don't prevent Tru64 Unix from using gnulib strtod.
34430         * lib/unistd.in.h: be careful not to include un-needed system
34431         stdlib.h from here, because that prevents gnulib stdlib.h from
34432         defining rpl_strtod correctly.
34434 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
34436         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
34437         changesets, but for the 'precision 0' test.
34438         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34439         round-to-even, since POSIX says rounding is implementation-defined
34440         and OS X 10.8.2 rounds 1.51 to 1 here.
34442         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
34443         changeset.
34444         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34445         round-to-even, since POSIX says rounding is implementation-defined
34446         and OS X 10.8.2 rounds 1.5 to 1 here.
34448 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34450         vasnprintf-posix-tests: allow rounding 1.5 to 1
34451         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
34452         round-to-even, since POSIX says rounding is implementation-defined
34453         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
34454         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
34456         bootstrap: port to FreeBSD
34457         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
34458         that treat '--' differently.  Reported by Mats Erik Andersson in
34459         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
34461 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
34463         regex: rename remaining __attribute calls to __attribute__.
34464         2012-02-25 changed definition of __attribute, but left some uses
34465         unchanged, preventing compilation of regex module on most non-gcc
34466         environments.
34467         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
34468         (lookup_collation_sequence_value, build_range_exp)
34469         (build_collating_symbol): Set attributes with newly renamed
34470         __attribute__ decorator.
34471         * lib/regex_internal.c (re_string_peek_byte_case)
34472         (re_node_set_compare, re_node_set_contains): Likewise.
34473         * lib/regexec.c (acquire_init_state_context): Likewise.
34475 2013-03-06  Bruno Haible  <bruno@clisp.org>
34477         execute: Revert last change, but use a different condition.
34478         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
34479         on Windows.
34481 2013-03-05  Eric Blake  <eblake@redhat.com>
34483         execute: drop dead code
34484         * lib/execute.c (nonintr_close, nonintr_open): Delete.
34486 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
34488         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
34489         * m4/non-recursive-gnulib-prefix-hack.m4
34490         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
34491         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
34492         <http://bugs.gnu.org/10305#237>.
34494 2013-03-04  Eric Blake  <eblake@redhat.com>
34496         test-getsockopt: avoid compiler warning
34497         * tests/test-getsockopt.c (includes): Ensure close is declared.
34499 2013-03-02  Bruno Haible  <bruno@clisp.org>
34501         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
34502         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
34504 2013-03-02  Bruno Haible  <bruno@clisp.org>
34506         gettext: Update to version 0.18.2.
34507         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
34508         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
34509                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
34511 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34513         regex: merge patches from libc
34515         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34516         * lib/regex_internal.h (__attribute__): Rename from __attribute.
34517         All uses changed.
34518         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
34519         (re_string_wchar_at, re_string_elem_size_at):
34520         Mark function as possibly unused.
34522         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
34523         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
34524         elements compare against the byte sequence of it, not its name.
34526 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34528         putenv: port better to native Windows
34529         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34530         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
34531         (_unsetenv): Use _putenv if available.
34532         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
34533         a bit less likely to cause damage.
34534         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34535         Fix the wrong value with SetEnvironmentVariable.
34536         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
34537         code better.
34539 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34541         regex: ignore old-style-definition warnings
34542         * lib/regex.c: Add pragma to ignore these warnings.
34543         Problem reported for GNU tar by Pavel Raiskup.
34545 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34547         getcwd: support coreutils better
34548         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
34549         but this might not be correct in coreutils, which disables
34550         the raw decl checks.  Problem reported by Nagendra in
34551         <http://bugs.gnu.org/10305#192>.
34552         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
34553         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34554         Test the getcwd function, not any macro, since getcwd.c wants the
34555         function.
34556         * m4/getcwd.m4 (gl_FUNC_GETCWD):
34557         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
34558         compile, as might happen if there's a macro but no function.
34560         strtod: support coreutils better
34561         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
34562         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
34563         disables the raw decl checks.  This assumes there is an underlying
34564         strtod, but that's a safe assumption these days.
34565         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
34567         mountlist: port to HP NonStop
34568         Reported by Joachim Schmitz in
34569         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
34570         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
34571         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
34573 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
34575         extern-inline: avoid compilation error with HP-UX cc
34576         Reported by Richard Lloyd in
34577         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
34578         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34579         Suppress extern inline with HP-UX cc.  This should be safe,
34580         though it may hurt performance.  Perhaps someone with some HP-UX
34581         experience can come up with a higher-performance fix.
34583 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34585         putenv: fix heap corruption with mixed putenv/_putenv
34586         Problem reported by Michael Goffioul in
34587         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
34588         * lib/putenv.c (putenv) [HAVE__PUTENV]:
34589         Rely on _putenv to allocate the new environment.
34590         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34591         * modules/putenv (configure.ac): Use it.
34593 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
34595         unsetenv etc.: port to Solaris 11 + GNU Emacs
34596         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
34597         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
34598         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
34599         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
34600         idea but is too painful to fix right now), and without this gnulib
34601         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
34602         compiling unsetenv.c on Solaris 11.  Fix the problem for
34603         unsetenv.c, and fix other similar occurrences.
34605 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34607         secure_getenv: fix C++ declaration typo
34608         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
34609         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
34610         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
34612 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
34614         careadlinkat: stop exporting careadlinkatcwd
34615         Only Emacs used it directly, and Emacs no longer needs it.
34616         * NEWS: Document this simplification.
34617         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
34618         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
34619         for readlink.
34620         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
34621         Don't include stdlib.h; no longer needed.
34622         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
34623         * lib/relocwrapper.c: Adjust comment to match new dependencies.
34624         * modules/areadlink (Depends-on): Add readlink.
34625         (Maintainer): Add self.
34626         * modules/careadlinkat (Depends-on): Remove readlink.
34628         extensions: port better to HP-UX
34629         This is merged from git Autoconf.
34630         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34631         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
34632         so that it's compatible with the value used when compiling.
34634         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
34635         Problem reported by Mats Erik Andersson in
34636         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
34637         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34638         openpty function exists, not merely when we intend to replace it.
34639         This corrects the 2013-01-31 patch, which mistakenly defined
34640         HAVE_OPENPTY even on hosts that lacked it.
34642 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34644         secure_getenv: fix include typo
34645         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
34647         secure_getenv: port better to FreeBSD and Solaris
34648         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
34649         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
34650         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
34651         This works better on BSDish platforms.
34652         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
34653         Test for issetugid if __secure_getenv is missing.
34655 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
34657         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
34658         Some of these changes are merged in from git Autoconf.
34659         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34660         When deciding whether to define _XOPEN_SOURCE, inspect the
34661         preprocessor macro __hpux instead of the more-heavyweight
34662         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
34663         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
34664         as the key for __EXTENSIONS__.
34666         unistd: avoid namespace pollution on non-glibc systems
34667         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
34668         This avoids namespace pollution on non-glibc systems, by causing
34669         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
34670         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
34671         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
34673 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34675         tmpdir: use secure_getenv
34676         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
34677         Define to secure_getenv, not getenv.
34678         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
34679         as that's now secure_getenv's job.
34680         * modules/tmpdir (Depends-on): Add secure_getenv.
34682         tempname: use secure_getenv
34683         * lib/tempname.c (__secure_getenv) [!_LIBC]:
34684         Define to secure_getenv, not getenv.
34685         * modules/tempname (Depends-on):
34686         Add secure_getenv.
34688         secure_getenv: new module
34689         * MODULES.html.sh (Extra functions based on ANSI C 89):
34690         Add secure_getenv.
34691         * doc/glibc-functions/secure_getenv.texi: New file.
34692         * doc/gnulib.texi: Include it.
34693         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
34694         New files.
34695         * lib/stdlib.in.h (secure_getenv): New decl.
34696         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
34697         * modules/stdlib (stdlib.h):
34698         Add secure_getenv checks.
34700 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
34702         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
34703         Reported for OS X 10.8.2 by Assaf Gordon in
34704         <http://bugs.gnu.org/13516>.
34705         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
34706         !HAVE_OPENAT && !HAVE_FDOPENDIR.
34707         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
34708         so that they can be kept in sync more easily.  Avoid PATH_MAX
34709         test on the Hurd.  Sync from test-getcwd.c for errno tests after
34710         mkdir or chdir failure.
34711         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
34712         lib/getcwd.c.
34713         (test_abort_bug): Do not test for the deep directory bug unless we
34714         have openat support.  Avoid PATH_MAX test on the Hurd.
34716         regex-tests, regex: fix bug: memset undeclared
34717         * tests/test-regex.c: Don't include regex.h twice.  Include
34718         string.h, to declare memset.  Christensen's report also mentioned
34719         this issue.
34720         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
34721         test-regex.c, to avoid future problems like this.  Remove
34722         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
34723         twice.
34725         regex-tests: fix link errors on older Solaris
34726         These need to link with @LIBINTL@ to get libintl_gettext.
34727         Problem reported by Tom G. Christensen in
34728         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
34729         * modules/regex-tests (test_regex_LDADD): New macro.
34731 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
34733         regex-tests: new module
34734         * modules/regex-tests, tests/test-regex.c: New files.
34736         regex: fix off-by-one error in configure test
34737         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
34739 2013-01-31  Eric Blake  <eblake@redhat.com>
34741         regex: avoid infinite configure test
34742         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
34744 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
34746         openpty: fix bug where HAVE_OPENPTY wasn't defined
34747         See the thread starting at:
34748         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
34749         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34750         openpty function exists, not merely when we intend to replace it.
34752 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
34754         sys_time: port to Solaris 2.6
34755         There is a circularity problem on Solaris 2.6, where <time.h> includes
34756         <sys/time.h> for struct timespec.  The include nesting is gnulib
34757         <time.h>, system <time.h>, gnulib <sys/time.h>, system
34758         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
34759         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
34760         <sys/siginfo.h>; the last, innermost file needs struct
34761         timestruc_t, which is defined in <sys/time.h>, which has not been
34762         fully parsed.  Problem reported by Tom G. Christensen in
34763         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
34764         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
34765         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
34766         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
34767         uses split double-inclusion guards.
34769 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
34771         regex: test for buffer overrun
34772         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
34773         for the just-fixed regex bug.
34775 2013-01-29  Andreas Schwab  <schwab@suse.de>
34777         regex: fix buffer overrun in regexp matcher [BZ #15078]
34778         * lib/regexec.c (extend_buffers): Add parameter min_len.
34779         (check_matching): Pass minimum needed length.
34780         (clean_state_log_if_needed): Likewise.
34781         (get_subexp): Likewise.
34783 2013-01-28  Pádraig Brady  <P@draigBrady.com>
34785         mountlist: don't consider "devtmpfs" as dummy
34786         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
34787         as there is storage associcated with it.
34789 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
34791         futimens-tests, utimens-tests: Depend on gettext.
34792         This works around a problem introduced in my 2013-01-12 patch,
34793         which added @LIBINTL@ to these modules.
34794         * modules/futimens-tests (Depends-on):
34795         * modules/utimens-tests (Depends-on): Add gettext.
34797 2013-01-26  Eric Blake  <eblake@redhat.com>
34799         test-getpeername: fix typo
34800         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
34802 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
34804         bootstrap: remove the need for a sorted .gitignore file
34805         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
34806         rename to insert_if_absent(), so that we don't need or generate
34807         a sorted .gitignore file.  We do require a .gitignore with no
34808         existing duplicate entries and enforce that.
34809         (sort_patterns): Remove this function as we now use the simpler
34810         technigue of inserting blacklist entries at the top of the file,
34811         assuming gnulib won't be inserting !whitelist entries.
34813 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34815         readlinkat: don't depend on gl_FUNC_OPENAT
34816         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
34817         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
34818         renameat.m4, symlinkat.m4; but one thing at a time.
34820         statat: new module, split out from fstatat
34821         GNU Emacs needs the POSIX-specified fstatat, but not the
34822         gnulib-specified statat and lstat.  Split the latter two into a
34823         new module 'statat'.
34824         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
34825         * lib/openat.h, lib/statat.c (STATAT_INLINE):
34826         Rename from FSTATAT_INLINE. All uses changed.
34827         * modules/fstatat (Files): Remove lib/statat.c.
34828         (gl_MODULE_INDICATOR([fstatat])): Remove.
34829         (lib_SOURCES): Remove.
34830         (Maintainer): Add self.
34831         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
34832         * tests/test-fstatat.c (BASE): Don't define if already defined.
34833         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
34835 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34837         tests: don't assume fd 99 is closed
34838         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
34839         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
34840         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
34841         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
34842         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
34843         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
34844         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
34845         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
34846         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
34847         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
34848         * tests/test-fwrite.c, tests/test-getpeername.c:
34849         * tests/test-getsockname.c, tests/test-getsockopt.c:
34850         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
34851         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
34852         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
34853         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
34854         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
34855         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
34856         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
34857         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
34858         * tests/test-unlinkat.c, tests/test-unlockpt.c:
34859         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
34860         Close file descriptor 99, instead of assuming it's already closed.
34862 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
34864         stpncpy: port to OS X 10.8
34865         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
34866         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
34868 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34870         unistd: port to recent mingw
34871         * lib/unistd.in.h: Remove special invocation convention for mingw,
34872         which breaks for the latest mingw version.  See John W. Eaton in
34873         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
34875         largefile: port better to Mac OS X 10.5
34876         This patch is backported from Autoconf git.
34877         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
34878         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
34879         with ino_t size being different for configuration time versus
34880         build/run time.  Problem reported by PHO in
34881         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
34883 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34885         doc: clarify -Werror
34886         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
34887         clarify that it's intended for developers, not for ordinary builds,
34888         and mention --enable-gcc-warnings as one possible use.
34890 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
34892         stdint: fix build with Android's Bionic fox x86
34893         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
34894         was already included as _SSIZE_T_DEFINED_ might also be defined
34895         in include/machine/_types.h, which is included by stdio.h
34897 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
34899         net_if-tests: port to Solaris 7 + GCC 3.4.6
34900         Problem reported by Tom G. Christensen in
34901         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
34902         * tests/test-net_if.c (ni): Move to next the code that uses it,
34903         so that it's declared only if needed.
34905 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
34907         net_if-tests: port to older Solaris
34908         Problem reported by Tom G. Christensen in
34909         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34910         * modules/net_if-tests (NET_IF_LIB): New substitution.
34911         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
34912         (HAVE_IF_NAMEINDEX): New C macro.
34913         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
34915         system-quote-tests: port to older Solaris
34916         Problem reported by Tom G. Christensen in
34917         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34918         * tests/test-system-quote-child.c (fopen, fread): Undef.
34920         c-xvasprintf etc.: fix link errors on older Solaris
34921         These need to link with @LIBINTL@ to get libintl_gettext.
34922         Problem reported by Tom G. Christensen in
34923         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34924         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
34925         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
34926         * modules/futimens-tests (test_futimens_LDADD):
34927         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
34929 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
34931         locale: port to Solaris 2.6 and 7 + GNU gettext
34932         * lib/locale.in.h: Just include_next <locale.h> when
34933         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
34934         when combining the localename module with GNU gettext 0.18.2.
34935         Problem reported by Tom G. Christensen in
34936         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
34938 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34940         stdlib: port to Solaris 2.6
34941         Also, the code worked on Solaris 7 through 9 only by accident.
34942         Problem reported by Tom G. Christensen in
34943         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
34944         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
34945         simply include the system stdlib.h.
34946         * lib/getopt.in.h (__need_system_stdlib_h):
34947         * lib/pthread.in.h (__need_system_stdlib_h):
34948         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
34949         Define when including <stdlib.h>, to avoid problems at least for
34950         the pthread case on Solaris 2.6 and 7.  These .h files can get by
34951         with the system stdlib.h.
34953 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
34955         doc: update main copyright year
34956         * doc/gnulib.texi: Update copyright date.
34958         doc: improve ISO 8601 discussion
34959         * doc/parse-datetime.texi (Combined date and time of day items):
34960         Specify more carefully what formats are supported and what is
34961         done with excess precision.
34963 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
34965         doc: avoid small caps
34966         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
34967         they're more trouble than they're worth.  Suggested by Karl Berry
34968         in <http://bugs.gnu.org/13360>.
34970         regex: conform to strict C
34971         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
34972         From Aharon Robbins.
34974         gnulib-tool: fix incompatibility with autopoint 0.18.2
34975         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
34976         Problem reported by Tom G. Christensen in
34977         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
34979 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34981         fprintftime: bring back and reword fwrite comment
34982         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
34984         stdio: remove now-unnecessary stdio.c
34985         Since stdio.in.h no longer uses inline functions, we no longer
34986         need to compile the extern versions.
34987         * lib/stdio.c: Remove.
34988         * modules/stdio (Files): Remove lib/stdio.c.
34989         (lib_SOURCES): Remove.
34991         unicodeio: depend on stdio, not ignore-value
34992         * lib/unicodeio.c: Do not include ignore-value.h.
34993         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
34994         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
34996         fprintftime: depend on stdio, not ignore-value
34997         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
34998         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
34999         since the stdio module arranges to silence that warning now.
35000         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
35002 2012-10-04  Simon Josefsson  <simon@josefsson.org>
35004         stdint-tests: Fix expanded-before-required-warning.
35005         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
35007 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
35009         fwrite: silence __wur only for older glibc versions
35010         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
35011         This will help us remove this workaround some time in the far future.
35013 2013-01-03  Eric Blake  <eblake@redhat.com>
35015         fwrite: silence __wur without using inline
35016         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
35017         just gcc, and in a way that avoids inline issues.
35018         * modules/stdio (Depends-on): Drop extern-inline.
35020 2013-01-03  Jim Meyering  <jim@meyering.net>
35022         update-copyright: avoid copyright notice date corruption
35023         Given a sequence of copyright year numbers in which the final
35024         one was a two-digit number that happened to be a substring of
35025         a preceding four-digit year number, we would mistakenly update
35026         the substring (from two- to four-digit) rather than the two-digit
35027         number at the end, which, combined with the addition of the current
35028         4-digit year number would yield two 5-digit year numbers, e.g.,
35029         here, it would convert the first "99" to "1999, 2013" rather than
35030         the final one:
35031           1991, 99
35032           11999, 20131, 1999
35033         * build-aux/update-copyright: Tighten a regexp.
35034         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
35035         Reported by Joseph Myers in
35036         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
35038 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
35040         regex: omit needless signed-pointer casts
35041         * lib/regcomp.c (build_charclass, build_charclass_op):
35042         Use char *, not unsigned char *, for class name and extra.
35043         The char values are always nonnegative so there's no need to
35044         insist on unsigned char * here, and using char * removes the need
35045         for casts.  Reported by Aharon Robbins in
35046         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35048         regex: support Gawk, which never uses alloca
35049         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
35050         Do not include in this case.  Gawk doesn't supply a substitute
35051         alloca.h and doesn't need one.
35053         regex: port __libc_lock_define usage to C89
35054         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
35055         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
35056         does not conform to C89, as it has an empty macro argument.
35057         Reported by Aharon Robbins in
35058         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35060 2013-01-01  Eric Blake  <eblake@redhat.com>
35062         maint: update all copyright year number ranges
35063         Run "make update-copyright".
35065         version-etc: bump copyright year reported in --version
35066         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
35068 2012-12-31  Eric Blake  <eblake@redhat.com>
35070         sigprocmask-tests: skip test if pid is unexpectedly large
35071         * tests/test-sigprocmask.c (main): Add range check.
35073         git-version-gen: avoid test -z portability glitch
35074         * build-aux/git-version-gen: Prefer portable test spelling, since
35075         git-version-gen is run on more than just developer machines.
35077 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
35079         git-version-gen: add --fallback option to use if git is not present
35080         * build-aux/git-version-gen: Add support for the new option --fallback,
35081         which comes into play when there is no $tarball_version_file and
35082         git is not working.
35083         (scriptversion): Update.
35085         maint.mk: handle missing git with more grace
35086         * top/maint.mk (no-submodule-changes, public-submodule-commit):
35087         Quietly proceed if git is not present.
35089 2012-12-31  Eric Blake  <eblake@redhat.com>
35091         dup2: work around cygwin bug
35092         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
35093         * lib/dup2.c (rpl_dup2): Work around it.
35094         * doc/posix-functions/dup2.texi (dup2): Document it.
35096 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
35098         regex: remove unnecessary dependency on localcharset.h
35099         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
35100         hasn't been needed for years.
35101         * modules/regex (Depends-on): Remove localcharset.
35103         regex: revert single-byte change
35104         * lib/regexec.c (check_node_accept_bytes): Revert previous change
35105         to this function.  This was alredy fixed in a different way, at
35106         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
35107         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
35108         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
35110         regex: simplify based on Gawk version
35111         * lib/regex_internal.c (re_dfa_add_node): Simplify.
35112         Reported by Aharon Robbins in
35113         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35115 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35117         regex: check that pattern char is single-byte
35118         Reported by Aharon Robbins in
35119         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35120         * lib/regexec.c (check_node_accept_bytes):
35121         Return 0 if the pattern string has a multibyte character here.
35123         regex: implement rational ranges
35124         Reported by Aharon Robbins in
35125         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35126         * lib/regcomp.c (build_range_exp) [!_LIBC]:
35127         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
35128         Implement rational ranges.
35130         regex: avoid redefining __wctype
35131         Reported by Aharon Robbins in
35132         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35133         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
35134         #undef before defining.
35136         regex: port to hosts where malloc (0) == NULL
35137         Reported by Aharon Robbins in
35138         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35139         * lib/regex_internal.c (re_node_set_alloc):
35140         Don't assume that malloc (0) yields nonnull.
35141         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
35142         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
35143         * modules/regex (Files): Add m4/eealloc.m4.
35145         regex: port to C89
35146         Reported by Aharon Robbins in
35147         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35148         * lib/regcomp.c (init_word_char): Declaration before statement.
35150         regex: merge glibc changes
35151         Also, copy the license wording from glibc.  This simplifies
35152         merging changes.  gnulib-tool will change the wording to GPL as
35153         appropriate, when importing it to other packages.  The only
35154         glibc change made since the last merge, which needs merging, is:
35155         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
35156         * lib/regex_internal.h (gettext): Remove use of INTUSE.
35158         * users.txt: Add Emacs.
35160         doc: omit mention of version when not needed
35161         * doc/gnulib-intro.texi (Portability and Application Code):
35162         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
35163         Don't mention particular dates or versions when not necessary, so
35164         that the documentation won't go out of date so quickly.
35166         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
35168 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
35170         bootstrap: pass --force to autoreconf.
35171         * build-aux/bootstrap (AUTORECONFFLAGS): New.
35172         Add "--force" so that Automake's ylwrap and other such tools
35173         be updated at each bootstrap invocation.
35174         Use it.
35176 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
35178         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
35179         The earlier patch forgot to update one of the #if conditions, causing
35180         a problem on Debian testing i386 reported by Mats Erik Andersson
35181         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
35182         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
35183         (__argp_fmtstream_puts, argp_fmtstream_puts)
35184         (__argp_fmtstream_write, argp_fmtstream_write)
35185         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
35187         * doc/gnulib-readme.texi: Minor fixups.
35188         (Portability guidelines): Modernize URLs.  Remove some repetition.
35189         (Indent with spaces not TABs): Reword to avoid too-long lines.
35190         Remove some '@ifset standalone' stuff that isn't used.
35192         * doc/gnulib-readme.texi (Portability guidelines):
35193         ctype.h, not ctime.h.
35195         Correct name of POSIX.1-2001.
35196         * doc/posix-functions/fgetc.texi (fgetc):
35197         * doc/posix-functions/fgets.texi (fgets):
35198         * doc/posix-functions/fread.texi (fread):
35199         * doc/posix-functions/fscanf.texi (fscanf):
35200         * doc/posix-functions/getc.texi (getc):
35201         * doc/posix-functions/getchar.texi (getchar):
35202         * doc/posix-functions/scanf.texi (scanf):
35203         POSIX.1-2001, not POSIX-2001.
35205         doc: move README into manual
35206         * README: Move contents to new file doc/gnulib-readme.texi.
35207         Replace with a one-line summary.
35208         * doc/gnulib.texi (Brief Overview): New section,
35209         with old intro preface.  Include gnulib-readme.texi for contents.
35210         (Philosophy): Rename from "Introduction", since this
35211         section no longer introduces the rest.  Write a new preface.
35212         * doc/gnulib-readme.texi: New file, with the old contents of
35213         README texinfo-ized.  This way, the README info appears
35214         in the online and printed manual.
35216 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
35218         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
35219         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
35220         c_vasprintf() prototype.
35222 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
35224         c-vasprintf: Fix "empty declaration" warning reported by GCC.
35225         * lib/c-vasprintf.h: Remove stray semicolon.
35227 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
35229         gettext: avoid obsolete macro AM_PROG_MKDIR_P
35230         It is obsolete and is planned to be removed from Automake 1.14; see
35231         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
35232         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
35233         (installdirs-data, installdirs-data-yes):
35234         Use $(MKDIR_P), not $(mkdir_p).
35235         * m4/intl.m4 (AM_INTL_SUBDIR):
35236         * m4/po.m4 (AM_PO_SUBDIRS):
35237         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
35239 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
35241         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
35242         On this platform, we are not optimizing but we are using
35243         the substitute for extern inlines, so compile as if
35244         C99-style extern inline, or a substitute, is available.
35245         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
35246         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
35247         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
35248         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
35249         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
35250         Declare as ARGP_FS_EI, not as extern.
35251         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
35252         (__option_is_short, _option_is_end, __option_is_end)
35253         [!_LIBC && __USE_EXTERN_INLINES]:
35254         Declare as ARGP_EI, not as extern.
35256 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
35258         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
35259         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
35260         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
35261         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
35262         ...), as the latter is fatal with older Autoconfs.
35263         Problem reported and fix suggested by Eric Blake in thread starting at
35264         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
35266 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
35268         AC_PROG_MKDIR_P: don't workaround if not buggy
35269         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
35270         Define only for Autoconf versions before 2.62.
35271         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
35272         undocumented m4_PACKAGE_VERSION, for consistency with the
35273         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
35274         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
35275         was introduced in 2.62.
35277 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
35279         New 'c-*printf' modules for formatted output in C locale.
35281         New module 'c-vasnprintf'.
35282         * modules/c-vasnprintf: New file.
35283         * lib/c-vasnprintf.c: New file.
35284         * lib/c-vasnprintf.h: New file.
35286         New module 'c-snprintf'.
35287         * modules/c-snprintf: New file.
35288         * modules/c-snprintf-tests: New file.
35289         * lib/c-snprintf.c: New file.
35290         * lib/c-snprintf.h: New file.
35291         * tests/test-c-snprintf.c: New file.
35292         * tests/test-c-snprintf.sh: New file.
35294         New module 'c-vsnprintf'.
35295         * modules/c-vsnprintf: New file.
35296         * modules/c-vsnprintf-tests: New file.
35297         * lib/c-vsnprintf.c: New file.
35298         * lib/c-vsnprintf.h: New file.
35299         * tests/test-c-vsnprintf.c: New file.
35300         * tests/test-c-vsnprintf.sh: New file.
35302         New module 'c-vasprintf'.
35303         * modules/c-vasprintf: New file.
35304         * modules/c-vasprintf-tests: New file.
35305         * lib/c-asprintf.c: New file.
35306         * lib/c-vasprintf.c: New file.
35307         * lib/c-vasprintf.h: New file.
35308         * tests/test-c-vasprintf.c  +: New file.
35309         * tests/test-c-vasprintf.sh: New file.
35311         New module 'c-xvasprintf'.
35312         * modules/c-xvasprintf: New file.
35313         * modules/c-xvasprintf-tests: New file.
35314         * lib/c-xasprintf.c: New file.
35315         * lib/c-xvasprintf.c: New file.
35316         * lib/c-xvasprintf.h: New file.
35317         * tests/test-c-xvasprintf.c: New file.
35318         * tests/test-c-xvasprintf.sh: New file.
35320 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35322         argp: better 'inline'
35323         Use extern-inline module to declare extern inline functions.
35324         This avoids some bogus warning diagnostics.  Problem discovered
35325         when modifying GNU tar to use the manywarnings module.
35326         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
35327         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
35328         Define based on extern-inline.
35329         * modules/argp (Depends-on): Add extern-inline.
35331 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
35333         filemode, sys_stat: Handle MPX files a la AIX.
35334         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
35335         * lib/sys_stat.in.h (S_ISMPX): New macro.
35336         * tests/test-sys_stat.c: Add tests for MPX files.
35338 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35340         x-to-1: honor $PERL
35341         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
35342         a chance to use his preferred version of Perl.  This is typically
35343         required by Darwin users whose default /usr/bin/perl does not have all
35344         the libraries required by help2man, and who need to use their MacPorts
35345         installation of Perl instead.
35347 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35349         gnu-web-doc-update: add all the new files, even in new directories
35350         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
35351         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
35352         Use it.
35353         (main): Don't use cvsutils to get the list of unknown files,
35354         just add all the existing files and directories.
35356 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35358         gnu-web-doc-update: improve --help
35359         * build-aux/gnu-web-doc-update: Move comments into --help.
35361 2012-12-07  Eric Wong  <normalperson@yhbt.net>
35363         mountlist: recognize more "dummy" file systems
35364         * lib/mountlist.c (ME_DUMMY_0):
35365         Add these dummy FS names to the list:
35366         - "debugfs" virtual filesystem for kernel debugging
35367         - "devpts" PTY slave filesystem
35368         - "devtmpfs" device filesystem on top of tmpfs/ramfs
35369         - "fusectl" control filesystem for FUSE
35370         - "mqueue" enumerates POSIX message queues
35371         - "rpc_pipefs" kernel <-> userspace bridge for NFS
35372         - "sysfs" is for exporting kernel objects
35373         - "devfs" device filesystem for Linux 2.4 and FreeBSD
35375 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
35377         extern-inline: avoid incompatibility with Darwin Libc
35378         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
35379         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
35380         Problem reported by Akim Demaille in
35381         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
35383 2012-12-11  Simon Josefsson  <simon@josefsson.org>
35385         gnupload: Work with GnuPG using gpg-agent (for smartcards).
35386         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
35387         let it handle password prompting.
35389 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
35391         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
35392         * lib/canonicalize.c (canonicalize_filename_mode):
35393         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
35394         fetching the current directory.  Don't overrun the beginning of
35395         rpath if there's no slashes after the MS-Windows drive letter.
35397 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
35399         maint.mk: avoid extra forks
35400         * top/maint.mk (_cfg_mk): The GNU make manual documents that
35401         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
35402         So use that instead of "$(shell test -f FILE && echo FILE)".
35404 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
35406         vasnprintf: fix ASCII_ONLY typo
35407         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35408         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35409         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35410         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
35411         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
35413 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
35415         list, oset, xlist, xoset: fix extern inline issue with C99
35416         This was introduced by my recent changes for 'inline'.
35417         Problem reported for gettext by Daiki Ueno in
35418         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
35419         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
35420         (gl_list_nx_create, gl_list_size, gl_list_node_value)
35421         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
35422         (gl_list_previous_node, gl_list_get_at)
35423         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
35424         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
35425         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
35426         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
35427         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
35428         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
35429         (gl_list_iterator_free, gl_sortedlist_search)
35430         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
35431         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
35432         (gl_sortedlist_remove):
35433         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
35434         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
35435         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
35436         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
35437         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
35438         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
35439         (gl_list_add_at, gl_sortedlist_add):
35440         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
35441         Wrap these extern decls inside "#if 0", because they are implemented
35442         as inline functions, and extern inline is not what's wanted here.
35443         It would simplify these .h files to remove the extern decls entirely,
35444         although a downside would be less-clear separation between
35445         specification and implementation.
35447 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
35449         sys_stat: no 'static inline'
35450         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
35451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
35453         extern-inline: no 'static inline'
35454         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35455         Do not require AC_C_INLINE.
35456         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
35457         'static inline', for older compilers.
35459         snippet/warn-on-use: no 'static inline'
35460         * build-aux/snippet/warn-on-use.h:
35461         Remove unnecessary 'inline' in comment.
35463         rbtree-list, rbtreehash-list: no 'static inline'
35464         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
35465         * lib/gl_anytree_list2.h (node_at):
35466         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
35467         (gl_oset_first, add_nodes_to_buckets):
35468         Now static, not static inline.
35470         regex: no 'static inline'
35471         * lib/regex_internal.c (calc_state_hash):
35472         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
35473         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
35474         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
35475         Now static, not static inline.
35476         (inline) [__GNUC__ < 3 && _LIBC]:
35477         Remove macro; no longer needed.
35479         xvasprintf: no 'static inline'
35480         * lib/xvasprintf.c (xstrcat):
35481         Now static, not static inline.
35482         * m4/xvasprintf.m4 (gl_XVASPRINTF):
35483         Do not require AC_C_INLINE.
35485         parse-datetime, parse-duration: no 'static inline'
35486         * lib/parse-datetime.y (to_uchar):
35487         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
35488         (scale_n_add):
35489         Now static, not static inline.
35490         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
35491         * modules/parse-duration (configure.ac):
35492         Do not require AC_C_INLINE.
35494         getaddrinfo: no 'static inline'
35495         * lib/getaddrinfo.c (validate_family):
35496         Now static, not static inline.
35497         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
35498         Do not require AC_C_INLINE.
35500         ftruncate, fts, lstat, openat, raise: no 'static inline'
35501         * lib/ftruncate.c (chsize_nothrow):
35502         * lib/fts.c (opendirat, diropen):
35503         * lib/lstat.c (orig_lstat):
35504         * lib/openat.c (orig_openat):
35505         * lib/raise.c (raise_nothrow):
35506         Now static, not static inline.
35507         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
35508         * m4/fts.m4 (gl_FUNC_FTS_CORE):
35509         * m4/lstat.m4 (gl_PREREQ_LSTAT):
35510         * m4/openat.m4 (gl_PREREQ_OPENAT):
35511         * m4/raise.m4 (gl_PREREQ_RAISE):
35512         Do not require AC_C_INLINE.
35514         fflush, stat: no 'static inline'
35515         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35516         (clear_ungetc_buffer, disable_seek_optimization)
35517         (restore_seek_optimization, update_fpos_cache):
35518         * lib/stat.c (orig_stat):
35519         Now static, not static inline.
35520         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
35521         (update_fpos_cache):
35522         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
35523         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
35524         * m4/stat.m4 (gl_PREREQ_STAT):
35525         Do not require AC_C_INLINE.
35527         error, filevercmp: no 'static inline'
35528         * lib/error.c (is_open, flush_stdout):
35529         * lib/filevercmp.c (order):
35530         Now static, not static inline.
35531         * m4/error.m4 (gl_PREREQ_ERROR):
35532         * modules/filevercmp (configure.ac):
35533         Do not require AC_C_INLINE.
35535         dup, execute, fatal-signal, etc.: no 'static inline'
35536         * lib/dup.c (dup_nothrow):
35537         * lib/execute.c (nonintr_close, nonintr_open):
35538         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
35539         * lib/fopen.c (orig_fopen):
35540         * lib/freadseek.c (freadptrinc):
35541         * lib/freopen.c (orig_freopen):
35542         * lib/fstat.c (orig_fstat, fstat_nothrow):
35543         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
35544         (get_rusage_as_via_iterator):
35545         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
35546         * lib/getdtablesize.c (_setmaxstdio_nothrow):
35547         * lib/isatty.c (_isatty_nothrow):
35548         * lib/open.c (orig_open):
35549         * lib/read.c (read_nothrow):
35550         * lib/sigprocmask.c (signal_nothrow):
35551         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
35552         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
35553         * lib/wait-process.c (unregister_slave_subprocess):
35554         * lib/write.c (write_nothrow):
35555         Now static, not static inline.
35556         * lib/spawn-pipe.c (nonintr_open): Define only if
35557         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
35558         * m4/dup.m4 (gl_PREREQ_DUP):
35559         * m4/execute.m4 (gl_EXECUTE):
35560         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
35561         * m4/fopen.m4 (gl_PREREQ_FOPEN):
35562         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
35563         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
35564         * m4/fstat.m4 (gl_PREREQ_FSTAT):
35565         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
35566         * m4/isatty.m4 (gl_PREREQ_ISATTY):
35567         * m4/open.m4 (gl_PREREQ_OPEN):
35568         * m4/read.m4 (gl_PREREQ_READ):
35569         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
35570         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
35571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
35572         * m4/wait-process.m4 (gl_WAIT_PROCESS):
35573         * m4/write.m4 (gl_PREREQ_WRITE):
35574         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
35575         Do not require AC_C_INLINE.
35577         c-strtod, memcoll, readutmp: no 'static inline'
35578         * lib/c-strtod.c (c_locale):
35579         * lib/memcoll.c (strcoll_loop):
35580         * lib/readutmp.c (desirable_utmp_entry):
35581         Now static, not static inline.
35582         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
35583         * m4/memcoll.m4 (gl_MEMCOLL):
35584         * m4/readutmp.m4 (gl_READUTMP):
35585         Do not require AC_C_INLINE.
35587         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
35588         * lib/arctwo.c (to_uchar):
35589         * lib/md4.c (set_uint32):
35590         * lib/md5.c (set_uint32):
35591         * lib/sha1.c (set_uint32):
35592         * lib/sha256.c (set_uint32):
35593         * lib/sha512.c (set_uint64):
35594         Now static, not static inline.  This is a bit simpler, and doesn't
35595         affect performance with GCC and default optimization.
35596         * m4/arctwo.m4 (gl_ARCTWO):
35597         * m4/md4.m4 (gl_MD4):
35598         * m4/md5.m4 (gl_MD5):
35599         * m4/sha1.m4 (gl_SHA1):
35600         * m4/sha256.m4 (gl_SHA256):
35601         * m4/sha512.m4 (gl_SHA512):
35602         Do not require AC_C_INLINE.
35604         cond, lock, thread: better 'inline'
35605         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
35606         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
35607         New macros.  Use them instead of static inline, for header functions.
35608         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
35609         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35610         * lib/glthread/lock.c (gl_waitqueue_init)
35611         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35612         * lib/glthread/thread.c (get_current_thread_handle):
35613         Change 'static inline' to 'inline'.
35614         * lib/glthread/cond.h, lib/glthread/thread.h:
35615         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35616         * m4/cond.m4 (gl_COND):
35617         * m4/lock.m4 (gl_PREREQ_LOCK):
35618         * m4/thread.m4 (gl_THREAD):
35619         Do not require AC_C_INLINE.
35620         * modules/cond, modules/thread (Depends-on): Add extern-inline.
35622         chdir-long, cycle-check, savewd: better 'inline'
35623         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
35624         (find_non_slash):
35625         * lib/cycle-check.c (is_zero_or_power_of_two):
35626         * lib/savewd.c (savewd_delegating):
35627         Change 'static inline' to 'inline'.
35628         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
35629         Replace all remaining uses of 'static inline' with it.
35630         * lib/savewd.h:
35631         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35632         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
35633         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35634         * m4/savewd.m4 (gl_SAVEWD):
35635         Do not require AC_C_INLINE.
35636         * modules/savewd (Depends-on): Add extern-inline.
35638         base32, base64: no need for 'inline'
35639         * lib/base32.c (to_uchar, get_8, decode_8):
35640         * lib/base64.c (to_uchar, get_4, decode_4):
35641         Change 'static inline' to 'inline'.
35642         * m4/base32.m4 (gl_PREREQ_BASE32):
35643         * m4/base64.m4 (gl_PREREQ_BASE64):
35644         Do not require AC_C_INLINE.
35646         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
35647         * lib/gl_array_oset.c (gl_array_nx_add_at):
35648         (gl_array_remove_at):
35649         * lib/gl_linkedhash_list.c (hash_resize_after_add)
35650         (add_to_bucket, remove_from_bucket):
35651         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
35652         Change 'static inline' to 'static', as it's simpler to omit
35653         'inline' unless there's a significant performance advantage.
35655         list, oset, xlist, xoset, xsublist: simplify via extern inline
35656         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
35657         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
35658         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
35659         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
35660         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
35661         New macro.  Replace all uses of 'static inline' with it.
35662         [HAVE_INLINE]: Implement functions as *_INLINE functions,
35663         instead of as macros FOO that are defined to static inline
35664         functions FOO_inline.
35665         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
35666         * lib/gl_xsublist.c:
35667         Reimplement from scratch, by defining the corresponding *_INLINE
35668         macro and including the corresponding .h file.  This is simpler.
35669         * modules/list, modules/oset, modules/xlist, modules/xoset:
35670         (Files): Remove m4/gl_list.m4.
35671         (configure.ac): Remove gl_LIST.
35672         * m4/gl_list.m4: Remove.
35673         * modules/list, modules/oset, modules/xlist, modules/xoset:
35674         * modules/xsublist:
35675         (Depends-on): Depend on extern-inline, not inline.
35677         xalloc: better 'inline'
35678         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
35679         New macro.  Replace all uses of 'static inline' with it.
35680         (static_inline): Remove.
35681         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
35682         Let 'extern inline' do the work automatically, instead of doing
35683         it by hand.
35684         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
35685         Remove.  All uses removed.
35686         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
35688         gethrxtime: better 'inline'
35689         * lib/xtime.c: New file.
35690         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
35691         * lib/xtime.h (XTIME_INCLUDE):
35692         New macros.  Replace all uses of 'static inline' with them.
35693         * lib/gethrxtime.c (gethrxtime): Define only if
35694         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
35695         this source file is now always compiled, because of the extern inline.
35696         * lib/gethrxtime.h, lib/xtime.h:
35697         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35698         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
35699         if gethrtime works, as they're not needed in that case.
35700         (gl_XTIME): Do not require AC_C_INLINE.
35701         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
35702         compiled now.  Move the check into gl_GETHRXTIME.
35703         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
35704         (Depends-on): Add extern-inline.
35705         (configure.ac): gethrxtime is always compiled now.
35706         (lib_SOURCES): Add gethrxtime.c.
35708         wctype-h: better 'inline'
35709         * lib/wctype-h.c: New file.
35710         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
35711         New macro.  Replace all uses of 'static inline' with it.
35712         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35713         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
35714         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
35715         (Depends-on): Add extern-inline.
35717         unistd: better 'inline'
35718         * lib/unistd.c: New file.
35719         * lib/unistd.in.h (_GL_UNISTD_INLINE):
35720         New macro.  Replace all uses of 'static inline' with it.
35721         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35722         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
35723         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
35724         (Depends-on): Add extern-inline.
35726         sys_socket: better 'inline'
35727         * lib/sys_socket.c: New file.
35728         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
35729         New macro.  Replace all uses of 'static inline' with it.
35730         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35731         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
35732         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
35733         (Depends-on): Add extern-inline.
35735         stdio: better 'inline'
35736         * lib/stdio.c: New file.
35737         * lib/stdio.in.h (_GL_STDIO_INLINE):
35738         New macro.  Replace all uses of 'static inline' with it.
35739         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35740         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
35741         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
35742         (Depends-on): Add extern-inline.
35744         sigaction: better 'inline'
35745         * lib/sig-handler.c: New file.
35746         * lib/sig-handler.h (SIG_HANDLER_INLINE):
35747         New macro.  Replace all uses of 'static inline' with it.
35748         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35749         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
35750         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
35751         (Depends-on): Add extern-inline.
35753         selinux-h: better 'inline'
35754         * lib/se-context.c, lib/se-selinux.c: New files.
35755         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
35756         * lib/se-context.in.h (SE_CONTEXT_INLINE):
35757         New macro.  Replace all uses of 'static inline' with it.
35758         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35759         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
35760         New macro.  Replace all uses of 'static inline' with it.
35761         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35762         * modules/selinux-h (Files, lib_SOURCES):
35763         Add lib/se-context.c, lib/se-selinux.c.
35764         (Depends-on): Add extern-inline.
35765         (configure.ac): Do not require AC_C_INLINE.
35767         pthread: better 'inline'
35768         * lib/pthread.c: New file.
35769         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
35770         New macro.  Replace all uses of 'static inline' with it.
35771         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35772         * m4/pthread.m4 (gl_PTHREAD_CHECK):
35773         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
35774         * modules/pthread (Files): Add lib/pthread.c.
35775         (Depends-on): Add extern-inline.
35777         math: better 'inline'
35778         * lib/math.c: New file.
35779         * lib/math.in.h (_GL_MATH_INLINE):
35780         New macro.  Replace all uses of 'static inline' with it.
35781         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35782         * m4/math_h.m4 (gl_MATH_H):
35783         Do not require AC_C_INLINE.
35784         * modules/math (Files, lib_SOURCES):
35785         Add lib/math.c.
35786         (Depends-on): Add extern-inline.
35788         count-one-bits: better 'inline'
35789         * lib/count-one-bits.c: New file.
35790         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
35791         New macro.  Replace all uses of 'static inline' with it.
35792         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35793         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
35794         Do not require AC_C_INLINE.
35795         * modules/count-one-bits (Files, lib_SOURCES):
35796         Add lib/count-one-bits.c.
35797         (Depends-on): Add extern-inline.
35799         count-leading-zeros: better 'inline'
35800         * lib/count-leading-zeros.c: New file.
35801         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
35802         New macro.  Replace all uses of 'static inline' with it.
35803         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35804         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
35805         Do not require AC_C_INLINE.
35806         * modules/count-leading-zeros (Files, lib_SOURCES):
35807         Add lib/count-leading-zeros.c.
35808         (Depends-on): Add extern-inline.
35810         bitrotate: better 'inline'
35811         * lib/bitrotate.c: New file.
35812         * lib/bitrotate.h (BITROTATE_INLINE):
35813         New macros.
35814         Replace all uses of 'static inline' with them.
35815         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35816         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
35817         (Depends-on): Add extern-inline.
35818         (configure.ac): Do not require AC_C_INLINE.
35820 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
35822         maint.mk: avoid gratuitous failure
35823         Reported by Stefano Lattarini in
35824         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
35825         * top/maint.mk (public-submodule-commit): Quote more safely.
35827 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
35829         canonicalize, canonicalize-lgpl: support MS-Windows file names
35830         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
35831         for test cases, which it'd be nice to add at some point.
35832         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
35833         * lib/canonicalize.c (canonicalize_filename_mode):
35834         * lib/canonicalize-lgpl.c (__realpath):
35835         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
35836         slash is at the beginning of the file name.  Use ISSLASH, instead
35837         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
35838         the first character with '/'.  Test for
35839         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
35840         with a drive letter.
35841         * lib/canonicalize.c (SLASHES): New macro.
35842         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
35844 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
35846         fts: introduce FTS_VERBATIM
35847         * lib/fts_.h (FTS_VERBATIM): New bit flag.
35848         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
35849         * lib/fts.c (fts_open): Honor it.
35851 2012-11-09  Pádraig Brady  <P@draigBrady.com>
35853         getlogin-tests: allow errno == ENXIO
35854         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35855         with errno == ENXIO (No controlling tty).
35856         getlogin_r-tests: Likewise. Also allow errno == ENOENT
35857         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
35858         with errno == ENOENT.  This was reported to happen in various
35859         situations on GNU/Linux.
35861 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
35863         getlogin-tests: allow errno == ENOENT
35864         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35865         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
35866         when running a test in an Emacs shell buffer.
35868 2012-11-08  Jim Meyering  <jim@meyering.net>
35870         tests/nap.h: avoid warning about unused variable
35871         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
35873         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
35874         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
35875         white space before each of the special-cased file names, to avoid
35876         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
35877         in http://bugs.gnu.org/12830.
35879 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
35881         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
35882         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
35883         fails with errno == EBADF when fd is opened with O_PATH.
35884         Reported by Jim Meyering in
35885         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
35886         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35887         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
35889 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
35891         test-utimens: speed up by taking shorter naps
35892         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
35893         New functions.
35894         (nap): Use them, to do a better job of guessing the delay.
35895         On Fedora 17 with ext4 atop md atop hard disks, this made
35896         test-utimens run 10x faster, because the test napped for
35897         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
35898         <http://bugs.gnu.org/12820#11>.
35900 2012-11-07  Jim Meyering  <jim@meyering.net>
35902         mountlist.c: fix a compilation failure
35903         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
35904         I introduced while transforming commit v0.0-7683-g613bcb6
35906 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35908         errno: port to LynxOS 178 2.2.2
35909         Problem reported by Joel Brobecker in
35910         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
35911         * doc/posix-headers/errno.texi (errno.h): Document this.
35912         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
35913         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
35914         Supply a string for EILSEQ.
35915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
35917 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35919         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
35920         Linux kernel 2.6.39 introduced O_PATH (see
35921         <http://lwn.net/Articles/433854/>) and this is a better fallback
35922         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
35923         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35924         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
35925         * lib/fcntl.in.h (O_ACCMODE):
35926         * tests/test-fcntl-h.c (main):
35927         Do not reject O_ACCMODE merely because it has more than the
35928         minimal number of bits, as POSIX allows extensions here.
35930 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
35932         mountlist: do not classify a bind-mounted dir entry as "dummy"
35933         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
35934         the "none"-testing clause.
35935         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
35936         exception for bind-mounted directories.
35938 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
35940         quote: provide a means to escape strings with nul characters
35941         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
35942         (quote, quote_n): Rename formal arguments for consistency with
35943         quotearg.
35945 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35947         test-raise: don't assume 199 is an invalid signal
35948         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
35950         sh-quote-tests: port to Solaris 9
35951         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
35952         Problem reported by Dagobert Michelsen in
35953         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
35955 2012-10-28  Jim Meyering  <jim@meyering.net>
35957         maint.mk: rename a new configurable variable
35958         * top/maint.mk (_gl_translatable_string_re): Rename from
35959         translation-markers: _gl_ prefix to insulate from user Makefile code,
35960         and the _re suffix to inform that it's a regular expression.
35962 2012-10-26  Eric Blake  <eblake@redhat.com>
35964         maint.mk: let packages tweak sc_po_check pattern
35965         * top/maint.mk (sc_po_check): Add translation-markers, to allow
35966         finding files with other translation markers.
35968 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35970         euidaccess: speed up 'configure' on GNU hosts
35971         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
35972         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
35973         it's needed only in this case.  Use AC_CHECK_DECLS, not
35974         AC_CHECK_DECLS_ONCE.
35975         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
35976         or AC_REQUIRE for AC_FUNC_GETGROUPS.
35978         * lib/regexec.c (re_search_internal): Fix grammar in comment.
35980 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
35982         fchmodat, fchownat, fstatat: port to non-inlining compilers
35983         Problem reported for FreeBSD 9 by Jim Meyering in
35984         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
35985         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
35986         New files, which define FCHMODAT_INLINE etc.
35987         * lib/fchmodat.c (FCHMODAT_INLINE):
35988         * lib/fchownat.c (FCHOWNAT_INLINE):
35989         * lib/fstatat.c (FSTATAT_INLINE):
35990         Remove, as chmodat.c etc. now do this.
35991         * modules/fchmodat (Files): Add lib/chmodat.c.
35992         * modules/fchownat (Files): Add lib/chownat.c.
35993         * modules/fstatat (Files): Add lib/statat.c.
35995 2012-10-15  Jim Meyering  <jim@meyering.net>
35997         fchmodat.c, fchownat.c: compile-impeding typos
35998         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
35999         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
36000         Introduced in commit v0.0-7636-gd202279.
36002 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36004         fcntl-h: support GNU flags like O_IGNORE_CTTY
36005         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
36006         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
36007         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
36008         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
36009         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
36010         Define to 0 if not already defined.
36011         * tests/test-fcntl-h.c: Test these new flags.
36013 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36015         faccessat, etc.: support AT_FDCWD-only use
36016         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
36017         this function only if its first argument is AT_FDCWD.
36018         Emacs wants faccessat for AT_EACCESS but not for any first-arg
36019         values other than AT_FDCWD, so it doesn't want all the openat
36020         machinery with fchdir etc.
36021         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
36022         * modules/fstatat, modules/mkdirat, modules/openat (Files):
36023         * modules/unlinkat (Files):
36024         Remove lib/openat-priv.h, as at-internal supplies this file.
36025         Removing this file here allows us to support programs like Emacs
36026         that avoid at-internal.
36028         faccessat: speed up 'configure' on mainstream hosts
36029         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
36030         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
36031         since it's only on unusual platforms that we need to check for
36032         'access', and it's better not to slow 'configure' down on all
36033         platforms.
36035         faccessat: port to Solaris 10
36036         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
36037         Needed on Solaris 10, which doesn't have AT_EACCESS,
36038         so we need the Gnulib fcntl.h, which defines it.
36040 2012-10-14  Pádraig Brady  <P@draigBrady.com>
36041         canonicalize: fix C89 compilation
36042         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
36043         declarations so C89 is supported.  Also remove the comment
36044         referencing memorty allocation as the suggested feature could
36045         not be implemented as suggested.
36046         Reported by Michael Goffioul.
36048 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36050         group-member: omit unnecessary dependencies
36051         This is for Emacs, which has its own allocator and where we
36052         don't want to use xalloc.
36053         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
36054         since we no longer use xmalloc.  Do not include stdbool.h, since
36055         the changes below happen to remove the only use of bool.
36056         (GROUPBUF_SIZE): New constant.
36057         (struct group_info): Remove n_groups member.  Add groupbuf member.
36058         This lets us get the groups without using malloc, usually.
36059         (free_group_info, get_group_info): Adjust to this.
36060         (get_group_info): Return the number of groups found, or -1 on error.
36061         Use plain malloc not xmalloc, and treat its failure as if there
36062         are no groups, as the user already loses in case of error.
36063         (group_member): Simplify, based on changes to get_group_info.
36064         * modules/group-member (Depends-on): Remove dependencies on
36065         xalloc and stdbool.  Add dependency on xalloc-oversized.
36067 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
36069         gethrxtime: port to C++
36070         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
36072 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
36074         ptsname: fix macro-name typo
36075         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
36077 2012-10-03  Simon Josefsson  <simon@josefsson.org>
36079         inttostr: Relax license.
36080         * modules/inttostr (License): Change from LGPL to LGPLv2+.
36082 2012-10-03  Eric Blake  <eblake@redhat.com>
36084         ptsname_r: support ptys returned by FreeBSD posix_openpt
36085         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
36086         lives in /dev/pts/.
36088 2012-10-02  Eric Blake  <eblake@redhat.com>
36090         pselect: reject invalid file descriptors
36091         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
36092         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
36093         * modules/pselect (Depends-on): Add dup2.
36094         * doc/posix-functions/pselect.texi (pselect): Document this.
36096         select: reject invalid file descriptors
36097         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
36098         * lib/select.c (rpl_select) [!win32]: Work around it.
36099         * modules/select (Depends-on): Add dup2.
36100         * doc/posix-functions/select.texi (select): Document this.
36102         select: enhance test
36103         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
36104         New functions.
36105         (test_function): Enhance test.
36106         (do_select_bad_fd): Avoid any stale errno values.
36108         ptsname: reject invalid file descriptors
36109         http://www.austingroupbugs.net/view.php?id=503
36110         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
36111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
36112         * modules/stdlib (Makefile.am): Replace witness.
36113         * lib/stdlib.in.h (ptsname): Allow for replacement.
36114         * modules/ptsname (configure.ac): Trigger replacement.
36115         * doc/posix-functions/ptsname.texi (ptsname): Document this.
36117 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
36119         hash-pjw-bare: new module
36120         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
36121         * lib/hash-pjw-bare.h: Likewise.
36122         * modules/hash-pjw-bare: New file.
36123         * MODULES.html.sh (Misc): Add it.
36125 2012-10-02  Eric Blake  <eblake@redhat.com>
36127         manywarnings: cater to more gcc infelicities
36128         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
36129         -Wuninitialized without -O.
36131 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
36133         select, poll tests: Make setsockopt invocation effective.
36134         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
36135         the bind() call.
36136         * tests/test-select.h (open_server_socket): Likewise.
36138 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
36140         sockets, sys_stat: restore AC_C_INLINE
36141         This undoes the 2012-09-22 patch.
36142         * m4/sockets.m4 (gl_SOCKETS):
36143         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36144         Restore AC_C_INLINE, since MSVC requires __inline or _inline
36145         and does not support plain 'inline'.  Reported by Bruno Haible in
36146         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
36148 2012-09-30  Bruno Haible  <bruno@clisp.org>
36150         localeconv tests: Avoid test failure on OpenIndiana.
36151         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36152         skip the 'grouping' and 'mon_grouping' tests.
36153         Reported by Jim Meyering.
36155 2012-09-30  Bruno Haible  <bruno@clisp.org>
36157         havelib: Follow libtool developments.
36158         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
36159         Suggested by Simon Josefsson.
36161 2012-09-29  Jim Meyering  <meyering@redhat.com>
36163         fstatat.c: fix a compile-impeding typo
36164         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
36165         Introduced in commit v0.0-7636-gd202279.
36166         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
36168 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
36170         extern-inline: provide a -Wundef safe config.h
36171         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
36172         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
36173         to produce a -Wundef warning free config.h.
36175 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36177         hash-pjw: relax license to LGPLv2+
36178         * modules/hash-pjw (License): Relax, with consent of author.
36180 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36182         maint.mk: fix strict vs. lazy variable issues with RELEASE
36183         * top/maint.mk (_equal): New function.
36184         (member_check): Strip the result to avoid spurious spaces.
36185         (url_dir_list): Do not use ifeq, which is strict, as it will
36186         require RELEASE_TYPE to be defined.
36187         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
36188         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
36189         (announcement_Cc_alpha,announcement_mail_headers_alpha)
36190         (announcement_Cc_beta,announcement_mail_headers_beta)
36191         (announcement_Cc_stable,announcement_mail_headers_stable): these.
36192         (release): Do not depend on $(release-type), as it forces its
36193         evaluation.  Bounce to it.
36195 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36197         maint.mk: formatting changes
36198         * top/maint.mk: Indent bodies of if's.
36200 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
36202         maint.mk: factor the validation of RELEASE_TYPE
36203         With help from Jim Meyering.
36204         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
36205         * top/maint.mk (_empty, _sp): Move their definition earlier.
36206         (member-check, release-type): New.
36207         Use the latter instead of $(RELEASE_TYPE).
36208         Remove now useless local checks.
36210 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36212         maint.mk: provide "make upload" to ease uploading
36213         See
36214         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
36215         Do not depend simply on the current $(VERSION), as there may have been
36216         new commits since the tarball generation.  Rather, rely on $(RELEASE),
36217         as "make release-commit" already does.
36219         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
36220         "make TYPE".
36222         * top/maint.mk (upload_command, upload, release): New.
36223         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
36224         (VERSION): first word of $(RELEASE) is always right.
36225         (emit_upload_commands): Adjust.
36226         * top/README-release: Update.
36228 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36230         maint.mk: silent rules
36231         With help from Stefano Lattarini.
36232         * top/maint.mk (writable-files): Use $(AM_V_GEN).
36233         (announcement): Use $(AM_V_at).
36235 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36237         localename: port gl_locale_name_thread_unsafe to FreeBSD
36238         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
36239         and use the simpler FreeBSD implementation on Mac OS X as well.
36240         Original idea suggested by Ed Maste in
36241         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
36243 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36245         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
36246         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
36247         * lib/mbuiter.c, lib/xsize.c: New files.
36248         * lib/binary-io.h (BINARY_IO_INLINE):
36249         * lib/eealloc.h (EEALLOC_INLINE):
36250         * lib/mbfile.h (MBFILE_INLINE):
36251         * lib/mbiter.h (MBITER_INLINE):
36252         * lib/mbuiter.h (MBUITER_INLINE):
36253         * lib/xsize.h (XSIZE_INLINE):
36254         New macros.
36255         Replace all uses of 'static inline' with them.
36256         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36257         * m4/eealloc.m4 (gl_EEALLOC):
36258         * m4/mbfile.m4 (gl_MBFILE):
36259         * m4/mbiter.m4 (gl_MBITER):
36260         * m4/xsize.m4 (gl_XSIZE):
36261         Do not require AC_C_INLINE.
36262         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
36263         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
36264         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
36265         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
36266         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
36267         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
36268         * modules/binary-io, modules/eealloc, modules/mbfile:
36269         * modules/mbiter, modules/mbuiter:
36270         (Depends-on): Add extern-inline.
36272         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
36273         * lib/pipe-filter-aux.c: New file.
36274         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
36275         Replace all uses of 'static inline' with it.
36276         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36277         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
36278         (filter_retcode): No real need for inline here.
36279         * modules/pipe-filter-gi, modules/pipe-filter-ii:
36280         (Files): Add lib/pipe-filter-aux.c.
36281         (Depends-on): Add extern-inline.
36282         (configure.ac): Do not require AC_C_INLINE.
36283         (lib_SOURCES): Add pipe-filter-aux.c.
36285         fdutimensat: omit unnecessary AC_C_INLINE
36286         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
36288         fchmodat, fchownat, fstatat: use extern-inline
36289         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
36290         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
36291         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
36292         New macros.
36293         * lib/openat.h:
36294         Replace all uses of 'static inline' with them.
36295         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36296         * modules/fchmodat, modules/fchownat, modules/fstatat:
36297         * modules/openat-h:
36298         (Depends-on):
36299         Add extern-inline.
36300         (configure.ac): Remove AC_C_INLINE.
36302         acl, mbchar, priv-set: use extern-inline
36303         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
36304         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
36305         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
36306         New macros.
36307         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
36308         Replace all uses of 'static inline' with it.
36309         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36310         * m4/acl.m4 (gl_FUNC_ACL):
36311         * m4/mbchar.m4 (gl_MBCHAR):
36312         * m4/priv-set.m4 (gl_PRIV_SET):
36313         Remove AC_C_INLINE, since 'inline' is no longer used directly.
36314         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
36315         Add extern-inline.
36317         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
36318         * m4/sockets.m4 (gl_SOCKETS):
36319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36320         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
36321         environments where it's already guaranteed to work, so we needn't
36322         check for it at 'configure'-time.
36324         tls-tests: omit unnecessary 'inline'
36325         * tests/test-tls.c (perhaps_yield): No longer inline.
36326         Simplicity and portability trump efficiency in test cases.
36328         utimens-tests: avoid unnecessary 'inline'
36329         * modules/fdutimensat-tests (configure.ac):
36330         * modules/futimens-tests (configure.ac):
36331         * modules/utimens-tests (configure.ac):
36332         * modules/utimensat-tests (configure.ac):
36333         Remove AC_C_INLINE.
36334         * tests/test-utimens-common.h (ctime_compare):
36335         No longer inline.  Simplicity and portability trump efficiency here.
36337         misc: don't limit commentary to inline functions
36338         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
36339         * lib/xalloc-oversized.h, lib/xsize.h:
36340         Contrast macros to functions in general, not just to inline functions,
36341         when the commentary does not apply only to inline functions.
36343 2012-09-20  Jim Meyering  <meyering@redhat.com>
36345         non-recursive-gnulib-prefix-hack: new module
36346         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
36347         the file that originated in Bison.
36348         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
36349         largely copied from a snippet that resided in bison's configure.ac.
36350         * modules/non-recursive-gnulib-prefix-hack: New file.
36351         * MODULES.html.sh (Support for maintaining and releasing projects):
36352         Add it.
36354 2012-09-18  Jim Meyering  <meyering@redhat.com>
36356         maint.mk: generalize _gl_tight_scope for non-recursive make
36357         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
36358         that *.h would describe additional .h files in the directory
36359         specified by $(_gl_TS_dir).  I.e., add this...
36360         (_gl_TS_other_headers): New variable.
36362         maint.mk: exempt trailing blanks found in "binary" files
36363         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
36364         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
36365         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36367 2012-09-17  Jim Meyering  <meyering@redhat.com>
36369         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
36370         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
36371         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
36372         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36374 2012-09-17  Jim Meyering  <meyering@redhat.com>
36376         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
36377         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
36378         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
36379         It is not in the same category as "exit (0)" or "exit (1)", and
36380         besides, I know of no symbolic name for that 77.  Reported by
36381         Richard W.M. Jones in
36382         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36384 2012-09-17  Jim Meyering  <meyering@redhat.com>
36386         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
36387         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
36388         all uses of #define, not just those that start in column 1.
36389         Richard W.M. Jones reported a false positive in
36390         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36392 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36394         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
36395         * lib/localcharset.c (locale_charset) [DARWIN7]:
36396         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
36397         as these two values are incompatible.  Problem reported by Max Horn.
36398         For more discussion, please see
36399         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
36401         doc: document sticky-EOF issue
36402         * doc/posix-functions/fgetc.texi (fgetc):
36403         * doc/posix-functions/fgets.texi (fgets):
36404         * doc/posix-functions/fread.texi (fread):
36405         * doc/posix-functions/fscanf.texi (fscanf):
36406         * doc/posix-functions/getc.texi (getc):
36407         * doc/posix-functions/getchar.texi (getchar):
36408         * doc/posix-functions/scanf.texi (scanf):
36409         Mention that glibc and default Solaris do not conform to
36410         C99 and POSIX-2001 or later, with respect to how getchar
36411         etc. behave when feof reports nonzero.
36413 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36415         poll: fix poll(0, NULL, msec)
36416         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
36417         but nfd is 0.  In that case poll should behave like select.
36419 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36420             Paolo Bonzini  <bonzini@gnu.org>
36422         poll: fix for systems that can't recv() on a non-socket
36423         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
36424         is readable.  In this case POLLHUP will not be supported.
36425         * doc/posix-functions/poll.texi: Document this.
36427 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
36429         poll/select: document portability problems not fixed by Gnulib.
36430         * doc/posix-functions/poll.texi: poll does not work well on
36431         pipes under Windows.  It has the same limitations as select on
36432         BeOS.
36433         * doc/posix-functions/select.texi: select does not work well
36434         on pipes under Windows.
36436 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
36438         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
36439         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
36440         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
36441         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
36443 2012-09-06  Eric Blake  <eblake@redhat.com>
36445         net_if: give more details about the bug being fixed
36446         * doc/posix-headers/net_if.texi: Add clarification.
36448 2012-09-05  Eric Blake  <eblake@redhat.com>
36450         net_if: new module
36451         * modules/net_if: New module, borrowing ideas from netinet_in.
36452         * m4/net_if_h.m4: New file.
36453         * lib/net_if.in.h: Likewise.
36454         * doc/posix-headers/net_if.texi (net/if.h): Document it.
36455         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36456         * tests/test-net_if.c: Make function checks conditional.
36457         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
36459 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
36461         readutmp: fix non-portable UT_PID use
36462         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
36463         Use `UT_PID (u) > 0' as absolute condition.
36465 2012-09-04  Jim Meyering  <meyering@redhat.com>
36467         fts: reduce two or more trailing spaces to just one, usually
36468         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
36469         or more slashes, trim all but the final one.  But if a name consists
36470         solely of two slashes, don't modify it.  If it consists solely of
36471         three or more slashes, strip all but one.
36473         This is part of the solution to a minor problem with rm:
36474         it would print a bogus ELOOP diagnostic when failing to remove
36475         the slash-decorated name of a symlink-to-directory:
36477             $ mkdir d && ln -s d s && env rm -r s/
36478             rm: cannot remove 's': Too many levels of symbolic links
36480         With the change below and a trivial don't-trim-trailing-slashes
36481         adjustment to remove.c, it does this:
36483             $ env rm -r s/
36484             rm: cannot remove 's/': Not a directory
36486         Improved by: Eric Blake
36488         fts: when there is no risk of overlap, use memcpy, not memmove
36489         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
36491 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36493         stdbool: be more compatible with mixed C/C++ compiles
36494         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
36495         Define to bool, true, false, respectively, as GCC's builtin
36496         stdbool.h does.  Problem reported by Michael Goffioul in
36497         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
36499 2012-08-28  Jim Meyering  <meyering@redhat.com>
36501         revert last change: it was not needed
36502         * tests/test-vc-list-files-git.sh: There's already a test for
36503         a working git, just below.
36505 2012-08-28  Jim Meyering  <meyering@redhat.com>
36507         tests: test-vc-list-files-git.sh: skip if git is not available
36508         * tests/test-vc-list-files-git.sh: Skip this test when git is
36509         not available.
36511 2012-08-26  Bruno Haible  <bruno@clisp.org>
36513         gnulib-tool: Remove no-op option --no-changelog.
36514         * gnulib-tool (func_usage): Don't mention --no-changelog.
36515         (do_changelog): Remove variable.
36516         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36518 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36520         doc: remove fdl-1.2.texi
36521         It is no longer used or maintained, and its use of @acronym
36522         is problematic.  See the thread containing
36523         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
36524         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
36525         * doc/old-licenses/fdl-1.2.texi: Remove.
36527         execinfo: port to FreeBSD
36528         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
36529         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
36530         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
36531         * modules/execinfo (Link): Add $(LIB_EXECINFO).
36533 2012-08-23  Jim Meyering  <meyering@redhat.com>
36535         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
36536         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
36537         to placate gcc's -Wold-style-declaration.
36539 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36541         doc: do not use @acronym
36542         * doc/inet_ntoa.texi (inet_ntoa):
36543         * doc/parse-datetime.texi (Seconds since the Epoch)
36544         (Specifying time zone rules):
36545         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
36546         Don't use @acronym.  Problem reported by John Darlington in
36547         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
36549 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36551         stdnoreturn: port to newer GCCs
36552         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
36553         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
36554         Problem reported by Jim Meyering in
36555         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
36556         Also, rename the 'test' function to a void a clash with the
36557         already-supplied 'main' function; this fixes a bug that incorrectly
36558         rejected GCC 4.7.1's <stdnoreturn.h>.
36559         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
36560         Document GCC problem.
36562 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
36564         pipe-filter: fix comment typo
36565         * lib/pipe-filter.h: Mention correct function.
36567 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36569         execinfo: new module
36570         This is for Emacs.  Currently, it provides a no-effect stub
36571         on all platforms where it does not already work.
36572         It already works on glibc-based systems, and on Solaris 11.
36573         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
36574         New files.
36575         * doc/glibc-headers/execinfo.texi (execinfo.h):
36576         * MODULES.html.sh (Misc): Document it.
36578 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36580         extern-inline: support old GCC 'inline'
36581         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
36582         if available.  This applies to GCC versions 2.7 through 4.2, or
36583         when newer GCC is using -fgnu89-inline.  The goal is to address
36584         some of the performance issues mentioned by Bruno Haible in
36585         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
36587 2012-08-20  Eric Blake  <eblake@redhat.com>
36589         maint.mk: avoid redundant file name in message
36590         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
36591         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
36592         (sc_makefile_path_separator_check): Remove bogus $(ME).
36594 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
36596         timer-time: fix link order when static linking on glibc
36597         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36598         _after_ -lrt so that it's significant.
36600 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36602         timespec: omit unnecessary AC_C_INLINE
36603         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
36605         stat-time: omit unnecessary AC_C_INLINE
36606         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36607         Do not require AC_C_INLINE.
36609         ignore-value: omit unnecessary AC_C_INLINE
36610         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
36612         sys_select: avoid 'static inline'
36613         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
36615         mktime: avoid 'static inline'
36616         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
36617         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
36619 2012-08-19  Bruno Haible  <bruno@clisp.org>
36621         gnulib-tool: Improve coding style.
36622         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
36623         func_emit_lib_Makefile_am.
36624         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36626 2012-08-19  Bruno Haible  <bruno@clisp.org>
36628         gnulib-tool: Fix indentation.
36629         * gnulib-tool (func_import): Fix indentation.
36631 2012-08-19  Bruno Haible  <bruno@clisp.org>
36633         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
36634         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
36635         on the list of removed files.
36637 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36639         test-parse-datetime: avoid glibc leap-second glitch
36640         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
36641         with the 2012 rules.  Problem reported by Bruce Dubbs in
36642         <http://bugs.gnu.org/12206>.
36644 2012-08-14  Bruno Haible  <bruno@clisp.org>
36646         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
36647         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
36648         from argument.
36649         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36651 2012-08-14  Eric Blake  <eblake@redhat.com>
36653         ldexp: relax license
36654         * modules/ldexp (License): Trivial relax, since the module only
36655         provides a permissively licensed m4 file.
36657 2012-08-13  Bruno Haible  <bruno@clisp.org>
36659         gnulib-tool: Fix persistence of --witness-c-macro option.
36660         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
36661         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36663 2012-08-11  Eric Blake  <eblake@redhat.com>
36665         count-leading-zeros: use a lookup table on non-gcc compilers
36666         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
36667         alternate implementation, suggested by Jim Meyering.
36669 2012-08-10  Eric Blake  <eblake@redhat.com>
36671         count-leading-zeros: new module
36672         * modules/count-leading-zeros: New module.
36673         * m4/count-leading-zeros.m4: New file.
36674         * lib/count-leading-zeros.h: Likewise.
36675         * modules/count-leading-zeros-tests: New test.
36676         * tests/test-count-leading-zeros.c: New file.
36677         * MODULES.html.sh (Integer arithmetic functions): Document it.
36679 2012-08-07  Simon Josefsson  <simon@josefsson.org>
36680             Jim Meyering  <meyering@redhat.com>
36682         maintainer-makefile: Fix syntax error with dash.
36683         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
36684         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
36686 2012-08-05  Jim Meyering  <meyering@redhat.com>
36688         extern-inline: also ignore -Wmissing-declarations
36689         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
36690         required with gcc-4.8.0-to-be.
36692         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
36693         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
36694         for /error ?([^,]*)/.  This avoids false-positives for strings like
36695         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
36697 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
36699         gnumakefile: better interaction with Automake-NG
36700         * modules/gnumakefile [Makefile.am]: The makefiles generated by
36701         Automake-NG always contain a definition of VPATH, even in non-VPATH
36702         builds (its value being simply '.' in that case).  So, in the
36703         'clean-GNUmakefile' rule, to determine whether running under a
36704         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
36705         '$(VPATH)' expands to the empty string.
36707 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
36709         base64: Use extern C scope in header file, for C++.
36710         * lib/base64.h: Add C++ namespace protection.
36712 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
36714         stat-time, timespec, u64: support naive out-of-dir builds
36715         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
36716         Use '#include "foo.h"', not '#include <foo.h>', when including
36717         one's own interface.  This works better when configuring with
36718         out-of-directory builds, since packages need not add an
36719         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
36721 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
36723         utimens: use extern-inline
36724         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
36725         * lib/utimens.h: Add copyright notice, since this is now large enough
36726         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36727         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
36728         * modules/utimens (Depends-on): Add extern-inline.
36730         u64: use extern-inline
36731         * lib/u64.c: New file.
36732         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36733         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
36734         * modules/u64 (Files): Add lib/u64.c.
36735         (Depends-on): Add extern-inline.
36736         (configure.ac): No need to require AC_C_INLINE, since extern-inline
36737         does that now.
36738         (lib_SOURCES): Add u64.c.
36740         timespec: use extern-inline
36741         * lib/timespec.c: New file.
36742         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36743         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
36744         * modules/timespec (Files): Add lib/timespec.c.
36745         (Depends-on): Add extern-inline.
36746         (lib_SOURCES): Add timespec.c.
36748         stat-time: use extern-inline
36749         * lib/stat-time.c: New file.
36750         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36751         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
36752         * modules/stat-time (Files): Add lib/stat-time.c.
36753         (Depends-on): Add extern-inline.
36754         (lib_SOURCES): Add stat-time.c.
36756         extern-inline: new module
36757         * modules/extern-inline, m4/extern-inline.m4: New files.
36758         This is for better support of 'extern inline' a la ISO C99,
36759         with a portable alternative on compilers that do not support
36760         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
36761         of the Emacs executable, when compiled with debugging disabled,
36762         which is a typical way that Emacs is built while developing.
36764 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
36766         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
36767         * build-aux/do-release-commit-and-tag: Move variable definitions
36768         together.
36769         ($branch): Instead of defaulting to "master", default to the current
36770         branch (as gnu-web-doc-update does).
36771         (help): Display the current values of the option arguments.
36772         * top/maint.mk (release-commit): New.
36773         * top/README-release: Simplify the corresponding step.
36775 2012-07-30  Eric Blake  <eblake@redhat.com>
36777         passfd: fix comment on recvfd
36778         * lib/passfd.c (recvfd): Fix comment.
36779         Reported by Jann Horn <jannhorn@googlemail.com>.
36781 2012-07-30  Jim Meyering  <meyering@redhat.com>
36783         maint.mk: avoid a sub-shell
36784         * top/maint.mk (release-prep): Remove unneeded sub-shell.
36786 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36788         maint.mk: use silent-rules support from Automake
36789         * top/maint.mk (news-check, vc-diff-check, announcement)
36790         (no-submodule-changes, alpha beta stable, release-prep)
36791         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
36793 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36795         maint.mk: provide a web-manual-update target
36796         * top/maint.mk: here.
36797         * top/README-release: Use it to simplify the web manual update step.
36799 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36801         README-release: shorten the circuit to post a news
36802         * top/README-release: Point directly to the news submission form.
36804 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36806         gnu-web-doc-update: fix --help
36807         * build-aux/gnu-web-doc-update: The information "top level" was written
36808         twice.
36810 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36812         maint.mk: absolute VPATH issue
36813         * top/maint.mk (release-prep): Help Git find .git/.
36814         From Jim Meyering.
36816 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36818         gitlog-to-changelog: fix previous change
36819         * build-aux/gitlog-to-changelog: Fix condition.
36820         Add missing ";".
36822 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36824         gitlog-to-changelog: don't expect .git to be in $srcdir
36825         Reported by Bruno Haible.
36826         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
36827         * build-aux/gitlog-to-changelog (&git_dir_option): New.
36828         Use it.
36830 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36832         maint.mk: absolute VPATH build fix
36833         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
36834         $(srcdir) is not a parent of $(builddir).
36836 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
36838         clean-temp: Fix memory leak.
36839         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
36840         'files' members of tmpdir.
36842 2012-07-27  Jim Meyering  <meyering@redhat.com>
36844         maint.mk: new rule: refresh-gnulib-patches
36845         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
36846         Use this rule to refresh them.
36847         * top/maint.mk (refresh-gnulib-patches): New rule.
36849 2012-07-24  Bruno Haible  <bruno@clisp.org>
36851         gnulib-tool: Fix handling of inctests variable.
36852         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
36853         Reported by Nick Bowler <nbowler@elliptictech.com>.
36855 2012-07-22  Bruno Haible  <bruno@clisp.org>
36857         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
36858         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
36859         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36860         Remove exemption for getpass.h.
36861         Suggested by Eric Blake.
36863 2012-07-20  Eric Blake  <eblake@redhat.com>
36865         verify: document conflict with -Wnested-externs
36866         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
36868         maint.mk: forbid exit(-1)
36869         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
36871 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
36873         fsusage: port back to Solaris
36874         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
36875         error (fsd not declared) on Solaris 10.  Reported privately by
36876         Andrew Borodin.
36878 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
36880         gnu-web-doc-update: fix error messages
36881         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
36883         gnu-web-doc-update: check the requirements.
36884         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
36885         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
36886         * build-aux/bootstrap (find_tool): Comment change.
36888 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
36890         maint.mk: minor simplication.
36891         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
36892         for default values.
36894 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
36896         gitlog-to-changelog: VPATH build issues
36897         If builddir is not a subdirectory of srcdir, running git from it will
36898         fail.
36899         * build-aux/gitlog-to-changelog (--srcdir): New option.
36901 2012-07-15  Bruno Haible  <bruno@clisp.org>
36903         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
36904         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
36905         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
36906         Remove exemption for fpending.h.
36907         Suggested by Eric Blake.
36909 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36911         pthread_sigmask: fix bug on FreeBSD 9
36912         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
36913         Include string.h.
36914         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
36915         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
36916         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
36917         but pthread_sigmask (1729, NULL, NULL) returns zero.
36918         See <http://bugs.gnu.org/11884>.
36919         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
36920         by inspecting whether the main call changed the old mask.
36922 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
36924         README-release: make it more legible
36925         * top/README-release: Improve typography slightly.
36927 2012-07-15  Jim Meyering  <meyering@redhat.com>
36929         maint: require that each sc_... command start with "@"
36930         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
36931         "make sc_maint" helps us avoid this nit.
36933 2012-07-15  Jim Meyering  <meyering@redhat.com>
36935         maint.mk: add leading "@" to quiet new "make syntax-check" rule
36936         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
36938 2012-07-13  Eric Blake  <eblake@redhat.com>
36940         maint.mk: new syntax check for HAVE_DECL checks
36941         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
36942         * cfg.mk
36943         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36944         Exempt some false positives.
36945         Based on a report by Karel Zak.
36947         argp: make HAVE_DECL usage consistent
36948         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
36949         macros, not whether they are defined.
36950         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
36951         convention with other declaration checks.
36952         Reported by Karel Zak, with suggestions from Paul Eggert.
36954         stat-time: relax license to LGPLv2+
36955         * modules/stat-time (License): Relax, with consent of all authors.
36957         strndup: fix m4 usage error
36958         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
36959         defined, to either 0 or 1.
36960         Reported by Karel Zak.
36962 2012-07-11  Jim Meyering  <meyering@redhat.com>
36964         maint: enable the sc_avoid_if_before_free syntax-check rule
36965         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
36966         (if_before_free_offenders_): Define.
36967         (if_before_free_basename_re_): Define.
36968         Exempt current files with useless if-before-free.
36970 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
36972         gettext: do not assume '#define ... defined ...' behavior
36973         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
36974         Do not use '#define FOO ... defined BAR ...', as the C standard says
36975         it's not portable to expect that this works after macro expansion.
36976         Problem reported for gzip by Steven M. Schweda in
36977         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
36979 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
36981         getloadavg: clean out old Emacs and Autoconf cruft
36982         See Glenn Morris in <http://bugs.gnu.org/11905>.
36983         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
36984         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
36985         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
36986         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
36988 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
36990         bootstrap: let warn be like tests/init.sh's warn_
36991         Reported by Jim Meyering.
36992         * build-aux/bootstrap (warn): Remove, replaced by...
36993         (warnf_, warn_): these.
36994         Adjust callers.
36995         Shorten messages that no longer fit in 80 columns.
36997 2012-07-09  Bruno Haible  <bruno@clisp.org>
36999         getopt: Simplify after Emacs changed.
37000         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
37001         (gl_GETOPT_IFELSE): Remove macro.
37003 2012-07-09  Jim Meyering  <meyering@redhat.com>
37005         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
37006         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
37008         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
37009         Bugs in both of those conspired to make the
37010         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
37011         _sc_search_regexp's handling of non-empty $in_files would filter
37012         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
37013         choice of in_files value meant there would be no match in most
37014         projects, due to the presence of two or more Makefile.in files.
37015         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
37016         Fix a bug in how a non-empty $$in_files was processed:
37017         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
37018         in spite of the name, it's a regexp, not a list of file names.
37020 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37022         getloadavg, getopt: fix commentary re configure.in
37023         Autoconf is deprecating the name 'configure.in', so change it to
37024         to the new name 'configure.ac' in a couple of places.
37025         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
37026         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
37027         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
37028         Emacs has renamed it to configure.ac, and it no longer refers
37029         to these macros anyway.
37031         timespec: mark functions with const attributes
37032         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
37033         Mark with _GL_ATTRIBUTE_CONST.
37035 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37037         canonicalize[-lgpl]: handle "guessing" values when cross-building
37038         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37039         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
37040         matches "*yes" instead of just "yes".  Regression introduced in commit
37041         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
37043 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37044             Bruno Haible  <bruno@clisp.org>
37046         canonicalize: make the right guess when cross-compiling to GNU
37047         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
37048         determine whether cross-compiling to glibc systems, so as to
37049         include GNU/Hurd.
37051 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37053         timespec-sub: avoid duplicate include
37054         * lib/timespec-sub.c: Do not include <config.h> twice.
37055         Reported by Juanma Barranquero.
37057 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
37059         bootstrap: use a more consistent error reporting scheme
37060         * build-aux/bootstrap (warn, die): New.
37061         Use them.
37063 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37065         sys_time: allow too-wide tv_sec
37066         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
37067         timeval even if tv_sec is wider than time_t.  This allows
37068         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
37069         as without this patch gnulib replaces struct timeval
37070         and OpenBSD futimes therefore has a type mismatch.
37071         * doc/posix-headers/sys_time.texi: Mention this.
37073         pthread: check for both pthread_create and pthread_join
37074         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
37075         alter the check so that it tests for both pthread_create and
37076         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
37077         Suggested by Bruno Haible and Richard Yao in
37078         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
37080         parse-datetime: doc tuneup
37081         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
37082         spacing issues.
37084 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
37086         do-release-commit-and-tag: fix the previous commit
37087         * build-aux/do-release-commit-and-tag: Actually the test was right,
37088         but the comment and the error message were misleading.
37089         Fix comment, and improve error message.
37090         Perform check first, so that NEWS is not modified uselessly.
37092         do-release-commit-and-tag: fix typo
37093         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
37094         _not_ start with a stub.
37096 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37098         pthread: check for pthread_create, not pthread_join
37099         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
37100         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
37101         pthread_join in libc.  I hope this removes the need for all the
37102         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
37103         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
37105 2012-07-04  Jim Meyering  <meyering@redhat.com>
37107         parse-datetime: fix failure to diagnose invalid input
37108         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
37109         rather than diagnosing the invalid input.  Now it reports this:
37110         date: invalid date '\260'
37111         * lib/parse-datetime.y (to_uchar): Define.
37112         (yylex): Don't sign-extend "other" bytes.
37113         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
37114         Thanks to Bruno Haible for the patch to this file.
37115         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
37116         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
37118 2012-07-03  Jim Meyering  <meyering@redhat.com>
37120         bootstrap: do not require now-removed build-aux/missing
37121         Now that build-aux/missing is, er, missing, bootstrap would
37122         silently fail.
37123         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
37124         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
37125         no longer part of gnulib.
37126         Diagnose the failure.
37128 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37130         alloca: add support for HP NonStop TNS/E native
37131         * lib/alloca.in.h (alloca): Support the new host.
37132         From a suggestion by Joachim Schmitz in
37133         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
37135 2012-07-02  Pádraig Brady  <P@draigBrady.com>
37137         fsusage: remove code not needed on non GNU/Linux systems.
37139         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37140         Don't include headers no longer needed in this case.
37141         * lib/fsusage.c [STAT_STATVFS &&
37142         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
37143         STAT_STATFS2_FRSIZE to exclude code not used in this case.
37145 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37147         fsusage: include files needed for glibc 2.6 fallback
37148         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37149         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
37150         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
37151         Problem reported by Ludovic Courtès in
37152         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
37154         fsusage: avoid needless check on GNU/Linux
37155         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
37156         on GNU/Linux systems, since it can't possibly work.
37158 2012-07-01  Bruno Haible  <bruno@clisp.org>
37160         log: Fix an autoconf >= 2.64 warning.
37161         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
37162         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37164 2012-06-28  Bruno Haible  <bruno@clisp.org>
37166         log10f: Fix possible configuration problem.
37167         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
37168         $LOGF_LIBM.
37169         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37171 2012-06-28  Bruno Haible  <bruno@clisp.org>
37173         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
37174         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
37175         not gl_cv_func_unlink_works.
37176         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37178 2012-06-27  Eric Blake  <eblake@redhat.com>
37180         config: drop scripts that automake says are not independent
37181         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
37182         * build-aux/elisp-comp: Delete.
37183         * build-aux/missing: Likewise.
37184         * build-aux/ylwrap: Likewise.
37185         * modules/elisp-comp: Likewise.
37186         * MODULES.html.sh: Drop mention of elisp-comp.
37187         * NEWS: Mention this.
37189 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37191         root-uid: new module
37192         This is for portability to Tandem's NonStop Kernel.
37193         * lib/root-uid.h, modules/root-uid: New files.
37194         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
37195         * lib/write-any-file.c, tests/test-sethostname2.c:
37196         Include "root-uid.h".
37197         * lib/euidaccess.c (euidaccess):
37198         * lib/pt_chown.c (main):
37199         * lib/unlinkdir.c (cannot_unlink_dir):
37200         * lib/write-any-file.c (can_write_any_file):
37201         * m4/mknod.m4 (gl_FUNC_MKNOD):
37202         * tests/test-sethostname2.c (geteuid, main):
37203         Don't assume ROOT_UID == 0.
37204         * modules/euidaccess (Depends-on):
37205         * modules/pt_chown (Depends-on):
37206         * modules/sethostname-tests (Depends-on):
37207         * modules/unlinkdir (Depends-on):
37208         * modules/write-any-file (Depends-on):
37209         Add root-uid.
37211         regex: use locale-independent comparison for codeset name
37212         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
37213         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37214         for codeset name.
37215         * lib/regex_internal.h: Do not include <strings.h>, since we
37216         no longer use strcasecmp.
37217         * modules/regex (Depends-on): Remove strcase.
37219 2012-06-23  Bruno Haible  <bruno@clisp.org>
37221         getopt-posix: No longer guarantee that option processing is resettable.
37222         * doc/posix-functions/getopt.texi: Drop description of problem with
37223         internal state. Fix info about mingw and msvc9.
37224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
37225         option processing by getopt(). Run three test programs instead of one.
37226         Simplify cross-compilation guess.
37227         * NEWS: Mention the change.
37228         Reported by Rich Felker <dalias@aerifal.cx>.
37230 2012-06-26  Bruno Haible  <bruno@clisp.org>
37232         argp, regex: Ensure strcasecmp gets declared.
37233         * lib/argp-help.c: Include <strings.h>.
37234         * lib/regex_internal.h: Likewise.
37235         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
37237 2012-06-24  Bruno Haible  <bruno@clisp.org>
37239         ptsname_r: Make it consistent with ptsname on AIX.
37240         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
37241         implementation as for OSF/1.
37242         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
37243         a pty master.
37245         ptsname_r: Make it consistent with ptsname on OSF/1.
37246         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37247         OSF/1.
37249 2012-06-24  Bruno Haible  <bruno@clisp.org>
37251         ttyname_r: Fix result on OSF/1, Solaris.
37252         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
37254 2012-06-24  Bruno Haible  <bruno@clisp.org>
37256         ptsname_r: Add support for Solaris.
37257         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37258         Solaris.
37260         ptsname_r: Fix test failure on native Windows.
37261         * modules/ptsname_r (Depends-on): Add isatty.
37263         ptsname_r: Fix test failures on IRIX, Solaris.
37264         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
37265         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
37266         accordingly.
37267         * lib/ptsname_r.c: Include <fcntl.h>.
37268         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
37269         set errno if fd is invalid.
37270         * tests/test-isatty.c (main): Update comments.
37272 2012-06-24  Bruno Haible  <bruno@clisp.org>
37274         ptsname test: Extend test.
37275         * tests/test-ptsname.c: Include <errno.h>.
37276         (main): Test behaviour with invalid file descriptor.
37278 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37280         time: fix obsolete comment
37281         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
37282         reference to HAVE_STRUCT_TIMESPEC in comment.
37284 2012-06-23  Bruno Haible  <bruno@clisp.org>
37286         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
37287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
37288         does not handle abbreviated long options with equivalent
37289         disambiguations, set gl_replace_getopt to yes.
37290         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
37292 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37294         time_r: fix typo that always overrode localtime_r decl
37295         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
37296         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
37297         not in a standard include.
37299 2012-06-22  Bruno Haible  <bruno@clisp.org>
37301         Write "Mac OS X" instead of "MacOS X".
37302         * README: Write "Mac OS X" instead of "MacOS X".
37303         * build-aux/bootstrap: Likewise.
37304         * build-aux/install-reloc: Likewise.
37305         * lib/acl-internal.h: Likewise.
37306         * lib/acl_entries.c: Likewise.
37307         * lib/argp-ba.c: Likewise.
37308         * lib/argp-pv.c: Likewise.
37309         * lib/config.charset: Likewise.
37310         * lib/copy-acl.c: Likewise.
37311         * lib/csharpexec.c: Likewise.
37312         * lib/euidaccess.c: Likewise.
37313         * lib/fbufmode.c: Likewise.
37314         * lib/fflush.c: Likewise.
37315         * lib/file-has-acl.c: Likewise.
37316         * lib/filemode.h: Likewise.
37317         * lib/fpurge.c: Likewise.
37318         * lib/freadable.c: Likewise.
37319         * lib/freadahead.c: Likewise.
37320         * lib/freading.c: Likewise.
37321         * lib/freadptr.c: Likewise.
37322         * lib/freadseek.c: Likewise.
37323         * lib/fseeko.c: Likewise.
37324         * lib/fseterr.c: Likewise.
37325         * lib/fsusage.c: Likewise.
37326         * lib/fwritable.c: Likewise.
37327         * lib/fwriting.c: Likewise.
37328         * lib/get-rusage-as.c: Likewise.
37329         * lib/get-rusage-data.c: Likewise.
37330         * lib/getdomainname.c: Likewise.
37331         * lib/idpriv-drop.c: Likewise.
37332         * lib/idpriv-droptemp.c: Likewise.
37333         * lib/localcharset.c: Likewise.
37334         * lib/locale.in.h: Likewise.
37335         * lib/localename.c: Likewise.
37336         * lib/mbsrtowcs-state.c: Likewise.
37337         * lib/nproc.c: Likewise.
37338         * lib/passfd.c: Likewise.
37339         * lib/posix_openpt.c: Likewise.
37340         * lib/printf-parse.c: Likewise.
37341         * lib/progreloc.c: Likewise.
37342         * lib/safe-read.h: Likewise.
37343         * lib/safe-write.h: Likewise.
37344         * lib/sched.in.h: Likewise.
37345         * lib/set-mode-acl.c: Likewise.
37346         * lib/signal.in.h: Likewise.
37347         * lib/stdint.in.h: Likewise.
37348         * lib/stdio-impl.h: Likewise.
37349         * lib/stdlib.in.h: Likewise.
37350         * lib/strtod.c: Likewise.
37351         * lib/sys_select.in.h: Likewise.
37352         * lib/tcgetsid.c: Likewise.
37353         * lib/unistd.in.h: Likewise.
37354         * lib/unlockpt.c: Likewise.
37355         * lib/vasnprintf.c: Likewise.
37356         * lib/vma-iter.c: Likewise.
37357         * lib/wcsrtombs-state.c: Likewise.
37358         * m4/acl.m4: Likewise.
37359         * m4/acosl.m4: Likewise.
37360         * m4/asinl.m4: Likewise.
37361         * m4/atanl.m4: Likewise.
37362         * m4/c-stack.m4: Likewise.
37363         * m4/cosl.m4: Likewise.
37364         * m4/expl.m4: Likewise.
37365         * m4/extensions.m4: Likewise.
37366         * m4/fdatasync.m4: Likewise.
37367         * m4/fmal.m4: Likewise.
37368         * m4/frexp.m4: Likewise.
37369         * m4/frexpf.m4: Likewise.
37370         * m4/frexpl.m4: Likewise.
37371         * m4/fsusage.m4: Likewise.
37372         * m4/getdomainname.m4: Likewise.
37373         * m4/getloadavg.m4: Likewise.
37374         * m4/getopt.m4: Likewise.
37375         * m4/gettext.m4: Likewise.
37376         * m4/gnulib-common.m4: Likewise.
37377         * m4/intdiv0.m4: Likewise.
37378         * m4/intlmacosx.m4: Likewise.
37379         * m4/largefile.m4: Likewise.
37380         * m4/ldexpl.m4: Likewise.
37381         * m4/link-follow.m4: Likewise.
37382         * m4/locale-ar.m4: Likewise.
37383         * m4/locale-fr.m4: Likewise.
37384         * m4/locale-ja.m4: Likewise.
37385         * m4/locale-tr.m4: Likewise.
37386         * m4/locale-zh.m4: Likewise.
37387         * m4/locale_h.m4: Likewise.
37388         * m4/lock.m4: Likewise.
37389         * m4/logl.m4: Likewise.
37390         * m4/mathfunc.m4: Likewise.
37391         * m4/minus-zero.m4: Likewise.
37392         * m4/mktime.m4: Likewise.
37393         * m4/mmap-anon.m4: Likewise.
37394         * m4/multiarch.m4: Likewise.
37395         * m4/nanosleep.m4: Likewise.
37396         * m4/nocrash.m4: Likewise.
37397         * m4/poll.m4: Likewise.
37398         * m4/printf-frexpl.m4: Likewise.
37399         * m4/printf.m4: Likewise.
37400         * m4/signbit.m4: Likewise.
37401         * m4/sinl.m4: Likewise.
37402         * m4/sqrtl.m4: Likewise.
37403         * m4/strerror_r.m4: Likewise.
37404         * m4/tanl.m4: Likewise.
37405         * m4/threadlib.m4: Likewise.
37406         * m4/ttyname_r.m4: Likewise.
37407         * m4/unlink.m4: Likewise.
37408         * m4/visibility.m4: Likewise.
37409         * m4/wcwidth.m4: Likewise.
37410         * tests/minus-zero.h: Likewise.
37411         * tests/test-alloca-opt.c: Likewise.
37412         * tests/test-copy-acl.sh: Likewise.
37413         * tests/test-copy-file.sh: Likewise.
37414         * tests/test-fdatasync.c: Likewise.
37415         * tests/test-file-has-acl.sh: Likewise.
37416         * tests/test-flock.c: Likewise.
37417         * tests/test-fsync.c: Likewise.
37418         * tests/test-localename.c: Likewise.
37419         * tests/test-malloca.c: Likewise.
37420         * tests/test-nonblocking-pipe.h: Likewise.
37421         * tests/test-nonblocking-socket.h: Likewise.
37422         * tests/test-openpty.c: Likewise.
37423         * tests/test-posix_openpt.c: Likewise.
37424         * tests/test-ptsname.c: Likewise.
37425         * tests/test-ptsname_r.c: Likewise.
37426         * tests/test-sameacls.c: Likewise.
37427         * tests/test-select.h: Likewise.
37428         * tests/test-set-mode-acl.sh: Likewise.
37429         * tests/test-snprintf-posix.h: Likewise.
37430         * tests/test-sprintf-posix.h: Likewise.
37431         * tests/test-strtod.c: Likewise.
37432         * tests/test-time.c: Likewise.
37433         * tests/test-vasnprintf-posix.c: Likewise.
37434         * tests/test-vasprintf-posix.c: Likewise.
37435         * doc/acl-resources.txt: Likewise.
37436         * doc/**/*.texi: Likewise.
37437         Reported by Max Horn <max@quendi.de>.
37439 2012-06-22  Bruno Haible  <bruno@clisp.org>
37441         grantpt: Relax requirement regarding invalid file descriptors.
37442         * lib/grantpt.c: Don't include <fcntl.h>.
37443         (grantpt): Don't verify the validity of the file descriptor.
37444         * modules/grantpt (Depends-on): Remove fcntl-h.
37445         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
37446         file descriptors.
37447         * doc/posix-functions/grantpt.texi: Document more platforms on which
37448         grantpt succeeds for invalid file descriptors.
37449         Reported by Rich Felker <dalias@aerifal.cx>.
37451 2012-06-22  Bruno Haible  <bruno@clisp.org>
37453         fbufmode test: Don't test unportable behaviour.
37454         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
37455         (main): Invoke it three times.
37456         Reported by Szabolcs Nagy <nsz@port70.net>
37457         and Rich Felker <dalias@aerifal.cx>.
37459 2012-06-21  Bruno Haible  <bruno@clisp.org>
37461         gnulib-tool: Refactor inctests variable.
37462         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
37463         (func_modules_transitive_closure,
37464         func_modules_transitive_closure_separately,
37465         func_import, func_create_testdir): Update.
37467         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
37468         * gnulib-tool: Accept option --without-tests.
37469         (func_usage): Document --without-tests option. Rearrange.
37470         (inctests): Normalize according to the mode.
37471         * NEWS: Mention the change.
37472         Suggested by Simon Josefsson.
37474 2012-06-21  Bruce Korb  <bkorb@gnu.org>
37476         parse-duration test: Avoid spurious output.
37477         * tests/test-parse-duration.sh: Reindent with leading tabs.
37479 2012-06-21  Jim Meyering  <meyering@redhat.com>
37481         maint: disable the strncpy prohibition
37482         * cfg.mk: Do not prohibit strncpy here.
37484 2012-06-21  Bruno Haible  <bruno@clisp.org>
37486         nonblocking: Avoid compilation error on mingw64.
37487         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
37488         fscanf.
37489         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
37490         * modules/vfscanf (configure.ac): Likewise.
37491         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
37492         definition only if stdio.h has prepared it.
37493         Reported by Daniel P. Berrange <berrange@redhat.com>.
37495 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
37497         gnulib-tool: Use readlink if it is available.
37498         * gnulib-tool (func_readlink): Choose function more appropriately.
37500 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37502         posixtm-tests: port to buggy compiler
37503         Problem reported by Simon Josefsson in
37504         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
37505         * modules/posixtm-tests (Depends-on): Add stdint.
37506         * tests/test-posixtm.c (struct posixtm_test.t_expected):
37507         Now of type int_least64_t, not int64_t, both because that's
37508         what INT64_C returns and because int_least64_t works even
37509         on 72-bit hosts.
37510         (T): Use INT64_C on constants outside the traditional int range,
37511         to work around compiler bug noted by Simon.
37513         mktime: fix integer overflow in 'configure'-time test
37514         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
37515         after integer overflow.  Problem reported by Rich Felker in
37516         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
37517         Also, don't look for further instances of a bug if we've already
37518         found one instance; this helps 'configure' run faster.
37520 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
37522         tmpfile, clean-temp: Fix invocation of GetVersionEx.
37523         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
37524         GetVersionEx correctly.
37525         * lib/clean-temp.c (supports_delete_on_close): Likewise.
37527 2012-06-20  Bruno Haible  <bruno@clisp.org>
37529         fdopen: Allow implementations that don't reject invalid fd arguments.
37530         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
37531         succeeds.
37532         Reported by Rich Felker <dalias@aerifal.cx>.
37534 2012-06-20  Simon Josefsson  <simon@josefsson.org>
37536         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
37537         bring in LIBINTL.
37539 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37541         init.sh: do not rely on autoupated PWD
37542         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
37543         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
37544         Although Nelson's bug was not necessarily fixed by this patch,
37545         it seems wise to make the change for safety.
37546         * tests/init.sh (path_prepend_): Do not rely on PWD updating
37547         automagically after 'cd'; this is not reliable on older shells.
37548         (setup_): Fail if we cannot cd to temporary directory.
37550 2012-06-19  Bruno Haible  <bruno@clisp.org>
37552         stat, fstat: Avoid warnings on mingw64.
37553         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
37554         redefining.
37555         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
37556         Reported by Daniel P. Berrange <berrange@redhat.com>.
37558 2012-06-19  Bruno Haible  <bruno@clisp.org>
37560         stdioext: Add support for musl libc.
37562         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
37563         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
37565         * m4/fseterr.m4: New file.
37566         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
37567         function exists.
37568         * modules/fseterr (Files): Add m4/fseterr.m4.
37569         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
37570         __fseterr does not exist.
37571         (Makefile.am): Remove fseterr.c from lib_SOURCES.
37573         * lib/freadable.h: Update comment.
37575         * lib/fwritable.h: Update comment.
37577         * lib/freading.h: Update comment.
37579         * lib/fwriting.h: Update comment.
37581         * m4/freadahead.m4: New file.
37582         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
37583         that function exists.
37584         * modules/freadahead (Files): Add m4/freadahead.m4.
37585         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
37586         __freadahead does not exist.
37587         (Makefile.am): Remove freadahead.c from lib_SOURCES.
37589         * m4/freadptr.m4: New file.
37590         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
37591         function exists.
37592         * modules/freadptr (Files): Add m4/freadptr.m4.
37593         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
37594         __freadptr does not exist.
37595         (Makefile.am): Remove freadptr.c from lib_SOURCES.
37597         * m4/freadseek.m4: New file.
37598         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
37599         exists.
37600         * modules/freadseek (Files): Add m4/freadseek.m4.
37601         (configure.ac): Invoke gl_FUNC_FREADSEEK.
37603         * lib/fpurge.c (fpurge): Update comment.
37605         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
37607 2012-06-19  Bruno Haible  <bruno@clisp.org>
37609         *printf-posix: Put more info into config.log.
37610         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
37611         exit code into config.log.
37613 2012-06-19  Bruno Haible  <bruno@clisp.org>
37615         getopt-gnu: Fix exit code overflow in autoconf test.
37616         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
37617         to keep them below < 128.
37619 2012-06-17  Jim Meyering  <meyering@redhat.com>
37621         maint.mk: fix typo in code to derive GPG key at release time
37622         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
37624 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
37626         regex: avoid warning when pointers are not long
37627         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
37628         and uintptr_t, not long, for portability to hosts where pointers and
37629         long have different sizes.  Issue noted by Daniel P. Berrange in
37630         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
37631         and fix suggested by Bruno Haible in
37632         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
37634 2012-06-17  Bruno Haible  <bruno@clisp.org>
37636         dummy: Relicense into the public domain.
37637         * modules/dummy (License): Set to "public domain".
37638         Suggested by Reuben Thomas.
37640 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37642         announce-gen: VPATH issues
37643         * build-aux/announce-gen (--srcdir): New option, used to trim the
37644         $srcdir part of the path from $builddir to NEWS.
37645         * top/maint.mk (announcement): Adjust.
37647 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37649         gnu-web-doc-update: VPATH builds
37650         * build-aux/gnu-web-doc-update (--builddir): New option.
37651         Revamp the handling of options.
37652         Prefer $(...) to `...`.
37653         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
37654         the template, and it is GNU mktemp specific.
37655         Prefer set -e to long series of &&.
37656         Restore the initial git branch, not "master".
37657         Properly initialize submodules (don't rely only on bootstrap).
37658         Do not reconfigure blindly, use config.status.
37659         * top/README-release: Update instructions for gnu-web-doc-update.
37661 2012-06-11  Jim Meyering  <meyering@redhat.com>
37663         maint.mk: revert most of the previous change re "all these"
37664         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
37665         For rationale, see the discussion at
37666         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
37668 2012-06-10  Karl Berry  <karl@gnu.org>
37670         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
37672         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
37674 2012-06-10  Bruce Korb  <bkorb@gnu.org>
37676         parse-duration: Relicense under LGPLv2+.
37677         * modules/parse-duration (License): Change to LGPLv2+.
37679 2012-06-10  Jim Meyering  <meyering@redhat.com>
37681         maint.mk: prohibit common grammar error: "all these"
37682         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
37683         the list of prohibited word sequences.  It should be "all of these".
37684         * lib/tempname.c (__gen_tempname): Fix one of them.
37686 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37688         do-release-commit-and-tag: support VPATH builds
37689         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
37690         (noteworthy): Defined earlier to factor its value.
37691         (noteworthy_stub): New.
37692         Use it to factor.
37693         (help_version): Split into...
37694         (help, version): these.
37695         Adjust the option processing part.
37696         Support "--option=value" in addition to "--option value".
37697         (builddir): New.
37698         (--builddir): New option.
37699         * top/README-release: Document this.
37700         Reword slightly so that the reader cannot understand that he
37701         has to do these steps before calling do-release-commit-and-tag.
37703 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37705         readme-release: also require announce-gen and maintainer-makefile
37706         * modules/readme-release (Depends-on): here.
37707         * modules/announce-gen, modules/do-release-commit-and-tag,
37708         modules/gnu-web-doc-update, modules/maintainer-makefile
37709         (Description): Point to readme-release.
37711 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37713         maint.mk: fix VPATH issues.
37714         * top/maint.mk (news-check): GNU Make understand $< very well.
37715         (release-prep): NEWS is in $(srcdir).
37717 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
37719         readme-release: require the promoted modules.
37720         * modules/readme-release (Depends-on): Add
37721         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
37722         in this text.
37724 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37725             Bruno Haible  <bruno@clisp.org>
37727         error, strerror-override: Support mingw64 from Fedora 17.
37728         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
37729         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
37730         EINPROGRESS.
37731         * lib/strerror-override.h (strerror_override): Test it.
37732         * lib/strerror-override.c (strerror_override): Likewise.
37733         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
37735 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37736             Bruno Haible  <bruno@clisp.org>
37738         error, strerror-override: Support mingw64 from Fedora 17.
37739         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
37740         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
37741         * lib/strerror-override.h (strerror_override): Test it.
37742         * lib/strerror-override.c (strerror_override): Likewise.
37744 2012-06-03  Bruno Haible  <bruno@clisp.org>
37746         error, strerror-override: Support new errno values from POSIX:2008.
37747         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
37748         ENOTRECOVERABLE.
37749         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
37750         platforms.
37751         * lib/strerror-override.c (strerror_override): Conditionalize the
37752         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
37753         * lib/strerror-override.h (strerror_override): Declare also if
37754         GNULIB_defined_EOWNERDEAD is defined.
37755         * tests/test-errno.c (e130, e131): New variables.
37756         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
37757         ENOTRECOVERABLE.
37758         Reported by Paolo Bonzini.
37760 2012-05-31  Jim Meyering  <meyering@redhat.com>
37762         savewd: add missing dependency on sys_wait module
37763         * modules/savewd (Depends-on): Add sys_wait, needed at least
37764         for MSVC.  Report and suggested change by Michael Goffioul.
37766 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
37768         system-quote-tests: port to CentOS 5
37769         Problem reported by Tom G. Christensen in
37770         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
37771         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
37773 2012-05-29  Jim Meyering  <meyering@redhat.com>
37775         maint: fix typos in comments and ChangeLog
37776         Culprits identified and fixed mostly automatically using these commands:
37777         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
37778         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
37779         using http://github.com/lyda/misspell-check
37780         * ChangeLog: Fix typos.
37781         * doc/solaris-versions: Likewise.
37782         * lib/regexec.c (re_search_stub): Likewise.
37783         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37785 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37787         manywarnings: remove duplicate -Wmultichar entry
37788         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
37789         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
37790         so keep the entry marked as documented.
37792 2012-05-27  Karl Berry  <karl@gnu.org>
37794         * config/srclist.txt (mktime.c): remove last libc sync,
37795         perhaps just temporarily.
37797 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37799         regex: don't assume uint64_t or uint32_t
37800         * lib/regcomp.c (init_word_char): Don't assume that the types
37801         uint64_t and uint32_t exist.  The C standard doesn't guarantee
37802         them, and on some 32-bit compilers there is no uint64_t.
37803         Problem reported by Gianluigi Tiesi in
37804         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
37806 2012-05-25  Jim Meyering  <meyering@redhat.com>
37808         maint.mk: add strncpy-prohibiting syntax-check rule
37809         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
37811 2012-05-24  Jim Meyering  <meyering@redhat.com>
37813         maint.mk: compute $(gpg_key_ID) more portably
37814         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
37815         That use of sed is not portable to some fringe systems.
37816         Reported by Paul Eggert in
37817         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
37819 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
37821         mktime: sync from glibc
37822         * config/srclist.txt: Uncomment mktime.c.
37823         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
37824         First, indent with tabs, since glibc uses tabs and doesn't want to
37825         change and we'd rather be identical to glibc.  Also, two small
37826         coding changes:
37827         (isdst_differ): Use &&, not &, as && is the usual style.
37828         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
37829         for clarity.
37831 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37833         announce-gen: du -h is more portable than du --human
37834         * build-aux/announce-gen (sizes): Invoke du with -h instead
37835         of --human.  Accept leading white space in its output.
37837 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37839         announce-gen: Improve diagnostics.
37840         * build-aux/announce-gen: When parsing command line options,
37841         prefer "announce-gen: option --release-type requires an argument"
37842         to "Option release-type requires an argument".
37844 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37846         maint.mk: gpg_key_ID: use sed more portably
37847         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
37848         the closing brace.
37849         (refresh-po): Fuse two sed invocations into one.
37851 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
37853         gitlog-to-changelog: support the log message format used in Bison.
37854         * build-aux/gitlog-to-changelog: Support --strip-tab and
37855         --strip-cherry-picked.
37857 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37859         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
37860         the rest of the current time slice to another thread in the current
37861         process. So if the thread that feeds the file decscriptor we're
37862         polling is not in the current process, we get busy-waiting.
37863         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
37864         Patch from Theodore Leblond.
37865         * lib/select.c: Split polling out of the loop that sets the output
37866         fd_sets.  Check for zero result and loop if the wait timeout is
37867         infinite.
37869 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37871         select: Fix build error on IRIX 6.5.
37872         * lib/select.c: Include stddef.h for NULL.
37874 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37876         gc: fix libgcrypt detection on older machines.
37877         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
37878         copyright years because the file has been distributed every year
37879         since it was created.
37881 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37883         crypto: fix bug in large buffer handling
37884         Problem reported by Serge Belyshev for glibc in
37885         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
37886         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
37887         * lib/md4.c (md4_process_block):
37888         * lib/md5.c (md5_process_block):
37889         * lib/sha1.c (sha1_process_block):
37890         * lib/sha256.c (sha256_process_block):
37891         Don't assume the buffer length is less than 2**32.
37892         * lib/sha512.c (sha512_process_block): Likewise.
37893         Here, the bug is present only in the rare case where the host does
37894         not support uint64_t or where size_t is wider than 64 bits.
37895         Use u64size to work around the problems.
37896         * lib/u64.h (u64size): New macro.
37898 2012-05-15  Pádraig Brady  <P@draigBrady.com>
37900         fsusage: fix block size returned on older Linux 2.6
37902         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
37903         which is available since Linux 2.6.
37904         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
37905         when the member is available so it can be used as a fallback.
37906         * doc/posix-functions/statvfs.texi: Mention the hang issue
37907         on Linux < 2.6.36.
37909 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37911         bootstrap: suppress stderr chatter
37912         * build-aux/bootstrap (insert_sorted_if_absent, main program):
37913         Omit unnecessary chatter to stderr.  The main program chatter
37914         was there only inadvertantly.
37916         bootstrap: .gitignore files created by autopoint, libtool
37917         I ran into this problem when bootstrapping the latest diffutils.
37918         After './bootstrap', 'git status' reported lots of untracked files
37919         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
37920         autopoint and do not need to be version-controlled.
37921         * build-aux/bootstrap: Put into .gitignore the files that
37922         autopoint and libtool create, by keeping track of files that exist
37923         after but not before these programs are run.
37924         (version_controlled_file): Move up.  2nd arg is now full file
37925         name, not base name; this is more convenient.  Put CVS at the end,
37926         as it's now somewhat deprecated.
37928 2012-05-14  Jim Meyering  <meyering@redhat.com>
37930         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
37931         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
37932         definition.  Reported by Bruno Haible.
37934 2012-05-13  Bruno Haible  <bruno@clisp.org>
37935             Paul Eggert  <eggert@cs.ucla.edu>
37937         binary-io: Define set_binary_mode function.
37938         * lib/binary-io.h (set_binary_mode): New function.
37939         (SET_BINARY): Define in terms of set_binary_mode.
37940         * modules/binary-io (configure.ac): Require AC_C_INLINE.
37941         * tests/test-binary-io.c (main): Accept an argument, and test either
37942         set_binary_mode or SET_BINARY depending on the argument.
37943         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
37944         argument. Clean up also t-bin-out0.tmp.
37946 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
37948         bootstrap: take advantage of POSIX shell features
37950         The 'bootstrap' script offered by Gnulib script already uses POSIX
37951         shell features (like $((...)) arithmetic expansions) that are not
37952         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
37953         means that bootstrap must already be run using a proper POSIX shell,
37954         which will thus provide more features, like ${var#pattern} parameter
37955         expansion or inversion of a command exit status with '!'.  We can
37956         thus use these features to improve the clarity and the performances
37957         of the bootstrap script.
37959         Suggested by Eric Blake.
37961         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
37962         of sed/expr plus command substitutions, to save some forks.  While
37963         we are at it, prefer the POSIX $(...) form of command substitution,
37964         rather than the legacy form `...` (since the former is visually
37965         clearer and interacts better with quoting), and prefer the idiom:
37966           "if ! CMD; then ACTION ..."
37967         over the idiom:
37968           "if CMD; then :; else ACTION ..."
37969         which was required by legacy Bourne shells not supporting '!'.
37971 2012-05-12  Bruno Haible  <bruno@clisp.org>
37973         system-quote: Add more comments.
37974         * lib/system-quote.h: Add more comments about wilcards and limitations.
37975         Suggested by Eli Zaretskii <eliz@gnu.org>.
37977         sh-quote, system-quote: Add comments about wildcards.
37978         * lib/sh-quote.h: Clarify what happens with wildcard characters.
37979         * lib/system-quote.h: Likewise.
37980         Reported by Eli Zaretskii <eliz@gnu.org>.
37982 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
37984         fsusage: check for GNU/Linux statvfs problem dynamically
37985         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
37986         Define STAT_STATFS2_BSIZE too, since in this case the code now
37987         checks dynamically whether statvfs is reliable, falling back on
37988         Linux-style statfs otherwise.
37989         (statvfs_works): New function, for dynamically testing statvfs.
37990         (get_fs_usage) [STAT_STATVFS]: Use it.
37991         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
37992         statvfs on GNU/Linux hosts, since it's now done dynamically.
37994 2012-05-10  Bruno Haible  <bruno@clisp.org>
37996         system-quote, execute, spawn-pipe: Escape '?' on Windows.
37997         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
37998         '?' character.
37999         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
38000         * tests/test-system-quote-main.c (check_all): Check also strings like
38001         "??????????".
38002         Reported by Eli Zaretskii <eliz@gnu.org>.
38004 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38006         _Noreturn: port config.h to gcc -Wundef
38007         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
38008         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
38009         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
38011 2012-05-10  Bruno Haible  <bruno@clisp.org>
38013         system-quote: Refactor.
38014         * lib/system-quote.h (system_quote_copy): Fix comment.
38015         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
38016         New functions, extracted from system_quote_copy.
38017         (system_quote_length, system_quote_copy): Use these functions.
38018         Reported by Paul Eggert.
38020 2012-05-08  Bruno Haible  <bruno@clisp.org>
38022         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
38023         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
38025 2012-05-08  Bruno Haible  <bruno@clisp.org>
38027         Tests for module 'system-quote'.
38028         * modules/system-quote-tests: New file.
38029         * tests/test-system-quote.sh: New file.
38030         * tests/test-system-quote-main.c: New file.
38031         * tests/test-system-quote-child.c: New file.
38033         New module 'system-quote'.
38034         * lib/system-quote.h: New file.
38035         * lib/system-quote.c: New file.
38036         * modules/system-quote: New file.
38038 2012-05-08  Bruno Haible  <bruno@clisp.org>
38040         sh-quote: Make C++ safe and allow multiple inclusion.
38041         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
38042         declarations in extern "C".
38044 2012-05-08  Bruno Haible  <bruno@clisp.org>
38046         sh-quote tests: Make tests stricter.
38047         * tests/test-sh-quote.c (check_one): Check the return value of
38048         shell_quote_copy.
38049         (main): Check a string with a CR character. Check a string that
38050         contains UCHAR_MAX.
38052 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
38054         warnings.m4: provide a means to specify the program to compile.
38055         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
38056         (gl_WARN_ADD): here.
38057         Use gl_AS_VAR_APPEND.
38058         Support an argument to specify the program to compile.
38059         (gl_WARN_ADD): Accept an argument to specify the program to compile.
38060         AC_SUBST the WARN_CFLAGS when they are used.
38061         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
38062         leave this to gl_WARN_ADD.
38064 2012-05-08  Eric Blake  <eblake@redhat.com>
38066         doc: recommendations on gettext version
38067         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
38068         choice between versions.
38069         * DEPENDENCIES (gettext): Cover both approaches.
38071 2012-05-08  Jim Meyering  <meyering@redhat.com>
38073         init.sh: explain why EXEEXT support uses aliases rather than functions
38074         * tests/init.sh: Add a comment.
38076         init.sh: don't let bash aliases interfere with tests
38077         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
38078         is bash.  This avoids problems for those who alias standard commands to
38079         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
38080         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
38082 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
38084         stdint: be more consistent with glibc, SunOS libc
38085         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
38086         (gl_int_fast16_t, gl_uint_fast16_t)
38087         (gl_int_fast32_t, gl_uint_fast32_t)
38088         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
38089         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
38090         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
38091         Be consistent with glibc by default, and with SunOS 5.10 and later
38092         if __sun is defined.  This lessens the likelihood of clashes if
38093         code compiled for older hosts is combined with code compiled for
38094         newer ones.  Problem reported by Niels Möller in
38095         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
38097 2012-05-07  Eric Blake  <eblake@redhat.com>
38099         isatty: relax license to LGPLv2+
38100         * modules/isatty (License): Relax license.
38102 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38104         stat-size: comment fix
38105         * lib/stat-size.h: Remove obsolete comment about indenting.
38107 2012-05-06  Bruno Haible  <bruno@clisp.org>
38109         Tests for module 'sh-quote'.
38110         * modules/sh-quote-tests: New file.
38111         * tests/test-sh-quote.c: New file.
38113 2012-05-06  Bruno Haible  <bruno@clisp.org>
38115         sh-quote: Improve shell_quote_argv's signature.
38116         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
38117         * lib/sh-quote.c (shell_quote_argv): Likewise.
38119 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38121         stdint: document issues with int_fast8_t etc.
38122         * doc/posix-headers/stdint.texi (stdint.h): Say that other
38123         stdint.h substitutes may define these types differently.  See
38124         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
38126 2012-05-05  Bruno Haible  <bruno@clisp.org>
38128         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
38129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
38130         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
38131         or 'guessing no (mishandles large arguments)'.
38133 2012-05-05  Bruno Haible  <bruno@clisp.org>
38135         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
38136         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
38137         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38138         set gl_cv_func_link_follows_symlink to "guessing no".
38140 2012-05-05  Bruno Haible  <bruno@clisp.org>
38142         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
38143         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38144         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
38145         "guessing no".
38146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
38148 2012-05-05  Bruno Haible  <bruno@clisp.org>
38150         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
38151         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
38152         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38153         set gl_cv_struct_dirent_d_ino to "guessing yes".
38155 2012-05-05  Bruno Haible  <bruno@clisp.org>
38157         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
38158         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
38159         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
38160         "guessing yes".
38162 2012-05-05  Bruno Haible  <bruno@clisp.org>
38164         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
38165         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
38166         compiling to a glibc system, set gl_cv_func_signbit and
38167         gl_cv_func_signbit_gcc to "guessing yes".
38169 2012-05-05  Bruno Haible  <bruno@clisp.org>
38171         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
38172         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
38173         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
38174         to "guessing yes".
38175         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
38176         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
38178 2012-05-05  Bruno Haible  <bruno@clisp.org>
38180         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
38181         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
38182         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
38183         gl_cv_func_realpath_works to "guessing yes".
38185 2012-05-05  Bruno Haible  <bruno@clisp.org>
38187         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
38188         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
38189         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
38191 2012-05-04  Bruno Haible  <bruno@clisp.org>
38193         Tweak last commit.
38194         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
38195         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38197 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
38199         unistd_h: make it easier to avoid sys_types_h
38200         This is useful for Emacs, which has its own method of porting to
38201         Windows, and which therefore does not need the sys_types_h module.
38202         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
38203         code moved here from gl_SYS_TYPES_H.
38204         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
38205         using the code directly.
38206         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
38207         gl_SYS_TYPES_H.
38208         * modules/sys_types (Files):
38209         * modules/unistd (Files): Add m4/off_t.m4.
38211 2012-05-03  Bruno Haible  <bruno@clisp.org>
38213         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
38214         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
38215         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
38216         "guessing yes" or "guessing no".
38217         (gl_FUNC_LSTAT): Update.
38218         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
38219         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
38220         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
38222 2012-05-03  Bruno Haible  <bruno@clisp.org>
38224         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
38225         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
38226         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
38227         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
38228         cross-compiling, choose the first alternative on glibc systems.
38229         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
38231 2012-05-03  Bruno Haible  <bruno@clisp.org>
38233         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
38234         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
38235         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
38237 2012-05-03  Bruno Haible  <bruno@clisp.org>
38239         chown: Avoid "guessing no" when cross-compiling to glibc systems.
38240         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
38242 2012-05-03  Bruno Haible  <bruno@clisp.org>
38244         Avoid "guessing no" guesses when cross-compiling to glibc systems.
38245         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
38246         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
38247         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
38248         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
38249         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
38250         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
38251         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
38252         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
38253         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
38254         compiling to glibc systems, set gl_cv_func_chown_slash_works,
38255         gl_cv_func_chown_ctime_works to "guessing yes".
38256         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
38257         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
38258         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
38259         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
38260         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
38261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
38262         compiling to glibc systems, set gl_cv_func_open_directory_works to
38263         "guessing yes".
38264         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
38265         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
38266         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
38267         "guessing yes".
38268         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
38269         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
38270         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
38271         compiling to glibc systems, set gl_cv_func_floorf_ieee to
38272         "guessing yes".
38273         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38274         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
38275         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
38276         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
38277         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
38278         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
38279         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
38280         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
38281         "guessing yes".
38282         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
38283         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
38284         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
38285         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
38286         "guessing yes".
38287         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
38288         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
38289         "guessing yes".
38290         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
38291         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
38292         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
38293         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
38294         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
38295         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
38296         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
38297         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
38298         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
38299         compiling to glibc systems, set gl_cv_func_log10f_ieee to
38300         "guessing yes".
38301         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
38302         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
38303         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
38304         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
38305         "guessing yes".
38306         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
38307         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
38308         "guessing yes".
38309         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
38310         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
38311         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
38312         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
38313         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
38314         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
38315         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
38316         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
38317         compiling to glibc systems, set gl_cv_func_mkfifo_works to
38318         "guessing yes".
38319         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
38320         compiling to glibc systems, set gl_cv_func_mknod_works to
38321         "guessing yes".
38322         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
38323         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
38324         "guessing yes".
38325         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
38326         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
38327         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
38328         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
38329         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
38330         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
38331         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
38332         compiling to glibc systems, set gl_cv_func_svid_putenv to
38333         "guessing yes".
38334         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
38335         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
38336         "guessing yes".
38337         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
38338         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
38339         "guessing yes".
38340         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
38341         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
38342         to "guessing yes".
38343         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
38344         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
38345         to "guessing yes".
38346         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
38347         compiling to glibc systems, set gl_cv_func_rmdir_works to
38348         "guessing yes".
38349         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
38350         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
38351         gl_cv_func_unlink_parent_fails to "guessing yes".
38352         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
38353         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
38354         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
38355         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
38356         gl_cv_func_rename_dest_works to "guessing yes".
38357         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
38358         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
38359         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
38360         compiling to glibc systems, set gl_cv_func_roundf_ieee to
38361         "guessing yes".
38362         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
38363         compiling to glibc systems, set gl_cv_func_roundl_ieee to
38364         "guessing yes".
38365         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
38366         compiling to glibc systems, set gl_cv_func_setenv_works to
38367         "guessing yes".
38368         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
38369         compiling to glibc systems, set gl_cv_func_unsetenv_works to
38370         "guessing yes".
38371         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
38372         compiling to glibc systems, set gl_cv_func_sleep_works to
38373         "guessing yes".
38374         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
38375         compiling to glibc systems, set gl_cv_func_stat_file_slash to
38376         "guessing yes".
38377         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
38378         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
38379         "guessing yes".
38380         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
38381         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
38382         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
38383         compiling to glibc systems, set gl_cv_func_truncf_ieee to
38384         "guessing yes".
38385         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
38386         compiling to glibc systems, set gl_cv_func_truncl_ieee to
38387         "guessing yes".
38388         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
38389         compiling to glibc systems, set gl_cv_func_usleep_works to
38390         "guessing yes".
38391         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
38392         compiling to glibc systems, set gl_cv_func_futimesat_works to
38393         "guessing yes".
38395 2012-05-03  Bruno Haible  <bruno@clisp.org>
38397         Say "guessing yes" or "guessing no" when cross-compiling.
38398         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
38399         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
38400         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
38401         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
38402         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
38403         am_cv_func_working_getline to "guessing yes" or "guessing no".
38404         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
38405         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
38406         (gl_FUNC_MEMMEM): When cross-compiling, set
38407         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
38408         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
38409         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
38410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
38411         set gl_cv_func_strcasestr_works_always to "guessing yes" or
38412         "guessing no".
38413         (gl_FUNC_STRCASESTR): When cross-compiling, set
38414         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
38415         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
38416         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
38417         (gl_FUNC_STRSTR): When cross-compiling, set
38418         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
38419         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
38420         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
38421         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
38422         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
38424 2012-05-01  Bruno Haible  <bruno@clisp.org>
38426         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
38427         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
38428         * build-aux/reloc-ldflags: Likewise.
38429         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
38431 2012-05-01  Bruno Haible  <bruno@clisp.org>
38433         gnulib-tool: Remove transitional code.
38434         * gnulib-tool: Don't warn about --import with 0 arguments any more.
38435         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38437 2012-05-01  Bruno Haible  <bruno@clisp.org>
38439         getcwd: Fix misindentation.
38440         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
38442 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
38444         exclude: process exclude and include directives in order
38445         This restores the pre-2009 behavior, and is part of a fix of a
38446         grep bug reported by Quentin Arce in
38447         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
38448         * lib/exclude.c (struct exclude): Remove 'tail' member.
38449         (new_exclude_segment): Prepend the new segment instead of appending.
38450         Return void, since that's now more convenient.
38451         (file_pattern_matches): Renamed from excluded_file_pattern_p.
38452         (file_name_matches): Renamed from excluded_file_name_p.
38453         (file_pattern_matches, file_name_matches):
38454         Return true if the pattern matches, not if it excludes.
38455         All callers changed.
38456         (excluded_file_name): Process the list in reverse order;
38457         since the list is now reversed this restores the pre-2009 behavior.
38458         (add_exclude): Adjust to new reversed-order list.  Use local var
38459         rather than macro, for clarity.
38460         * tests/test-exclude7.sh: Adjust to corrected behavior.
38462         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
38463         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
38464         it's not possible here.  Handle the case of \ at end of pattern
38465         without dumping core.
38466         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
38468         _Noreturn: future-proof non-GNU and non-MSVC compilers
38469         * build-aux/snippet/_Noreturn.h (_Noreturn):
38470         * m4/gnulib-common.m4 (gl_COMMON_BODY):
38471         Do not define _Noreturn if __STDC_VERSION__ indicates this is
38472         C11 or later.  This is more likely to work with random future C
38473         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
38474         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
38476         exclude: handle wildcards with FNM_EXTMATCH
38477         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
38478         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
38479         comment that "has wildcards" really means "has or may have
38480         wildcards".  Simplify by avoiding the need to call strcspn.
38482 2012-04-29  Bruno Haible  <bruno@clisp.org>
38484         gnulib-tool: Fix list of authors.
38485         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
38487 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
38489         bootstrap: support Automake-NG in $buildreq
38490         * bootstrap (check_versions): Handle automake and aclocal from
38491         Automake-NG specially.  They can be specified as respectively
38492         the "automake-ng" and "aclocal-ng" requirements.
38494 2012-04-25  Eric Blake  <eblake@redhat.com>
38496         bootstrap: only force latest Makefile.in.in for gettext module
38497         * build-aux/bootstrap (with_gettext): Only install latest
38498         Makefile.in.in for projects requesting bleeding edge gettext.
38500 2012-04-22  Bruno Haible  <bruno@clisp.org>
38502         doc: Mention reason for replacement on glibc/Linux systems.
38503         * doc/posix-functions/dprintf.texi: Mention the problem with special
38504         'long double' values.
38505         * doc/posix-functions/fprintf.texi: Likewise.
38506         * doc/posix-functions/printf.texi: Likewise.
38507         * doc/posix-functions/snprintf.texi: Likewise.
38508         * doc/posix-functions/sprintf.texi: Likewise.
38509         * doc/posix-functions/vdprintf.texi: Likewise.
38510         * doc/posix-functions/vfprintf.texi: Likewise.
38511         * doc/posix-functions/vprintf.texi: Likewise.
38512         * doc/posix-functions/vsnprintf.texi: Likewise.
38513         * doc/posix-functions/vsprintf.texi: Likewise.
38514         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
38515         platforms with F_DUPFD_CLOEXEC problems.
38516         * doc/posix-functions/glob.texi: Mention which platforms are affected
38517         by the problem with symbolic links.
38518         * doc/posix-functions/linkat.texi: Mention the problem with
38519         AT_SYMLINK_FOLLOW on Linux.
38521 2012-04-22  Bruno Haible  <bruno@clisp.org>
38523         pwrite: Don't replace on all platforms.
38524         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
38526 2012-04-22  Bruno Haible  <bruno@clisp.org>
38528         rint* tests: Avoid gcc warnings.
38529         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
38530         * tests/test-rintf.c (INFINITY, NAN): Likewise.
38531         * tests/test-rintl.c (INFINITY, NAN): Likewise.
38533 2012-04-21  Bruno Haible  <bruno@clisp.org>
38535         users.txt: Update.
38536         * users.txt: Add freedink, wdiff. Update URLs for projects that have
38537         switched from CVS to git, bzr, or svn.
38539 2012-04-21  Bruno Haible  <bruno@clisp.org>
38541         Large File Support for native Windows platforms.
38543         * m4/largefile.m4 (gl_LARGEFILE): New macro.
38544         * modules/largefile (configure.ac): Require gl_LARGEFILE.
38546         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
38547         type.
38548         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
38549         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
38550         * doc/posix-headers/sys_types.texi: Mention the effect of the
38551         'largefile' module.
38553         * lib/fcntl.in.h: Add comments about off_t.
38554         * modules/fcntl-h (Depends-on): Add sys_types.
38556         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
38557         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
38558         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
38559         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
38560         * modules/unistd (Depends-on): Add sys_types.
38561         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
38563         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
38564         instead of lseek.
38565         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
38566         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
38567         * modules/lseek (Depends-on): Add sys_types.
38569         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
38570         msvc-nothrow.h.
38571         (SetFileSize): New function.
38572         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
38573         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
38574         if Large File Support is requested.
38575         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
38576         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
38578         * lib/stdio.in.h: Add comments about off_t.
38579         * modules/stdio (Depends-on): Add sys_types.
38581         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
38582         instead of ftello.
38583         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
38584         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
38585         (gl_PREREQ_FTELLO): New macro.
38586         * modules/ftello (Depends-on): Add sys_types.
38587         (configure.ac): Incoke gl_PREREQ_FTELLO.
38589         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
38590         instead of fseeko.
38591         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
38592         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
38593         (gl_PREREQ_FSEEKO): New macro.
38594         * modules/fseeko (Depends-on): Add sys_types.
38595         (configure.ac): Invoke gl_PREREQ_FSEEKO.
38597         * lib/sys_stat.in.h: Add comments about off_t.
38598         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
38599         64-bit integer for st_size in 'struct stat'.
38600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
38601         Define _GL_WINDOWS_64_BIT_ST_SIZE.
38602         * modules/sys_stat (Depends-on): Add sys_types.
38603         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
38605         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
38606         instead of stat or _stat.
38608         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
38609         'struct _stati64' instead of fstat and 'struct stat'.
38610         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
38611         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
38613         Reported by Ray Satiro <raysatiro@yahoo.com>.
38615 2012-04-19  Eric Blake  <eblake@redhat.com>
38617         bootstrap: accommodate older libtool
38618         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
38619         Reported by Daniel P. Berrange.
38621 2012-04-19  Jim Meyering  <meyering@redhat.com>
38623         announce-gen: avoid failure due to lack of Digest::SHA1
38624         Even with the preferred Digest::SHA available, this script
38625         would fail when the backup module, Digest::SHA1, was not installed.
38626         * build-aux/announce-gen: Quote the conditional use of "use".
38627         Reported by Reuben Thomas in:
38628         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
38630         bootstrap: don't let a user's CDPATH setting affect this script
38631         When CDPATH is set, cd will sometimes generate output.
38632         When "cd" is run in a subshell whose output matters, that
38633         surprising-to-some output can cause malfunction.
38634         Unsetting CDPATH turns off this shell "feature."
38635         * build-aux/bootstrap (CDPATH): Unset.
38636         Reported by Reuben Thomas in:
38637         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
38638         and inspired by his patch here:
38639         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
38641 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
38642         and Jim Meyering  <meyering@redhat.com>
38644         maint.mk: catch "see @xref{}" and similar
38645         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
38646         prohibit "See also @xref{", "Also see @pxref{", and similar.
38648 2012-04-16  Jim Meyering  <meyering@redhat.com>
38650         bootstrap: really use gnulib's po/Makefile.in.in
38651         * build-aux/bootstrap: Correct the source file name in previous change.
38652         Reported by Akim Demaille.
38654         configmake: correct minor inconsistency in Makefile rule
38655         * modules/configmake (Makefile.am): All other rules like this one
38656         run the final "mv -f ..." in the same backslash-continued command
38657         as the one that does everything else.  This one put the mv -f ...
38658         command on a separate, non-backslash-continued line.
38659         Make it like the others.
38661         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
38662         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
38663         the one from gettext.  Reported by Akim Demaille.
38665 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
38667         Fix recursion of install-* into po directories.
38668         Bison's install-pdf bug reported by Hans Aberg at
38669         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
38670         * build-aux/po/Makefile.in.in (install-dvi, install-html)
38671         (install-info, install-pdf, install-ps): New targets.
38673 2012-04-16  Jim Meyering  <meyering@redhat.com>
38675         maint: avoid spurious "make sc_maint" failure
38676         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
38677         exempt all *.class file names, for lib/javaversion.class.
38679 2012-04-15  Bruno Haible  <bruno@clisp.org>
38681         lseek: Make configure test independent of environment.
38682         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
38683         Windows, we know that lseek() on pipes is broken; skip the runtime
38684         test.
38686 2012-04-14  Bruno Haible  <bruno@clisp.org>
38688         stat: Bypass buggy override in mingw64.
38689         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
38690         * lib/stat.c (stat) [mingw64]: Define to _stat.
38691         * doc/posix-functions/stat.texi: Mention mingw64 bug.
38693 2012-04-14  Bruno Haible  <bruno@clisp.org>
38695         pathmax: Fix compilation error on MSVC 9.
38696         * modules/pathmax (Depends-on): Add unistd.
38698 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38700         README: document pointer comparison assumption
38701         * README (Portability guidelines): Document assumption about
38702         pointer comparisons, in response to a recent bug-gnulib comment by
38703         Jeffrey Kegler.
38705 2012-04-12  Bruno Haible  <bruno@clisp.org>
38707         Tests for module 'getrusage'.
38708         * modules/getrusage-tests: New file.
38709         * tests/test-getrusage.c: New file.
38711         New module 'getrusage'.
38712         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
38713         warn-on-use.h.
38714         (getrusage): New declaration.
38715         * lib/getrusage.c: New file.
38716         * m4/getrusage.m4: New file.
38717         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
38718         is declared.
38719         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
38720         HAVE_GETRUSAGE.
38721         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
38722         snippet/c++defs, snippet/warn-on-use.
38723         (Makefile.am): Update generation of sys/resource.h. Substitute
38724         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
38725         * modules/getrusage: New file.
38726         * doc/posix-functions/getrusage.texi: Mention the new module.
38728 2012-04-12  Bruno Haible  <bruno@clisp.org>
38730         Tests for module 'sys_resource'.
38731         * modules/sys_resource-tests: New file.
38732         * tests/test-sys_resource.c: New file.
38734         New module 'sys_resource'.
38735         * lib/sys_resource.in.h: New file.
38736         * m4/sys_resource_h.m4: New file.
38737         * modules/sys_resource: New file.
38738         * doc/posix-headers/sys_resource.texi: Mention the new module.
38740 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
38742         ioctl: Fix compilation error on mingw.
38743         * lib/ioctl.c: Include <windows.h>.
38744         Also reported by Ray Satiro <raysatiro@yahoo.com>.
38746 2012-04-04  Jim Meyering  <meyering@redhat.com>
38748         regex: correct #pragma guard expression
38749         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
38750         not 4.3.  Correct its cpp guard expression.
38752 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38754         regex: remove unnecessary type punning
38755         Problem reported by Vladimir Serbinenko in
38756         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
38757         * lib/regex.h (struct re_pattern_buffer): Change the type of
38758         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
38759         Fix comment to match code.
38760         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
38761         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
38762         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
38763         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
38764         (set_regs):
38765         Omit no-longer-necessary casts.
38767 2012-04-03  Bruno Haible  <bruno@clisp.org>
38769         Tests for module 'ilogbl'.
38770         * modules/ilogbl-tests: New file.
38771         * tests/test-ilogbl.c: New file.
38773         New module 'ilogbl'.
38774         * lib/math.in.h (ilogbl): New declaration.
38775         * lib/ilogbl.c: New file.
38776         * m4/ilogbl.m4: New file.
38777         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
38778         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
38779         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
38780         Split sed invocation, to avoid the limit of 100 substitutions of
38781         HP-UX 'sed'.
38782         * modules/ilogbl: New file.
38783         * tests/test-math-c++.cc: Check the declaration of ilogbl.
38784         * doc/posix-functions/ilogbl.texi: Mention the new module.
38786 2012-04-03  Bruno Haible  <bruno@clisp.org>
38788         Tests for module 'ilogbf'.
38789         * modules/ilogbf-tests: New file.
38790         * tests/test-ilogbf.c: New file.
38792         New module 'ilogbf'.
38793         * lib/math.in.h (ilogbf): New declaration.
38794         * lib/ilogbf.c: New file.
38795         * m4/ilogbf.m4: New file.
38796         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
38797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
38798         REPLACE_ILOGBF.
38799         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
38800         REPLACE_ILOGBF.
38801         * modules/ilogbf: New file.
38802         * tests/test-math-c++.cc: Check the declaration of ilogbf.
38803         * doc/posix-functions/ilogbf.texi: Mention the new module.
38805 2012-04-03  Bruno Haible  <bruno@clisp.org>
38807         Tests for module 'ilogb'.
38808         * modules/ilogb-tests: New file.
38809         * tests/test-ilogb.c: New file.
38810         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
38811         tests/test-logb-ieee.h.
38813         New module 'ilogb'.
38814         * lib/math.in.h (ilogb): New declaration.
38815         * lib/ilogb.c: New file.
38816         * m4/ilogb.m4: New file.
38817         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
38818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
38819         REPLACE_ILOGB.
38820         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
38821         REPLACE_ILOGB.
38822         * modules/ilogb: New file.
38823         * tests/test-math-c++.cc: Check the declaration of ilogb.
38824         * doc/posix-functions/ilogb.texi: Mention the new module.
38826 2012-04-03  Bruno Haible  <bruno@clisp.org>
38828         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
38829         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
38830         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
38831         (main): Check their values.
38832         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
38833         problem.
38835 2012-04-03  Bruno Haible  <bruno@clisp.org>
38837         Tests for module 'logbl-ieee'.
38838         * modules/logbl-ieee-tests: New file.
38839         * tests/test-logbl-ieee.c: New file.
38841         New module 'logbl-ieee'.
38842         * modules/logbl-ieee: New file.
38844         Tests for module 'logb-ieee'.
38845         * modules/logb-ieee-tests: New file.
38846         * tests/test-logb-ieee.c: New file.
38848         New module 'logb-ieee'.
38849         * modules/logb-ieee: New file.
38851         Tests for module 'logbf-ieee'.
38852         * modules/logbf-ieee-tests: New file.
38853         * tests/test-logbf-ieee.c: New file.
38854         * tests/test-logb-ieee.h: New file.
38856         New module 'logbf-ieee'.
38857         * modules/logbf-ieee: New file.
38859 2012-04-03  Bruno Haible  <bruno@clisp.org>
38861         Tests for module 'logbl'.
38862         * modules/logbl-tests: New file.
38863         * tests/test-logbl.c: New file.
38865         New module 'logbl'.
38866         * lib/math.in.h (logbl): New declaration.
38867         * lib/logbl.c: New file.
38868         * m4/logbl.m4: New file.
38869         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
38870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
38871         REPLACE_LOGBL.
38872         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
38873         REPLACE_LOGBL.
38874         * modules/logbl: New file.
38875         * tests/test-math-c++.cc: Check the declaration of logbl.
38876         * doc/posix-functions/logbl.texi: Mention the new module.
38878 2012-04-02  Bruno Haible  <bruno@clisp.org>
38880         Tests for module 'logbf'.
38881         * modules/logbf-tests: New file.
38882         * tests/test-logbf.c: New file.
38884         New module 'logbf'.
38885         * lib/math.in.h (logbf): New declaration.
38886         * lib/logbf.c: New file.
38887         * m4/logbf.m4: New file.
38888         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
38889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
38890         REPLACE_LOGBF.
38891         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
38892         REPLACE_LOGBF.
38893         * modules/logbf: New file.
38894         * tests/test-math-c++.cc: Check the declaration of logbf.
38895         * doc/posix-functions/logbf.texi: Mention the new module.
38897 2012-04-02  Bruno Haible  <bruno@clisp.org>
38899         logb tests: More tests.
38900         * tests/test-logb.h: New file, based on tests/test-logb.c and
38901         tests/test-frexp.h.
38902         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
38903         (main): Just invoke test_function.
38904         * modules/logb-tests (Files): Add tests/test-logb.h,
38905         tests/minus-zero.h, tests/randomd.c.
38906         (Makefile.am): Add randomd.c to test_logb_SOURCES.
38908         logb: Provide replacement and workarounds.
38909         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
38910         is 1.
38911         * lib/logb.c: New file.
38912         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
38913         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
38914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
38915         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
38916         * modules/logb (Files): Add lib/logb.c.
38917         (Depends-on): Add isfinite, frexp, isnand.
38918         (configure.ac): Compile the replacement code logb.c if needed.
38919         * tests/test-math-c++.cc: Check the declaration of logb.
38920         * doc/posix-functions/logb.texi: Mention the replacement and the bug
38921         with subnormal numbers.
38923 2012-04-02  Bruno Haible  <bruno@clisp.org>
38925         log10* tests: Speed up.
38926         * tests/test-log10.h (test_function): Reduce amount of random numbers
38927         to test.
38929 2012-04-01  Bruno Haible  <bruno@clisp.org>
38931         logf-ieee: Fix test whether logf works.
38932         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
38934 2012-04-01  Bruno Haible  <bruno@clisp.org>
38936         log10l: Work around log10l-ieee test failure on IRIX 6.5.
38937         * lib/log10l.c: Include <float.h>
38938         (log10l): On IRIX, normalize the +Infinity value.
38939         * modules/log10l (Depends-on): Add 'float'.
38940         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
38941         +Infinity.
38943         log10f-ieee: Work around test failure on NetBSD 5.1.
38944         * m4/log10f-ieee.m4: New file.
38945         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
38946         test whether log10f works with a negative argument. Replace it if not.
38947         * lib/log10f.c (log10f): For negative arguments, return NaN.
38948         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
38949         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
38950         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
38952         log10f-ieee: Work around test failure on Solaris 9.
38953         * modules/log10f-ieee (Depends-on): Add log10-ieee.
38954         (configure.ac): Require gl_FUNC_LOG10F.
38956         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
38957         * m4/log10-ieee.m4: New file.
38958         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
38959         whether log10 works with a negative argument. Replace it if not.
38960         * lib/log10.c (log10): For negative arguments, return NaN.
38961         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
38962         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
38963         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
38965         Tests for module 'log10l-ieee'.
38966         * modules/log10l-ieee-tests: New file.
38967         * tests/test-log10l-ieee.c: New file.
38969         New module 'log10l-ieee'.
38970         * modules/log10l-ieee: New file.
38972         Tests for module 'log10-ieee'.
38973         * modules/log10-ieee-tests: New file.
38974         * tests/test-log10-ieee.c: New file.
38976         New module 'log10-ieee'.
38977         * modules/log10-ieee: New file.
38979         Tests for module 'log10f-ieee'.
38980         * modules/log10f-ieee-tests: New file.
38981         * tests/test-log10f-ieee.c: New file.
38982         * tests/test-log10-ieee.h: New file.
38984         New module 'log10f-ieee'.
38985         * modules/log10f-ieee: New file.
38987 2012-04-01  Bruno Haible  <bruno@clisp.org>
38989         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
38990         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
38991         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
38992         workaround.
38993         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
38994         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
38995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
38996         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
38997         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
38998         (Depends-on): Update conditions.
38999         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
39000         IRIX 6.5, OSF/1 5.1 problems.
39002 2012-04-01  Bruno Haible  <bruno@clisp.org>
39004         log10f: Work around OSF/1 5.1 bug.
39005         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
39006         * lib/log10f.c (log10f): If logf exists, use it and provide just the
39007         workaround.
39008         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
39009         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
39010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
39011         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
39012         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
39013         (Depends-on): Update conditions.
39014         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
39016 2012-04-01  Bruno Haible  <bruno@clisp.org>
39018         log10: Work around OSF/1 5.1 bug.
39019         * lib/math.in.h (log10): New declaration.
39020         * lib/log10.c: New file.
39021         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
39022         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
39023         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
39024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
39025         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
39026         * modules/log10 (Files): Add lib/log10.c.
39027         (Depends-on): Add math.
39028         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
39029         * tests/test-math-c++.cc: Check the declaration of log10.
39030         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
39032 2012-03-31  Bruno Haible  <bruno@clisp.org>
39034         log10l tests: More tests.
39035         * modules/log10l-tests (Files): Add tests/test-log10l.h,
39036         tests/minus-zero.h, tests/randoml.c.
39037         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
39038         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
39039         (main): Invoke test_function.
39041         log10f tests: More tests.
39042         * modules/log10f-tests (Files): Add tests/test-log10.h,
39043         tests/minus-zero.h, tests/randomf.c.
39044         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
39045         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
39046         (main): Invoke test_function.
39048         log10 tests: More tests.
39049         * tests/test-log10.h: New file.
39050         * modules/log10-tests (Files): Add tests/test-log10.h,
39051         tests/minus-zero.h, tests/randomd.c.
39052         (Makefile.am): Add randomd.c to test_log10_SOURCES.
39053         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
39054         (main): Invoke test_function.
39056 2012-03-31  Simon Josefsson  <simon@josefsson.org>
39058         fflush: Fix syntax error.
39059         * lib/fflush.c: Include unused-parameter.h, needed for
39060         _GL_UNUSED_PARAMETER.
39061         * modules/fflush (Depends-on): Add snippet/unused-parameter.
39063 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39065         regex: pacify GCC when compiling GRUB
39066         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
39067         a diagnostic.  Reported by Vladimir Serbinenko in
39068         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
39070 2012-03-29  Eric Blake  <eblake@redhat.com>
39072         stdio: don't assume gets any more
39073         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
39074         support.
39075         * modules/stdio (Makefile.am): Likewise.
39076         * lib/stdio-read.c (gets): Likewise.
39077         * tests/test-stdio-c++.cc: Likewise.
39078         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
39079         * lib/stdio.in.h (gets): Make warning occur in more places.
39080         * doc/posix-functions/gets.texi (gets): Update documentation.
39081         Reported by Christer Solskogen.
39083         maint.mk: fix syntax checks without exclusions
39084         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
39085         Reported by Daniel P. Berrange.
39087         strerror_r: avoid compiler warning
39088         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
39089         level.
39091         fflush: avoid compiler warning
39092         * lib/fflush.c (update_fpos_cache): Mark variables that are
39093         potentially unused.
39095 2012-03-25  Bruno Haible  <bruno@clisp.org>
39097         Tests for module 'localeconv'.
39098         * modules/localeconv-tests: New file.
39099         * tests/test-localeconv.c: New file.
39101         New module 'localeconv'.
39102         * lib/locale.in.h (localeconv): New declaration.
39103         * lib/localeconv.c: New file.
39104         * m4/localeconv.m4: New file.
39105         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
39106         REPLACE_LOCALECONV.
39107         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
39108         REPLACE_LOCALECONV.
39109         * modules/localeconv: New file.
39110         * modules/nl_langinfo (Depends-on): Add localeconv.
39111         * modules/human (Depends-on): Likewise.
39112         * doc/posix-functions/localeconv.texi: Mention the new module.
39114 2012-03-25  Bruno Haible  <bruno@clisp.org>
39116         locale: Provide a complete 'struct lconv'.
39117         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39118         'struct lconv' does not contain int_p_cs_precedes.
39119         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39120         * doc/posix-headers/locale.texi: Update.
39122         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
39123         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
39124         * doc/posix-headers/locale.texi: Update.
39126         locale: Provide a working 'struct lconv'.
39127         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
39128         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39129         'struct lconv' does not even contain decimal_point.
39130         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
39131         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
39132         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39133         * doc/posix-headers/locale.texi: Mention the problems with
39134         'struct lconv'.
39135         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39137 2012-03-24  Bruno Haible  <bruno@clisp.org>
39139         Enable common subexpression optimization in GCC.
39140         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
39141         macros.
39142         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
39143         GCC attribute 'const'.
39144         (uc_locale_language): Declare with GCC attribute 'pure'.
39145         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
39146         with GCC attribute 'const'.
39147         * lib/unictype.in.h (uc_is_general_category_withtable,
39148         uc_combining_class, uc_combining_class_name,
39149         uc_combining_class_long_name, uc_bidi_class_name,
39150         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
39151         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
39152         uc_decimal_value, uc_digit_value, uc_numeric_value,
39153         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
39154         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
39155         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
39156         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
39157         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
39158         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
39159         Declare with GCC attribute 'const'.
39160         (uc_general_category_name, uc_general_category_long_name,
39161         uc_general_category_byname, uc_general_category,
39162         uc_is_general_category, uc_combining_class_byname,
39163         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
39164         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
39165         Declare with GCC attribute 'pure'.
39166         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
39167         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
39168         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
39169         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
39170         with GCC attribute 'pure'.
39171         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
39172         'const'.
39173         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
39174         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
39175         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
39176         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
39177         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
39178         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
39179         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
39180         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
39181         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
39182         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
39183         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
39184         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
39185         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
39186         GCC attribute 'pure'.
39187         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
39188         'const'.
39189         * lib/uniwidth.in.h (uc_width): Simplify declaration.
39190         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
39191         u32_strwidth): Declare with GCC attribute 'pure'.
39193         Enable common subexpression optimization in GCC.
39194         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39195         (alphasort): Declare with GCC attribute 'pure'.
39196         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39197         (atoll): Declare with GCC attribute 'pure'.
39198         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39199         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39200         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
39201         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39202         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
39203         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
39204         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
39206 2012-03-24  Bruno Haible  <bruno@clisp.org>
39208         gnulib-tool: Avoid unintended error output from 'cmp'.
39209         * gnulib-tool (func_add_file, func_update_file, func_import): Use
39210         "cmp -s", not "cmp > /dev/null".
39212 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
39214         gnulib-tool: fix imprecise comments w.r.t. an automake bug
39216         It's not just Automake versions < 1.9b that creates an empty
39217         pkgdatadir at installation time if pkgdata_DATA is specified
39218         to empty; modern automake versions do this as well, at least
39219         until automake 1.11.4 (not yet released at the moment of writing,
39220         but soon to appear).  That behaviour was generally considered a
39221         feature rather than a bug, at least until this discussion:
39222         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
39224         See also automake bugs #10997 and #11030.
39226         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
39227         reference to relevant automake bug numbers.
39228         (func_emit_tests_Makefile_am): Likewise.
39230 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39232         announce-gen: use Digest::SHA when possible
39233         * build-aux/announce-gen: Use Digest::SHA when possible, falling
39234         back to Digest::SHA1 if necessary.
39236 2012-03-20  Jim Meyering  <meyering@redhat.com>
39238         tests: avoid gcc warnings about argv vs. const initializers
39239         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
39240         warnings about discarding 'const' qualifier from pointer target type.
39241         * tests/test-posix_spawn2.c (main): Likewise.
39243 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39245         README-release: simplify slightly
39246         * top/README-release: Run "git checkout master" only once.
39248 2012-03-15  Mark Wielaard  <mark@klomp.org>
39250         git-merge-changelog: add specific example on how to use with hg.
39251         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
39253 2012-03-18  Mark Wielaard  <mark@klomp.org>
39255         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
39257 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
39259         git-version-gen: don't let "prefix" envvar cause trouble
39260         * build-aux/git-version-gen (prefix): Initialize properly,
39261         so as not to use a value specified via the environment.
39262         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
39264 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39266         regex: diagnose too-large repeat counts in EREs
39267         Previously, the code did not diagnose the too-large repeat count
39268         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
39269         as if it were 'b\{1000000000}', which is unexpected.
39270         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
39271         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
39272         is a reasonable one for this problem.  Another option would be to
39273         create a new REG_OVERFLOW error for repeat counts that are too large.
39274         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
39275         count is too large, so that the caller can distinguish the two cases.
39276         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
39277         "Too large" return code, and that repeat counts are one example of this.
39279 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39281         doc: some glibc x32 integer width issues
39282         * doc/posix-headers/sys_types.texi (sys/types.h):
39283         * doc/posix-headers/time.texi (time.h):
39284         Mention that glibc x32 does not conform to POSIX in a couple of
39285         areas related to integer widths.
39287 2012-03-15  Bruno Haible  <bruno@clisp.org>
39289         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
39290         * lib/fma.c (VOLATILE): New macro.
39291         (FUNC): Use it to work around a GCC compiler bug.
39293 2012-03-13  Bruno Haible  <bruno@clisp.org>
39295         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39296         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
39297         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
39298         REPLACE_HYPOTL to 1.
39299         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
39301 2012-03-13  Bruno Haible  <bruno@clisp.org>
39303         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39304         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
39305         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
39306         REPLACE_REMAINDERL to 1.
39307         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
39308         bug.
39310 2012-03-13  Bruno Haible  <bruno@clisp.org>
39312         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39313         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
39314         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
39315         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
39316         too big rounding errors.
39317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
39318         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
39319         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
39320         (Depends-on): Update conditions.
39321         * tests/test-sqrtl.c (my_ldexpl): New function.
39322         (main): Add test of a particular value.
39323         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39325 2012-03-13  Pádraig Brady  <P@draigBrady.com>
39327         doc: Update timer_* platform portability notes.
39328         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
39329         that always return ENOSYS.
39330         * doc/posix-functions/timer_delete.texi: Likewise.
39331         * doc/posix-functions/timer_gettime.texi: Likewise.
39332         * doc/posix-functions/timer_settime.texi: Likewise.
39334 2012-03-13  Bruno Haible  <bruno@clisp.org>
39336         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39337         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
39338         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
39339         REPLACE_CBRTL to 1.
39340         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39342 2012-03-13  Bruno Haible  <bruno@clisp.org>
39344         remainderl: Avoid compilation error on AIX >= 5.2.
39345         * lib/math.in.h (remainderl): Undefine macro from the system header.
39347 2012-03-13  Bruno Haible  <bruno@clisp.org>
39349         Avoid compilation errors with MSVC option -fp:strict.
39350         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
39351         * lib/cbrtf.c: Likewise.
39352         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39354 2012-03-12  Bruno Haible  <bruno@clisp.org>
39356         uninorm: Don't crash in out-of-memory conditions.
39357         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
39358         gracefully.
39359         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
39360         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
39362 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
39364         quote: fix syntax-check
39365         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
39366         also exports quote_quoting_options.
39368 2012-03-12  Simon Josefsson  <simon@josefsson.org>
39370         Collapse list of copyright years to ranges.  See
39371         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
39372         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
39373         build-aux/csharpexec.sh.in, build-aux/gnupload,
39374         build-aux/install-reloc, build-aux/javacomp.sh.in,
39375         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
39376         build-aux/move-if-change, build-aux/reloc-ldflags,
39377         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
39379 2012-03-11  Bruno Haible  <bruno@clisp.org>
39381         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39382         * m4/log2f-ieee.m4: New file.
39383         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
39384         whether log2f works with a minus zero argument. Replace it if not.
39385         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
39386         (Depends-on): Add log2-ieee.
39387         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
39388         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
39390         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39391         * m4/log2-ieee.m4: New file.
39392         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
39393         whether log2 works with a minus zero argument. Replace it if not.
39394         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
39395         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
39396         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
39398         Tests for module 'log2l-ieee'.
39399         * modules/log2l-ieee-tests: New file.
39400         * tests/test-log2l-ieee.c: New file.
39402         New module 'log2l-ieee'.
39403         * modules/log2l-ieee: New file.
39405         Tests for module 'log2-ieee'.
39406         * modules/log2-ieee-tests: New file.
39407         * tests/test-log2-ieee.c: New file.
39409         New module 'log2-ieee'.
39410         * modules/log2-ieee: New file.
39412         Tests for module 'log2f-ieee'.
39413         * modules/log2f-ieee-tests: New file.
39414         * tests/test-log2f-ieee.c: New file.
39415         * tests/test-log2-ieee.h: New file.
39417         New module 'log2f-ieee'.
39418         * modules/log2f-ieee: New file.
39420 2012-03-11  Bruno Haible  <bruno@clisp.org>
39422         Tests for module 'log2l'.
39423         * modules/log2l-tests: New file.
39424         * tests/test-log2l.c: New file.
39426         New module 'log2l'.
39427         * lib/math.in.h (log2l): New declaration.
39428         * lib/log2l.c: New file.
39429         * m4/log2l.m4: New file.
39430         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
39431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
39432         REPLACE_LOG2L.
39433         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
39434         REPLACE_LOG2L.
39435         * modules/log2l: New file.
39436         * tests/test-math-c++.cc: Check the declaration of log2l.
39437         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
39438         and OSF/1 problems.
39440 2012-03-11  Bruno Haible  <bruno@clisp.org>
39442         Tests for module 'log2f'.
39443         * modules/log2f-tests: New file.
39444         * tests/test-log2f.c: New file.
39446         New module 'log2f'.
39447         * lib/math.in.h (log2f): New declaration.
39448         * lib/log2f.c: New file.
39449         * m4/log2f.m4: New file.
39450         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
39451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
39452         REPLACE_LOG2F.
39453         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
39454         REPLACE_LOG2F.
39455         * modules/log2f: New file.
39456         * tests/test-math-c++.cc: Check the declaration of log2f.
39457         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
39458         and OSF/1 and Cygwin problems.
39460 2012-03-11  Bruno Haible  <bruno@clisp.org>
39462         Tests for module 'log2'.
39463         * modules/log2-tests: New file.
39464         * tests/test-log2.c: New file.
39465         * tests/test-log2.h: New file.
39467         New module 'log2'.
39468         * lib/math.in.h (log2): New declaration.
39469         * lib/log2.c: New file.
39470         * m4/log2.m4: New file.
39471         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
39472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
39473         REPLACE_LOG2.
39474         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
39475         REPLACE_LOG2.
39476         * modules/log2: New file.
39477         * tests/test-math-c++.cc: Check the declaration of log2.
39478         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
39479         and OSF/1 and Cygwin problems.
39481 2012-03-11  Bruno Haible  <bruno@clisp.org>
39483         exp2* tests: More tests.
39484         * tests/test-exp2.h (test_function): Test all integral arguments that
39485         don't need to overflow or denormalized numbers.
39486         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
39487         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
39488         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
39490 2012-03-10  Bruno Haible  <bruno@clisp.org>
39492         log1pl-ieee: Work around test failure on AIX 7.1.
39493         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
39495         log1pl-ieee: Work around test failure on IRIX 6.5.
39496         * m4/log1pl-ieee.m4: New file.
39497         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
39498         test whether log1pl works with a minus zero argument. Replace it if
39499         not.
39500         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
39501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
39502         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
39503         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
39504         (Depends-on): Update conditions.
39505         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39506         m4/signbit.m4.
39507         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
39508         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
39510         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
39511         * m4/log1pf-ieee.m4: New file.
39512         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
39513         test whether log1pf works with a minus zero argument. Replace it if
39514         not.
39515         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
39516         m4/signbit.m4.
39517         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
39518         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
39520         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
39521         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
39522         (configure.ac): Require gl_FUNC_LOG1PF.
39524         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
39525         * m4/log1p-ieee.m4: New file.
39526         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
39527         whether log1p works with a minus zero argument. Replace it if not.
39528         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
39529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
39530         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
39531         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
39532         (Depends-on): Update conditions.
39533         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39534         m4/signbit.m4.
39535         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
39536         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
39538         Tests for module 'log1pl-ieee'.
39539         * modules/log1pl-ieee-tests: New file.
39540         * tests/test-log1pl-ieee.c: New file.
39542         New module 'log1pl-ieee'.
39543         * modules/log1pl-ieee: New file.
39545         Tests for module 'log1p-ieee'.
39546         * modules/log1p-ieee-tests: New file.
39547         * tests/test-log1p-ieee.c: New file.
39549         New module 'log1p-ieee'.
39550         * modules/log1p-ieee: New file.
39552         Tests for module 'log1pf-ieee'.
39553         * modules/log1pf-ieee-tests: New file.
39554         * tests/test-log1pf-ieee.c: New file.
39555         * tests/test-log1p-ieee.h: New file.
39557         New module 'log1pf-ieee'.
39558         * modules/log1pf-ieee: New file.
39560 2012-03-10  Bruno Haible  <bruno@clisp.org>
39562         Tests for module 'log1pl'.
39563         * modules/log1pl-tests: New file.
39564         * tests/test-log1pl.c: New file.
39566         New module 'log1pl'.
39567         * lib/math.in.h (log1pl): New declaration.
39568         * lib/log1pl.c: New file.
39569         * m4/log1pl.m4: New file.
39570         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
39571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
39572         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
39573         * modules/log1pl: New file.
39574         * tests/test-math-c++.cc: Check the declaration of log1pl.
39575         * doc/posix-functions/log1pl.texi: Mention the new module.
39577 2012-03-10  Bruno Haible  <bruno@clisp.org>
39579         Tests for module 'log1pf'.
39580         * modules/log1pf-tests: New file.
39581         * tests/test-log1pf.c: New file.
39583         New module 'log1pf'.
39584         * lib/math.in.h (log1pf): New declaration.
39585         * lib/log1pf.c: New file.
39586         * m4/log1pf.m4: New file.
39587         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
39588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
39589         REPLACE_LOG1PF.
39590         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
39591         REPLACE_LOG1PF.
39592         * modules/log1pf: New file.
39593         * tests/test-math-c++.cc: Check the declaration of log1pf.
39594         * doc/posix-functions/log1pf.texi: Mention the new module.
39596 2012-03-10  Bruno Haible  <bruno@clisp.org>
39598         log1p tests: More tests.
39599         * tests/test-log1p.h: New file.
39600         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
39601         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
39602         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
39603         (main): Invoke test_function.
39605         log1p: Provide replacement for Minix and MSVC.
39606         * lib/math.in.h (log1p): New declaration.
39607         * lib/log1p.c: New file.
39608         * m4/log1p.m4: New file.
39609         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
39610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
39611         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
39612         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
39613         (Depends-on): Add math, isnand, log, round.
39614         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
39615         HAVE_LOG1P is 0.
39616         * tests/test-math-c++.cc: Check the declaration of log1p.
39617         * doc/posix-functions/log1p.texi: Mention the replacement.
39619 2012-03-10  Bruno Haible  <bruno@clisp.org>
39621         math tests: Small simplification.
39622         * tests/test-exp.h (test_function): Use the same err_bound for
39623         'double' on platforms with sizeof (long double) == sizeof (double)
39624         than on platforms with sizeof (long double) > sizeof (double).
39625         * tests/test-exp2.h (test_function): Likewise.
39626         * tests/test-expm1.h (test_function): Likewise.
39627         * tests/test-log.h (test_function): Likewise.
39629 2012-03-10  Bruno Haible  <bruno@clisp.org>
39631         Fix some comments.
39632         * lib/expl.c: Fix an ambiguous comment.
39633         * lib/expm1.c: Likewise.
39634         * lib/expm1l.c: Likewise.
39635         * lib/exp2.c: Likewise.
39636         * lib/exp2l.c: Likewise.
39638 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
39640         regex: allow inclusion of <regex.h> before <limits.h>
39641         Without this patch, portable programs had to include <limits.h> before
39642         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
39643         I ran into this problem with a test version of GNU grep on Solaris 8.
39644         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
39645         This is done conditionally so that this change can be merged
39646         back to glibc.
39647         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
39648         using the included regex.
39650         fts: depend on fdopendir
39651         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
39652         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
39653         problem was introduced when fdopendir was split out.
39655 2012-03-10  Bruno Haible  <bruno@clisp.org>
39657         Remove unused variables.
39658         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
39659         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
39661 2012-03-10  Bruno Haible  <bruno@clisp.org>
39663         isnanf-nolibm: Fix last commit.
39664         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
39666         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
39667         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
39669 2012-03-10  Bruno Haible  <bruno@clisp.org>
39671         logf-ieee: Work around test failure on NetBSD 5.1.
39672         * m4/logf-ieee.m4: New file.
39673         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
39674         whether logf works with a negative argument. Replace it if not.
39675         * lib/logf.c (logf): For negative arguments, return NaN.
39676         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
39677         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
39678         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
39680         logf-ieee: Work around test failure on Solaris 9.
39681         * modules/logf-ieee (Depends-on): Add log-ieee.
39682         (configure.ac): Require gl_FUNC_LOGF.
39684         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39685         * m4/log-ieee.m4: New file.
39686         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
39687         log works with a negative argument. Replace it if not.
39688         * lib/log.c (log): For negative arguments, return NaN.
39689         * modules/log-ieee (Files): Add m4/log-ieee.m4.
39690         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
39691         * doc/posix-functions/log.texi: Mention the log-ieee module.
39693         Tests for module 'logl-ieee'.
39694         * modules/logl-ieee-tests: New file.
39695         * tests/test-logl-ieee.c: New file.
39697         New module 'logl-ieee'.
39698         * modules/logl-ieee: New file.
39700         Tests for module 'log-ieee'.
39701         * modules/log-ieee-tests: New file.
39702         * tests/test-log-ieee.c: New file.
39704         New module 'log-ieee'.
39705         * modules/log-ieee: New file.
39707         Tests for module 'logf-ieee'.
39708         * modules/logf-ieee-tests: New file.
39709         * tests/test-logf-ieee.c: New file.
39710         * tests/test-log-ieee.h: New file.
39712         New module 'logf-ieee'.
39713         * modules/logf-ieee: New file.
39715 2012-03-10  Bruno Haible  <bruno@clisp.org>
39717         log: Fix bug introduced on 2012-03-09.
39718         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
39720 2012-03-10  Pádraig Brady  <P@draigBrady.com>
39722         timer-time: link explicitly with pthreads on glibc
39723         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
39724         to support static linking, when newer glibc is
39725         detected, as that contains pthread emulation of
39726         POSIX timer functions where required.
39727         * modules/timer-time: Depend on threadlib to
39728         pull in the appropriate library to link.
39730 2012-03-10  Bruno Haible  <bruno@clisp.org>
39732         log* tests: More tests.
39733         * tests/test-log.h: New file.
39734         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
39735         (main): Invoke test_function.
39736         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
39737         (main): Invoke test_function.
39738         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
39739         (main): Invoke test_function.
39740         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39741         tests/randomd.c.
39742         (Makefile.am): Add randomd.c to test_log_SOURCES.
39743         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39744         tests/randomf.c.
39745         (Makefile.am): Add randomf.c to test_logf_SOURCES.
39746         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39747         tests/randoml.c.
39748         (Depends-on): Add 'float'.
39749         (Makefile.am): Add randoml.c to test_logl_SOURCES.
39751 2012-03-09  Bruno Haible  <bruno@clisp.org>
39753         logl: Work around OSF/1 5.1 bug.
39754         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
39755         * lib/logl.c (logl): If logl exists, use it and provide just the
39756         workaround.
39757         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
39758         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
39759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
39760         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
39761         * modules/logl (configure.ac): Consider REPLACE_LOGL.
39762         (Depends-on): Update conditions.
39763         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
39765 2012-03-09  Bruno Haible  <bruno@clisp.org>
39767         logf: Work around OSF/1 5.1 bug.
39768         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
39769         * lib/logf.c (logf): If logf exists, use it and provide just the
39770         workaround.
39771         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
39772         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
39773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
39774         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
39775         * modules/logf (configure.ac): Consider REPLACE_LOGF.
39776         (Depends-on): Update conditions.
39777         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
39779 2012-03-09  Bruno Haible  <bruno@clisp.org>
39781         log: Work around OSF/1 5.1 bug.
39782         * lib/math.in.h (log): New declaration.
39783         * lib/log.c: New file.
39784         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
39785         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
39786         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
39787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
39788         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
39789         * modules/log (Files): Add lib/log.c.
39790         (Depends-on): Add math.
39791         (configure.ac): If REPLACE_LOG is 1, compile an override.
39792         * tests/test-math-c++.cc: Check the declaration of log.
39793         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
39795 2012-03-09  Jim Meyering  <meyering@redhat.com>
39797         readtokens.c: adjust wording in a comment
39798         * lib/readtokens.c: Insert omitted "that" in a comment.
39800 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39802         modechange: add notations +40, 00440, etc.
39803         * lib/modechange.c (mode_compile): Support new notations
39804         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
39806 2012-03-08  Bruno Haible  <bruno@clisp.org>
39808         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
39809         * m4/exp2l-ieee.m4: New file.
39810         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
39811         test whether exp2l works with a NaN argument and with a negative
39812         infinity argument. Replace it if not.
39813         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
39814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
39815         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
39816         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
39817         (Depends-on): Update conditions.
39818         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
39819         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
39820         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
39822         Tests for module 'exp2l-ieee'.
39823         * modules/exp2l-ieee-tests: New file.
39824         * tests/test-exp2l-ieee.c: New file.
39826         New module 'exp2l-ieee'.
39827         * modules/exp2l-ieee: New file.
39829         Tests for module 'exp2-ieee'.
39830         * modules/exp2-ieee-tests: New file.
39831         * tests/test-exp2-ieee.c: New file.
39833         New module 'exp2-ieee'.
39834         * modules/exp2-ieee: New file.
39836         Tests for module 'exp2f-ieee'.
39837         * modules/exp2f-ieee-tests: New file.
39838         * tests/test-exp2f-ieee.c: New file.
39839         * tests/test-exp2-ieee.h: New file.
39841         New module 'exp2f-ieee'.
39842         * modules/exp2f-ieee: New file.
39844 2012-03-08  Bruno Haible  <bruno@clisp.org>
39846         Tests for module 'exp2l'.
39847         * modules/exp2l-tests: New file.
39848         * tests/test-exp2l.c: New file.
39850         New module 'exp2l'.
39851         * lib/math.in.h (exp2l): New declaration.
39852         * lib/exp2l.c: New file.
39853         * lib/expl-table.c: New file, extracted from lib/expl.c.
39854         * lib/expl.c (gl_expl_table): New declaration.
39855         (expl): Remove expl_table. Update reference.
39856         * m4/exp2l.m4: New file.
39857         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
39858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
39859         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
39860         * modules/exp2l: New file.
39861         * modules/expl (Files): Add lib/expl-table.c.
39862         (configure.ac): Compile also expl-table.c.
39863         * tests/test-math-c++.cc: Check the declaration of exp2l.
39864         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
39865         problem.
39867 2012-03-08  Bruno Haible  <bruno@clisp.org>
39869         Tests for module 'exp2f'.
39870         * modules/exp2f-tests: New file.
39871         * tests/test-exp2f.c: New file.
39873         New module 'exp2f'.
39874         * lib/math.in.h (exp2f): New declaration.
39875         * lib/exp2f.c: New file.
39876         * m4/exp2f.m4: New file.
39877         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
39878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
39879         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
39880         * modules/exp2f: New file.
39881         * tests/test-math-c++.cc: Check the declaration of exp2f.
39882         * doc/posix-functions/exp2f.texi: Mention the new module and the
39883         IRIX problem.
39885 2012-03-08  Bruno Haible  <bruno@clisp.org>
39887         Tests for module 'exp2'.
39888         * modules/exp2-tests: New file.
39889         * tests/test-exp2.c: New file.
39890         * tests/test-exp2.h: New file.
39892         New module 'exp2'.
39893         * lib/math.in.h (exp2): New declaration.
39894         * lib/exp2.c: New file.
39895         * m4/exp2.m4: New file.
39896         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
39897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
39898         REPLACE_EXP2.
39899         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
39900         REPLACE_EXP2.
39901         * modules/exp2: New file.
39902         * tests/test-math-c++.cc: Check the declaration of exp2.
39903         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
39904         and OpenBSD problems.
39906 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39908         savedir: fix comment typo
39909         * lib/savedir.c (savedirstream): Fix typo in comment.
39911 2012-03-08  Bruno Haible  <bruno@clisp.org>
39913         test-readtokens.c: use const; remove unwarranted cast
39914         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
39916 2012-03-08  Bruno Haible  <bruno@clisp.org>
39918         fmal: Avoid compilation error on AIX.
39919         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
39920         AIX 5.2..7.1.
39922 2012-03-08  Bruno Haible  <bruno@clisp.org>
39924         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
39925         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
39926         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
39927         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
39928         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
39929         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
39930         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
39932 2012-03-08  Bruno Haible  <bruno@clisp.org>
39934         remainderf: Override buggy system function on IRIX 6.5.
39935         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
39936         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
39937         when it exists.
39938         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
39940 2012-03-08  Jim Meyering  <meyering@redhat.com>
39942         test-readtokens.c: avoid const-related compilation warnings
39943         * tests/test-readtokens.c: Avoid const-related compilation warnings.
39945 2012-03-07  Jim Meyering  <meyering@redhat.com>
39946             Bruno Haible  <bruno@clisp.org>
39948         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
39949         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
39950         tests/randomd.c.
39951         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
39952         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
39953         tests/randoml.c.
39954         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
39956 2012-03-07  Bruno Haible  <bruno@clisp.org>
39958         expm1l: Avoid compilation error on AIX.
39959         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
39960         AIX 5.2..7.1.
39962 2012-03-07  Bruno Haible  <bruno@clisp.org>
39964         expm1l: Don't override undeclared system function on IRIX 6.5.
39965         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
39966         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
39967         it exists. Set HAVE_DECL_EXPM1L.
39968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
39969         HAVE_EXPM1L.
39970         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
39971         HAVE_EXPM1L.
39972         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
39974 2012-03-07  Bruno Haible  <bruno@clisp.org>
39976         remainderl: Don't override undeclared system function on IRIX 6.5.
39977         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
39978         HAVE_REMAINDERL.
39979         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
39980         declared when it exists. Set HAVE_DECL_REMAINDERL.
39981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
39982         not HAVE_REMAINDERL.
39983         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
39984         HAVE_REMAINDERL.
39985         * doc/posix-functions/remainderl.texi: Mention missing declaration
39986         problem.
39988 2012-03-07  Bruno Haible  <bruno@clisp.org>
39990         rintf: Don't override undeclared system function on IRIX 6.5.
39991         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
39992         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
39993         exists. Set HAVE_DECL_RINTF.
39994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
39995         HAVE_RINTF.
39996         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
39997         HAVE_RINTF.
39998         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
40000 2012-03-07  Bruno Haible  <bruno@clisp.org>
40002         roundl: Avoid compilation error on AIX.
40003         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
40004         AIX 5.2..7.1.
40006 2012-03-07  Bruno Haible  <bruno@clisp.org>
40008         roundl: Don't override undeclared system function on IRIX 6.5.
40009         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
40010         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
40011         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40012         * modules/roundl (configure.ac): For replacement code, test
40013         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40014         (Depends-on): Update conditions.
40015         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
40017 2012-03-07  Bruno Haible  <bruno@clisp.org>
40019         roundf: Don't override undeclared system function on IRIX 6.5.
40020         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
40021         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
40022         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40023         * modules/roundf (configure.ac): For replacement code, test
40024         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40025         (Depends-on): Update conditions.
40026         * modules/roundf-ieee (Depends-on): Update conditions.
40027         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
40029 2012-03-07  Bruno Haible  <bruno@clisp.org>
40031         round: Don't override undeclared system function on IRIX 6.5.
40032         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
40033         argument.
40034         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
40035         also when it is not declared. Set HAVE_ROUND. For replacement code,
40036         test HAVE_ROUND, not HAVE_DECL_ROUND.
40037         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
40038         not HAVE_DECL_ROUND.
40039         (Depends-on): Update conditions.
40040         * modules/round-ieee (Depends-on): Update conditions.
40041         * doc/posix-functions/round.texi: Mention the IRIX problem.
40043 2012-03-07  Bruno Haible  <bruno@clisp.org>
40045         copysignf: Don't override undeclared system function on IRIX 6.5.
40046         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
40047         HAVE_COPYSIGNF.
40048         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
40049         declared when it exists. Set HAVE_DECL_COPYSIGNF.
40050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
40051         not HAVE_COPYSIGNF.
40052         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
40053         HAVE_COPYSIGNF.
40054         * doc/posix-functions/copysignf.texi: Mention missing declaration
40055         problem.
40057 2012-03-07  Jim Meyering  <meyering@redhat.com>
40059         readtokens: add tests
40060         * modules/readtokens-tests: New file.
40061         * tests/test-readtokens.c: New file.
40063 2012-03-07  Jim Meyering  <meyering@redhat.com>
40065         quotearg: the module must now include quote.h
40066         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
40067         So must the module.
40068         * modules/quotearg (Files): Add quote.h.
40070 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
40072         readtokens: avoid core dumps with unusual calling patterns
40073         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
40074         * lib/readtokens.c: Include limits.h.
40075         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
40076         (readtoken): Don't cache the delimiters; the cache code was buggy
40077         if !delim && saved_delim, or if the new n_delim differs from the old.
40078         Also, it wasn't thread-safe.
40080 2012-03-07  Bruno Haible  <bruno@clisp.org>
40082         quote: Adhere to common module description layout.
40083         * modules/quote (Makefile.am): Add back empty section.
40085 2012-03-06  Akim Demaille  <demaille@gostai.com>
40087         quote: fuse into quotearg
40088         This patch is made for the benefit of Bison.
40089         quote does not leave the choice of the quoting style to the user.
40090         quoting_style provides poor customizability, yet quoting_options,
40091         which is very rich, is hidden inside quotearg.c.  So in order to
40092         allow quote customization, move its implementation to quotearg.c.
40093         * lib/quote.c: Remove.
40094         * modules/quote: Adjust.
40095         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
40096         warning: provide all the members of literal structs.
40097         (quote_quoting_options): New.
40098         (quote, quote_n): Import implementation from quote.c.
40099         * lib/quote.h: Import the comments from quote.c.
40100         (quote_quoting_options): New.
40102 2012-03-06  Bruno Haible  <bruno@clisp.org>
40104         Tests for module 'expm1l-ieee'.
40105         * modules/expm1l-ieee-tests: New file.
40106         * tests/test-expm1l-ieee.c: New file.
40108         New module 'expm1l-ieee'.
40109         * modules/expm1l-ieee: New file.
40111         Tests for module 'expm1f-ieee'.
40112         * modules/expm1f-ieee-tests: New file.
40113         * tests/test-expm1f-ieee.c: New file.
40115         New module 'expm1f-ieee'.
40116         * modules/expm1f-ieee: New file.
40118         Tests for module 'expm1-ieee'.
40119         * modules/expm1-ieee-tests: New file.
40120         * tests/test-expm1-ieee.c: New file.
40121         * tests/test-expm1-ieee.h: New file.
40123         New module 'expm1-ieee'.
40124         * modules/expm1-ieee: New file.
40125         * m4/expm1-ieee.m4: New file.
40126         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
40127         whether expm1 works with a minus zero argument. Replace it if not.
40128         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
40129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
40130         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
40131         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
40132         (Depends-on): Update conditions.
40133         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
40134         AIX problem.
40136 2012-03-06  Bruno Haible  <bruno@clisp.org>
40138         Work around expm1f bug on IRIX 6.5.
40139         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
40140         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
40141         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
40142         not work.
40143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
40144         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
40145         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
40146         (Depends-on): Update conditions.
40147         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
40149 2012-03-06  Bruno Haible  <bruno@clisp.org>
40151         Tests for module 'expm1l'.
40152         * modules/expm1l-tests: New file.
40153         * tests/test-expm1l.c: New file.
40155         New module 'expm1l'.
40156         * lib/math.in.h (expm1l): New declaration.
40157         * lib/expm1l.c: New file.
40158         * m4/expm1l.m4: New file.
40159         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
40160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
40161         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
40162         * modules/expm1l: New file.
40163         * tests/test-math-c++.cc: Check the declaration of expm1l.
40164         * doc/posix-functions/expm1l.texi: Mention the new module.
40166 2012-03-06  Bruno Haible  <bruno@clisp.org>
40168         Tests for module 'expm1f'.
40169         * modules/expm1f-tests: New file.
40170         * tests/test-expm1f.c: New file.
40172         New module 'expm1f'.
40173         * lib/math.in.h (expm1f): New declaration.
40174         * lib/expm1f.c: New file.
40175         * m4/expm1f.m4: New file.
40176         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
40177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
40178         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
40179         * modules/expm1f: New file.
40180         * tests/test-math-c++.cc: Check the declaration of expm1f.
40181         * doc/posix-functions/expm1f.texi: Mention the new module.
40183 2012-03-06  Bruno Haible  <bruno@clisp.org>
40185         Tests for module 'expm1'.
40186         * modules/expm1-tests: New file.
40187         * tests/test-expm1.c: New file.
40188         * tests/test-expm1.h: New file.
40190         New module 'expm1'.
40191         * lib/math.in.h (expm1): New declaration.
40192         * lib/expm1.c: New file.
40193         * m4/expm1.m4: New file.
40194         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
40195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
40196         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
40197         * modules/expm1: New file.
40198         * tests/test-math-c++.cc: Check the declaration of expm1.
40199         * doc/posix-functions/expm1.texi: Mention the new module.
40201 2012-03-06  Bruno Haible  <bruno@clisp.org>
40203         math: Ensure declarations of math functions.
40204         * modules/acosf (Depends-on): Add 'extensions'.
40205         * modules/asinf (Depends-on): Likewise.
40206         * modules/atan2f (Depends-on): Likewise.
40207         * modules/atanf (Depends-on): Likewise.
40208         * modules/cbrt (Depends-on): Likewise.
40209         * modules/cbrtf (Depends-on): Likewise.
40210         * modules/cbrtl (Depends-on): Likewise.
40211         * modules/copysignf (Depends-on): Likewise.
40212         * modules/copysignl (Depends-on): Likewise.
40213         * modules/cosf (Depends-on): Likewise.
40214         * modules/coshf (Depends-on): Likewise.
40215         * modules/expf (Depends-on): Likewise.
40216         * modules/fabsf (Depends-on): Likewise.
40217         * modules/fabsl (Depends-on): Likewise.
40218         * modules/fmaf (Depends-on): Likewise.
40219         * modules/fmal (Depends-on): Likewise.
40220         * modules/fmodf (Depends-on): Likewise.
40221         * modules/fmodl (Depends-on): Likewise.
40222         * modules/frexpf (Depends-on): Likewise.
40223         * modules/frexpl (Depends-on): Likewise.
40224         * modules/hypot (Depends-on): Likewise.
40225         * modules/hypotf (Depends-on): Likewise.
40226         * modules/hypotl (Depends-on): Likewise.
40227         * modules/ldexpf (Depends-on): Likewise.
40228         * modules/ldexpl (Depends-on): Likewise.
40229         * modules/log10f (Depends-on): Likewise.
40230         * modules/log10l (Depends-on): Likewise.
40231         * modules/log1p (Depends-on): Likewise.
40232         * modules/logb (Depends-on): Likewise.
40233         * modules/logf (Depends-on): Likewise.
40234         * modules/modff (Depends-on): Likewise.
40235         * modules/modfl (Depends-on): Likewise.
40236         * modules/powf (Depends-on): Likewise.
40237         * modules/remainderf (Depends-on): Likewise.
40238         * modules/remainderl (Depends-on): Likewise.
40239         * modules/rintf (Depends-on): Likewise.
40240         * modules/rintl (Depends-on): Likewise.
40241         * modules/sinf (Depends-on): Likewise.
40242         * modules/sinhf (Depends-on): Likewise.
40243         * modules/sqrtf (Depends-on): Likewise.
40244         * modules/tanf (Depends-on): Likewise.
40245         * modules/tanhf (Depends-on): Likewise.
40246         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
40247         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
40248         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
40249         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
40250         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
40251         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
40252         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
40253         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
40254         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
40255         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
40256         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
40257         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
40258         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
40259         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
40260         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
40261         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
40262         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
40263         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40264         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
40265         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
40266         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
40267         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
40268         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
40269         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
40270         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40271         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
40272         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
40273         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40274         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
40275         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
40276         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40277         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
40278         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40279         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40280         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40281         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40282         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
40283         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
40284         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
40285         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
40286         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
40288 2012-03-06  Bruno Haible  <bruno@clisp.org>
40290         math: Update module names in warnings.
40291         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
40292         tanl): Use specific module name in warn-on-use warning.
40294 2012-03-06  Bruno Haible  <bruno@clisp.org>
40296         expl: Simplify computation.
40297         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
40299 2012-03-05  Bruno Haible  <bruno@clisp.org>
40301         exp* tests: More tests.
40302         * tests/test-exp.h: New file.
40303         * tests/test-exp.c: Include <float.h> and test-exp.h.
40304         (main): Invoke test_function.
40305         * tests/test-expf.c: Include <float.h> and test-exp.h.
40306         (main): Invoke test_function.
40307         * tests/test-expl.c: Include <float.h> and test-exp.h.
40308         (main): Invoke test_function.
40309         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
40310         (Makefile.am): Add randomd.c to test_exp_SOURCES.
40311         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
40312         (Makefile.am): Add randomf.c to test_expf_SOURCES.
40313         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
40314         (Depends-on): Add 'float'.
40315         (Makefile.am): Add randoml.c to test_expl_SOURCES.
40317         expl: Fix precision of computed result.
40318         * lib/expl.c: Completely rewritten.
40319         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
40320         (Maintainer): Add me.
40321         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
40323 2012-03-05  Bruno Haible  <bruno@clisp.org>
40325         cbrt* tests: More tests.
40326         * tests/test-cbrt.h: New file.
40327         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
40328         (main): Invoke test_function.
40329         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
40330         (main): Invoke test_function.
40331         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
40332         (main): Invoke test_function.
40333         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
40334         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
40335         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
40336         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
40337         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
40338         (Depends-on): Add 'float'.
40339         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
40341 2012-03-05  Bruno Haible  <bruno@clisp.org>
40343         hypot* tests: More tests.
40344         * tests/test-hypot.h: New file, partially extracted from
40345         tests/test-hypotl.c.
40346         * tests/test-hypot.c: Include test-hypot.h.
40347         (main): Invoke test_function.
40348         * tests/test-hypotf.c: Include test-hypot.h.
40349         (main): Invoke test_function.
40350         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
40351         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
40352         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
40353         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
40354         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
40355         tests/randomf.c.
40356         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
40357         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
40358         tests/randoml.c.
40359         (Depends-on): Add 'fpucw', 'float'.
40360         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
40362 2012-03-05  Bruno Haible  <bruno@clisp.org>
40364         fpucw: Doc about FreeBSD.
40365         * lib/fpucw.h: Mention FreeBSD in comments.
40367 2012-03-04  Bruno Haible  <bruno@clisp.org>
40369         sqrt* tests: More tests.
40370         * tests/test-sqrt.h: New file.
40371         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
40372         (main): Invoke test_function.
40373         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
40374         (main): Invoke test_function.
40375         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
40376         (main): Invoke test_function.
40377         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
40378         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
40379         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
40380         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
40381         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
40382         (Depends-on): Add 'float'.
40383         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
40385 2012-03-04  Bruno Haible  <bruno@clisp.org>
40387         remainder* tests: More tests.
40388         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
40389         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
40390         (main): Invoke test_function.
40391         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
40392         (main): Invoke test_function.
40393         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
40394         (main): Invoke test_function.
40395         * modules/remainder-tests (Files): Add tests/test-remainder.h,
40396         tests/randomd.c.
40397         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
40398         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
40399         tests/randomf.c.
40400         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
40401         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
40402         tests/randoml.c.
40403         (Depends-on): Add 'float'.
40404         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
40406 2012-03-04  Bruno Haible  <bruno@clisp.org>
40408         remainder, remainderf, remainderl: Fix computation for large quotients.
40409         * lib/remainder.c: Completely rewritten.
40410         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
40411         USE_FLOAT.
40412         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
40413         USE_LONG_DOUBLE.
40414         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
40415         isnand, isinf. Remove round, fma.
40416         * modules/remainderf (Files): Add lib/remainder.c.
40417         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
40418         Remove roundf, fmaf.
40419         * modules/remainderl (Files): Add lib/remainder.c.
40420         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
40421         isinf. Remove roundl, fmal.
40422         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
40423         REMAINDER_LIBM.
40424         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
40425         REMAINDERF_LIBM.
40426         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
40427         REMAINDERL_LIBM.
40429 2012-03-04  Bruno Haible  <bruno@clisp.org>
40431         fmod* tests: More tests.
40432         * tests/test-fmod.h (my_ldexp): New function.
40433         (test_function): Reduce amount of random numbers to test. Add tests
40434         of very large quotients x / y.
40435         * tests/test-fmod.c (MAX_EXP): New macro.
40436         * tests/test-fmodf.c (MAX_EXP): Likewise.
40437         * tests/test-fmodl.c (MAX_EXP): Likewise.
40439 2012-03-04  Bruno Haible  <bruno@clisp.org>
40441         fmod, fmodl: Fix computation for large quotients x / y.
40442         * lib/fmod.c: Completely rewritten.
40443         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
40444         USE_LONG_DOUBLE.
40445         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
40446         isnand. Remove fma.
40447         * modules/fmodl (Files): Add lib/fmod.c.
40448         (Depends-on): Add float, isfinite, signbit, fabsl,
40449         frexpl, ldexpl, isnanl. Remove fma.
40450         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
40451         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
40453 2012-03-03  Bruno Haible  <bruno@clisp.org>
40455         fmod* tests: More tests.
40456         * tests/test-fmod.h: New file.
40457         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
40458         (main): Invoke test_function.
40459         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
40460         (main): Invoke test_function.
40461         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
40462         (main): Invoke test_function.
40463         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
40464         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
40465         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
40466         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
40467         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
40468         (Depends-on): Add 'float'.
40469         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
40471 2012-03-03  Bruno Haible  <bruno@clisp.org>
40473         rint* tests: More tests.
40474         * tests/test-rint.h: New file, partially extracted from
40475         tests/test-rintl.c.
40476         * tests/test-rint.c: Include test-rint.h.
40477         (main): Invoke test_function.
40478         * tests/test-rintf.c: Include test-rint.h.
40479         (main): Invoke test_function.
40480         * tests/test-rintl.c: Include test-rint.h.
40481         (main): Invoke test_function.
40482         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
40483         (Makefile.am): Add randomd.c to test_rint_SOURCES.
40484         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
40485         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
40486         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
40487         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
40489 2012-03-03  Bruno Haible  <bruno@clisp.org>
40491         modf* tests: More tests.
40492         * tests/test-modf.h: New file.
40493         * tests/test-modf.c: Include <float.h> and test-modf.h.
40494         (main): Invoke test_function.
40495         * tests/test-modff.c: Include <float.h> and test-modf.h.
40496         (main): Invoke test_function.
40497         * tests/test-modfl.c: Include <float.h> and test-modf.h.
40498         (main): Invoke test_function.
40499         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
40500         (Makefile.am): Add randomd.c to test_modf_SOURCES.
40501         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
40502         (Makefile.am): Add randomf.c to test_modff_SOURCES.
40503         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
40504         (Depends-on): Add 'float'.
40505         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
40507 2012-03-03  Bruno Haible  <bruno@clisp.org>
40509         fabs* tests: More tests.
40510         * tests/test-fabs.h: New file, partially extracted from
40511         tests/test-fabsl.c.
40512         * tests/test-fabs.c (RANDOM): New macro.
40513         * tests/test-fabsf.c (RANDOM): New macro.
40514         * tests/test-fabsl.c (RANDOM): New macro.
40515         * modules/fabs-tests (Files): Add tests/randomd.c.
40516         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
40517         * modules/fabsf-tests (Files): Add tests/randomf.c.
40518         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
40519         * modules/fabsl-tests (Files): Add tests/randoml.c.
40520         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
40522 2012-03-03  Bruno Haible  <bruno@clisp.org>
40524         ldexp* tests: More tests.
40525         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
40526         * tests/test-ldexp.c (RANDOM): New macro.
40527         * tests/test-ldexpf.c (RANDOM): New macro.
40528         * tests/test-ldexpl.c (RANDOM): New macro.
40529         * modules/ldexp-tests (Files): Add tests/randomd.c.
40530         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
40531         * modules/ldexpf-tests (Files): Add tests/randomf.c.
40532         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
40533         * modules/ldexpl-tests (Files): Add tests/randoml.c.
40534         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
40536 2012-03-03  Bruno Haible  <bruno@clisp.org>
40538         frexp* tests: More tests.
40539         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
40540         * tests/test-frexp.c (RANDOM): New macro.
40541         * tests/test-frexpf.c (RANDOM): New macro.
40542         * tests/test-frexpl.c (RANDOM): New macro.
40543         * modules/frexp-tests (Files): Add tests/randomd.c.
40544         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
40545         * modules/frexpf-tests (Files): Add tests/randomf.c.
40546         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
40547         * modules/frexpl-tests (Files): Add tests/randoml.c.
40548         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
40550 2012-03-03  Bruno Haible  <bruno@clisp.org>
40552         Support for pseudo-random numbers in tests.
40553         * tests/randomf.c: New file.
40554         * tests/randomd.c: New file.
40555         * tests/randoml.c: New file.
40556         * tests/macros.h (randomf, randomd, randoml): New declarations.
40558 2012-03-03  Bruno Haible  <bruno@clisp.org>
40560         frexp* tests: Refactor.
40561         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
40562         * tests/test-frexp.c: Include and use it.
40563         * tests/test-frexpf.c: Likewise.
40564         * tests/test-frexpl.c: Likewise.
40565         * modules/frexp-tests (Files): Add tests/test-frexp.h.
40566         * modules/frexpf-tests (Files): Likewise.
40567         * modules/frexpl-tests (Files): Likewise.
40569 2012-03-02  Jim Meyering  <meyering@redhat.com>
40571         maint: don't specify XZ_OPT=-9ev in dist-related rule
40572         Using xz's -9 option is warranted only if you have a very large
40573         tarball (see xz's documentation for the sizes vs. presets), and
40574         requires 64MiB of memory at decompression time.
40575         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
40576         Automake's default of just "-e" is fine.  Override on a
40577         per-package basis by setting XZ_OPT e.g., in cfg.mk.
40579 2012-03-01  Eric Blake  <eblake@redhat.com>
40581         maint.mk: allow announcement for non-gnulib project
40582         * maint.mk (announcement): Skip gnulib version if not used.
40584 2012-03-01  Jim Meyering  <meyering@redhat.com>
40586         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
40587         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
40588         envvar settings cannot interfere.  Otherwise, setting envvars like
40589         prohibit=foo require=bar, etc. would cause spurious test failures.
40591 2012-03-01  Eric Blake  <eblake@redhat.com>
40593         maint.mk: add per-line exclusions to prohibitions
40594         * maint.mk (_sc_search_regexp): Add $exclude parameter.
40595         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
40596         (sc_const_long_option): Use it.
40598 2012-03-01  Bruno Haible  <bruno@clisp.org>
40600         Tests for module 'expl-ieee'.
40601         * modules/expl-ieee-tests: New file.
40602         * tests/test-expl-ieee.c: New file.
40604         New module 'expl-ieee'.
40605         * modules/expl-ieee: New file.
40607         Tests for module 'exp-ieee'.
40608         * modules/exp-ieee-tests: New file.
40609         * tests/test-exp-ieee.c: New file.
40611         New module 'exp-ieee'.
40612         * modules/exp-ieee: New file.
40614         Tests for module 'expf-ieee'.
40615         * modules/expf-ieee-tests: New file.
40616         * tests/test-expf-ieee.c: New file.
40617         * tests/test-exp-ieee.h: New file.
40619         New module 'expf-ieee'.
40620         * modules/expf-ieee: New file.
40622 2012-02-29  Bruno Haible  <bruno@clisp.org>
40624         cbrtl-ieee: Work around test failure on IRIX 6.5.
40625         * m4/cbrtl-ieee.m4: New file.
40626         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
40627         test whether cbrtl works with a minus zero argument. Replace it if not.
40628         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
40629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
40630         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
40631         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
40632         (Depends-on): Update conditions.
40633         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
40634         m4/signbit.m4.
40635         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
40636         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
40637         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
40639         Tests for module 'cbrtl-ieee'.
40640         * modules/cbrtl-ieee-tests: New file.
40641         * tests/test-cbrtl-ieee.c: New file.
40643         New module 'cbrtl-ieee'.
40644         * modules/cbrtl-ieee: New file.
40646         Tests for module 'cbrt-ieee'.
40647         * modules/cbrt-ieee-tests: New file.
40648         * tests/test-cbrt-ieee.c: New file.
40650         New module 'cbrt-ieee'.
40651         * modules/cbrt-ieee: New file.
40653         Tests for module 'cbrtf-ieee'.
40654         * modules/cbrtf-ieee-tests: New file.
40655         * tests/test-cbrtf-ieee.c: New file.
40656         * tests/test-cbrt-ieee.h: New file.
40658         New module 'cbrtf-ieee'.
40659         * modules/cbrtf-ieee: New file.
40661 2012-02-29  Bruno Haible  <bruno@clisp.org>
40663         cbrtf: Work around bug in IRIX 6.5 system function.
40664         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
40665         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
40666         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
40667         work.
40668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
40669         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
40670         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
40671         (Depends-on): Update conditions.
40672         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
40674 2012-02-29  Bruno Haible  <bruno@clisp.org>
40676         Tests for module 'cbrtl'.
40677         * modules/cbrtl-tests: New file.
40678         * tests/test-cbrtl.c: New file.
40680         New module 'cbrtl'.
40681         * lib/math.in.h (cbrtl): New declaration.
40682         * lib/cbrtl.c: New file.
40683         * m4/cbrtl.m4: New file.
40684         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
40685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
40686         HAVE_DECL_CBRTL.
40687         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
40688         HAVE_DECL_CBRTL.
40689         * modules/cbrtl: New file.
40690         * tests/test-math-c++.cc: Check the declaration of cbrtl.
40691         * doc/posix-functions/cbrtl.texi: Mention the new module.
40693 2012-02-29  Bruno Haible  <bruno@clisp.org>
40695         Tests for module 'cbrtf'.
40696         * modules/cbrtf-tests: New file.
40697         * tests/test-cbrtf.c: New file.
40699         New module 'cbrtf'.
40700         * lib/math.in.h (cbrtf): New declaration.
40701         * lib/cbrtf.c: New file.
40702         * m4/cbrtf.m4: New file.
40703         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
40704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
40705         HAVE_DECL_CBRTF.
40706         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
40707         HAVE_DECL_CBRTF.
40708         * modules/cbrtf: New file.
40709         * tests/test-math-c++.cc: Check the declaration of cbrtf.
40710         * doc/posix-functions/cbrtf.texi: Mention the new module.
40712 2012-02-29  Bruno Haible  <bruno@clisp.org>
40714         cbrt: Provide replacement on MSVC and Minix.
40715         * lib/math.in.h (cbrt): New declaration.
40716         * lib/cbrt.c: New file.
40717         * m4/cbrt.m4: New file.
40718         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
40719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
40720         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
40721         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
40722         (Depends-on): Add dependencies.
40723         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
40724         * tests/test-math-c++.cc: Check the declaration of cbrt.
40725         * doc/posix-functions/cbrt.texi: Mention that the module provides a
40726         replacement.
40728 2012-02-29  Bruno Haible  <bruno@clisp.org>
40730         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
40731         * m4/hypotl-ieee.m4: New file.
40732         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
40733         test whether hypotl works with mixed NaN and Infinity arguments.
40734         Replace it if not.
40735         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
40736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
40737         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
40738         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
40739         (Depends-on): Update conditions.
40740         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
40741         (Depends-on): Add hypot-ieee.
40742         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
40743         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
40745         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
40746         * m4/hypotf-ieee.m4: New file.
40747         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
40748         test whether hypotf works with mixed NaN and Infinity arguments.
40749         Replace it if not.
40750         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
40751         (Depends-on): Add hypot-ieee.
40752         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
40753         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
40755         hypot-ieee: Work around test failure on OSF/1 and native Windows.
40756         * lib/math.in.h (hypot): New declaration.
40757         * lib/hypot.c: New file.
40758         * m4/hypot-ieee.m4: New file.
40759         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
40760         whether hypot works with mixed NaN and Infinity arguments. Replace it
40761         if not.
40762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
40763         REPLACE_HYPOT.
40764         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
40765         * modules/hypot (Files): Add lib/hypot.c.
40766         (Depends-on): Add dependencies.
40767         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
40768         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
40769         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
40770         * tests/test-math-c++.cc: Check the declaration of hypot.
40771         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
40773         Tests for module 'hypotl-ieee'.
40774         * modules/hypotl-ieee-tests: New file.
40775         * tests/test-hypotl-ieee.c: New file.
40777         New module 'hypotl-ieee'.
40778         * modules/hypotl-ieee: New file.
40780         Tests for module 'hypot-ieee'.
40781         * modules/hypot-ieee-tests: New file.
40782         * tests/test-hypot-ieee.c: New file.
40784         New module 'hypot-ieee'.
40785         * modules/hypot-ieee: New file.
40787         Tests for module 'hypotf-ieee'.
40788         * modules/hypotf-ieee-tests: New file.
40789         * tests/test-hypotf-ieee.c: New file.
40790         * tests/test-hypot-ieee.h: New file.
40792         New module 'hypotf-ieee'.
40793         * modules/hypotf-ieee: New file.
40795 2012-02-29  Bruno Haible  <bruno@clisp.org>
40797         Remove unused variables.
40798         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
40799         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40800         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
40801         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40803 2012-02-29  Eric Blake  <eblake@redhat.com>
40805         termios: fix pid_t always, not just for tcgetsid
40806         * doc/posix-headers/termios.texi (termios.h): Mention problem.
40807         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
40808         just when building tcgetsid.
40810 2012-02-29  Bruno Haible  <bruno@clisp.org>
40812         Tests for module 'hypotl'.
40813         * modules/hypotl-tests: New file.
40814         * tests/test-hypotl.c: New file.
40816         New module 'hypotl'.
40817         * lib/math.in.h (hypotl): New declaration.
40818         * lib/hypotl.c: New file.
40819         * m4/hypotl.m4: New file.
40820         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
40822         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
40823         * modules/hypotl: New file.
40824         * tests/test-math-c++.cc: Check the hypotl declaration.
40825         * doc/posix-functions/hypotl.texi: Mention the new module.
40827 2012-02-29  Eric Blake  <eblake@redhat.com>
40829         tcgetsid: fix cygwin header bug
40830         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
40832         docs: update cygwin progress
40833         * doc/posix-functions/llround.texi (llround): Added in cygwin
40834         1.7.8.
40835         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
40836         * doc/glibc-functions/program_invocation_name.texi
40837         (program_invocation_name): Likewise.
40838         * doc/glibc-functions/program_invocation_short_name.texi
40839         (program_invocation_short_name): Likewise.
40840         * doc/glibc-functions/madvise.texi (madvise): Likewise.
40841         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
40842         Likewise.
40843         * doc/posix-functions/pthread_spin_destroy.texi
40844         (pthread_spin_destroy): Added in cygwin 1.7.10.
40845         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
40846         Likewise.
40847         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
40848         Likewise.
40849         * doc/posix-functions/pthread_spin_trylock.texi
40850         (pthread_spin_trylock): Likewise.
40851         * doc/posix-functions/pthread_spin_unlock.texi
40852         (pthread_spin_unlock): Likewise.
40853         * doc/posix-functions/pthread_setschedprio.texi
40854         (pthread_setschedprio): Likewise.
40855         * doc/posix-functions/pthread_attr_getstack.texi
40856         (pthread_attr_getstack): Likewise.
40857         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
40858         (pthread_attr_getstackaddr): Likewise.
40859         * doc/glibc-functions/pthread_getattr_np.texi
40860         (pthread_getattr_np): Likewise.
40861         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
40862         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
40863         * doc/posix-functions/clock_settime.texi (clock_settime):
40864         Likewise.
40865         * doc/posix-functions/pthread_attr_getguardsize.texi
40866         (pthread_attr_getguardsize): Likewise.
40867         * doc/posix-functions/pthread_attr_setguardsize.texi
40868         (pthread_attr_setguardsize): Likewise.
40869         * doc/posix-functions/pthread_attr_setstack.texi
40870         (pthread_attr_setstack): Likewise.
40871         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
40872         (pthread_attr_setstackaddr): Likewise.
40873         * doc/posix-functions/clock_getcpuclockid.texi
40874         (clock_getcpuclockid): Likewise.
40875         * doc/posix-functions/pthread_getcpuclockid.texi
40876         (pthread_getcpuclockid): Likewise.
40877         * doc/glibc-functions/error.texi (error): Likewise.
40878         * doc/glibc-functions/error_at_line.texi (error_at_line):
40879         Likewise.
40880         * doc/glibc-functions/error_message_count.texi
40881         (error_message_count): Likewise.
40882         * doc/glibc-functions/error_one_per_line.texi
40883         (error_one_per_line): Likewise.
40884         * doc/glibc-functions/error_print_progname.texi
40885         (error_print_progname): Likewise.
40886         * doc/posix-functions/pthread_condattr_getclock.texi
40887         (pthread_condattr_getclock): Likewise.
40888         * doc/posix-functions/pthread_condattr_setclock.texi
40889         (pthread_condattr_setclock): Likewise.
40890         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
40891         Likewise.
40892         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
40893         * doc/glibc-functions/getpt.texi (getpt): Likewise.
40894         * doc/glibc-functions/get_current_dir_name.texi
40895         (get_current_dir_name): Likewise.
40896         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
40897         Likewise.
40898         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
40899         wrong return type.
40900         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
40901         1.7.11.
40903 2012-02-29  Bruno Haible  <bruno@clisp.org>
40905         Tests for module 'hypotf'.
40906         * modules/hypotf-tests: New file.
40907         * tests/test-hypotf.c: New file.
40909         New module 'hypotf'.
40910         * lib/math.in.h (hypotf): New declaration.
40911         * lib/hypotf.c: New file.
40912         * m4/hypotf.m4: New file.
40913         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
40915         REPLACE_HYPOTF.
40916         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
40917         REPLACE_HYPOTF.
40918         * modules/hypotf: New file.
40919         * tests/test-math-c++.cc: Check the hypotf declaration.
40920         * doc/posix-functions/hypotf.texi: Mention the new module.
40922         hypot: Prepare for hypotf module.
40923         * m4/hypot.m4: New file.
40924         * modules/hypot (Files): Add m4/hypot.m4.
40925         (configure.ac): Invoke gl_FUNC_HYPOT.
40927 2012-02-29  Bruno Haible  <bruno@clisp.org>
40929         hypot tests: More tests.
40930         * tests/test-hypot.c: Include <float.h>.
40931         (main): Add tests about overflow and underflow.
40933 2012-02-29  Bruno Haible  <bruno@clisp.org>
40935         math code: Add comments.
40936         * lib/acosl.c: Add comment about related glibc source files.
40937         * lib/asinl.c: Likewise.
40938         * lib/atanl.c: Likewise.
40939         * lib/expl.c: Likewise.
40940         * lib/logl.c: Likewise.
40941         * lib/sincosl.c: Likewise.
40942         * lib/sinl.c: Likewise.
40943         * lib/tanl.c: Likewise.
40944         * lib/trigl.c: Likewise.
40945         * lib/cosl.c: Likewise. Fix comments.
40947 2012-02-28  Bruno Haible  <bruno@clisp.org>
40949         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
40950         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
40951         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
40952         HUGE_VALL are defined.
40953         (numeric_equald): Renamed from numeric_equal.
40954         (numeric_equalf, numeric_equall): New functions.
40955         (main): Check also HUGE_VALF, HUGE_VALL.
40956         * modules/math-tests (Files): Add tests/macros.h.
40957         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
40958         HUGE_VALL.
40960 2012-02-28  Bruno Haible  <bruno@clisp.org>
40962         doc: Move ISO C11 feature notes into POSIX chapters.
40963         * doc/posix-functions/aligned_alloc.texi: Renamed from
40964         doc/glibc-functions/aligned_alloc.texi.
40965         * doc/posix-functions/quick_exit.texi: Renamed from
40966         doc/glibc-functions/quick_exit.texi.
40967         * doc/posix-headers/uchar.texi: Renamed from
40968         doc/glibc-headers/uchar.texi.
40969         * doc/posix-functions/c16rtomb.texi: Renamed from
40970         doc/glibc-functions/c16rtomb.texi.
40971         * doc/posix-functions/c32rtomb.texi: Renamed from
40972         doc/glibc-functions/c32rtomb.texi.
40973         * doc/posix-functions/mbrtoc16.texi: Renamed from
40974         doc/glibc-functions/mbrtoc16.texi.
40975         * doc/posix-functions/mbrtoc32.texi: Renamed from
40976         doc/glibc-functions/mbrtoc32.texi.
40977         * doc/gnulib.texi: Update.
40978         (Glibc uchar.h): Remove section.
40979         Suggested by Eric Blake.
40981 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
40983         stdnoreturn: port to MSVC better
40984         MSVC standard headers use __declspec(noreturn), so #define noreturn
40985         to empty on that platform.  Reported by Bruno Haible in
40986         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
40987         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
40988         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
40990 2012-02-28  Bruno Haible  <bruno@clisp.org>
40992         doc: Mention new glibc headers and functions.
40993         * doc/glibc-headers/uchar.texi: New file.
40994         * doc/glibc-functions/aligned_alloc.texi: New file.
40995         * doc/glibc-functions/c16rtomb.texi: New file.
40996         * doc/glibc-functions/c32rtomb.texi: New file.
40997         * doc/glibc-functions/clock_adjtime.texi: New file.
40998         * doc/glibc-functions/fanotify_init.texi: New file.
40999         * doc/glibc-functions/fanotify_mark.texi: New file.
41000         * doc/glibc-functions/inet6_opt_append.texi: New file.
41001         * doc/glibc-functions/inet6_opt_find.texi: New file.
41002         * doc/glibc-functions/inet6_opt_finish.texi: New file.
41003         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
41004         * doc/glibc-functions/inet6_opt_init.texi: New file.
41005         * doc/glibc-functions/inet6_opt_next.texi: New file.
41006         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
41007         * doc/glibc-functions/inet6_rth_add.texi: New file.
41008         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
41009         * doc/glibc-functions/inet6_rth_init.texi: New file.
41010         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
41011         * doc/glibc-functions/inet6_rth_segments.texi: New file.
41012         * doc/glibc-functions/inet6_rth_space.texi: New file.
41013         * doc/glibc-functions/login.texi: New file.
41014         * doc/glibc-functions/mbrtoc16.texi: New file.
41015         * doc/glibc-functions/mbrtoc32.texi: New file.
41016         * doc/glibc-functions/name_to_handle_at.texi: New file.
41017         * doc/glibc-functions/ntp_gettimex.texi: New file.
41018         * doc/glibc-functions/open_by_handle_at.texi: New file.
41019         * doc/glibc-functions/prlimit.texi: New file.
41020         * doc/glibc-functions/process_vm_readv.texi: New file.
41021         * doc/glibc-functions/process_vm_writev.texi: New file.
41022         * doc/glibc-functions/recvmmsg.texi: New file.
41023         * doc/glibc-functions/scandirat.texi: New file.
41024         * doc/glibc-functions/sendmmsg.texi: New file.
41025         * doc/glibc-functions/setns.texi: New file.
41026         * doc/glibc-functions/timespec_get.texi: New file.
41027         * doc/gnulib.texi: Include them.
41028         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
41029         sections.
41030         Reported by Eric Blake.
41032 2012-02-28  Bruno Haible  <bruno@clisp.org>
41034         Avoid compilation errors with MSVC option -fp:strict.
41035         * lib/floor.c: Use MSVC specific pragma fenv_access.
41036         * lib/ceil.c: Likewise.
41037         * lib/trunc.c: Likewise.
41038         * lib/round.c: Likewise.
41039         * lib/rint.c: Likewise.
41040         * lib/fma.c: Likewise.
41041         * lib/integer_length.c: Likewise.
41042         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41043         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41044         * tests/test-floor2.c: Likewise.
41045         * tests/test-floorf2.c: Likewise.
41046         * tests/test-ceil2.c: Likewise.
41047         * tests/test-ceilf2.c: Likewise.
41048         * tests/test-trunc2.c: Likewise.
41049         * tests/test-truncf2.c: Likewise.
41050         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41052 2012-02-27  Bruno Haible  <bruno@clisp.org>
41054         Tests for module 'sqrtl-ieee'.
41055         * modules/sqrtl-ieee-tests: New file.
41056         * tests/test-sqrtl-ieee.c: New file.
41058         New module 'sqrtl-ieee'.
41059         * modules/sqrtl-ieee: New file.
41061         Tests for module 'sqrt-ieee'.
41062         * modules/sqrt-ieee-tests: New file.
41063         * tests/test-sqrt-ieee.c: New file.
41065         New module 'sqrt-ieee'.
41066         * modules/sqrt-ieee: New file.
41068         Tests for module 'sqrtf-ieee'.
41069         * modules/sqrtf-ieee-tests: New file.
41070         * tests/test-sqrtf-ieee.c: New file.
41071         * tests/test-sqrt-ieee.h: New file.
41073         New module 'sqrtf-ieee'.
41074         * modules/sqrtf-ieee: New file.
41076 2012-02-27  Bruno Haible  <bruno@clisp.org>
41078         remainderl-ieee: Work around test failure on OSF/1.
41079         * m4/remainderl-ieee.m4: New file.
41080         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
41081         present, test whether remainderl works with a zero second argument.
41082         Replace it if not.
41083         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
41084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
41085         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
41086         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
41087         (Depends-on): Update conditions.
41088         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
41089         (Depends-on): Add remainder-ieee.
41090         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
41091         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
41092         module.
41094         remainderf-ieee: Work around test failure on OSF/1.
41095         * m4/remainderf-ieee.m4: New file.
41096         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
41097         present, test whether remainderf works with a zero second argument.
41098         Replace it if not.
41099         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
41100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
41101         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
41102         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
41103         (Depends-on): Update conditions.
41104         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
41105         (Depends-on): Add remainder-ieee.
41106         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
41107         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
41108         module.
41110         remainder-ieee: Work around test failure on OSF/1.
41111         * m4/remainder-ieee.m4: New file.
41112         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
41113         present, test whether remainder works with a zero second argument.
41114         Replace it if not.
41115         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
41116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
41117         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
41118         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
41119         (Depends-on): Update dependencies.
41120         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
41121         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
41122         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
41124         Tests for module 'remainderl-ieee'.
41125         * modules/remainderl-ieee-tests: New file.
41126         * tests/test-remainderl-ieee.c: New file.
41128         New module 'remainderl-ieee'.
41129         * modules/remainderl-ieee: New file.
41131         Tests for module 'remainder-ieee'.
41132         * modules/remainder-ieee-tests: New file.
41133         * tests/test-remainder-ieee.c: New file.
41135         New module 'remainder-ieee'.
41136         * modules/remainder-ieee: New file.
41138         Tests for module 'remainderf-ieee'.
41139         * modules/remainderf-ieee-tests: New file.
41140         * tests/test-remainderf-ieee.c: New file.
41141         * tests/test-remainder-ieee.h: New file.
41143         New module 'remainderf-ieee'.
41144         * modules/remainderf-ieee: New file.
41146 2012-02-27  Bruno Haible  <bruno@clisp.org>
41148         modff, modfl: Fix configure syntax error.
41149         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
41150         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41152 2012-02-27  Bruno Haible  <bruno@clisp.org>
41154         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
41155         * m4/fmodl-ieee.m4: New file.
41156         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
41157         whether fmodl works with zero arguments. Replace it if not.
41158         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
41159         (Depends-on): Add fmod-ieee.
41160         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
41161         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
41163         fmodf-ieee: Work around test failure on OSF/1.
41164         * m4/fmodf-ieee.m4: New file.
41165         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
41166         whether fmodf works with zero arguments. Replace it if not.
41167         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
41168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
41169         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
41170         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
41171         (Depends-on): Update dependencies.
41172         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
41173         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
41174         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
41176         fmodf-ieee: Work around test failure on MSVC 9.
41177         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
41178         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
41180         fmod-ieee: Work around test failures on OSF/1, mingw.
41181         * m4/fmod-ieee.m4: New file.
41182         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
41183         whether fmod works with zero arguments. Replace it if not.
41184         * lib/math.in.h (fmod): New declaration.
41185         * lib/fmod.c: New file.
41186         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
41187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
41188         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
41189         * modules/fmod (Files): Add lib/fmod.c.
41190         (Depends-on): Add math, isinf, trunc, fma.
41191         (configure.ac): Arrange to compile lib/fmod.c if needed.
41192         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
41193         m4/signbit.m4.
41194         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
41195         * tests/test-math-c++.cc: Check the declaration of fmod.
41196         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
41198         fmodl-ieee: Fix test failures.
41199         * lib/fmodl.c (fmodl): Treat Inf specially.
41200         * modules/fmodl (Depends-on): Add isinf.
41202         Tests for module 'fmodl-ieee'.
41203         * modules/fmodl-ieee-tests: New file.
41204         * tests/test-fmodl-ieee.c: New file.
41206         New module 'fmodl-ieee'.
41207         * modules/fmodl-ieee: New file.
41209         Tests for module 'fmod-ieee'.
41210         * modules/fmod-ieee-tests: New file.
41211         * tests/test-fmod-ieee.c: New file.
41213         New module 'fmod-ieee'.
41214         * modules/fmod-ieee: New file.
41216         Tests for module 'fmodf-ieee'.
41217         * modules/fmodf-ieee-tests: New file.
41218         * tests/test-fmodf-ieee.c: New file.
41219         * tests/test-fmod-ieee.h: New file.
41221         New module 'fmodf-ieee'.
41222         * modules/fmodf-ieee: New file.
41224 2012-02-27  Bruno Haible  <bruno@clisp.org>
41226         Tests for module 'rintl-ieee'.
41227         * modules/rintl-ieee-tests: New file.
41228         * tests/test-rintl-ieee.c: New file.
41230         New module 'rintl-ieee'.
41231         * modules/rintl-ieee: New file.
41233         Tests for module 'rint-ieee'.
41234         * modules/rint-ieee-tests: New file.
41235         * tests/test-rint-ieee.c: New file.
41237         New module 'rint-ieee'.
41238         * modules/rint-ieee: New file.
41240         Tests for module 'rintf-ieee'.
41241         * modules/rintf-ieee-tests: New file.
41242         * tests/test-rintf-ieee.c: New file.
41243         * tests/test-rint-ieee.h: New file.
41245         New module 'rintf-ieee'.
41246         * modules/rintf-ieee: New file.
41248 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41250         regex: re_search etc. should return -2 when memory exhausted
41251         This bug was uncovered when testing 'grep'.  Without the fix,
41252         re_search and friends return -1 when memory is exhausted, but -1
41253         means no match, and this causes grep to falsely report no-match
41254         instead of memory-exhaustion.  See
41255         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
41256         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
41257         trouble; this can occur if re_search_internal ran out of memory.
41259 2012-02-26  Bruno Haible  <bruno@clisp.org>
41261         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
41262         * m4/modfl-ieee.m4: New file.
41263         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
41264         whether modfl works with Inf. Replace it if not.
41265         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
41266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
41267         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
41268         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
41269         (Depends-on): Update dependencies.
41270         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
41271         m4/signbit.m4.
41272         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
41273         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
41275         modfl-ieee: Fix dependencies.
41276         * modules/modfl-ieee (Depends-on): Add modf-ieee.
41278         modfl-ieee: Fix test failures.
41279         * lib/modfl.c (modfl): Treat NaN and Inf specially.
41280         * modules/modfl (Depends-on): Add isfinite, isinf.
41282         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
41283         * m4/modff-ieee.m4: New file.
41284         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
41285         whether modff works with NaN and Inf. Replace it if not.
41286         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
41287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
41288         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
41289         * modules/modff (configure.ac): Consider REPLACE_MODFF.
41290         (Depends-on): Update dependencies.
41291         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
41292         m4/signbit.m4.
41293         (Depends-on): Add modf-ieee.
41294         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
41295         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
41297         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
41298         * m4/modf-ieee.m4: New file.
41299         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
41300         whether modf works with NaN and Inf. Replace it if not.
41301         * lib/math.in.h (modf): New declaration.
41302         * lib/modf.c: New file.
41303         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
41304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
41305         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
41306         * modules/modf (Files): Add lib/modf.c.
41307         (Depends-on): Add math, isfinite, trunc, isinf.
41308         (configure.ac): Addrange to compile lib/modf.c if needed.
41309         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
41310         m4/signbit.m4.
41311         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
41312         * tests/test-math-c++.cc: Check the declaration of modf.
41313         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
41315         Tests for module 'modfl-ieee'.
41316         * modules/modfl-ieee-tests: New file.
41317         * tests/test-modfl-ieee.c: New file.
41319         New module 'modfl-ieee'.
41320         * modules/modfl-ieee: New file.
41322         Tests for module 'modf-ieee'.
41323         * modules/modf-ieee-tests: New file.
41324         * tests/test-modf-ieee.c: New file.
41326         New module 'modf-ieee'.
41327         * modules/modf-ieee: New file.
41329         Tests for module 'modff-ieee'.
41330         * modules/modff-ieee-tests: New file.
41331         * tests/test-modff-ieee.c: New file.
41332         * tests/test-modf-ieee.h: New file.
41334         New module 'modff-ieee'.
41335         * modules/modff-ieee: New file.
41337 2012-02-26  Bruno Haible  <bruno@clisp.org>
41339         Tests for module 'fabsl-ieee'.
41340         * modules/fabsl-ieee-tests: New file.
41341         * tests/test-fabsl-ieee.c: New file.
41343         New module 'fabsl-ieee'.
41344         * modules/fabsl-ieee: New file.
41346         Tests for module 'fabs-ieee'.
41347         * modules/fabs-ieee-tests: New file.
41348         * tests/test-fabs-ieee.c: New file.
41350         New module 'fabs-ieee'.
41351         * modules/fabs-ieee: New file.
41353         Tests for module 'fabsf-ieee'.
41354         * modules/fabsf-ieee-tests: New file.
41355         * tests/test-fabsf-ieee.c: New file.
41356         * tests/test-fabs-ieee.h: New file.
41358         New module 'fabsf-ieee'.
41359         * modules/fabsf-ieee: New file.
41361 2012-02-26  Bruno Haible  <bruno@clisp.org>
41363         Tests for module 'fmal-ieee'.
41364         * modules/fmal-ieee-tests: New file.
41365         * tests/test-fmal-ieee.c: New file.
41367         New module 'fmal-ieee'.
41368         * modules/fmal-ieee: New file.
41370         Tests for module 'fma-ieee'.
41371         * modules/fma-ieee-tests: New file.
41372         * tests/test-fma-ieee.c: New file.
41374         New module 'fma-ieee'.
41375         * modules/fma-ieee: New file.
41377         Tests for module 'fmaf-ieee'.
41378         * modules/fmaf-ieee-tests: New file.
41379         * tests/test-fmaf-ieee.c: New file.
41380         * tests/test-fma-ieee.h: New file.
41382         New module 'fmaf-ieee'.
41383         * modules/fmaf-ieee: New file.
41385 2012-02-26  Bruno Haible  <bruno@clisp.org>
41387         Tests for module 'ldexpl-ieee'.
41388         * modules/ldexpl-ieee-tests: New file.
41389         * tests/test-ldexpl-ieee.c: New file.
41391         New module 'ldexpl-ieee'.
41392         * modules/ldexpl-ieee: New file.
41394         Tests for module 'ldexp-ieee'.
41395         * modules/ldexp-ieee-tests: New file.
41396         * tests/test-ldexp-ieee.c: New file.
41398         New module 'ldexp-ieee'.
41399         * modules/ldexp-ieee: New file.
41401         Tests for module 'ldexpf-ieee'.
41402         * modules/ldexpf-ieee-tests: New file.
41403         * tests/test-ldexpf-ieee.c: New file.
41404         * tests/test-ldexp-ieee.h: New file.
41406         New module 'ldexpf-ieee'.
41407         * modules/ldexpf-ieee: New file.
41409 2012-02-26  Bruno Haible  <bruno@clisp.org>
41411         Refactor frexp*-ieee tests.
41412         * tests/test-frexp-ieee.h: New file.
41413         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
41414         (main): Just call test_function.
41415         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
41416         (main): Just call test_function.
41417         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
41418         (main): Just call test_function.
41419         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
41420         * modules/frexp-ieee-tests (Files): Likewise.
41421         * modules/frexpl-ieee-tests (Files): Likewise.
41423         Tests for module 'frexpl-ieee'.
41424         * modules/frexpl-ieee-tests: New file.
41425         * tests/test-frexpl-ieee.c: New file.
41427         New module 'frexpl-ieee'.
41428         * modules/frexpl-ieee: New file.
41430         Tests for module 'frexp-ieee'.
41431         * modules/frexp-ieee-tests: New file.
41432         * tests/test-frexp-ieee.c: New file.
41434         New module 'frexp-ieee'.
41435         * modules/frexp-ieee: New file.
41437         Tests for module 'frexpf-ieee'.
41438         * modules/frexpf-ieee-tests: New file.
41439         * tests/test-frexpf-ieee.c: New file.
41441         New module 'frexpf-ieee'.
41442         * modules/frexpf-ieee: New file.
41444 2012-02-26  Bruno Haible  <bruno@clisp.org>
41446         roundl-ieee tests: More tests.
41447         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41448         (main): Add tests for [MX] shaded specification in POSIX.
41449         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41450         (Depends-on): Add isnanl-nolibm.
41452         round-ieee tests: More tests.
41453         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41454         (main): Add tests for [MX] shaded specification in POSIX.
41455         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41456         (Depends-on): Add isnand-nolibm.
41458         roundf-ieee tests: More tests.
41459         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41460         (main): Add tests for [MX] shaded specification in POSIX.
41461         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41462         (Depends-on): Add isnanf-nolibm.
41464         truncl-ieee tests: More tests.
41465         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41466         (main): Add tests for [MX] shaded specification in POSIX.
41467         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41468         (Depends-on): Add isnanl-nolibm.
41470         trunc-ieee tests: More tests.
41471         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41472         (main): Add tests for [MX] shaded specification in POSIX.
41473         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41474         (Depends-on): Add isnand-nolibm.
41476         truncf-ieee tests: More tests.
41477         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41478         (main): Add tests for [MX] shaded specification in POSIX.
41479         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41480         (Depends-on): Add isnanf-nolibm.
41482         ceill-ieee tests: More tests.
41483         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41484         (main): Add tests for [MX] shaded specification in POSIX.
41485         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41486         (Depends-on): Add isnanl-nolibm.
41488         ceil-ieee tests: More tests.
41489         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41490         (main): Add tests for [MX] shaded specification in POSIX.
41491         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41492         (Depends-on): Add isnand-nolibm.
41494         ceilf-ieee tests: More tests.
41495         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41496         (main): Add tests for [MX] shaded specification in POSIX.
41497         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41498         (Depends-on): Add isnanf-nolibm.
41500         floorl-ieee tests: More tests.
41501         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41502         (main): Add tests for [MX] shaded specification in POSIX.
41503         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41504         (Depends-on): Add isnanl-nolibm.
41506         floor-ieee tests: More tests.
41507         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41508         (main): Add tests for [MX] shaded specification in POSIX.
41509         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41510         (Depends-on): Add isnand-nolibm.
41512         floorf-ieee tests: More tests.
41513         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41514         (main): Add tests for [MX] shaded specification in POSIX.
41515         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41516         (Depends-on): Add isnanf-nolibm.
41518 2012-02-26  Bruno Haible  <bruno@clisp.org>
41520         fpieee: More comments.
41521         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
41523 2012-02-25  Bruno Haible  <bruno@clisp.org>
41525         Tests for module 'log10l'.
41526         * modules/log10l-tests: New file.
41527         * tests/test-log10l.c: New file.
41528         * tests/test-math-c++.cc: Check the declaration of log10l.
41530         New module 'log10l'.
41531         * lib/math.in.h (log10l): New declaration.
41532         * lib/log10l.c: New file.
41533         * m4/log10l.m4: New file.
41534         * modules/log10l: New file.
41535         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
41536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
41537         HAVE_DECL_LOG10L.
41538         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
41539         HAVE_DECL_LOG10L.
41540         * doc/posix-functions/log10l.texi: Mention the new module.
41542 2012-02-25  Bruno Haible  <bruno@clisp.org>
41544         fmodl, remainder*: Avoid wrong results due to rounding errors.
41545         * lib/fmodl.c (fmodl): Correct the result if it is not within the
41546         expected bounds.
41547         * lib/remainderf.c (remainderf): Likewise.
41548         * lib/remainder.c (remainder): Likewise.
41549         * lib/remainderl.c (remainderl): Likewise.
41551 2012-02-25  Bruno Haible  <bruno@clisp.org>
41553         Tests for module 'remainderl'.
41554         * modules/remainderl-tests: New file.
41555         * tests/test-remainderl.c: New file.
41556         * tests/test-math-c++.cc: Check the declaration of remainderl.
41558         New module 'remainderl'.
41559         * lib/math.in.h (remainderl): New declaration.
41560         * lib/remainderl.c: New file.
41561         * m4/remainderl.m4: New file.
41562         * modules/remainderl: New file.
41563         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
41564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
41565         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
41566         HAVE_REMAINDERL.
41567         * doc/posix-functions/remainderl.texi: Mention the new module.
41569 2012-02-25  Bruno Haible  <bruno@clisp.org>
41571         Tests for module 'remainderf'.
41572         * modules/remainderf-tests: New file.
41573         * tests/test-remainderf.c: New file.
41574         * tests/test-math-c++.cc: Check the declaration of remainderf.
41576         New module 'remainderf'.
41577         * lib/math.in.h (remainderf): New declaration.
41578         * lib/remainderf.c: New file.
41579         * m4/remainderf.m4: New file.
41580         * modules/remainderf: New file.
41581         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
41582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
41583         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
41584         HAVE_REMAINDERF.
41585         * doc/posix-functions/remainderf.texi: Mention the new module.
41587 2012-02-25  Bruno Haible  <bruno@clisp.org>
41589         remainder: Support for MSVC.
41590         * lib/math.in.h (remainder): New declaration.
41591         * lib/remainder.c: New file.
41592         * m4/remainder.m4: New file.
41593         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
41594         (Depends-on): Add math, round, fma.
41595         (configure.ac): Use results of gl_FUNC_REMAINDER.
41596         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
41597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
41598         HAVE_DECL_REMAINDER.
41599         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
41600         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
41601         * tests/test-math-c++.cc: Check the declaration of remainder.
41602         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
41603         problems are fixed.
41605 2012-02-25  Bruno Haible  <bruno@clisp.org>
41607         Tests for module 'fmodl'.
41608         * modules/fmodl-tests: New file.
41609         * tests/test-fmodl.c: New file.
41610         * tests/test-math-c++.cc: Check the declaration of fmodl.
41612         New module 'fmodl'.
41613         * lib/math.in.h (fmodl): New declaration.
41614         * lib/fmodl.c: New file.
41615         * m4/fmodl.m4: New file.
41616         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
41617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
41618         REPLACE_FMODL.
41619         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
41620         REPLACE_FMODL.
41621         * modules/fmodl: New file.
41622         * doc/posix-functions/fmodl.texi: Mention the new module.
41624 2012-02-25  Bruno Haible  <bruno@clisp.org>
41626         Tests for module 'modfl'.
41627         * modules/modfl-tests: New file.
41628         * tests/test-modfl.c: New file.
41629         * tests/test-math-c++.cc: Check the declaration of modfl.
41631         New module 'modfl'.
41632         * lib/math.in.h (modfl): New declaration.
41633         * lib/modfl.c: New file.
41634         * m4/modfl.m4: New file.
41635         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
41636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
41637         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
41638         * modules/modfl: New file.
41639         * doc/posix-functions/modfl.texi: Mention the new module.
41641 2012-02-25  Bruno Haible  <bruno@clisp.org>
41643         Tests for module 'fabsl'.
41644         * modules/fabsl-tests: New file.
41645         * tests/test-fabsl.c: New file.
41646         * tests/test-math-c++.cc: Check the declaration of fabsl.
41648         New module 'fabsl'.
41649         * lib/math.in.h (fabsl): New declaration.
41650         * lib/fabsl.c: New file.
41651         * m4/fabsl.m4: New file.
41652         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
41653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
41654         REPLACE_FABSL.
41655         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
41656         REPLACE_FABSL.
41657         * modules/fabsl: New file.
41658         * doc/posix-functions/fabsl.texi: Mention the new module.
41660 2012-02-25  Bruno Haible  <bruno@clisp.org>
41662         fabs tests: More tests.
41663         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
41664         (zero): New variable.
41665         (main): Add tests for signed zero.
41666         * modules/fabs-tests (Files): Add tests/minus-zero.h.
41668         fabsf tests: More tests.
41669         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
41670         (zero): New variable.
41671         (main): Add tests for signed zero.
41672         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
41674 2012-02-24  Bruno Haible  <bruno@clisp.org>
41676         atanl: Provide function definition on MSVC.
41677         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
41678         function pointer.
41679         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
41681 2012-02-24  Bruno Haible  <bruno@clisp.org>
41683         acosl: Provide function definition on MSVC.
41684         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
41685         function pointer.
41686         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
41688 2012-02-24  Bruno Haible  <bruno@clisp.org>
41690         asinl: Provide function definition on MSVC.
41691         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
41692         function pointer.
41693         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
41695 2012-02-24  Bruno Haible  <bruno@clisp.org>
41697         tanl: Provide function definition on MSVC.
41698         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
41699         function pointer.
41700         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
41702 2012-02-24  Bruno Haible  <bruno@clisp.org>
41704         cosl: Provide function definition on MSVC.
41705         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
41706         function pointer.
41707         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
41709 2012-02-24  Bruno Haible  <bruno@clisp.org>
41711         sinl: Provide function definition on MSVC.
41712         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
41713         function pointer.
41714         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
41716 2012-02-24  Bruno Haible  <bruno@clisp.org>
41718         logl: Provide function definition on MSVC.
41719         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
41720         function pointer.
41721         * lib/math.in.h (logl): Undefine if it does not exist as a function.
41723 2012-02-24  Bruno Haible  <bruno@clisp.org>
41725         expl: Provide function definition on MSVC.
41726         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
41727         function pointer.
41728         * lib/math.in.h (expl): Undefine if it does not exist as a function.
41730 2012-02-24  Bruno Haible  <bruno@clisp.org>
41732         sqrtl: Provide function definition on MSVC.
41733         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
41734         a function pointer.
41735         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
41737 2012-02-24  Bruno Haible  <bruno@clisp.org>
41739         ceill: Provide function definition on MSVC.
41740         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
41741         used as a function pointer.
41742         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
41744 2012-02-24  Bruno Haible  <bruno@clisp.org>
41746         floorl: Provide function definition on MSVC.
41747         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
41748         used as a function pointer.
41749         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
41751 2012-02-24  Bruno Haible  <bruno@clisp.org>
41753         ceilf: Provide function definition on MSVC.
41754         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
41755         used as a function pointer.
41756         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
41758 2012-02-24  Bruno Haible  <bruno@clisp.org>
41760         floorf: Provide function definition on MSVC.
41761         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
41762         used as a function pointer.
41763         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
41765 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41767         stdnoreturn: new module
41768         This implements a replacement for C11's <stdnoreturn.h>.
41769         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
41770         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
41771         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
41772         * tests/test-stdnoreturn.c: New files.
41774 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
41776         regex: fix false multibyte matches in some regular expressions
41777         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
41778         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
41779         * lib/regex_internal.c (re_string_skip_chars):
41780         Fix miscomputation of remain_len that may cause incomplete
41781         multi-byte character and false match.
41783 2012-02-24  Jim Meyering  <meyering@redhat.com>
41785         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
41786         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
41787         uses with "==" *before* the call, e.g., 0 == strcmp (...)
41788         Remove now-unnecessary str''cmp obfuscation.
41789         Suggested by Akim Demaille.
41791 2012-02-24  Bruno Haible  <bruno@clisp.org>
41793         streq: Rename macro.
41794         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
41795         * NEWS: Mention the change.
41796         * lib/mbrtowc.c (mbrtowc): Update.
41797         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
41798         * lib/wcwidth.c (wcwidth): Update.
41799         Suggested by Akim Demaille and Jim Meyering.
41801 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41803         regex: fix typo in definition of MIN
41804         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
41805         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
41807 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41808             Bruno Haible  <bruno@clisp.org>
41810         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
41811         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
41812         entries into a stack-allocated buffer directly.
41813         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
41815 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41816             Bruno Haible  <bruno@clisp.org>
41818         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
41820          - There were several instances of this pattern:
41822              for (;;) {
41823                n = acl (f, GETACLCNT, 0, NULL);
41824                [ allocate an array A of size N ]
41825                if (acl (f, GETACL, n, a) == n)
41826                  break;
41827              }
41829            This loop might never terminate if some other process is constantly
41830            manipulating the file's ACL.  The loop should be rewritten to
41831            terminate.
41833          - The acl (... GETACLNT ...) call is merely an optimization; its value
41834            is merely a hint as to how big to make the array.  A better
41835            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
41836            and just guess a reasonably-big size, growing the size and trying
41837            again if it's not large enough.  This guarantees termination, and
41838            saves a system call.
41840         * lib/acl-internal.h: Include <limits.h>.
41841         (MIN, SIZE_MAX): New macros.
41842         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
41843         a stack-allocated buffer, and use malloc if it does not fit. Don't
41844         use GETACLCNT.
41845         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41847 2012-02-19  Bruno Haible  <bruno@clisp.org>
41849         acl: Fix endless loop on Solaris with vxfs.
41850         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
41851         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
41852         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41853         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
41854         * tests/test-sameacls.c (main)[Solaris]: Likewise.
41855         Reported by Bill Jones in
41856         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
41858 2012-02-19  Bruno Haible  <bruno@clisp.org>
41860         acl: Fix copy-acl test failure on Solaris 11.0.
41861         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
41862         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
41863         that this function returns 0 in some more cases.
41865 2012-02-19  Bruno Haible  <bruno@clisp.org>
41867         acl: Update doc references.
41868         * doc/acl-resources.txt: Update links to Solaris documentation.
41870 2012-02-19  Bruno Haible  <bruno@clisp.org>
41872         Fix test failure in many locales on Solaris 11.
41873         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
41874         'tr' arguments.
41875         * tests/test-pipe-filter-ii1.c (main): Likewise.
41876         * build-aux/bootstrap (check_versions): Run 'tr' command with range
41877         expressions in the C locale.
41878         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41879         * m4/host-os.m4 (gl_HOST_OS): Likewise.
41881 2012-02-19  Bruno Haible  <bruno@clisp.org>
41883         gnulib-tool: Improve usage message.
41884         * gnulib-tool (func_usage): Move doc of --help and --version to the
41885         section "Operation modes".
41887 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
41889         README-release: make it easier to execute commands
41890         * top/README-release: break commands out on to separate lines.
41892 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
41894         GNUmakefile: simplify detection of unconfigured trees
41895         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
41896         whether the tree make is being run from is already configured or
41897         not.  Related simplifications.
41899 2012-02-13  Simon Josefsson  <simon@josefsson.org>
41901         * gnulib-tool (func_usage): Document --help and --version.
41903 2012-02-11  Jim Meyering  <meyering@redhat.com>
41905         bootstrap: don't exit 0 upon gnulib-tool failure
41906         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
41907         its exit status, not 0.
41909 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
41911         README-release: various improvements
41912         * top/README-release: Give a command to push changes for the
41913         release.  Add "distcheck" to list of other pre-release checks.
41914         Fix instance of "make stable" which should be "make TYPE".
41916 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
41918         maint: replace FSF snail-mail addresses with URLs
41919         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
41920         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
41921         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
41922         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
41923         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
41924         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
41925         * lib/check-version.c, lib/check-version.h, lib/config.charset:
41926         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
41927         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
41928         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
41929         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
41930         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
41931         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
41932         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
41933         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
41934         * lib/glthread/thread.c, lib/glthread/thread.h:
41935         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
41936         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
41937         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
41938         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
41939         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
41940         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
41941         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
41942         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
41943         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
41944         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
41945         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
41946         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
41947         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
41948         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
41949         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
41950         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
41951         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
41952         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
41953         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
41954         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
41955         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
41956         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
41957         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
41958         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
41959         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
41960         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
41961         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
41962         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
41963         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
41964         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
41965         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
41966         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
41967         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
41968         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
41969         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
41970         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
41971         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
41972         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
41973         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
41974         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
41975         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
41976         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
41977         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
41978         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
41979         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
41980         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
41981         * tests/test-poll.c, tests/test-quotearg-simple.c:
41982         * tests/test-quotearg.c, tests/test-quotearg.h:
41983         * tests/test-round-ieee.c, tests/test-round1.c:
41984         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
41985         * tests/test-roundl-ieee.c, tests/test-roundl.c:
41986         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
41987         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
41988         * tests/test-strerror.c, tests/test-strerror_r.c:
41989         * tests/test-strsignal.c, tests/test-strverscmp.c:
41990         * tests/test-xmemdup0.c:
41991         Replace FSF snail mail addresses with URLs, as per GNU coding
41992         standards.  See glibc bug
41993         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
41995 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41997         README-release: capitalize a word and split a line
41998         * top/README-release: Fix punctuation and spacing.
42000 2012-02-08  Akim Demaille  <demaille@gostai.com>
42002         fatal-signal: use C prototypes (with explicit void).
42003         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42004         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
42006 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42008         regex: spelling fix
42009         * lib/regexec.c: spelling fix
42011         regex: rely on stdint.h for SIZE_MAX
42012         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
42014 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42016         regex: merge glibc changes
42018         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
42019         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
42020         (init_word_char): Work even if bitset words are not exactly 32 or
42021         64 bits wide.  Don't assume there are no padding bits.
42022         * lib/regex.c [_LIBC]: Do not include <config.h>.
42023         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
42024         and -Wtype-limits.
42025         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
42026         needless disagreement with glibc.  All uses changed.  Define it to
42027         1 only if _GNU_SOURCE, to match glibc.
42028         (_REG_RM_NAME): Remove; no longer needed, since the names in
42029         question are now all protected by __USE_GNU.
42030         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
42031         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
42032         * lib/regex_internal.h (MIN): New macro.
42034         2012-01-03 Ulrich Drepper <drepper@gmail.com>
42035         * lib/regcomp.c (init_word_char): Optimize regex a bit.
42037         2011-12-30 Jakub Jelinek <jakub@redhat.com>
42038         * lib/regex_internal.c (re_string_fetch_byte_case):
42039         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
42040         is miscompiled, and it turns out it is because of an incorrect
42041         attribute on re_string_fetch_byte_case.  Unlike
42042         re_string_peek_byte_case, this one is really not pure, it modifies
42043         memory (increments pstr->cur_idx), and with the pure attribute GCC
42044         assumed it doesn't and it cached the presumed value of
42045         regexp->cur_idx in a variable across the
42046          for (;; ++i)
42047            {
42048              if (i >= BRACKET_NAME_BUF_SIZE)
42049                return REG_EBRACK;
42050              if (token->type == OP_OPEN_CHAR_CLASS)
42051                ch = re_string_fetch_byte_case (regexp);
42052              else
42053                ch = re_string_fetch_byte (regexp);
42054              if (re_string_eoi(regexp))
42055                return REG_EBRACK;
42056              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
42057                break;
42058              elem->opr.name[i] = ch;
42059            }
42061         2011-11-29 Andreas Schwab <schwab@redhat.com>
42062         * lib/regcomp.c (build_equiv_class):
42063         Fix access after end of search string in regex matcher.
42065         2011-11-12 Ulrich Drepper <drepper@redhat.com>
42066         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
42068         2011-10-12 Ulrich Drepper <drepper@redhat.com>
42069         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
42071         2011-10-11 Ulrich Drepper <drepper@redhat.com>
42072         * lib/regcomp.c (parse_branch, parse_sub_exp):
42073         More regex memory leak fixes and tests.
42074         (parse_sub_exp, parse_bracket_exp):
42075         Fix memory leak for some invalid regular expressions.
42077         2011-05-28 Ulrich Drepper <drepper@gmail.com>
42078         * lib/regex_internal.c, lib/regexec.c:
42079         Fix unnecessary overallocation due to incomplete character.  When
42080         incomplete characters are found at the end of a string the code
42081         ran amok and allocated lots of memory.  Stricter limits are now in
42082         place.
42084         2011-05-20 Reuben Thomas <rrt@sc3d.org>
42085         * lib/regex.h: Update documentation.
42087         2011-05-16 Aharon Robbins <arnold@skeeve.com>
42088         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
42090         2010-05-05 Andreas Schwab <schwab@redhat.com>
42091         * lib/regexec.c (find_collation_sequence_value):
42092         Fix lookup of collation sequence value during regexp matching.
42094         2010-01-22 Ulrich Drepper <drepper@redhat.com>
42095         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
42097         2008-01-16 Ulrich Drepper <drepper@redhat.com>
42098         * lib/regex.h: Cleanup namespace.
42100         2007-11-26 Ulrich Drepper <drepper@redhat.com>
42101         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
42103         2007-08-26 Ulrich Drepper <drepper@redhat.com>
42104         * lib/regex_internal.h: Prevent some declarations and definitions
42105         to be seen when used in tests.
42107         2005-05-06 Ulrich Drepper <drepper@redhat.com>
42108         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
42109         __libc_lock_* macros if not _LIBC.
42110         (struct re_dfa_t): Add lock.
42112 2012-02-07  Eric Blake  <eblake@redhat.com>
42114         maint.mk: also prohibit lower-case @var@
42115         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
42116         lower case, like @top_srcdir@.
42118 2012-02-04  Eric Blake  <eblake@redhat.com>
42120         canonicalize: avoid uninitialized memory use
42121         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
42122         random '/' left in dest.
42123         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
42125 2012-02-04  Bruno Haible  <bruno@clisp.org>
42127         isatty: Fix test failure of ptsname_r on native Windows.
42128         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
42129         and don't set errno.
42130         (isatty): Test first whether fd is valid. Set errno when returning 0.
42132 2012-02-04  Bruno Haible  <bruno@clisp.org>
42134         spawn-pipe tests: Fix a NULL program name in a diagnostic.
42135         * tests/test-spawn-pipe-main.c: Include progname.h.
42136         (main): Invoke set_program_name.
42137         * modules/spawn-pipe-tests (Depends-on): Add progname.
42139         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
42140         * tests/test-nonblocking-socket-main.c: Include progname.h.
42141         (main): Invoke set_program_name.
42142         * modules/nonblocking-socket-tests (Depends-on): Add progname.
42144         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
42145         * tests/test-nonblocking-pipe-main.c: Include progname.h.
42146         (main): Invoke set_program_name.
42147         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
42149 2012-02-04  Eric Blake  <eblake@redhat.com>
42151         canonicalize-lgpl: fix // handling
42152         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
42154         canonicalize: fix // handling
42155         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
42156         /// to //, since only // is special.
42158 2012-02-04  Bruno Haible  <bruno@clisp.org>
42160         ioctl: Fix test failure on native Windows.
42161         * lib/ioctl.c: Include msvc-nothrow.h.
42162         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
42164 2012-02-04  Bruno Haible  <bruno@clisp.org>
42166         fsync: Avoid test failure on native Windows.
42167         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
42168         read-only.
42170 2012-02-04  Bruno Haible  <bruno@clisp.org>
42172         sys_select: Avoid syntax error on OpenBSD 5.0.
42173         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
42174         currently being included, just include the system's <sys/select.h>.
42176 2012-02-04  Bruno Haible  <bruno@clisp.org>
42178         sys_select: Avoid syntax error on OpenBSD 5.0.
42179         * lib/sys_select.in.h: Include <signal.h> only after the include_next
42180         <sys/select.h>, not before.
42181         Reported by Jiri B <jirib@devio.us>.
42183 2012-02-04  Bruno Haible  <bruno@clisp.org>
42185         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
42186         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
42187         global variables.
42188         * tests/test-get-rusage-data.c (main): Likewise.
42189         Reported by Jim Meyering.
42191 2012-02-04  Bruno Haible  <bruno@clisp.org>
42193         stdioext: Fix last commit.
42194         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
42196 2012-02-03  Bruno Haible  <bruno@clisp.org>
42198         stdioext: Add tentative support for Plan9.
42199         * lib/stdio-impl.h: Include <errno.h>.
42200         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
42201         * lib/freadable.c (freadable): Likewise.
42202         * lib/fwritable.c (fwritable): Likewise.
42203         * lib/fbufmode.c (fbufmode): Likewise.
42204         * lib/freading.c (freading): Likewise.
42205         * lib/fwriting.c (fwriting): Likewise.
42206         * lib/freadptr.c (freadptr): Likewise.
42207         * lib/freadseek.c (freadptrinc): Likewise.
42208         * lib/freadahead.c (freadahead): Likewise.
42209         * lib/fpurge.c (fpurge): Likewise.
42210         * lib/fseeko.c (rpl_fseeko): Likewise.
42211         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
42212         Reported by Jens Staal <staal1978@gmail.com>.
42214 2012-02-02  Jim Meyering  <meyering@redhat.com>
42216         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
42217         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
42218         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
42219         not even to try to add the attribute.  Instead, add a pragma to suppress
42220         the suggestion/warning.
42222 2012-01-31  Karl Berry  <karl@gnu.org>
42224         setstate doc: typo.
42225         * doc/posix-functions/setstate.texi (setstate): { not (.
42227 2012-01-31  Bruno Haible  <bruno@clisp.org>
42229         popen: Make more robust on Windows.
42230         * lib/popen.c: On native Windows, use the _popen based code even if
42231         HAVE_POPEN is set.
42232         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
42233         environment variable on native Windows.
42235 2012-01-30  Bruno Haible  <bruno@clisp.org>
42237         pclose: Fix typo.
42238         * lib/stdio.in.h (pclose): Fix typo in warning message.
42240 2012-01-30  Bruno Haible  <bruno@clisp.org>
42242         doc about getlogin_r, setstate.
42243         * doc/posix-functions/getlogin_r.texi: List the incompatible
42244         declaration problem under "not fixed by gnulib".
42245         * doc/posix-functions/setstate.texi: Mention incompatible declaration
42246         problem on Solaris 11 and other platforms.
42248 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
42249             Bruno Haible  <bruno@clisp.org>
42251         poll tests: Make test more robust.
42252         * tests/test-poll.c: Include macros.h.
42253         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
42254         return value of various I/O operations.
42255         * modules/poll-tests (Files): Add tests/macros.h.
42257 2012-01-30  Bruno Haible  <bruno@clisp.org>
42259         sys_stat: Fix support for mingw64 and MSVC.
42260         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
42261         header files already do it.
42262         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
42263         stat itself.
42264         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42266 2012-01-30  Bruno Haible  <bruno@clisp.org>
42268         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
42269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
42270         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
42272 2012-01-29  Bruno Haible  <bruno@clisp.org>
42274         quotearg: Fix test failure on MacOS X 10.5.
42275         * tests/test-quotearg-simple.c: Include localcharset.h.
42276         (main): If the locale encoding is not ASCII, bypass the tests of
42277         locale_quoting_style and clocale_quoting_style.
42278         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
42280 2012-01-29  Jim Meyering  <meyering@redhat.com>
42282         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
42283         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
42284         detect uses of canonicalize_file_name.
42286 2012-01-28  Bruno Haible  <bruno@clisp.org>
42288         test-framework-sh: Fix test failure with AIX 7.1 diff.
42289         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
42290         in column 1, like 'diff -c' does.
42291         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
42292         whether 'diff -u' is used. Instead, test whether the output contains
42293         some '@' character.
42295 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42297         strtoimax: eliminate need for stdint.h, inttypes.h checks
42298         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
42299         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
42300         the prerequisites for a recently-introduced strtoimax test.
42301         I guess this might cause strtoimax to be replaced when not
42302         strictly necessary on older hosts, but this shouldn't introduce
42303         any bugs and it should make Emacs 'configure' faster on typical
42304         modern hosts.  Problem discovered when importing the latest gnulib
42305         to an Emacs test version.
42306         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
42308 2012-01-28  Bruno Haible  <bruno@clisp.org>
42310         sys_time: Override 'struct timeval' on some native Windows platforms.
42311         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
42312         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
42313         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
42314         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
42315         needs to be overridden.
42316         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
42317         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
42318         * tests/test-sys_select.c: Check that the tv_sec member has the same
42319         size as a 'time_t'.
42320         * tests/test-sys_time.c: Likewise.
42321         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
42322         is set, set also REPLACE_GETTIMEOFDAY.
42323         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
42324         convert the resulting 'struct timeval' before returning.
42325         * lib/select.c: Include <sys/time.h>.
42326         (select, timeval): Undefine at the right place.
42327         * modules/select (Depends-on): Add sys_time.
42328         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
42329         some Windows platforms.
42330         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42332 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42334         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
42335         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
42336         an integer.
42337         * lib/fcntl.c (dupfd): Likewise.
42338         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
42340 2012-01-28  Bruno Haible  <bruno@clisp.org>
42342         fcntl: Avoid compilation error on native Windows.
42343         * modules/fcntl (Depends-on): Add 'close'.
42345 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42347         select, poll, isatty: Avoid warnings on x86_64 mingw64.
42348         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
42349         pointer to an integer.
42350         * lib/poll.c (IsConsoleHandle): Likewise.
42351         * lib/isatty.c (IsConsoleHandle): Likewise.
42353 2012-01-28  Jim Meyering  <meyering@redhat.com>
42355         doc: clarify README-release
42356         * top/README-release: Clarify: you should make a point to have
42357         the latest stable versions of build tools in your PATH, and the
42358         reference to buildreq is solely for its list of tool names, not
42359         for its minimal-functional version numbers.
42360         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
42362         maint.mk: use more readable (yet functionally equivalent) quoting
42363         It is common to quote a single quote in a single quoted string like
42364         this:  '...'\''...'.  Unless you know the idiom, that looks like
42365         gibberish, so prefer to double-quote the string when possible.
42366         Then you can use a more readable, lone single quote: "...'..."
42367         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
42368         "don't" is more readable than the equivalent 'don'\''t'.
42369         (sc_cast_of_x_alloc_return_value): Likewise.
42370         (sc_cast_of_alloca_return_value): Likewise.
42371         (sc_makefile_path_separator_check): Similar: use ":" in '...',
42372         rather than '\'':'\''.
42374 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42376         stdalign: relax _Alignof and tighten _Alignas test
42377         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
42378         as it was too strict: alignof must divide offsetof, but it need
42379         not equal offsetof.  Inspired by Joseph S. Myers's comment
42380         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
42381         Conversely, tighten the _Alignas test a bit, as the resulting
42382         alignment must be exactly 8.
42384 2012-01-27  Bruno Haible  <bruno@clisp.org>
42386         stdalign: Document the last change.
42387         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
42389 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42391         stdalign: check that alignof and offsetof are consistent
42392         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
42393         Problem reported for gnulib by Richard W.M. Jones in
42394         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
42396 2012-01-27  Jim Meyering  <meyering@redhat.com>
42398         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
42399         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
42400         convert a sequence with gaps to the minimal containing range.
42401         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
42402         * tests/test-update-copyright.sh: Test for this.
42403         The FSF confirmed it is ok to do this, assuming there is at
42404         least one significant change per year in the affected range:
42405         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
42407 2012-01-26  Bruno Haible  <bruno@clisp.org>
42409         pipe2: refine doc about thread-safety
42410         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
42411         multithread-safety problem.
42412         * doc/glibc-functions/accept4.texi: Likewise.
42414 2012-01-26  Bruno Haible  <bruno@clisp.org>
42416         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
42417         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
42418         In the test program, include <fcntl.h>, for O_RDONLY.
42420 2012-01-26  Eric Blake  <eblake@redhat.com>
42422         pipe2: document lack of thread-safety in replacement
42423         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
42424         issue in replacement.
42425         * doc/glibc-functions/accept4.texi (accept4): Likewise.
42426         Based on a report by Eric Wong.
42428 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42429             Bruno Haible  <bruno@clisp.org>
42431         malloca: Avoid warnings on x86_64 mingw64.
42432         * lib/malloca.c: Include <stdint.h>.
42433         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
42434         * modules/malloca (Depends-on): Add stdint.
42435         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
42437 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42439         obstack: remove __STDC__ conditionals
42440         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
42441         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
42442         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
42443         m4/include_next.m4 as the only gnulib-maintained places that still
42444         refer to __STDC__.
42446 2012-01-24  Bruno Haible  <bruno@clisp.org>
42448         havelib: Modern quoting.
42449         * build-aux/config.rpath: Quote 'like this', not `like this', as per
42450         the recent change to the GNU coding standards.
42452 2012-01-24  Bruno Haible  <bruno@clisp.org>
42454         stdint: Improve support for Android.
42455         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
42456         Reported by Simon Josefsson <simon@josefsson.org>.
42458 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42460         doc: omit trailing empty lines from INSTALL etc.
42461         * doc/Makefile (INSTALL): Omit trailing empty lines.
42462         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
42463         omit trailing empty lines.  This simplifies the build procedure.
42465 2012-01-23  Jim Meyering  <meyering@redhat.com>
42467         tests: avoid spurious warnings about gl_sockets_startup
42468         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
42469         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
42470         reporting a "statement with no effect".
42471         * tests/test-accept.c (main): Mark as "(void)".
42472         * tests/test-accept4.c (main): Likewise.
42473         * tests/test-bind.c (main): Likewise.
42474         * tests/test-connect.c (main): Likewise.
42475         * tests/test-getpeername.c (main): Likewise.
42476         * tests/test-getsockname.c (main): Likewise.
42477         * tests/test-getsockopt.c (main): Likewise.
42478         * tests/test-listen.c (main): Likewise.
42479         * tests/test-recv.c (main): Likewise.
42480         * tests/test-recvfrom.c (main): Likewise.
42481         * tests/test-send.c (main): Likewise.
42482         * tests/test-sendto.c (main): Likewise.
42483         * tests/test-setsockopt.c (main): Likewise.
42484         * tests/test-shutdown.c (main): Likewise.
42486 2012-01-21  Bruno Haible  <bruno@clisp.org>
42488         locale-fr.m4: Fix for Android.
42489         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
42490         failure of the test program on Bionic libc.
42492 2012-01-21  Jim Meyering  <meyering@redhat.com>
42494         bootstrap: fail when bootstrap_post_import_hook fails
42495         Otherwise, it's far too easy to miss diagnostics emitted
42496         between gnulib-tool's output and that of running configure.
42497         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
42499 2012-01-17  Jim Meyering  <meyering@redhat.com>
42501         maint: enable sc_trailing_blank
42502         * build-aux/pmccabe.css: Remove trailing blanks.
42503         * doc/acl-cygwin.txt: Likewise.
42504         * doc/gnu-oids.texi: Likewise
42505         * cfg.mk: Enable sc_trailing_blank.
42506         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
42508 2012-01-17  Jim Meyering  <meyering@redhat.com>
42510         maint: enable sc_prohibit_openat_without_use
42511         * cfg.mk: Enable sc_prohibit_openat_without_use.
42512         Exempt lib/selinux-at.c.
42514 2012-01-17  Jim Meyering  <meyering@redhat.com>
42516         maint: enable sc_prohibit_cloexec_without_use
42517         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
42518         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
42520 2012-01-17  Jim Meyering  <meyering@redhat.com>
42522         maint: enable sc_prohibit_intprops_without_use
42523         * cfg.mk: Enable sc_prohibit_intprops_without_use
42524         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
42526 2012-01-17  Jim Meyering  <meyering@redhat.com>
42528         maint: enable sc_prohibit_hash_pjw_without_use
42529         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
42530         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
42531         to match any use of \<hash_pjw\>, i.e., not necessarily with a
42532         following " (".
42534 2012-01-17  Jim Meyering  <meyering@redhat.com>
42536         maint: enable double-word-prohibiting rule
42537         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
42538         Exempt three files.
42540 2012-01-17  Jim Meyering  <meyering@redhat.com>
42542         maint: remove empty lines at EOF, but excluding modules/*
42543         Apply syntax rules at home as well as abroad.  Most changes
42544         were induced by running this:
42545           make srcdir=. _build-aux=build-aux -f top/maint.mk \
42546             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
42547             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
42548         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
42549         Exempt modules/* and two binary files.
42550         Also exempt doc/INSTALL*, per request from Bruno Haible.
42551         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
42552         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
42553         * doc/Copyright/request-assign.future: Likewise.
42554         * doc/Copyright/request-disclaim.changes: Likewise.
42555         * doc/INSTALL: Likewise.
42556         * doc/INSTALL.ISO: Likewise.
42557         * doc/INSTALL.UTF-8: Likewise.
42558         * doc/acl-cygwin.txt: Likewise.
42559         * doc/acl-resources.txt: Likewise.
42560         * doc/fdl-1.2.texi: Likewise.
42561         * doc/fdl-1.3.texi: Likewise.
42562         * doc/fdl.texi: Likewise.
42563         * lib/argp-pin.c: Likewise.
42564         * lib/round.c: Likewise.
42565         * lib/unicase/u16-totitle.c: Likewise.
42566         * lib/unictype/block_test.c: Likewise.
42567         * lib/uninorm/canonical-decomposition.c: Likewise.
42568         * m4/README: Likewise.
42569         * m4/relocatable-lib.m4: Likewise.
42570         * tests/test-isnand-nolibm.c: Likewise.
42571         * tests/test-isnand.c: Likewise.
42572         * tests/uninorm/NormalizationTest.txt: Likewise.
42574 2012-01-17  Jim Meyering  <meyering@redhat.com>
42576         maint: add framework to run syntax-check rules against gnulib sources
42577         * cfg.mk: New file, to disable all currently-failing tests.
42578         We'll enable them one by one, as they are made to pass.
42579         * Makefile (sc_maint): New rule.
42581 2012-01-21  Bruno Haible  <bruno@clisp.org>
42583         stdint: Add support for Android.
42584         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
42585         include the system's <stdint.h>.
42586         Reported by Simon Josefsson <simon@josefsson.org>.
42588 2012-01-19  Jim Meyering  <meyering@redhat.com>
42590         bootstrap: add bootstrap_post_import_hook
42591         Bison does still need something like the gnulib_mk_hook whose
42592         invocation I had to remove along with slurp in commit 767ccd40.
42593         Technically, we could get along without it, but doing so would
42594         have required living with a warning and a mandatory post-bootstrap
42595         automake rerun.
42596         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
42597         (bootstrap_post_import_hook): New function.
42598         Invoke it after gnulib-tool --import and before autoreconf.
42600 2012-01-18  Jim Meyering  <meyering@redhat.com>
42602         gitlog-to-changelog: don't use "no_"-prefixed variable name
42603         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
42604         to enable both --cluster and --no-cluster.  Change variable name,
42605         s/\$no_cluster/$cluster/, and reverse usage to match.
42607         gitlog-to-changelog: use "||", not "or" in expressions
42608         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
42609         expressions.
42611 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
42613         gitlog-to-changelog: new option --no-cluster
42614         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
42615         clustering of adjacent commit messages.
42617 2012-01-17  Jim Meyering  <meyering@redhat.com>
42619         maint: spell file systems with two words, not one
42620         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
42621         two words, not one.
42623 2012-01-16  Jim Meyering  <meyering@redhat.com>
42625         bootstrap: add a FIXME comment to ensure we eventually remove the hack
42626         * build-aux/bootstrap (gnulib_tool_options): Add comment.
42628 2012-01-16  Eric Blake  <eblake@redhat.com>
42630         bootstrap: cater to autoconf 2.59
42631         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
42632         is not available.
42634         bootstrap: properly check for libtool
42635         * build-aux/bootstrap (libtoolize): Also run libtool when older
42636         usage is detected.
42638 2012-01-15  Bruno Haible  <bruno@clisp.org>
42640         Improve support for MSVC 9.
42641         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
42642         clashes on MSVC.
42643         * lib/fcntl.in.h: Likewise.
42644         * lib/stdlib.in.h: Likewise.
42645         * lib/sys_stat.in.h: Likewise.
42647 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
42649         gnupload: we hold the master copy of this script now
42650         For motivation and more information, see:
42651         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
42652         * build-aux/gnupload: Make it clear in the heading comments that the
42653         master copy of this file is maintained by gnulib.  Since we are at
42654         it, bump its copyright year and ...
42655         ($scriptversion): ... the date in its version.
42656         ($usage): Patches and bug reports should be sent to the gnulib list,
42657         not the automake one.
42658         * config/srclist.txt: Don't try to sync 'gnupload' from automake
42659         anymore.
42661 2012-01-15  Bruno Haible  <bruno@clisp.org>
42663         Fix module 'random'.
42664         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
42665         initstate, setstate are declared.
42667 2012-01-14  Bruno Haible  <bruno@clisp.org>
42669         Tests for module 'random'.
42670         * modules/random-tests: New file.
42671         * tests/test-random.c: New file, based on tests/test-random_r.c.
42673         New module 'random'.
42674         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
42675         declarations.
42676         * lib/random.c: New file, based on glibc/stdlib/random.c.
42677         * m4/random.m4: New file.
42678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
42679         HAVE_RANDOM.
42680         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
42681         * modules/random: New file.
42682         * config/srclist.txt: Add an entry for random.c.
42683         * doc/posix-functions/random.texi: Mention the 'random' module.
42684         * doc/posix-functions/initstate.texi: Likewise.
42685         * doc/posix-functions/setstate.texi: Likewise.
42686         * doc/posix-functions/srandom.texi: Likewise.
42688 2012-01-12  Bruno Haible  <bruno@clisp.org>
42690         random_r: Use common idioms.
42691         * lib/random_r.c: Include <stdlib.h> first.
42693         random_r: Override incompatible API on AIX, OSF/1.
42694         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
42695         Override the system function if REPLACE_RANDOM_R is 1.
42696         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
42697         and OSF/1, set REPLACE_RANDOM_R.
42698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
42699         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
42700         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
42701         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
42702         * doc/glibc-functions/random_r.texi: Likewise.
42703         * doc/glibc-functions/setstate_r.texi: Likewise.
42705         random_r: Support for MSVC 9.
42706         * lib/random_r.c: Include stdint.h, not inttypes.h.
42708 2012-01-12  Eric Blake  <eblake@redhat.com>
42710         inet_ntop: guard extra work by IF_LINT
42711         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
42712         better code generation when not checking for warnings.
42713         Suggested by Paul Eggert and Jim Meyering.
42715         strptime: fix regression on mingw
42716         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
42717         Fix regression.  Reported by Bruno Haible.
42719 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
42720             Bruno Haible  <bruno@clisp.org>
42722         copy-file: add error-code-returning variant.
42723         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
42724         (qcopy_file_preserving): New declaration.
42725         * lib/copy-file.c (qcopy_file_preserving): Renamed from
42726         copy_file_preserving. Change return type to 'int'. Don't emit an error
42727         message here.
42728         (copy_file_preserving): New function.
42729         * tests/test-copy-file.c: Include <stdlib.h>.
42730         (main): Test qcopy_file_preserving if the environment variable
42731         NO_STDERR_OUTPUT is set.
42732         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
42733         with NO_STDERR_OUTPUT
42734         * tests/test-copy-file-2.sh: Likewise.
42736 2012-01-10  Bruno Haible  <bruno@clisp.org>
42738         copy-file: Use 'quote' module consistently.
42739         * lib/copy-file.c (copy_file_preserving): Use quote().
42741         copy-file: Refactor.
42742         * lib/copy-file.c: Include quote.h.
42743         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
42744         message here.
42745         * modules/copy-file (Depends-on): Add quote.
42747         acl: Export qcopy_acl.
42748         * lib/acl.h (qcopy_acl): New declaration.
42749         * lib/copy-acl.c (qcopy_acl): Make non-static.
42751         acl: Rename a local variable.
42752         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
42754         acl: Align return values of copy_acl and qcopy_acl.
42755         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
42756         maybe < -1.
42758 2012-01-11  Eric Blake  <eblake@redhat.com>
42760         strptime: silence gcc warnings
42761         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
42762         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
42763         Reported by Daniel P. Berrange.
42765         inet_ntop: silence gcc warning
42766         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
42767         Reported by Daniel P. Berrange.
42769 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
42771         getloadavg test: skip the test on GNU/Linux without /proc mounted
42772         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
42773         file.  When /proc is not mounted, it always fails with ENOENT.
42774         * tests/test-getloadavg.c (main): Treat ENOENT return code from
42775         getloadavg(3) the same way as ENOSYS and ENOTSUP.
42777 2012-01-10  Bruno Haible  <bruno@clisp.org>
42779         regex: Avoid link error on MSVC 9.
42780         * modules/regex (Depends-on): Add wctype.
42782 2012-01-10  Bruno Haible  <bruno@clisp.org>
42784         doc: Mention --with-tests option.
42785         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
42786         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
42787         --with-tests.
42788         Reported by Reuben Thomas.
42790 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
42792         users.txt: order package names lexicographically.
42793         * users.txt: Order package names lexicographically.
42795 2012-01-10  Jim Meyering  <meyering@redhat.com>
42797         maint.mk: fix description in comment
42798         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
42800         ignore-value: remove deprecated ignore_ptr function
42801         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
42802         * NEWS: Note this.
42804 2012-01-09  Jim Meyering  <meyering@redhat.com>
42806         test-init.sh: avoid a subshell
42807         * tests/test-init.sh: Remove protective subshell.
42808         Suggested by Bernhard Voelker.  While a subshell is normally
42809         required to protect against older shells (Solaris, FreeBSD) that
42810         warn about a missing program before performing redirection, the
42811         shell-selection tests performed by init.sh probably exclude any
42812         offending shell.
42814 2012-01-08  Bruno Haible  <bruno@clisp.org>
42816         setlocale tests: Avoid test failure on Solaris 11.0.
42817         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
42818         variable.
42820 2012-01-08  Bruno Haible  <bruno@clisp.org>
42822         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
42823         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42824         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42825         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
42826         macro.
42827         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
42828         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42829         * lib/spawn_faction_addopen.c: Add workaround implementation if
42830         HAVE_WORKING_POSIX_SPAWN.
42831         * modules/spawn (Makefile): Substitute
42832         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42833         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
42834         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
42835         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42836         (Depends-on): Update conditions.
42837         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42838         the Solaris 11 bug.
42840 2012-01-08  Bruno Haible  <bruno@clisp.org>
42842         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
42843         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42844         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42845         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
42846         macro.
42847         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
42848         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42849         * lib/spawn_faction_adddup2.c: Add workaround implementation if
42850         HAVE_WORKING_POSIX_SPAWN.
42851         * modules/spawn (Makefile): Substitute
42852         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42853         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
42854         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
42855         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42856         (Depends-on): Update conditions.
42857         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42858         the Solaris 11 bug.
42860 2012-01-08  Bruno Haible  <bruno@clisp.org>
42862         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
42863         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42864         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42865         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
42866         HAVE_WORKING_POSIX_SPAWN.
42867         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
42868         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
42869         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42870         * lib/spawn_faction_addclose.c: Add workaround implementation if
42871         HAVE_WORKING_POSIX_SPAWN.
42872         * modules/spawn (Makefile): Substitute
42873         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42874         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
42875         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
42876         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42877         (Depends-on): Update conditions.
42878         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42879         the Solaris 11 bug.
42881 2012-01-08  Bruno Haible  <bruno@clisp.org>
42883         doc: Update for Solaris 11.0.
42884         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
42885         * m4/printf.m4: Update comments.
42887 2012-01-08  Bruno Haible  <bruno@clisp.org>
42889         mktime: Avoid compilation error on Solaris 11.
42890         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
42892 2012-01-08  Bruno Haible  <bruno@clisp.org>
42894         doc: Small fix.
42895         * doc/posix-headers/nl_types.texi: Correct platforms list.
42897 2012-01-08  Simon Josefsson  <simon@josefsson.org>
42899         Add lgpl-3.0 module.
42900         * MODULES.html.sh (Support for building documentation): Add
42901         lgpl-3.0.
42902         * modules/lgpl-3.0: New file.
42904 2012-01-08  Jim Meyering  <meyering@redhat.com>
42906         select.c: indent with spaces, not TABs
42907         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
42909 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42911         quotearg: do not use grave accent for left quote
42912         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
42913         locale_quoting_style.
42914         (quotearg_buffer_restyled): Fix example.
42915         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
42917 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42919         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
42920         Most programs do not have translation catalogs for English and much
42921         less separate catalogs for British and American English.  Drop the
42922         suggestion to translators about these two, and provide it
42923         automatically for Unicode locales.  Like most programs, even those
42924         using American English, we use single quotation marks.  This conflicts
42925         with the American typographic convention, but works better when you
42926         cite the entire error message within double quotes.  It also tries not
42927         to clash with established practice and with what non-gnulib programs
42928         will usually do.
42929         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
42930         using an UTF-8 or GB-18030 locale.  The list of other locales with
42931         quotes was provided by Bruno Haible.
42932         (quotearg_buffer_restyled): Adjust instructions to translators.
42933         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
42934         text, since this would be wrong when using Unicode.
42935         * modules/quotearg: Depend on c-strcaseeq.
42937 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42939         quotearg: fix Wikipedia link
42940         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
42942 2012-01-07  Simon Josefsson  <simon@josefsson.org>
42944         Fix for mingw with MSVC9.
42945         * m4/ld-version-script.m4: Check that compiler rejects version
42946         scripts with syntax errors.  Reported by Bruno Haible
42947         <bruno@clisp.org>.
42949 2012-01-06  Bruno Haible  <bruno@clisp.org>
42951         Talk about "native Windows API", not "Woe32".
42952         * lib/accept4.c: Update comments to mention native Windows.
42953         * lib/execute.c: Likewise.
42954         * lib/fatal-signal.c: Likewise.
42955         * lib/localcharset.c: Likewise.
42956         * lib/nanosleep.c: Likewise.
42957         * lib/nl_langinfo.c: Likewise.
42958         * lib/pclose.c: Likewise.
42959         * lib/pipe-filter-gi.c: Likewise.
42960         * lib/pipe-filter-ii.c: Likewise.
42961         * lib/pipe.c: Likewise.
42962         * lib/pipe2.c: Likewise.
42963         * lib/popen.c: Likewise.
42964         * lib/progreloc.c: Likewise.
42965         * lib/relocatable.c: Likewise.
42966         * lib/sigaction.c: Likewise.
42967         * lib/sigprocmask.c: Likewise.
42968         * lib/spawn-pipe.h: Likewise.
42969         * lib/spawn-pipe.c: Likewise.
42970         * lib/spawni.c: Likewise.
42971         * lib/stat-time.h: Likewise.
42972         * lib/w32spawn.h: Likewise.
42973         * tests/test-isatty.c: Likewise.
42974         * lib/config.charset: More comments.
42975         * doc/gnulib-intro.texi: Mention native Windows.
42976         * doc/posix-functions/_Exit_C99.texi: Likewise.
42977         * doc/posix-headers/fcntl.texi: Likewise.
42979 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
42981         argp: Avoid crash if translator uses % characters in a translation.
42982         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
42983         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
42985 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
42987         doc: C11 and C++11 are now official
42988         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
42989         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
42990         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
42991         * modules/stdalign:
42992         Replace references to draft C1X to C11, and to draft C++0X to C++11.
42994 2012-01-06  Bruno Haible  <bruno@clisp.org>
42996         uc-is-grapheme-break tests: Tweak.
42997         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
42998         message.
43000 2012-01-06  Bruno Haible  <bruno@clisp.org>
43002         test-init.sh: correct the test for diff -u
43003         * tests/test-init.sh: Also redirect stdout to /dev/null.
43005 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43007         Use ', not `, for quoting output.
43008         * build-aux/announce-gen (usage, sizes, print_news_deltas)
43009         (print_changelog_deltas, get_tool_versions, main program):
43010         * build-aux/git-version-gen:
43011         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
43012         * build-aux/move-if-change (help):
43013         * build-aux/useless-if-before-free (usage, main program):
43014         * check-module (parse_module_file, usage)
43015         (find_included_lib_files, check_module):
43016         * lib/argmatch.c (main) [TEST]:
43017         * lib/argp-help.c (_help):
43018         * lib/getopt1.c (main) [TEST]:
43019         * lib/git-merge-changelog.c (usage):
43020         * lib/xstrtol-error.c (xstrtol_error):
43021         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
43022         * m4/argz.m4 (gl_FUNC_ARGZ):
43023         * m4/bison.m4 (gl_BISON):
43024         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
43025         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
43026         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
43027         * m4/fpending.m4 (gl_PREREQ_FPENDING):
43028         * m4/gc-random.m4 (gl_GC_RANDOM):
43029         * m4/intl.m4 (gt_CHECK_DECL):
43030         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
43031         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
43032         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
43033         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
43034         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
43035         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
43036         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
43037         * tests/test-dirname.c (main):
43038         * tests/test-getpass.c (main):
43039         * tests/test-iconvme.c (main):
43040         * tests/test-parse-datetime.c (LOG):
43041         * tests/test-xstrtoimax.sh:
43042         * tests/test-xstrtol.sh:
43043         * tests/test-xstrtoll.sh:
43044         * tests/test-xstrtoumax.sh:
43045         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
43046         * top/GNUmakefile (abort-due-to-no-makefile):
43047         Quote 'like this', not `like this', as per the recent change to
43048         the GNU coding standards.
43050 2012-01-05  Bruno Haible  <bruno@clisp.org>
43052         strtoimax: Don't force a replacement on systems where intmax_t is int.
43053         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
43054         'intmax_t' is not larger than 'int'.
43055         Reported by Pádraig Brady <P@draigBrady.com>.
43057 2012-01-05  Bruno Haible  <bruno@clisp.org>
43059         doc: Mention NetBSD bugs.
43060         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
43061         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
43063 2012-01-05  Bruno Haible  <bruno@clisp.org>
43065         strtoumax tests: Enhance tests.
43066         * tests/test-strtoumax.c (main): Add tests for large values.
43068 2012-01-05  Bruno Haible  <bruno@clisp.org>
43070         strtoimax: Work around AIX 5.1 bug.
43071         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
43072         definition.
43073         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
43074         Set HAVE_STRTOIMAX.
43075         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
43076         REPLACE_STRTOIMAX.
43077         * modules/inttypes-incomplete (Makefile.am): Substitute
43078         REPLACE_STRTOIMAX.
43079         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43080         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
43081         (Depends-on): Update conditions.
43082         * tests/test-strtoimax.c (main): Add tests for large values.
43083         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
43085 2012-01-05  Bruno Haible  <bruno@clisp.org>
43087         inttypes: Modernize.
43088         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
43089         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
43090         (Makefile.am): Update inttypes.h rule.
43092 2012-01-05  Jim Meyering  <meyering@redhat.com>
43094         init.sh: don't waste a subshell just to redirect stderr
43095         * tests/init.sh: In testing for diff -u and diff -c, use a
43096         stderr-redirecting exec inside `...` rather than a subshell.
43098         test-init.sh: avoid failure on HP-UX 11.00
43099         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
43100         resolves to diff -c or cmp.  Reported by Bruno Haible.
43102 2012-01-05  Bruno Haible  <bruno@clisp.org>
43104         Tests for module 'strtoull'.
43105         * modules/strtoull-tests: New file.
43106         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
43108 2012-01-05  Bruno Haible  <bruno@clisp.org>
43110         Tests for module 'strtoll'.
43111         * modules/strtoll-tests: New file.
43112         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
43114 2012-01-05  Bruno Haible  <bruno@clisp.org>
43116         Tests for module 'strtoul'.
43117         * modules/strtoul-tests: New file.
43118         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
43120 2012-01-05  Bruno Haible  <bruno@clisp.org>
43122         Tests for module 'strtol'.
43123         * modules/strtol-tests: New file.
43124         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
43126 2012-01-04  Jim Meyering  <meyering@redhat.com>
43128         test-init.sh: accommodate Solaris 5.10's different diff -u output
43129         * tests/test-init.sh: Also exempt @@ lines from the comparison
43130         of diff output, since Solaris 5.10 and GNU diff formats differ.
43131         Reported by Stefano Lattarini.
43133 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43135         test-posixtm: don't assume signed integer wraparound
43136         * tests/test-posixtm.c (main): Don't assume wraparound semantics
43137         after signed integer overflow.  Inspired by (though it may not
43138         fix) Bruno Haible's bug report in
43139         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
43141         Spell out "Windows 9x" and "Windows XP".
43142         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
43143         "Windows 9x" and "WinXP" with "Windows XP".
43145 2012-01-04  Jim Meyering  <meyering@redhat.com>
43147         test-vc-list-files-cvs.sh: remove obsolete comment
43148         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
43149         double exit.  Now that's all encapsulated via skip_ and Exit.
43151 2012-01-04  Bruno Haible  <bruno@clisp.org>
43153         Talk about "native Windows API", not "Win32".
43154         * lib/classpath.c: Update comments to mention native Windows.
43155         * lib/csharpexec.c: Likewise.
43156         * lib/dup2.c: Likewise.
43157         * lib/error.c: Likewise.
43158         * lib/fcntl.c: Likewise.
43159         * lib/filename.h: Likewise.
43160         * lib/findprog.c: Likewise.
43161         * lib/get-rusage-as.c: Likewise.
43162         * lib/get-rusage-data.c: Likewise.
43163         * lib/getpagesize.c: Likewise.
43164         * lib/javaexec.c: Likewise.
43165         * lib/msvc-inval.c: Likewise.
43166         * lib/msvc-nothrow.c: Likewise.
43167         * lib/nanosleep.c: Likewise.
43168         * lib/nonblocking.c: Likewise.
43169         * lib/printf-parse.c: Likewise.
43170         * lib/setlocale.c: Likewise.
43171         * lib/sigaction.c: Likewise.
43172         * lib/strerror_r.c: Likewise.
43173         * lib/tmpdir.c: Likewise.
43174         * lib/vasnprintf.c: Likewise.
43175         * lib/w32spawn.h: Likewise.
43176         * lib/waitpid.c: Likewise.
43177         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
43178         * m4/locale-ar.m4: Likewise.
43179         * m4/locale-fr.m4: Likewise.
43180         * m4/locale-ja.m4: Likewise.
43181         * m4/locale-tr.m4: Likewise.
43182         * m4/locale-zh.m4: Likewise.
43183         * m4/printf.m4: Likewise.
43184         * tests/test-cloexec.c: Likewise.
43185         * tests/test-copy-acl.sh: Likewise.
43186         * tests/test-copy-file.sh: Likewise.
43187         * tests/test-file-has-acl.sh: Likewise.
43188         * tests/test-set-mode-acl.sh: Likewise.
43189         * tests/test-dup-safer.c: Likewise.
43190         * tests/test-dup2.c: Likewise.
43191         * tests/test-dup3.c: Likewise.
43192         * tests/test-fcntl.c: Likewise.
43193         * tests/test-nonblocking-pipe.h: Likewise.
43194         * tests/test-nonblocking-socket.h: Likewise.
43195         * tests/test-pipe.c: Likewise.
43196         * tests/test-pipe2.c: Likewise.
43197         * tests/test-spawn-pipe-child.c: Likewise.
43198         * doc/acl-resources.txt: Likewise.
43199         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43200         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
43201         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
43202         * lib/localcharset.c: Update comments to mention native Windows.
43203         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43204         * lib/localename.c: Likewise.
43205         * lib/progreloc.c: Likewise.
43206         * lib/relocatable.c: Likewise.
43207         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43208         (windows_compute_revents): Renamed from win32_compute_revents.
43209         (windows_compute_revents_socket): Renamed from
43210         win32_compute_revents_socket.
43211         * lib/select.c: Update comments to mention native Windows.
43212         (windows_poll_handle): Renamed from win32_poll_handle.
43213         * m4/threadlib.m4: Update comments to mention native Windows.
43214         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
43215         --enable-threads=windows instead of --enable-threads=win32. Set
43216         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
43217         * lib/glthread/lock.h: Update comments to mention native Windows.
43218         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
43219         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
43220         USE_WIN32_THREADS.
43221         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
43222         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
43223         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
43224         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
43225         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
43226         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
43227         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
43228         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
43229         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
43230         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
43231         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
43232         * tests/test-tls.c: Likewise.
43233         Rationale:
43234         Microsoft renamed the "Win32 API" to "Windows API", as it is available
43235         on both 32-bit and 64-bit Windows systems.
43236         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
43237         line of distinction is between "native Windows" on one side and Unix/
43238         POSIX systems on the other side. More details in
43239         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
43240         Suggested by Paul Eggert.
43242 2012-01-03  Bruno Haible  <bruno@clisp.org>
43244         isatty: Support for MSVC 9.
43245         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
43246         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
43247         (_isatty_nothrow): New function.
43248         (isatty): Use it instead of _isatty.
43249         (IsConsoleHandle): Add comment, from Paolo Bonzini.
43250         * lib/poll.c (IsConsoleHandle): Likewise.
43251         * lib/select.c (IsConsoleHandle): Likewise.
43252         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
43253         (gl_PREREQ_ISATTY): New macro.
43254         * modules/isatty (Depends-on): Add msvc-inval.
43255         (configure.ac): Invoke gl_PREREQ_ISATTY.
43257 2012-01-03  Jim Meyering  <meyering@redhat.com>
43259         maint.mk: remove temporary transition aid from over 1.5 years ago
43260         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
43261         purpose was to aid in the transition (avoiding silent malfunction)
43262         from that old name to the new _sc_search_regexp.  This shim was
43263         added by commit 219c504b.
43265         init.sh: do not try to accommodate compare arguments starting with "-"
43266         * tests/init.sh (compare_dev_null_): Do not try to accommodate
43267         compare arguments that start with "-".  Besides, we do not worry
43268         about this when invoking diff or cmp; why start now with sed?
43269         Using "--" to separate options from argument would trigger sed
43270         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
43271         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
43273 2012-01-02  Bruno Haible  <bruno@clisp.org>
43275         Enhance tests for module 'isatty'.
43276         * modules/isatty-tests (Depends-on): Add pipe-posix.
43277         * tests/test-isatty.c: Include <fcntl.h>.
43278         (DEV_NULL): New macro.
43279         (main): Test the resut of isatty() also on regular files, pipes, and
43280         /dev/null.
43282         New module 'isatty'.
43283         * lib/unistd.in.h (isatty): New declaration.
43284         * lib/isatty.c: New file, based on an idea of
43285         Bastien Roucariès <roucaries.bastien@gmail.com>.
43286         * m4/isatty.m4: New file.
43287         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
43288         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
43289         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
43290         REPLACE_ISATTY.
43291         * modules/isatty: New file.
43292         * doc/posix-functions/isatty.texi: Mention the new module.
43293         Suggested by Paolo Bonzini.
43295 2012-01-02  Bruno Haible  <bruno@clisp.org>
43297         canonicalize: Tweak 2011-12-29 commit.
43298         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
43299         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
43301 2012-01-02  Jim Meyering  <meyering@redhat.com>
43303         gitlog-to-changelog: describe input syntax in --help output
43304         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
43306         gitlog-to-changelog: fix typo in --help: show backslash before email @
43307         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
43308         in sources, but not in actual output.
43310 2011-12-30  Jim Meyering  <meyering@redhat.com>
43312         gitlog-to-changelog: don't malfunction when name contains %-directive
43313         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
43314         in a name string cause trouble.  E.g., with a user name of "%s",
43315         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
43317 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
43319         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
43320         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
43321         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
43322         the "  (tiny change)" notation that is appended to the standard
43323         ChangeLog "date  name  email" header line.
43325 2012-01-01  Jim Meyering  <meyering@redhat.com>
43327         test-framework-sh: init.sh: fix "make dist" failure
43328         When using gnulib-tool's --with-tests option and any module that
43329         depends on test-framework-sh, "make dist" would fail due to the
43330         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
43331         in the gltests directory, and not in the gllib/ directory.
43332         One way to work around that is to move the EXTRA_DIST += init.sh
43333         from the primary module to the -tests one:
43334         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
43335         * modules/test-framework-sh (Makefile.am): ...not here.
43336         Reported by Tom G. Christensen in
43337         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
43339         version-etc: update copyright year reported by --version
43340         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
43342 2011-12-31  Pádraig Brady  <P@draigBrady.com>
43344         canonicalize: only stat() if required
43345         * lib/canonicalize.c (canonicalize_filename_mode):
43346         Avoid calling l?stat() when both CAN_MISSING,
43347         and CAN_NOLINKS are set, as we neither need
43348         to resolve symlinks or test component existence.
43350 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
43352         doc: cover st_ino issues once; add OpenVMS etc.
43353         * doc/posix-functions/stat.texi (stat):
43354         * doc/posix-functions/lstat.texi (lstat):
43355         * doc/posix-functions/fstatat.texi (fstatat):
43356         * doc/posix-functions/fstat.texi (fstat):
43357         Move general 'struct stat' stuff to sys_stat.texi,
43358         leaving behind a pointer.
43359         * doc/posix-headers/sys_stat.texi (sys/stat.h):
43360         Merge duplicate info about 'struct stat' problems into here.
43361         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
43362         and suggest partial workarounds.
43364         same-inode: port to OpenVMS
43365         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
43366         three st_ino values.
43368 2011-12-30  Pádraig Brady  <P@draigBrady.com>
43370         canonicalize: fix references to stat() and lstat()
43371         * lib/canonicalize.c (canonicalize_filename_mode):
43372         Ensure references always resolve to a replacement
43373         function if required (even via a macro).
43375 2011-12-30  Jim Meyering  <meyering@redhat.com>
43377         gitlog-to-changelog: remove a little duplication
43378         * build-aux/gitlog-to-changelog (main): Grep @lines once,
43379         rather than twice.
43381 2011-12-29  Pádraig Brady  <P@draigBrady.com>
43383         canonicalize: add support for not resolving symlinks
43384         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
43385         indicate we don't want to follow symlinks.  Also
43386         provide CAN_MODE_MASK to aid setting these existing
43387         mutually exclusive values.
43388         * lib/canonicalize.c (canonicalize_filename_mode):
43389         Extract the flags from can_mode parameter, which
43390         are currently just used to select between stat()
43391         and lstat().  Also ensure that mutually exclusive
43392         values are flagged immediately as invalid.
43393         * tests/test-canonicalize.c: Verify symlinks are
43394         not followed, and that invalid flag combinations
43395         are diagnosed.
43397 2011-12-25  Jim Meyering  <meyering@redhat.com>
43399         gitlog-to-changelog: do not clump multi-paragraph entries
43400         Identical header lines (date,name,email+coauthors) are suppressed,
43401         thus putting all entries with those same characteristics under
43402         a single header.  However, when a log entry consists of two or
43403         more paragraphs, it may not be clear where it starts and ends.
43404         This change makes it so that such an entry is always separated
43405         from others by a header line, even when that header would
43406         otherwise be suppressed.
43407         * build-aux/gitlog-to-changelog: Implement the above.
43408         Inspired by a related request from Stefano Lattarini in
43409         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
43411 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43413         announce-gen: fix `cmd' typo in diagnostic
43414         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
43415         diagnostic: a missing '$' meant that the command was not output.
43417 2011-12-23  Jim Meyering  <meyering@redhat.com>
43419         test-framework-sh: distribute init.sh
43420         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
43421         Otherwise, "make -C gnulib-tests check" (at least in grep) would
43422         fail due to the lack of init.sh.
43424         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
43425         * modules/atexit-tests: Rather than listing tests/init.sh,
43426         now that there's a module for it, simply depend on that new module.
43427         * modules/closein-tests: Likewise.
43428         * modules/exclude-tests: Likewise.
43429         * modules/getcwd-tests: Likewise.
43430         * modules/perror-tests: Likewise.
43431         * modules/pread-tests: Likewise.
43432         * modules/pwrite-tests: Likewise.
43433         * modules/vc-list-files-tests: Likewise.
43434         * modules/verify-tests: Likewise.
43435         * modules/xalloc-die-tests: Likewise.
43436         * modules/xstrtoimax-tests: Likewise.
43437         * modules/xstrtol-tests: Likewise.
43438         * modules/xstrtoll-tests: Likewise.
43439         * modules/xstrtoumax-tests: Likewise.
43440         * modules/yesno-tests: Likewise.
43442 2011-12-22  Jim Meyering  <meyering@redhat.com>
43444         test-framework-sh: add minimal tests of init.sh's compare function
43445         * modules/test-framework-sh-tests: New file.
43446         * tests/test-init.sh: New file.
43448         test-framework-sh: new module
43449         * modules/test-framework-sh: New file.
43450         * MODULES.html.sh (Support for maintaining and releasing projects):
43451         List it.
43453         init.sh: do not emit simulated diff output to stderr
43454         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
43456 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43458         .gitignore: ignore gnulib.dvi and regex.info
43459         * doc/.gitignore:add gnulib.dvi and regex.info
43461 2011-12-22  Jim Meyering  <meyering@redhat.com>
43463         init.sh: correct previous change
43464         * tests/init.sh (compare): My previous change was wrong.
43465         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
43467         init.sh: avoid unwarranted test failure when using "set -e"
43468         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
43469         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
43470         a use like "compare exp out" would get evoke an unconditional failure.
43472 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
43474         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
43475         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
43476         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
43477         autoreconf that did not.
43478         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
43479         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43481 2011-12-17  Jim Meyering  <meyering@redhat.com>
43483         bootstrap: remove some now-unneeded code
43484         This script arose back when gnulib-tool was young.
43485         Since then, it has seen improvements that render much of this
43486         script unnecessary.  In particular, it can now make symlinks
43487         to the files it uses.  Also, I no longer see as much value in
43488         marking files as read-only via comments.
43489         If you relied on the symlink-creation feature of the preceding
43490         version of this script, you can get most of that functionality
43491         by adding the --symlink option to the definition of
43492         gnulib_tool_option_extras in your bootstrap.conf file.
43493         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
43494         Run autopoint and libtoolize *before* gnulib-tool.
43495         After it, run an abbreviated autoreconf, rather than a loop around
43496         all tools.
43497         (slirp, bt_mark_as_generated): Remove functions.
43499 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43501         ftoastr: fix typo
43502         * lib/ftoastr.h: Fix misspelling in comment.
43504 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
43506         * top/README-release: fix punctuation.
43508 2011-12-17  Jim Meyering  <meyering@redhat.com>
43510         bootstrap: correct the recent buildreq change
43511         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
43512         had no effect.
43513         * build-aux/bootstrap (buildreq): Bracket each search term with
43514         "*...*", so that the shell "case" statement works as intended.
43515         Add comments.
43517 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
43519         build: let bootstrap resort to wget when downloading .po files
43520         * build-aux/bootstrap (download_po_files): Fallback to wget when
43521         downloading the .po files via rsync fails.  This is necessary to
43522         bootstrap from behind a strict firewall.
43524 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43526         stdint: don't assume C++11 when compiling with g++
43527         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
43528         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
43529         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
43530         work also in C++ before C++11, as that improperly inhibits
43531         generating a substitute stdint.h for that case.
43533 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43535         alloca: protect comment from gnulib-tool
43536         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
43537         that gnulib-tool doesn't think it's a license, and munge it to
43538         say "GCC version 3".
43540 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
43542         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
43543         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
43544         $(abs_top_builddir) instead of $(top_builddir).
43546 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
43548         strftime-tests: also test nanoseconds
43549         * tests/test-strftime.c (T): Add a test of %N.
43551 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
43553         inttypes, stdint: add C++11 support
43554         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
43555         when including inttypes.h and stdint.h.  Support this change to
43556         the standard.
43557         * doc/posix-headers/inttypes.texi (inttypes.h):
43558         * doc/posix-headers/stdint.texi (stdint.h): Document this.
43559         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
43560         Define if not defined already, for the benefit of pre-C++11 hosts.
43561         Define the standard format macros (e.g., PRId8) always.
43562         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
43563         Likewise, if __cpluspus.  Define the standard constant and limit
43564         macros (e.g., INT8_C, INT8_MAX) always.
43565         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
43566         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
43567         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
43568         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
43569         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
43570         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
43571         Likewise.
43573 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43575         nonblocking tests: Fix test failure on Linux/PPC.
43576         Suggested by Prerna Saxena in
43577         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
43578         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
43579         Set to 1100000.
43581 2011-12-12  Jim Meyering  <meyering@redhat.com>
43583         argmatch: don't hard-code `' when listing valid option arguments
43584         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
43585         use the quote function to add quotes.  Use fputs rather than
43586         fprintf for the format string with no format directive.
43588 2011-12-07  Eric Blake  <eblake@redhat.com>
43590         bootstrap: detect tools required by gnulib-tool
43591         * build-aux/bootstrap (buildreq): Provide minimum implicit
43592         dependencies.
43593         * DEPENDENCIES: Mention patch as a prereq.
43595 2011-12-04  Bruno Haible  <bruno@clisp.org>
43597         sethostname: Port to Windows platforms.
43598         * lib/sethostname.c: Provide an alternate implementation for Windows
43599         platforms.
43600         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
43601         (main): Skip the test if sethostname() fails with EPERM. On Windows
43602         platforms, don't check the result of gethostname().
43604 2011-12-04  Bruno Haible  <bruno@clisp.org>
43605             Jim Meyering  <meyering@redhat.com>
43607         tests: Avoid spurious error message on platforms without mktemp program.
43608         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
43610 2011-12-04  Bruno Haible  <bruno@clisp.org>
43612         sethostname: Fix documentation.
43613         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
43614         "not fixed" section.
43616 2011-12-03  Bruno Haible  <bruno@clisp.org>
43618         gnulib-tool: Verify that the License field is present and non-empty.
43619         * gnulib-tool (func_get_license_raw): New function, extracted from
43620         func_get_license.
43621         (func_get_license): Use it. Warn if the module is not a test module and
43622         has no license.
43623         Suggested by Jim Meyering.
43625 2011-12-03  Bruno Haible  <bruno@clisp.org>
43627         sethostname tests: Fix link error on mingw.
43628         * tests/test-sethostname1.c: New file, extracted from
43629         tests/test-sethostname.c.
43630         * tests/test-sethostname2.c: New file, extracted from
43631         tests/test-sethostname.c.
43632         * tests/test-sethostname.c: Remove file.
43633         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
43634         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
43635         (Depends-on): Add gethostname.
43636         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
43637         Link the latter with $(GETHOSTNAME_LIB).
43639         sethostname tests: Fix compilation error on mingw.
43640         * tests/test-sethostname.c: Don't include <sys/types.h>.
43641         (geteuid): Use a dummy value without uid_t.
43642         * modules/sethostname-tests (Depends-on): Remove sys_types.
43644         sethostname tests: Avoid a gcc warning.
43645         * tests/test-sethostname.c (main): Remove an unused variable.
43647         Tweak last commit.
43648         * modules/sethostname-tests (Files): Sort by decreasing importance.
43649         (configure.ac): Check for geteuid.
43650         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
43651         the test when there's nothing to test. Drop an unnecessary cast.
43652         Improve an error message. Verify that the final sethostname() call
43653         succeeds.
43655 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43657         Add a test suite for the sethostname module.
43658         * modules/sethostname-tests: New file.  A test program
43659         for the sethostname module.
43660         * tests/test-sethostname.c: Likewise.
43662 2011-12-03  Bruno Haible  <bruno@clisp.org>
43664         Tweak last commit.
43665         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
43666         Fix preprocessor directives indentation. Fix typos.
43667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
43668         * modules/unistd (Makefile): Likewise.
43670 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43672         Integrate the sethostname module into unistd.
43673         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
43674         into the unistd.h header.
43675         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
43676         preprocessor directives.
43677         * modules/unistd: Setup the Makefile substitutions of the
43678         SETHOSTNAME preprocessor directives.
43680 2011-12-03  Bruno Haible  <bruno@clisp.org>
43682         Tweak last commit.
43683         * lib/sethostname.c: Don't include <string.h>.
43684         (sethostname): No need to copy the argument string to the stack. Don't
43685         call clearerr. Preserve errno when fprintf failed.
43686         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
43687         Don't invoke AC_REPLACE_FUNCS.
43688         * modules/sethostname (Link): Remove empty section.
43689         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
43690         failure problem.
43692 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43694         New module 'sethostname'.
43695         * lib/sethostname.c (sethostname): New file.  Provide sethostname
43696         for systems that lack it.
43697         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
43698         sethostname declaration and function.
43699         * modules/sethostname: New file.  Define the sethostname module.
43701 2011-12-03  Bruno Haible  <bruno@clisp.org>
43703         Tweak last commit.
43704         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
43706 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43708         Split the HOST_NAME_MAX detection into a separate m4 macro.
43709         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
43710         macro so it can be used by the pending sethostname module.
43712 2011-12-03  Bruno Haible  <bruno@clisp.org>
43714         Fix module descriptions syntax.
43715         * modules/argv-iter (License): Fix syntax.
43716         * modules/di-set (License): Likewise.
43717         * modules/ino-map (License): Likewise.
43718         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
43720 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
43722         stdalign: port to Clang 3.0
43723         Problem reported by Simon Josefsson in
43724         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
43725         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
43726         which has <stdalign.h> but which does not define alignof.
43727         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
43729 2011-12-01  Eric Blake  <eblake@redhat.com>
43731         mktempd: silence dd usage
43732         * build-aux/mktempd (rand_bytes): Silence dd.
43734 2011-11-30  Simon Josefsson  <simon@josefsson.org>
43736         manywarnings: Don't mention gcc version in docstring.
43737         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
43738         Jim Meyering <meyering@redhat.com>.
43740 2011-11-30  Jim Meyering  <meyering@redhat.com>
43742         hash: mark a few floating point constants with "f" suffix
43743         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
43744         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
43745         floating point constants with "f", since they're destined to be
43746         saved/used as "float"s.
43748 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
43750         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
43751         * tests/test-float.c (test_long_double): Correct and re-enable the
43752         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
43754 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
43756         Avoid subtracting two pointers that don't point into the same block.
43757         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
43758         only pointers into the same memory block are subtracted. We cannot
43759         assume that sizeof (ptrdiff_t) == sizeof (void *).
43761 2011-11-29  Eric Blake  <eblake@redhat.com>
43763         maint.mk: add syntax check for use of compare from init.sh
43764         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
43765         moved here from coreutils.
43767         manywarnings: drop -Wunsuffixed-float-constants
43768         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
43769         '1.0D', which is the only way to silence this warning for 'double'.
43771 2011-11-29  Jim Meyering  <meyering@redhat.com>
43773         hash: mark compute_bucket_size with the pure attribute
43774         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
43776         quotearg, propername: correct pragma guard expression
43777         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
43778         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
43780 2011-11-28  Jim Meyering  <meyering@redhat.com>
43782         propername: do not mark proper_name with the const attribute
43783         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
43784         since it examines data pointed to by its parameter.
43785         * lib/propername.c (proper_name): Instead, add a pragma to suppress
43786         the suggestion from -Wsuggest-attribute=const.
43788         propername: mark one more function as const
43789         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
43791 2011-11-27  Jim Meyering  <meyering@redhat.com>
43793         mark functions with const and pure attributes
43795         Mark functions per suggestions from gcc-4.6 when using these options:
43796         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
43797         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
43798         Follow these guidelines: when possible, apply the attribute to
43799         an extern declaration, not to its definition.  Apply it to the
43800         definition only when the definition is static.
43801         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
43802         * lib/argv-iter.h (argv_iter_n_args): Likewise.
43803         * lib/base64.h (isbase64): Likewise.
43804         * lib/basename-lgpl.c (last_component, base_len): Likewise.
43805         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
43806         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
43807         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
43808         (c_tolower, c_toupper): Likewise.
43809         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
43810         * lib/chdir-long.c (find_non_slash): Likewise.
43811         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
43812         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
43813         * lib/file-type.h (file_type): Likewise.
43814         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
43815         * lib/filevercmp.c (verrevcmp): Likewise.
43816         * lib/freadahead.h (freadahead): Likewise.
43817         * lib/fts.c (fts_maxarglen): Likewise.
43818         * lib/hash-pjw.h (hash_pjw): Likewise.
43819         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
43820         * lib/hash.c (is_prime, next_prime): Likewise.
43821         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
43822         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
43823         (hash_table_ok, hash_get_first, hash_string): Likewise.
43824         (compute_bucket_size): Likewise.
43825         * lib/i-ring.h (i_ring_empty): Likewise.
43826         * lib/isnan.c (isnanl): Likewise.
43827         * lib/math.h (isnanl, rpl_isnanl): Likewise.
43828         * lib/memcasecmp.h (memcasecmp): Likewise.
43829         * lib/memchr2.h (memchr2): Likewise.
43830         * lib/memcmp2.h (memcmp2): Likewise.
43831         * lib/parse-datetime.y (lookup_zone): Likewise.
43832         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
43833         [!WINDOWS_SOCKETS]: Likewise.
43834         * lib/strnlen1.h (strnlen1): Likewise.
43835         * lib/uniwidth.in.h (uc_width): Likewise.
43836         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
43837         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
43838         (quoting_options_from_style): Add a comment.
43839         * lib/propername.h (proper_name): Add a comment.
43841 2011-11-27  Bruno Haible  <bruno@clisp.org>
43843         Remove unused macros from !_LIBC code in glibc-borrowed files.
43844         * lib/fnmatch.c (STRCOLL): Remove macro.
43845         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
43846         * lib/glob.c (__stat, __readdir64): Remove macros.
43847         * lib/tempname.c (__open64, __xstat64): Remove macros.
43848         Suggested by Paul Eggert.
43850 2011-11-27  Bruno Haible  <bruno@clisp.org>
43852         getcwd: Fix link error on MSVC 9.
43853         * modules/getcwd (Depends-on): Add readdir, rewinddir.
43855 2011-11-27  Bruno Haible  <bruno@clisp.org>
43857         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
43858         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
43859         HAVE_OPENDIR is 0.
43860         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
43861         HAVE_CLOSEDIR is 0.
43862         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
43863         is 0.
43864         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
43866 2011-11-27  Bruno Haible  <bruno@clisp.org>
43868         getcwd: Fix bug from 2011-08-17.
43869         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
43870         platforms that need it.
43871         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
43872         code of 4 to be a failure, not a success. This ensures that
43873         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
43875 2011-11-27  Bruno Haible  <bruno@clisp.org>
43877         binary-io tests: Avoid test failure on mingw when libtool is used.
43878         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
43879         Don't verify the size of t-bin-out1.tmp here.
43880         * tests/test-binary-io.sh: Verify it here.
43881         Reported by Simon Josefsson.
43883 2011-11-26  Bruno Haible  <bruno@clisp.org>
43885         Fix conflict between two instantiations of module 'unistd'.
43886         * gnulib-tool (func_emit_autoconf_snippet): Substitute
43887         ${include_guard_prefix} also in the autoconf snippet.
43888         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
43889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
43890         GNULIB_UNISTD_H_GETOPT.
43891         * modules/getopt-posix (configure.ac): Set the
43892         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
43893         * modules/getopt-gnu (configure.ac): Likewise.
43894         * modules/unistd (Makefile.am): Change the substitution value of
43895         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
43896         Reported by Simon Josefsson.
43898 2011-11-25  Bruno Haible  <bruno@clisp.org>
43900         pagealign_alloc: Doc and comments.
43901         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
43902         module.
43903         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
43905 2011-11-25  Jim Meyering  <meyering@redhat.com>
43907         test-update-copyright.sh: avoid false-positive failure
43908         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
43909         around false positive failure on Cygwin/Windows.  The latter was
43910         matching erroneously-created files with names like
43911         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
43913 2011-11-25  Simon Josefsson  <simon@josefsson.org>
43915         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
43916         * m4/valgrind-tests.m4: Check that the parameters that will be
43917         used works, not just a subset of them.  Reported by Bruno Haible
43918         <bruno@clisp.org>.
43920 2011-11-24  Jim Meyering  <meyering@redhat.com>
43922         test-stdalign.c: comment out long double tests
43923         * tests/test-stdalign.c: Don't try to reduce alignment of long double
43924         variables.  That provokes errors like this from gcc-4.7.0 20111124:
43925         error: '_Alignas' specifiers cannot reduce alignment of \
43926         'static_longdouble_alignas'.
43928 2011-11-22  Jim Meyering  <meyering@redhat.com>
43930         init.sh: make "compare /dev/null FILE" output more readable
43931         * tests/init.sh (compare_): Document the preferred order of arguments.
43932         (emit_diff_u_header_): New function.
43933         (compare_dev_null_): Emit a simulated diff, rather than just the
43934         contents of the unexpected file.  Suggestion from Bruno Haible.
43936 2011-11-21  Jim Meyering  <meyering@redhat.com>
43937             Eric Blake  <eblake@redhat.com>
43939         init.sh: work around OSF/1 5.1's mishandling of /dev/null
43940         * tests/init.sh: Make our compare function slightly more portable.
43941         Reported by Bruno Haible in
43942         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
43944 2011-11-21  Simon Josefsson  <simon@josefsson.org>
43946         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
43947         before using it, in code that ends up in config.h.
43949 2011-11-20  Bruno Haible  <bruno@clisp.org>
43951         getcwd: Work around getcwd bug on AIX 5..7.
43952         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
43953         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
43954         Use a different value for gl_cv_func_getcwd_path_max. Move the
43955         definition of HAVE_PARTLY_WORKING_GETCWD from here...
43956         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
43957         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
43958         Define HAVE_MINIMALLY_WORKING_GETCWD.
43959         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
43960         where it is not even minimally working, that is, on AIX.
43961         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
43962         m4/getcwd-path-max.m4.
43963         (main): Update exit code computation.
43964         * doc/posix-functions/getcwd.texi: Mention list of platforms where
43965         getcwd does not handle long file names.
43967 2011-11-20  Bruno Haible  <bruno@clisp.org>
43969         getcwd: Fix bug from 2009-09-10.
43970         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
43971         like "no".
43973 2011-11-20  Simon Josefsson  <simon@josefsson.org>
43975         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
43977 2011-11-20  Bruno Haible  <bruno@clisp.org>
43979         fma tests: Avoid shadowing local variables.
43980         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
43981         expected.
43983 2011-11-20  Bruno Haible  <bruno@clisp.org>
43985         copysignf tests: Fix.
43986         * tests/test-copysignf.c: Fix signature check.
43988 2011-11-20  Bruno Haible  <bruno@clisp.org>
43990         fma: Remove unused code.
43991         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
43992         unused macros.
43994 2011-11-20  Bruno Haible  <bruno@clisp.org>
43996         sethostname: Fix doc about AIX.
43997         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
43998         sethostname; it has it.
44000         sethostname: Mention more portability problems.
44001         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
44002         problem.
44003         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
44005 2011-11-19  Bruno Haible  <bruno@clisp.org>
44007         Depend on module fcntl-h when AT_FDCWD is used.
44008         * modules/utimens (Depends-on): Add fcntl-h.
44009         * modules/areadlinkat (Depends-on): Likewise.
44010         * modules/areadlinkat-with-size (Depends-on): Likewise.
44011         * modules/faccessat (Depends-on): Likewise.
44012         * modules/fchmodat (Depends-on): Likewise.
44013         * modules/fchownat (Depends-on): Likewise.
44014         * modules/getcwd (Depends-on): Likewise.
44015         * modules/mkdirat (Depends-on): Likewise.
44016         * modules/mkfifoat (Depends-on): Likewise.
44017         * modules/readlinkat (Depends-on): Likewise.
44018         * modules/symlinkat (Depends-on): Likewise.
44019         * modules/dup2-tests (Depends-on): Likewise.
44020         * modules/fdutimensat-tests (Depends-on): Likewise.
44021         * modules/futimens-tests (Depends-on): Likewise.
44023 2011-11-19  Bruno Haible  <bruno@clisp.org>
44025         euidaccess: Update a comment.
44026         * lib/euidaccess.c: Update comment about platforms with faccessat.
44028 2011-11-19  Bruno Haible  <bruno@clisp.org>
44030         openat: Fix file list.
44031         * modules/openat (Files): Remove lib/at-func.c.
44033 2011-11-19  Bruno Haible  <bruno@clisp.org>
44035         fstatat: Simplify.
44036         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
44037         gnulib should define rpl_fstatat, there is a
44038         "#define fstatat rpl_fstatat" in <sys/stat.h>.
44040 2011-11-19  Bruno Haible  <bruno@clisp.org>
44042         Ensure 'inline' can be used in tests/test-utimens-common.h.
44043         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
44044         * modules/futimens-tests (configure.ac): Likewise.
44045         * modules/utimens-tests (configure.ac): Likewise.
44046         * modules/utimensat-tests (configure.ac): Likewise.
44048 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44050         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
44051         not hash_insert0.
44052         (hash_insert_if_absent): Doc fix.
44054 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44056         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
44058 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44060         test-getcwd: disambiguate exit status
44061         * tests/test-getcwd.c (test_long_name): Return 0..7.
44062         (main): Exit with an unambiguous exit status.  The old
44063         code yielded a mysterious mixture of two failure codes.
44065         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
44066         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
44067         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
44068         rpl_fstatat or fstatat.  This should fix the other problem
44069         reported by Kai Habel in
44070         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44071         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
44072         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
44073         and I reproduced it on a Solaris 8 host we still have in production.
44075 2011-11-18  Jim Meyering  <meyering@redhat.com>
44077         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
44078         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
44079         Add a sentence to the comment.
44080         (hash_insert0): New function that simply calls hash_insert_if_absent.
44081         * lib/hash.h (hash_insert_if_absent): Declare it.
44082         (hash_insert0): Add deprecation attribute.
44083         (_GL_ATTRIBUTE_DEPRECATED): Define.
44084         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
44085         not hash_insert0.
44086         * NEWS: Mention it, even though it's not really an incompatible change.
44088 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
44090         openat: avoid compilation failure due to lack of <errno.h> inclusion
44091         * lib/openat.c: Include <errno.h>.
44093 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44095         * modules/getcwd (Depends-on): Add fdopendir.
44096         This fixes one of the two problems reported by Kai Habel in
44097         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44099         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
44100         stdalign problem reported by Ian Beckwith in
44101         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
44102         * modules/crypto/gc-arcfour (Depends-on):
44103         Depend conditionally on crypto/arcfour.
44104         * modules/crypto/gc-arctwo (Depends-on):
44105         Depend conditionally on crypto/arctwo.
44106         * modules/crypto/gc-des (Depends-on):
44107         Depend conditionally on crypto/des.
44108         * modules/crypto/gc-hmac-md5 (Depends-on):
44109         Depend conditionally on crypto/hmac-md5.
44110         * modules/crypto/gc-hmac-sha1 (Depends-on):
44111         Depend conditionally on crypto/hmac-sha1.
44112         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
44113         * modules/crypto/gc-md4 (Depends-on):
44114         Depend conditionally on crypto/md4.
44115         * modules/crypto/gc-md5 (Depends-on):
44116         Depend conditionally on crypto/md5.
44117         * modules/crypto/gc-rijndael (Depends-on):
44118         Depend conditionally on crypto/rijndael.
44119         * modules/crypto/gc-sha1 (Depends-on):
44120         Depend conditionally on crypto/sha1.
44121         * modules/crypto/gc-arcfour:
44122         * modules/crypto/gc-arctwo:
44123         * modules/crypto/gc-des:
44124         * modules/crypto/gc-hmac-md5:
44125         * modules/crypto/gc-hmac-sha1:
44126         * modules/crypto/gc-md2:
44127         * modules/crypto/gc-md4:
44128         * modules/crypto/gc-md5:
44129         * modules/crypto/gc-rijndael:
44130         * modules/crypto/gc-sha1:
44131         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
44132         now that the conditional dependencies do the work for us.
44134 2011-11-17  Jim Meyering  <meyering@redhat.com>
44136         tests: factor st_ctime-comparison out of two headers
44137         * tests/test-utimens-common.h (ctime_compare): Define.
44138         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
44139         * tests/test-lutimens.h (test_lutimens): Likewise.
44140         * tests/test-utimens.h (test_utimens): Likewise.
44142         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
44143         Invoke the test program via an init.sh-using wrapper.
44144         * tests/test-getcwd.sh: New file.
44145         * modules/getcwd-tests (Files): Add it.
44146         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
44148 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
44150         gitlog-to-changelog: support multi-author commits.
44151         The FSF cares about keeping track of all authors of patches to its
44152         projects, but Git doesn't provide obvious support for multi-author
44153         changesets. Consensus seems to be forming around the use of extra
44154         Signed-off-by inspired lines in the log message formatted as
44155         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
44156         multi-author commits between version control systems.
44157         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
44158         log message and output in standard ChangeLog multi-author format.
44159         Reported by Peter Rosin <peda@lysator.liu.se>
44161 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
44162             Bruno Haible  <bruno@clisp.org>
44164         Fix some modules' file list.
44165         * modules/fstatat (Files): Add m4/lstat.m4.
44166         * modules/openat (Files): Likewise.
44167         * modules/unlinkat (Files): Likewise.
44169 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
44171         maint.mk: fix tight-scope.mk generation in VPATH builds.
44172         * top/maint.mk (tight-scope.mk): Make sure to prefix file
44173         reference with $(srcdir) so that the file is found correctly even
44174         when running `make syntax-check' in a VPATH build.
44176 2011-11-13  Bruno Haible  <bruno@clisp.org>
44177             Jim Meyering  <meyering@redhat.com>
44179         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
44180         * tests/init.sh (compare): Remove "No differences encountered" or
44181         synonymous output from the 'diff' program.
44183 2011-11-13  Bruno Haible  <bruno@clisp.org>
44185         Makefile: Tweak indentation.
44186         * Makefile: Use tab as first character in every line that contains rule
44187         commands.
44189 2011-11-13  Bruno Haible  <bruno@clisp.org>
44191         Syntax check for copyright statements.
44192         * check-copyright: New file.
44193         * Makefile (sc_check_copyright): New rule.
44195 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44197         * build-aux/git-version-gen: Add --prefix to configure the tag
44198         match string.
44200 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44202         * build-aux/git-version-gen: Add --help and --version.
44204 2011-11-12  Jim Meyering  <meyering@redhat.com>
44206         revamp the other test-exclude?.sh scripts to use init.sh, too
44207         * tests/test-exclude1.sh: Use init.sh.
44208         * tests/test-exclude2.sh: Likewise.
44209         * tests/test-exclude3.sh: Likewise.
44210         * tests/test-exclude4.sh: Likewise.
44211         * tests/test-exclude5.sh: Likewise.
44212         * tests/test-exclude6.sh: Likewise.
44213         * tests/test-exclude7.sh: Likewise.
44214         * tests/test-exclude8.sh: Likewise.
44215         * modules/exclude-tests (Files): List init.sh.
44217         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
44218         These shell scripts ignored failure of the binary test-exclude,
44219         so making the latter return 77 didn't cause them to be skipped.
44220         * tests/test-exclude5.sh: Exit with test-exclude's error status
44221         when that program fails.  Revamp to use init.sh.
44222         * tests/test-exclude2.sh: Likewise.
44224         test-exclude: fix a typo
44225         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
44227 2011-11-11  Bruno Haible  <bruno@clisp.org>
44229         obstack: Fix compilation error on MSVC 9.
44230         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
44232 2011-11-11  Jim Meyering  <meyering@redhat.com>
44234         test-exclude: skip tests rather than failing on deficient systems
44235         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
44236         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
44237         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44238         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
44240 2011-11-10  Bruno Haible  <bruno@clisp.org>
44242         ptsname_r test: Avoid gcc warning on glibc systems.
44243         * tests/test-ptsname_r.c (null_ptr): New function.
44244         (test_errors): Use it.
44246 2011-11-10  Bruno Haible  <bruno@clisp.org>
44248         ptsname_r: Avoid compilation error on OSF/1 5.1.
44249         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
44250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
44251         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
44252         function is not declared or incompatibly declared.
44253         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
44254         * modules/ptsname_r (Depends-on, configure.ac): Update.
44255         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
44257 2011-11-10  Bruno Haible  <bruno@clisp.org>
44259         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
44260         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
44261         When cross-compiling, guess yes on all platforms except AIX.
44262         Reported by Ludovic Courtès <ludo@gnu.org>.
44264 2011-11-09  Bruno Haible  <bruno@clisp.org>
44266         ptsname_r tests: Fix bugs.
44267         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
44268         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
44270 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44272         fstatat: work with cross-compilation
44273         Problem reported by Ludovic Courtès in
44274         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
44275         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
44276         "cross-compiling" and assume the bug is present.  Replace
44277         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
44278         an inverted sense, to be more conservative about our assumptions.
44279         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
44281 2011-11-09  Bruno Haible  <bruno@clisp.org>
44283         Improve MODULES.html output.
44284         * modules/mkfifoat (Description): Use the word "function".
44285         * modules/readlinkat (Description): Likewise.
44286         * modules/symlinkat (Description): Likewise.
44288 2011-11-09  Eric Blake  <eblake@redhat.com>
44290         ptsname_r-tests: new test module
44291         * modules/ptsname_r-tests: New module.
44292         * tests/test-ptsname_r.c: New file.
44294         ptsname_r: new module
44295         * modules/ptsname_r: New module.
44296         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
44297         * lib/ptsname.c (__ptsname_r): Split...
44298         * lib/ptsname_r.c: ...into new file.
44299         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44300         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
44301         * modules/stdlib (Makefile.am): Substitute witnesses.
44302         * lib/stdlib.in.h (ptsname_r): Declare it.
44303         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
44304         * MODULES.html.sh (Misc): Likewise.
44305         * modules/ptsname (Depends-on): Alter dependency.
44306         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
44308 2011-11-09  Jim Meyering  <meyering@redhat.com>
44310         announce-gen: be more concise when there's only one URL+tarball
44311         * build-aux/announce-gen (get_tool_versions): When you distribute
44312         only one type of tarball, combine the first two "Here are..."
44313         sections and make the key-checking grammar independent of
44314         how many tarballs there are.
44316 2011-11-09  Eric Blake  <eblake@redhat.com>
44318         openpty: provide a stub on mingw
44319         * lib/pty.in.h (includes): Provide forward declarations.
44320         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
44322         raise: fix mingw handling of SIGPIPE
44323         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
44325 2011-11-08  Bruno Haible  <bruno@clisp.org>
44327         More conditional dependencies.
44328         * modules/faccessat (Depends-on): Add conditions.
44329         * modules/fchmodat (Depends-on): Likewise.
44330         * modules/fchownat (Depends-on): Likewise.
44331         * modules/fstatat (Depends-on): Likewise.
44332         * modules/mkfifoat (Depends-on): Likewise.
44333         * modules/readlinkat (Depends-on): Likewise.
44334         * modules/symlinkat (Depends-on): Likewise.
44335         * modules/unlinkat (Depends-on): Likewise.
44336         * modules/utimensat (Depends-on): Likewise.
44337         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
44338         * modules/linkat (Depends-on): Refine the conditions.
44339         * modules/renameat (Depends-on): Likewise.
44341 2011-11-08  Bruno Haible  <bruno@clisp.org>
44343         faccessat: Move AC_LIBOBJ invocation to module description.
44344         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
44345         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
44346         invocation from here...
44347         * modules/faccessat (configure.ac): ... to here. Invoke
44348         gl_PREREQ_FACCESSAT.
44350 2011-11-08  Bruno Haible  <bruno@clisp.org>
44352         faccessat: Simplify autoconf macro.
44353         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
44354         gl_FUNC_EUIDACCESS.
44356 2011-11-08  Bruno Haible  <bruno@clisp.org>
44358         renameat: Fix dependencies.
44359         * modules/renameat (Depends-on): Add stdbool.
44361 2011-11-08  Bruno Haible  <bruno@clisp.org>
44363         mkfifoat: Fix module description.
44364         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
44365         not gl_UNISTD_MODULE_INDICATOR.
44367 2011-11-08  Bruno Haible  <bruno@clisp.org>
44369         fstatat: Remove unused dependency.
44370         * modules/fstatat (Depends-on): Remove fstat.
44372 2011-11-08  Simon Josefsson  <simon@josefsson.org>
44374         GNUmakefile: behave when Makefile is missing.
44375         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
44377 2011-11-08  Bruno Haible  <bruno@clisp.org>
44379         openat: Conditionalize dependencies.
44380         * lib/openat.c: Reduce the scope of some #includes.
44381         * modules/openat (Depends-on): Add conditions.
44383 2011-11-07  Jim Meyering  <meyering@redhat.com>
44385         maint.mk: extract GPG key ID without using a temporary file
44386         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
44387         without using a temporary file.  Based on a suggestion from Werner Koch
44388         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
44390 2011-11-07  Eric Blake  <eblake@redhat.com>
44392         grantpt: fix typo
44393         * lib/stdlib.in.h (grantpt): Check correct function.
44395         maint.mk: silence new syntax check
44396         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
44398 2011-11-06  Bruno Haible  <bruno@clisp.org>
44400         Doc about floating-point and math API.
44401         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
44402         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
44404 2011-11-06  Bruno Haible  <bruno@clisp.org>
44406         stdalign tests: Skip the test when compiled by Sun C.
44407         * tests/test-stdalign.c (main): Skip the test on Sun C.
44409 2011-11-06  Bruno Haible  <bruno@clisp.org>
44411         ansi-c++-opt: Complete the 2011-06-05 change.
44412         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
44413         does not support namespaces, set the variable to "no", not to ":".
44415 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44417         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
44419 2011-11-06  Bruno Haible  <bruno@clisp.org>
44421         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
44422         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
44423         (minus_zerol) [HP-UX]: New macro.
44424         (unary_minus) [HP-UX]: New function.
44425         (copysignl) [HP-UX]: Use unary_minus function.
44427 2011-11-06  Bruno Haible  <bruno@clisp.org>
44429         ldexp, ldexpf, ldexpl: Enhance tests.
44430         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
44431         and tests/test-ldexpl.c.
44432         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
44433         LDEXP, MIN_EXP, MAX_EXP): New macros.
44434         Include test-ldexp.h.
44435         (main): Just call test_function.
44436         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
44437         infinity.h, nan.h.
44438         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44439         MAX_EXP): New macros.
44440         Include test-ldexp.h.
44441         (x, y): Remove variables.
44442         (main): Just call test_function.
44443         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
44444         infinity.h, nan.h.
44445         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44446         MAX_EXP): New macros.
44447         Include test-ldexp.h.
44448         (x, y): Remove variables.
44449         (main): Just call test_function.
44450         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
44451         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
44452         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44453         (Depends-on): Add isnand-nolibm, signbit, float.
44454         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
44455         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44456         (Depends-on): Add isnanf-nolibm, signbit, float.
44458 2011-11-06  Bruno Haible  <bruno@clisp.org>
44460         math tests: Cosmetics.
44461         * tests/test-math-c++.cc: Reorder declarations.
44463 2011-11-05  Bruno Haible  <bruno@clisp.org>
44465         fma*: Simplify test.
44466         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
44467         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
44469         Tests for module 'fmal'.
44470         * modules/fmal-tests: New file.
44471         * tests/test-fmal1.c: New file.
44472         * tests/test-fmal2.c: New file.
44474         New module 'fmal'.
44475         * lib/math.in.h (fmal): New declaration.
44476         * lib/fmal.c: New file.
44477         * m4/fmal.m4: New file.
44478         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
44479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
44480         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
44481         REPLACE_FMAL.
44482         * modules/fmal: New file.
44483         * doc/posix-functions/fmal.texi: Mention the new module and the various
44484         bugs.
44486         Tests for module 'fmaf'.
44487         * modules/fmaf-tests: New file.
44488         * tests/test-fmaf1.c: New file.
44489         * tests/test-fmaf2.c: New file.
44491         New module 'fmaf'.
44492         * lib/math.in.h (fmaf): New declaration.
44493         * lib/fmaf.c: New file.
44494         * m4/fmaf.m4: New file.
44495         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
44496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
44497         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
44498         REPLACE_FMAF.
44499         * modules/fmaf: New file.
44500         * doc/posix-functions/fmaf.texi: Mention the new module and the various
44501         bugs.
44503         Tests for module 'fma'.
44504         * modules/fma-tests: New file.
44505         * tests/test-fma1.c: New file.
44506         * tests/test-fma1.h: New file.
44507         * tests/test-fma2.c: New file.
44508         * tests/test-fma2.h: New file.
44510         New module 'fma'.
44511         * lib/math.in.h (fma): New declaration.
44512         * lib/fma.c: New file.
44513         * m4/fma.m4: New file.
44514         * m4/fegetround.m4: New file.
44515         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
44516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
44517         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
44518         REPLACE_FMA.
44519         * modules/fma: New file.
44520         * doc/posix-functions/fma.texi: Mention the new module and the various
44521         bugs.
44523         Extend gl_MATHFUNC.
44524         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
44525         Support 'void' as argument type.
44526         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
44528 2011-11-05  Jim Meyering  <meyering@redhat.com>
44530         maint.mk: also prohibit inclusion of dirent.h without use
44531         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
44533 2011-11-05  Bruno Haible  <bruno@clisp.org>
44535         ldexpl tests: Avoid test failure on MSVC 9.
44536         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
44537         value. Needed in order to enforce the conversion from a value greater
44538         than LDBL_MAX to Infinity.
44540 2011-11-05  Bruno Haible  <bruno@clisp.org>
44542         New modules 'at-internal', 'openat-h', split off from module 'openat'.
44543         * modules/at-internal: New file, extracted from modules/openat.
44544         * modules/openat-h: New file.
44545         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
44546         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
44547         * modules/openat (Description): Add reference to POSIX function.
44548         (Files): Remove lib/openat.h, lib/openat-proc.c.
44549         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
44550         intprops, unistd.
44551         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
44552         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
44553         gl_FCNTL_MODULE_INDICATOR.
44554         (Include): Remove unistd.h, openat.h.
44555         * modules/areadlinkat (Files): Add lib/at-func.c.
44556         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44557         openat-die, openat-h, save-cwd.
44558         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
44559         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44560         openat-die, openat-h, save-cwd, unistd.
44561         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
44562         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44563         openat-h, save-cwd. Remove fcntl-h, openat.
44564         * modules/fchmodat (Files): Remove lib/openat.h.
44565         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44566         openat, stdbool, unistd.
44567         * modules/fchownat (Files): Remove lib/openat.h.
44568         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44569         openat, stdbool, sys_stat.
44570         * modules/fdopendir (Files): Remove lib/openat-priv.h,
44571         lib/openat-proc.c.
44572         (Depends-on): Add at-internal.
44573         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
44574         * modules/fstatat (Files): Remove lib/openat.h.
44575         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44576         stdbool, unistd.
44577         * modules/fts (Depends-on): Add openat-h.
44578         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
44579         openat.
44580         * modules/mkdirat (Files): Remove lib/openat.h.
44581         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44582         openat, stdbool, sys_stat.
44583         * modules/mkfifoat (Files): Add lib/at-func.c.
44584         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44585         openat-h, save-cwd. Remove fcntl-h, openat.
44586         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
44587         * modules/readlinkat (Files): Add lib/at-func.c.
44588         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44589         openat-h, save-cwd. Remove fcntl-h, openat.
44590         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
44591         openat.
44592         * modules/selinux-at (Files): Add lib/at-func.c.
44593         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44594         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
44595         * modules/symlinkat (Files): Add lib/at-func.c.
44596         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44597         openat-h, save-cwd. Remove fcntl-h, openat.
44598         * modules/unlinkat (Files): Remove lib/openat.h.
44599         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44600         stdbool.
44601         * modules/utimensat (Files): Add lib/at-func.c.
44602         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
44603         openat-die, openat-h, save-cwd.
44604         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
44605         * modules/fdutimensat-tests (Depends-on): Add openat.
44606         * modules/fstatat-tests (Depends-on): Add openat-h.
44607         * modules/readlinkat-tests (Depends-on): Add openat.
44608         * modules/symlinkat-tests (Depends-on): Add openat.
44610 2011-11-05  Bruno Haible  <bruno@clisp.org>
44612         openat: Include <stdbool.h>.
44613         * lib/openat.c: Include <stdbool.h>.
44615 2011-11-04  Bruno Haible  <bruno@clisp.org>
44617         fchownat, renameat, unlinkat: Fix dependencies.
44618         * modules/fchownat (Depends-on): Add fstatat.
44619         * modules/renameat (Depends-on): Likewise.
44620         * modules/unlinkat (Depends-on): Likewise.
44622 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
44624         openat: remove direct dependency on dirent
44625         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
44626         and hasn't been needed ever since fdopendir was split into its own
44627         module on 2009-08-31.
44628         * modules/openat (Depends-on): Remove dirent.
44630 2011-11-04  Bruno Haible  <bruno@clisp.org>
44632         renameat: Optimize code size.
44633         * modules/renameat (configure.ac): Don't compile at-func2.c if
44634         REPLACE_RENAMEAT is 1.
44636 2011-11-04  Bruno Haible  <bruno@clisp.org>
44638         openat tests: Fix file list.
44639         * modules/openat-tests (Files): Add tests/test-open.h.
44641 2011-11-04  Bruno Haible  <bruno@clisp.org>
44643         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
44644         * modules/fchmodat (Depends-on): Add openat-die.
44645         * modules/fchownat (Depends-on): Likewise.
44646         * modules/linkat (Depends-on): Likewise.
44647         * modules/renameat (Depends-on): Likewise.
44648         * modules/openat (Depends-on): Add dirent.
44650 2011-11-04  Jim Meyering  <meyering@redhat.com>
44652         at-func*.c: fix comments
44653         * lib/at-func2.c: Correct/improve first-line comment.
44654         * lib/at-func.c: Correct grammar in first-line comment.
44656 2011-11-04  Bruno Haible  <bruno@clisp.org>
44658         New module 'mkdirat', split off from module 'openat'.
44659         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
44660         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
44661         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
44662         * modules/mkdirat: New file, extracted from modules/openat.
44663         * modules/openat (Files): Remove lib/mkdirat.c.
44664         (Depends-on): Remove mkdir.
44665         (configure.ac): Remove AC_LIBOBJ of mkdirat.
44666         (Include): Remove <sys/stat.h>.
44667         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
44668         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
44669         tests/test-mkdir.h.
44670         (Depends-on): Remove ignore-value.
44671         (Makefile.am): Remove rules for test-mkdirat.
44672         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
44673         of module 'openat'.
44674         * NEWS: Mention the change.
44676 2011-11-04  Bruno Haible  <bruno@clisp.org>
44678         closedir: Avoid warning on mingw.
44679         * lib/closedir.c: Include <unistd.h>.
44681 2011-11-04  Bruno Haible  <bruno@clisp.org>
44683         New module 'fstatat', split off from module 'openat'.
44684         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
44685         defined.
44686         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
44687         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
44688         gl_FUNC_FSTATAT.
44689         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
44690         * modules/fstatat: New file, extracted from modules/openat.
44691         * modules/openat (Files): Remove lib/fstatat.c.
44692         (Depends-on): Remove lstat.
44693         (configure.ac): Remove AC_LIBOBJ of fstatat.
44694         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
44695         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
44696         tests/test-lstat.h, tests/test-stat.h.
44697         (Depends-on): Remove getcwd-lgpl.
44698         (Makefile.am): Remove rules for test-fstatat.
44699         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
44700         of module 'openat'.
44701         * NEWS: Mention the change.
44702         * modules/getcwd (Depends-on): Add fstatat.
44703         * modules/linkat (Depends-on): Likewise.
44704         * modules/mkfifoat-tests (Depends-on): Likewise.
44705         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
44707 2011-11-03  Bruno Haible  <bruno@clisp.org>
44709         New module 'unlinkat', split off from module 'openat'.
44710         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
44711         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
44712         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
44713         * modules/unlinkat: New file, extracted from modules/openat. Correct
44714         the dependency conditions.
44715         * modules/openat (Files): Remove lib/unlinkat.c.
44716         (Depends-on): Remove rmdir, unlink.
44717         (configure.ac): Remove AC_LIBOBJ of unlinkat.
44718         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
44719         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
44720         tests/test-rmdir.h, tests/test-unlink.h.
44721         (Depends-on): Remove unlinkdir.
44722         (Makefile.am): Remove rules for test-unlinkat.
44723         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
44724         of module 'openat'.
44725         * NEWS: Mention the change.
44726         * modules/linkat-tests (Depends-on): Add unlinkat.
44727         * modules/mkfifoat-tests (Depends-on): Likewise.
44728         * modules/readlinkat-tests (Depends-on): Likewise.
44730 2011-11-02  Bruno Haible  <bruno@clisp.org>
44732         New module 'fchmodat', split off from module 'openat'.
44733         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
44734         defined.
44735         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
44736         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
44737         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
44738         * modules/fchmodat: New file, extracted from modules/openat.
44739         * modules/openat (Files): Remove lib/fchmodat.c.
44740         (configure.ac): Remove AC_LIBOBJ of fchmodat.
44741         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
44742         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
44743         (Makefile.am): Remove rules for test-fchmodat.
44744         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
44745         of module 'openat'.
44746         * NEWS: Mention the change.
44748 2011-11-02  Jim Meyering  <meyering@redhat.com>
44750         putenv: indent #definition of "environ" to placate cppi
44751         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
44753         gitlog-to-changelog: provide a ChangeLog-repair mechanism
44754         Git logs are often treated as immutable, because editing them
44755         changes the SHA1 checksums of all descendants.  Thus, errors in
44756         git logs tend to stay there forever.  However, when we generate
44757         a ChangeLog file -- typically for distribution -- from that git log,
44758         we can actually make corrections in the generated file.  The key
44759         lies in recording in machine-readable/applicable form the desired
44760         corrections.  See --help for description and an example.
44761         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
44762         (usage): Describe it; alphabetize option descriptions.
44763         (main): Honor the new option, carefully.
44765 2011-11-01  Jim Meyering  <meyering@redhat.com>
44767         gitlog-to-changelog: avoid an infloop
44768         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
44769         that ends up being empty.
44771 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44773         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
44774         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
44775         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
44776         contains (possibly-quoted) backslashes.  This should avoid
44777         all-too-common shell bugs if COMPLICATED contains backslashes in
44778         the "wrong" places.  Reported by David Evans in
44779         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
44780         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
44781         because we want ASCII ranges.  Is there some reason we don't use
44782         the C locale everywhere in this script?
44783         (func_module, top level): Avoid unwanted pathname expansion when
44784         $repo_url_prefix or $repo_url_suffix_repl contain shell
44785         metacharacters like '?' and '*'.
44787 2011-11-01  Bruno Haible  <bruno@clisp.org>
44789         fchownat: Improve description.
44790         * modules/fchownat (Description): Add link to function.
44792 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44794         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
44795         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
44796         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
44797         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
44799 2011-11-01  Bruno Haible  <bruno@clisp.org>
44801         alignof: Avoid collision with stdalign module.
44802         * lib/alignof.h (alignof): Remove macro.
44803         * NEWS: Mention the change.
44804         Reported by Paul Eggert.
44806 2011-11-01  Bruno Haible  <bruno@clisp.org>
44808         New module 'fchownat', split off from module 'openat'.
44809         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
44810         defined.
44811         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
44812         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
44813         invoke gl_FUNC_FCHOWNAT.
44814         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
44815         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
44816         * modules/fchownat: New file, extracted from modules/openat.
44817         * modules/openat (Files): Remove lib/fchownat.c.
44818         (Depends-on): Remove lchown.
44819         (configure.ac): Remove AC_LIBOBJ of fchownat.
44820         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
44821         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
44822         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
44823         (Depends-on): Remove mgetgroups, usleep, stat-time.
44824         (configure.ac): Remove test for getegid.
44825         (Makefile.am): Remove rules for test-fchownat.
44826         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
44827         of module 'openat'.
44828         * NEWS: Mention the change.
44830 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44832         stdalign: port better to MSVC and to Sun C 5.11
44833         This fixes some of the problems reported by Bruno Haible in
44834         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
44835         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
44836         shortcomings of MSVC and of Sun C 5.11.
44837         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
44838         around __declspec arg.
44839         * modules/stdalign-tests (Files): Add tests/macros.h.
44840         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
44841         Include macros.h, for ASSERT.
44842         (DECLARE_ALIGNED): Remove.
44843         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
44844         to catch bug), and to 1 if not (simplifies the rest of the code).
44845         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
44846         (CHECK_AUTO): Remove.
44847         (CHECK_ALIGNED): Check only the alignment of the static vars,
44848         since auto var alignment isn't supported by Sun C 5.11.
44849         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
44850         ASSERT failures are easier to diagnose.
44852 2011-10-31  Bruno Haible  <bruno@clisp.org>
44854         doc about some IRIX 5.3 problems.
44855         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
44856         on IRIX 5.3.
44857         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
44858         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
44859         5.3.
44860         * doc/posix-functions/grantpt.texi: Likewise.
44861         * doc/posix-functions/unlockpt.texi: Likewise.
44862         * doc/posix-functions/lgamma.texi: Likewise.
44863         * doc/posix-functions/nextafter.texi: Likewise.
44864         * doc/posix-functions/remainder.texi: Likewise.
44865         * doc/posix-functions/select.texi: Mention misplaced declaration on
44866         IRIX 5.3.
44867         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44869 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
44871         gitlog-to-changelog: fix git-log invocation.
44872         git-log mishandles date strings before 1970-01-01 UTC, and there is
44873         no use to specify --since=1970-01-01 by default anyway.
44874         * build-aux/gitlog-to-changelog: By default, when no --since option
44875         was given, do not specify explicit --since option to git-log.
44877 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
44879         gitlog-to-changelog: new option --append-dot.
44880         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
44881         first non-blank line of each commit message terminated with a dot.
44883 2011-10-30  Bruno Haible  <bruno@clisp.org>
44885         ffsl, ffsll: Avoid compilation error due to 'restrict'.
44886         * lib/ffsl.h: Include <config.h>.
44887         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
44889 2011-10-30  Jim Meyering  <meyering@redhat.com>
44891         GNUmakefile: reenable "make syntax-check" for most projects
44892         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
44893         build-aux variable", "syntax-check" would do nothing but succeed with
44894         the "No version control files detected..." diagnostic (unless you
44895         happened to override _build-aux via cfg.mk).
44896         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
44897         to precede inclusion of maint.mk.  Otherwise, these variables would
44898         be used undefined in any project that does not override the default.
44900 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
44902         gitlog-to-changelog: treat a message with only blank lines as empty.
44903         * build-aux/gitlog-to-changelog: Move the code that removes leading and
44904         trailing blank lines before the code that issues a warning about an
44905         empty commit message.
44907 2011-10-30  Jim Meyering  <meyering@redhat.com>
44909         test-parse-datetime.c: avoid new DST-related false positive test failure
44910         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
44911         based on the time/date we'll convert, not the current time.
44912         Otherwise, the moment we cross a DST boundary like today's in
44913         Europe, (CEST to CET), that offset ends up being one hour off.
44915 2011-10-27  Bruno Haible  <bruno@clisp.org>
44917         fstat: Tweak documentation.
44918         * modules/fstat (Description): More precise description.
44920 2011-10-27  Bruno Haible  <bruno@clisp.org>
44922         Update documentation regarding 'largefile' module.
44923         * doc/posix-functions/fstat.texi: Tweak wording.
44924         * doc/posix-functions/opendir.texi: Mention that the module fixes the
44925         problems with huge directories and/or small ino_t types.
44926         * doc/posix-functions/readdir.texi: Likewise.
44927         * doc/posix-functions/rewinddir.texi: Likewise.
44929 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
44931         maint.mk: don't maintain a second build-aux variable.
44932         * maint.mk (build_aux): Removed.  The maintainer-makefile module
44933         depends on GNUmakefile, which already maintains a cfg.mk
44934         overridable $(_build-aux) for projects with a non-standard
44935         build-aux directory location, although without the $(srcdir)
44936         prefix.  Use that variable consistently instead of introducing a
44937         second one.  Adjust all call sites.
44939 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44941         Add stdalign module and use it in other modules.
44942         This is based on a previous proposal by Bruno Haible
44943         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
44945         stdalign: new module
44946         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
44947         * modules/stdalign: New files.
44948         * MODULES.html.sh (c1x_core_properties): Add stdalign.
44949         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
44951         stdalign-tests: new module
44952         * modules/stdalign-tests, tests/test-stdalign.c: New files.
44954         argp: use stdalign
44955         * lib/argp-parse.c: Include <stdalign.h>.
44956         (alignof): Remove.
44957         * modules/argp (Depends-on): Add stdalign.
44959         crypto libraries: use stdalign
44960         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
44961         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
44962         Do not include <stdlib.h> twice, in md4.c.
44963         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
44964         because we are accessing a pointer's bit-pattern, not a size.
44965         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
44966         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
44967         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
44968         * modules/crypto/sha512: Likewise.
44970         sys_socket: use stdalign, not alignof
44971         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
44972         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
44974 2011-10-27  Bruno Haible  <bruno@clisp.org>
44976         raise test: Avoid a test failure on Linux/MIPS.
44977         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
44978         because 99 is a valid signal on Linux/MIPS.
44980 2011-10-27  Bruno Haible  <bruno@clisp.org>
44982         nonblocking tests: Fix test failure on Linux/MIPS.
44983         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
44984         Set to 270000.
44986 2011-10-27  Bruno Haible  <bruno@clisp.org>
44988         utimensat: Work around problem on Linux/hppa.
44989         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
44990         values.
44991         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
44993 2011-10-25  Jim Meyering  <meyering@redhat.com>
44995         maint.mk: fix a bug in sc_prohibit_stddef_without_use
44996         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
44997         after symbols like NULL, size_t, etc.
44998         Reported by Alfred M. Szmidt.
45000         maint.mk: exempt ENODATA from a syntax-check rule
45001         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
45002         from the sc_prohibit_always-defined_macros syntax-check rule.
45003         Add a comment.  See this for more details:
45004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
45006 2011-10-23  Jim Meyering  <meyering@redhat.com>
45008         fts: close parent dir FD before returning from post-traversal fts_read
45009         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
45010         unlink A, even though an FD open on A remained.  This is suboptimal
45011         (holding a file descriptor open longer than needed), but otherwise not
45012         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
45013         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
45014         that represents a real problem: it causes the removal of A to fail
45015         with e.g., "rm: cannot remove `A': Device or resource busy"
45017         fts visits each directory twice and keeps a cache (fts_fd_ring) of
45018         directory file descriptors.  After completing the final, FTS_DP,
45019         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
45020         cache, but then proceeded to add a new FD to it via the subsequent
45021         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
45022         final file descriptor would be closed only via fts_close's call to
45023         fd_ring_clear.  Now, it is usually closed earlier, via the final
45024         FTS_DP-returning fts_read call.
45025         * lib/fts.c (restore_initial_cwd): New function, converted from
45026         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
45027         Update callers.
45028         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
45029         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
45031 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
45032             Bruno Haible  <bruno@clisp.org>
45033             Jim Meyering  <jim@meyering.net>
45035         readme-release: improve safety of release prep instructions.
45036         * README-release: Don't git pull all branches when only master
45037         is needed for the release process.
45038         Run make maintainer-clean before changing trees and merging.
45039         Don't try to run ./configure right after git pull in case files
45040         that influence the bootstrap process have changed, move the
45041         ./configure step to after running ./bootstrap.
45042         Don't bootstrap "one last time"... it's the first time!
45044 2011-10-22  Bruno Haible  <bruno@clisp.org>
45046         errno, strerror-override: Support for MSVC 10.
45047         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
45048         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
45049         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
45050         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
45051         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
45052         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
45053         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
45054         Assign values compatible with MSVC 10.
45055         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
45056         New macros.
45057         (GNULIB_defined_EWINSOCK): New macro.
45058         * lib/strerror-override.c (strerror_override): Update accordingly.
45059         * lib/strerror-override.h: Likewise.
45060         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
45061         longer equal to the corresponding errno value.
45062         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45064 2011-10-22  Bruno Haible  <bruno@clisp.org>
45066         perror: Recognize when test program crashes.
45067         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
45068         strerror, set gl_cv_func_perror_works to no.
45069         Reported by Daniel Richard G. <skunk@iskunk.org>.
45071         perror: Fix indentation.
45072         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
45074 2011-10-22  Bruno Haible  <bruno@clisp.org>
45076         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
45077         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
45078         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
45079         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
45080         functions, not as a macro.
45081         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
45082         macros.
45083         (isfinite, isinf, isnan, signbit): Check overloaded functions and
45084         absence of macro.
45085         Suggested by Eric Blake.
45086         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45088 2011-10-21  Bruno Haible  <bruno@clisp.org>
45090         relocatable-prog-wrapper: Don't leave object files behind.
45091         * build-aux/install-reloc: Re-synchronize list of .o files to be
45092         removed with list of compilation units.
45094 2011-10-20  Bruno Haible  <bruno@clisp.org>
45096         openpty, posix_openpt: Remove code duplication.
45097         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
45098         * lib/openpty.c: Include <stdlib.h>.
45099         (openpty): Use posix_openpt on all platforms except IRIX.
45100         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
45102 2011-10-20  Bruno Haible  <bruno@clisp.org>
45104         unlockpt: Detect invalid argument.
45105         * lib/unlockpt.c: Include <fcntl.h>.
45106         (unlockpt): Check whether fd is valid, using fcntl().
45107         * modules/unlockpt (Depends-on): Add fcntl-h.
45109 2011-10-20  Bruno Haible  <bruno@clisp.org>
45111         openpty: Avoid compilation error on AIX 6.1.
45112         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
45114 2011-10-20  Bruno Haible  <bruno@clisp.org>
45116         posix_openpt: Support for OpenBSD.
45117         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
45118         (posix_openpt) [OpenBSD]: New code.
45119         * lib/grantpt.c: Include <fcntl.h>.
45120         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
45121         * modules/grantpt (Depends-on): Add fcntl-h.
45123 2011-10-20  Bruno Haible  <bruno@clisp.org>
45125         posix_openpt test: Coding style.
45126         * tests/test-posix_openpt.c: Use GNU coding style.
45128 2011-10-20  Bruno Haible  <bruno@clisp.org>
45130         grantpt: Support --avoid=pt_chown.
45131         * modules/grantpt (Files): Add lib/pty-private.h.
45133 2011-10-20  Bruno Haible  <bruno@clisp.org>
45135         posix_openpt: Fix autoconf macro.
45136         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
45137         unneeded check for _getpty.
45139 2011-10-20  Bruno Haible  <bruno@clisp.org>
45141         openpty: Update comments.
45142         * lib/openpty.c: Add comments about Minix.
45144 2011-10-19  Eric Blake  <eblake@redhat.com>
45146         openpty: relax license
45147         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
45149         pt_chown: use configmake to simplify build
45150         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
45152         ptsname and others: relax license
45153         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
45154         * modules/unlockpt (License): Likewise.
45155         * modules/pt_chown (License): Likewise.
45156         * modules/ptsname (License): Likewise.
45157         * modules/ttyname_r (License): Likewise.
45159 2011-10-19  Jim Meyering  <meyering@redhat.com>
45161         posix_openpt: remove spurious #endif
45162         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
45164 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
45166         maint.mk: Respect $(build_aux) in web-manual rule.
45167         * top/maint.mk (web-manual): Find gen-announce script in user's
45168         $(build_aux) directory instead of hard-coding 'build-aux'.
45170 2011-10-19  Bruno Haible  <bruno@clisp.org>
45172         posix_openpt: Fix compilation error.
45173         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
45174         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
45175         Mention the openpty module as an alternative.
45177 2011-10-19  Bruno Haible  <bruno@clisp.org>
45179         Support for old NeXTstep 3.3 frexp().
45180         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
45181         execution time of the test to 5 seconds.
45182         Reported by Daniel Richard G. <skunk@iskunk.org>.
45184 2011-10-19  Bruno Haible  <bruno@clisp.org>
45186         Support for old NeXTstep 3.3 sed.
45187         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
45188         part, use /.../, not \|...|. Escape periods in the header file name.
45189         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45190         Reported by Daniel Richard G. <skunk@iskunk.org>.
45192 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45194         Support for old NeXTstep 3.3 gcc.
45195         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
45196         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
45197         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
45198         * lib/spawn.in.h (_Restrict_arr_): Likewise.
45199         * lib/regex.h (_Restrict_arr_): Likewise.
45200         * lib/regex_internal.h (re_token_t): Likewise.
45201         * lib/regexec.c (check_node_accept_bytes): Likewise.
45202         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45204 2011-10-18  Eric Blake  <eblake@redhat.com>
45206         posix_openpt: new module
45207         * modules/posix_openpt: New module.
45208         * m4/posix_openpt.m4: New file.
45209         * lib/posix_openpt.c: Likewise.
45210         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45211         (gl_STDLIB_H_DEFAULTS): Set defaults.
45212         * modules/stdlib (Makefile.am): Substitute macros.
45213         * lib/stdlib.in.h (posix_openpt): Declare.
45214         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
45215         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
45216         * modules/posix_openpt-tests: New test module.
45217         * tests/test-posix_openpt.c: New test.
45219 2011-10-15  Bruno Haible  <bruno@clisp.org>
45221         xstrtoll: Fix compilation failure.
45222         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
45223         from lib/strtol.c.
45224         * doc/posix-headers/limits.texi: Mention missing numerical limits on
45225         some platforms.
45226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45228 2011-10-15  Bruno Haible  <bruno@clisp.org>
45230         vasnprintf: Optimize bit search operation.
45231         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
45232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
45233         gl_DOUBLE_EXPONENT_LOCATION.
45234         * modules/vasnprintf (Files): Add m4/exponentd.m4.
45235         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45236         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45237         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45238         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45239         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45240         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45241         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45242         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
45244 2011-10-15  Bruno Haible  <bruno@clisp.org>
45246         vasnprintf: Fix comments.
45247         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
45249 2011-10-14  Bruno Haible  <bruno@clisp.org>
45251         Tests for module 'integer_length_ll'.
45252         * modules/integer_length_ll-tests: New file.
45253         * tests/test-integer_length_ll.c: New file.
45255         New module 'integer_length_ll'.
45256         * lib/integer_length_ll.c: New file.
45257         * modules/integer_length_ll: New file.
45259 2011-10-14  Bruno Haible  <bruno@clisp.org>
45261         Tests for module 'integer_length_l'.
45262         * modules/integer_length_l-tests: New file.
45263         * tests/test-integer_length_l.c: New file.
45265         New module 'integer_length_l'.
45266         * lib/integer_length_l.c: New file.
45267         * modules/integer_length_l: New file.
45269 2011-10-14  Bruno Haible  <bruno@clisp.org>
45271         Tests for module 'integer_length'.
45272         * modules/integer_length-tests: New file.
45273         * tests/test-integer_length.c: New file.
45275         New module 'integer_length'.
45276         * lib/integer_length.h: New file.
45277         * lib/integer_length.c: New file.
45278         * modules/integer_length: New file.
45280 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45282         popen: Fix dependency conditions.
45283         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
45285 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45287         perror: Fix autoconf test.
45288         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
45289         <stdlib.h> and <string.h>.
45291 2011-10-14  Bruno Haible  <bruno@clisp.org>
45293         ffsl: Optimize on 64-bit platforms.
45294         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
45295         unrolling.
45297 2011-10-13  Bruno Haible  <bruno@clisp.org>
45299         ffsl: Optimize on 32-bit platforms.
45300         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
45301         use ffs() without a loop.
45303         ffsl, ffsll: Optimize for GCC.
45304         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
45305         * lib/ffsl.c (GCC_BUILTIN): New macro.
45306         * lib/ffsll.c (GCC_BUILTIN): Likewise.
45308 2011-10-13  Bruno Haible  <bruno@clisp.org>
45310         ffs, bcopy, memset: Support symbol renaming via config.h.
45311         * lib/ffs.c: Include <config.h>.
45312         * lib/bcopy.c: Likewise.
45313         * lib/memset.c: Likewise.
45315 2011-10-10  Bruno Haible  <bruno@clisp.org>
45317         atanl: Simplify for platforms where 'long double' == 'double'.
45318         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45319         alternative implementation.
45320         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45321         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45322         * modules/atanl (Depends-on): Add atan. Update conditions.
45324 2011-10-10  Bruno Haible  <bruno@clisp.org>
45326         acosl: Simplify for platforms where 'long double' == 'double'.
45327         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45328         alternative implementation.
45329         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45330         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45331         * modules/acosl (Depends-on): Add acos. Update conditions.
45333 2011-10-10  Bruno Haible  <bruno@clisp.org>
45335         asinl: Simplify for platforms where 'long double' == 'double'.
45336         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45337         alternative implementation.
45338         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45339         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45340         * modules/asinl (Depends-on): Add asin. Update conditions.
45342 2011-10-10  Bruno Haible  <bruno@clisp.org>
45344         tanl: Simplify for platforms where 'long double' == 'double'.
45345         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45346         implementation.
45347         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45348         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45349         * modules/tanl (Depends-on): Add tan. Update conditions.
45350         (configure.ac): Don't compile trigl.c if
45351         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45353 2011-10-10  Bruno Haible  <bruno@clisp.org>
45355         cosl: Simplify for platforms where 'long double' == 'double'.
45356         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45357         implementation.
45358         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45359         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45360         * modules/cosl (Depends-on): Add cos. Update conditions.
45361         (configure.ac): Don't compile sincosl.c and trigl.c if
45362         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45364 2011-10-10  Bruno Haible  <bruno@clisp.org>
45366         sinl: Simplify for platforms where 'long double' == 'double'.
45367         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45368         implementation.
45369         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45370         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45371         * modules/sinl (Depends-on): Add sin. Update conditions.
45372         (configure.ac): Don't compile sincosl.c and trigl.c if
45373         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45375 2011-10-10  Bruno Haible  <bruno@clisp.org>
45377         logl: Simplify for platforms where 'long double' == 'double'.
45378         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45379         implementation.
45380         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45381         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45382         * modules/logl (Depends-on): Add log. Update conditions.
45384 2011-10-10  Bruno Haible  <bruno@clisp.org>
45386         expl: Simplify for platforms where 'long double' == 'double'.
45387         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45388         implementation.
45389         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45390         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45391         * modules/expl (Depends-on): Add exp. Update conditions.
45393 2011-10-10  Bruno Haible  <bruno@clisp.org>
45395         sqrtl: Simplify for platforms where 'long double' == 'double'.
45396         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45397         alternative implementation.
45398         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45399         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45400         * modules/sqrtl (Depends-on): Update conditions.
45402 2011-10-10  Bruno Haible  <bruno@clisp.org>
45404         ldexpl: Simplify for platforms where 'long double' == 'double'.
45405         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45406         alternative implementation.
45407         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45408         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45409         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
45411 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
45413         ffsll: set correct witness
45414         * modules/ffsll (configure.ac): Fix typo.
45416 2011-10-10  Bruno Haible  <bruno@clisp.org>
45418         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
45419         * lib/printf-frexpl.c: Include <config.h>.
45420         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45421         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
45422         second time.
45423         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
45424         gl_LONG_DOUBLE_VS_DOUBLE.
45425         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
45426         conditions.
45428 2011-10-10  Bruno Haible  <bruno@clisp.org>
45430         frexpl: Simplify for platforms where 'long double' == 'double'.
45431         * lib/frexpl.c: Include <config.h>.
45432         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45433         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45434         time.
45435         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45436         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45437         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
45438         * modules/frexpl (Depends-on): Add frexp. Update conditions.
45439         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
45440         conditions.
45442 2011-10-10  Jim Meyering  <meyering@redhat.com>
45444         test-renameat: don't leave behind a temporary file
45445         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
45446           ERROR: files left in build directory after distclean:
45447           ./gltests/test-renameat.too
45448           make[1]: *** [distcleancheck] Error 1
45449         Reported by Tom G. Christensen.
45451 2011-10-09  Bruno Haible  <bruno@clisp.org>
45453         rint: Determine RINT_LIBM correctly on AIX 7.
45454         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
45455         directly, not only through a function pointer. Also accept an optional
45456         4th argument with extra code.
45457         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
45458         rintf() call by gcc when optimizing.
45460         mathfunc.m4: Refactor.
45461         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
45462         m4 variable.
45464 2011-10-09  Bruno Haible  <bruno@clisp.org>
45466         rintl: Simplify for platforms where 'long double' == 'double'.
45467         * lib/rintl.c: Include <config.h>.
45468         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45469         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45470         time.
45471         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45472         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45473         * modules/rintl (Depends-on): Add rint. Update conditions.
45475 2011-10-09  Bruno Haible  <bruno@clisp.org>
45477         roundl: Simplify for platforms where 'long double' == 'double'.
45478         * lib/roundl.c: Include <config.h>.
45479         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45480         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45481         time.
45482         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45483         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45484         * modules/roundl (Depends-on): Add round. Update conditions.
45486 2011-10-09  Bruno Haible  <bruno@clisp.org>
45488         truncl: Simplify for platforms where 'long double' == 'double'.
45489         * lib/truncl.c: Include <config.h>.
45490         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45491         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45492         time.
45493         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45494         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45495         * modules/truncl (Depends-on): Add trunc. Update conditions.
45497 2011-10-09  Bruno Haible  <bruno@clisp.org>
45499         ceill: Simplify for platforms where 'long double' == 'double'.
45500         * lib/ceill.c: Include <config.h>.
45501         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45502         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45503         time.
45504         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45505         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45506         * modules/ceill (Depends-on): Add ceil. Update conditions.
45508 2011-10-09  Bruno Haible  <bruno@clisp.org>
45510         floorl: Simplify for platforms where 'long double' == 'double'.
45511         * lib/floorl.c: Include <config.h>.
45512         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45513         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45514         time.
45515         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45516         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45517         * modules/floorl (Depends-on): Add floor. Update conditions.
45519 2011-10-09  Bruno Haible  <bruno@clisp.org>
45521         rint: Fix ordering constraints.
45522         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
45523         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
45524         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
45526 2011-10-09  Bruno Haible  <bruno@clisp.org>
45528         copysignl: Simplify for platforms where 'long double' == 'double'.
45529         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45530         alternative.
45531         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45532         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45533         * modules/copysignl (Depends-on): Add copysign. Update conditions.
45535 2011-10-09  Bruno Haible  <bruno@clisp.org>
45537         Tests for module 'rintl'.
45538         * modules/rintl-tests: New file.
45539         * tests/test-rintl.c: New file.
45541         New module 'rintl'.
45542         * lib/math.in.h (rintl): New declaration.
45543         * lib/rintl.c: New file.
45544         * m4/rintl.m4: New file.
45545         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
45546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
45547         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
45548         * modules/rintl: New file.
45549         * tests/test-math-c++.cc: Check the declaration of rintl.
45550         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45551         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
45552         * doc/posix-functions/rintl.texi: Mention the new module.
45554 2011-10-09  Bruno Haible  <bruno@clisp.org>
45556         Tests for module 'rintf'.
45557         * modules/rintf-tests: New file.
45558         * tests/test-rintf.c: New file.
45560         New module 'rintf'.
45561         * lib/math.in.h (rintf): New declaration.
45562         * lib/rintf.c: New file.
45563         * m4/rintf.m4: New file.
45564         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
45565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
45566         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
45567         * modules/rintf: New file.
45568         * tests/test-math-c++.cc: Check the declaration of rintf.
45569         * doc/posix-functions/rintf.texi: Mention the new module.
45571 2011-10-09  Bruno Haible  <bruno@clisp.org>
45573         rint: Support for MSVC.
45574         * lib/math.in.h (rint): New declaration.
45575         * lib/rint.c: New file.
45576         * m4/rint.m4: New file.
45577         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
45578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
45579         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
45580         * modules/rint (Description): Fix.
45581         (Files): Add lib/rint.c, m4/rint.m4.
45582         (Depends-on): Add math.
45583         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
45584         gl_MATH_MODULE_INDICATOR.
45585         * tests/test-math-c++.cc: Check the declaration of rint.
45586         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45587         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
45588         * doc/posix-functions/rint.texi: Mention the replacement provided by
45589         the module.
45591         rint tests: More tests.
45592         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
45593         minus-zero.h, infinity.h, nan.h.
45594         (main): Skip the test if the current rounding mode is not standard. Add
45595         tests for negative numbers, minus zero, infinity, NaN.
45596         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
45597         tests/nan.h.
45598         (Depends-on): Add isnand-nolibm.
45600 2011-10-09  Bruno Haible  <bruno@clisp.org>
45602         Tests for module 'copysignl'.
45603         * modules/copysignl-tests: New file.
45604         * tests/test-copysignl.c: New file.
45606         New module 'copysignl'.
45607         * lib/math.in.h (copysignl): New declaration.
45608         * lib/copysignl.c: New file.
45609         * m4/copysignl.m4: New file.
45610         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
45611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
45612         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
45613         HAVE_COPYSIGNL.
45614         * modules/copysignl: New file.
45615         * tests/test-math-c++.cc: Check the declaration of copysignl.
45616         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45617         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
45618         * doc/posix-functions/copysignl.texi: Mention the new module.
45620 2011-10-09  Bruno Haible  <bruno@clisp.org>
45622         Tests for module 'copysignf'.
45623         * modules/copysignf-tests: New file.
45624         * tests/test-copysignf.c: New file.
45626         New module 'copysignf'.
45627         * lib/math.in.h (copysignf): New declaration.
45628         * lib/copysignf.c: New file.
45629         * m4/copysignf.m4: New file.
45630         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
45631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
45632         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
45633         HAVE_COPYSIGNF.
45634         * modules/copysignf: New file.
45635         * tests/test-math-c++.cc: Check the declaration of copysignf.
45636         * doc/posix-functions/copysignf.texi: Mention the new module.
45638 2011-10-09  Bruno Haible  <bruno@clisp.org>
45640         Ensure that HAVE_* variables are set to 1 before they are set to 0.
45641         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
45642         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
45643         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45644         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
45645         gl_SIGNAL_H_DEFAULTS.
45647 2011-10-09  Bruno Haible  <bruno@clisp.org>
45649         poll: Make macro safer.
45650         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
45651         ac_cv_header_poll_h is not set.
45653 2011-10-09  Bruno Haible  <bruno@clisp.org>
45655         copysign: Provide replacement.
45656         * lib/math.in.h (copysign): New declaration.
45657         * lib/copysign.c: New file.
45658         * m4/copysign.m4: New file.
45659         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
45660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
45661         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
45662         HAVE_COPYSIGN.
45663         * modules/copysign (Description): Clarify.
45664         (Files): Add lib/copysign.c, m4/copysign.m4.
45665         (Depends-on): Add math, signbit.
45666         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
45667         gl_MATH_MODULE_INDICATOR.
45668         * tests/test-math-c++.cc: Check the declaration of copysign.
45669         * doc/posix-functions/copysign.texi: Mention the effects of the module
45670         on Minix and MSVC.
45672 2011-10-09  Bruno Haible  <bruno@clisp.org>
45674         isinf: Ensure macro on AIX 5.1.
45675         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
45676         macro.
45677         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
45679 2011-10-09  Bruno Haible  <bruno@clisp.org>
45681         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
45682         * modules/snprintf-posix-tests (configure.ac): Require
45683         gl_LONG_DOUBLE_VS_DOUBLE.
45684         * modules/sprintf-posix-tests (configure.ac): Likewise.
45685         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
45686         * modules/vasprintf-posix-tests (configure.ac): Likewise.
45687         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
45688         * modules/vsprintf-posix-tests (configure.ac): Likewise.
45689         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
45690         tests on platforms where 'long double' is the same as 'double'.
45691         * tests/test-sprintf-posix.h (test_function): Likewise.
45692         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45693         * tests/test-vasprintf-posix.c (test_function): Likewise.
45695         *printf: Fix for platforms where 'long double' == 'double'.
45696         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
45697         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
45698         * modules/dprintf-posix (Files): Add m4/math_h.m4.
45699         * modules/fprintf-posix (Files): Likewise.
45700         * modules/obstack-printf-posix (Files): Likewise.
45701         * modules/snprintf-posix (Files): Likewise.
45702         * modules/sprintf-posix (Files): Likewise.
45703         * modules/vasnprintf (Files): Likewise.
45704         * modules/vasnprintf-posix (Files): Likewise.
45705         * modules/vasprintf-posix (Files): Likewise.
45706         * modules/vdprintf-posix (Files): Likewise.
45707         * modules/vfprintf-posix (Files): Likewise.
45708         * modules/vsnprintf-posix (Files): Likewise.
45709         * modules/vsprintf-posix (Files): Likewise.
45710         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45711         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45712         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45713         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45714         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45715         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45716         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45718         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
45719         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
45720         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45721         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
45722         'long double'.
45723         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
45725         isinf: Fix for platforms where 'long double' == 'double'.
45726         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
45727         Don't blindly assume 80-bit 'long double'.
45729         isfinite: Fix for platforms where 'long double' == 'double'.
45730         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
45731         Don't blindly assume 80-bit 'long double'.
45733         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
45734         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
45735         * modules/isfinite-tests (configure.ac): Require
45736         gl_LONG_DOUBLE_VS_DOUBLE.
45737         * modules/isinf-tests (configure.ac): Likewise.
45738         * modules/isnan-tests (configure.ac): Likewise.
45739         * modules/isnanl-tests (configure.ac): Likewise.
45740         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
45741         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
45742         tests on platforms where 'long double' is the same as 'double'.
45743         * tests/test-isinf.c (test_isinfl): Likewise.
45744         * tests/test-isnan.c (test_long_double): Likewise.
45745         * tests/test-isnanl.h (main): Likewise.
45747 2011-10-08  Bruno Haible  <bruno@clisp.org>
45749         Tests for module 'tanhf'.
45750         * modules/tanhf-tests: New file.
45751         * tests/test-tanhf.c: New file.
45753         New module 'tanhf'.
45754         * lib/math.in.h (tanhf): New declaration.
45755         * lib/tanhf.c: New file.
45756         * m4/tanhf.m4: New file.
45757         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
45758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
45759         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
45760         * modules/tanhf: New file.
45761         * tests/test-math-c++.cc: Check the declaration of tanhf.
45762         * doc/posix-functions/tanhf.texi: Mention the new module.
45764         tanh: Use a .m4 file.
45765         * m4/tanh.m4: New file.
45766         * modules/tanh (Files): Add it.
45767         (configure.ac): Just invoke gl_FUNC_TANH.
45769 2011-10-08  Bruno Haible  <bruno@clisp.org>
45771         Tests for module 'coshf'.
45772         * modules/coshf-tests: New file.
45773         * tests/test-coshf.c: New file.
45775         New module 'coshf'.
45776         * lib/math.in.h (coshf): New declaration.
45777         * lib/coshf.c: New file.
45778         * m4/coshf.m4: New file.
45779         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
45780         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
45781         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
45782         * modules/coshf: New file.
45783         * tests/test-math-c++.cc: Check the declaration of coshf.
45784         * doc/posix-functions/coshf.texi: Mention the new module.
45786         cosh: Use a .m4 file.
45787         * m4/cosh.m4: New file.
45788         * modules/cosh (Files): Add it.
45789         (configure.ac): Just invoke gl_FUNC_COSH.
45791 2011-10-08  Bruno Haible  <bruno@clisp.org>
45793         Tests for module 'sinhf'.
45794         * modules/sinhf-tests: New file.
45795         * tests/test-sinhf.c: New file.
45797         New module 'sinhf'.
45798         * lib/math.in.h (sinhf): New declaration.
45799         * lib/sinhf.c: New file.
45800         * m4/sinhf.m4: New file.
45801         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
45802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
45803         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
45804         * modules/sinhf: New file.
45805         * tests/test-math-c++.cc: Check the declaration of sinhf.
45806         * doc/posix-functions/sinhf.texi: Mention the new module.
45808         sinh: Use a .m4 file.
45809         * m4/sinh.m4: New file.
45810         * modules/sinh (Files): Add it.
45811         (configure.ac): Just invoke gl_FUNC_SINH.
45813 2011-10-08  Bruno Haible  <bruno@clisp.org>
45815         Tests for module 'atan2f'.
45816         * modules/atan2f-tests: New file.
45817         * tests/test-atan2f.c: New file.
45819         New module 'atan2f'.
45820         * lib/math.in.h (atan2f): New declaration.
45821         * lib/atan2f.c: New file.
45822         * m4/atan2f.m4: New file.
45823         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
45824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
45825         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
45826         * modules/atan2f: New file.
45827         * tests/test-math-c++.cc: Check the declaration of atan2f.
45828         * doc/posix-functions/atan2f.texi: Mention the new module.
45830         atan2: Use a .m4 file.
45831         * m4/atan2.m4: New file.
45832         * modules/atan2 (Files): Add it.
45833         (configure.ac): Just invoke gl_FUNC_ATAN2.
45835 2011-10-08  Bruno Haible  <bruno@clisp.org>
45837         Tests for module 'atanf'.
45838         * modules/atanf-tests: New file.
45839         * tests/test-atanf.c: New file.
45841         New module 'atanf'.
45842         * lib/math.in.h (atanf): New declaration.
45843         * lib/atanf.c: New file.
45844         * m4/atanf.m4: New file.
45845         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
45846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
45847         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
45848         * modules/atanf: New file.
45849         * tests/test-math-c++.cc: Check the declaration of atanf.
45850         * doc/posix-functions/atanf.texi: Mention the new module.
45852         atan: Use a .m4 file.
45853         * m4/atan.m4: New file.
45854         * modules/atan (Files): Add it.
45855         (configure.ac): Just invoke gl_FUNC_ATAN.
45857 2011-10-08  Bruno Haible  <bruno@clisp.org>
45859         Tests for module 'acosf'.
45860         * modules/acosf-tests: New file.
45861         * tests/test-acosf.c: New file.
45863         New module 'acosf'.
45864         * lib/math.in.h (acosf): New declaration.
45865         * lib/acosf.c: New file.
45866         * m4/acosf.m4: New file.
45867         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
45868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
45869         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
45870         * modules/acosf: New file.
45871         * tests/test-math-c++.cc: Check the declaration of acosf.
45872         * doc/posix-functions/acosf.texi: Mention the new module.
45874         acos: Use a .m4 file.
45875         * m4/acos.m4: New file.
45876         * modules/acos (Files): Add it.
45877         (configure.ac): Just invoke gl_FUNC_ACOS.
45879 2011-10-08  Bruno Haible  <bruno@clisp.org>
45881         Tests for module 'asinf'.
45882         * modules/asinf-tests: New file.
45883         * tests/test-asinf.c: New file.
45885         New module 'asinf'.
45886         * lib/math.in.h (asinf): New declaration.
45887         * lib/asinf.c: New file.
45888         * m4/asinf.m4: New file.
45889         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
45890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
45891         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
45892         * modules/asinf: New file.
45893         * tests/test-math-c++.cc: Check the declaration of asinf.
45894         * doc/posix-functions/asinf.texi: Mention the new module.
45896         asin: Use a .m4 file.
45897         * m4/asin.m4: New file.
45898         * modules/asin (Files): Add it.
45899         (configure.ac): Just invoke gl_FUNC_ASIN.
45901 2011-10-08  Bruno Haible  <bruno@clisp.org>
45903         Tests for module 'tanf'.
45904         * modules/tanf-tests: New file.
45905         * tests/test-tanf.c: New file.
45907         New module 'tanf'.
45908         * lib/math.in.h (tanf): New declaration.
45909         * lib/tanf.c: New file.
45910         * m4/tanf.m4: New file.
45911         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
45912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
45913         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
45914         * modules/tanf: New file.
45915         * tests/test-math-c++.cc: Check the declaration of tanf.
45916         * doc/posix-functions/tanf.texi: Mention the new module.
45918         tan: Use a .m4 file.
45919         * m4/tan.m4: New file.
45920         * modules/tan (Files): Add it.
45921         (configure.ac): Just invoke gl_FUNC_TAN.
45923 2011-10-08  Bruno Haible  <bruno@clisp.org>
45925         Tests for module 'cosf'.
45926         * modules/cosf-tests: New file.
45927         * tests/test-cosf.c: New file.
45929         New module 'cosf'.
45930         * lib/math.in.h (cosf): New declaration.
45931         * lib/cosf.c: New file.
45932         * m4/cosf.m4: New file.
45933         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
45934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
45935         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
45936         * modules/cosf: New file.
45937         * tests/test-math-c++.cc: Check the declaration of cosf.
45938         * doc/posix-functions/cosf.texi: Mention the new module.
45940         cos: Use a .m4 file.
45941         * m4/cos.m4: New file.
45942         * modules/cos (Files): Add it.
45943         (configure.ac): Just invoke gl_FUNC_COS.
45945 2011-10-08  Bruno Haible  <bruno@clisp.org>
45947         Tests for module 'sinf'.
45948         * modules/sinf-tests: New file.
45949         * tests/test-sinf.c: New file.
45951         New module 'sinf'.
45952         * lib/math.in.h (sinf): New declaration.
45953         * lib/sinf.c: New file.
45954         * m4/sinf.m4: New file.
45955         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
45956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
45957         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
45958         * modules/sinf: New file.
45959         * tests/test-math-c++.cc: Check the declaration of sinf.
45960         * doc/posix-functions/sinf.texi: Mention the new module.
45962         sin: Use a .m4 file.
45963         * m4/sin.m4: New file.
45964         * modules/sin (Files): Add it.
45965         (configure.ac): Just invoke gl_FUNC_SIN.
45967 2011-10-08  Bruno Haible  <bruno@clisp.org>
45969         Tests for module 'powf'.
45970         * modules/powf-tests: New file.
45971         * tests/test-powf.c: New file.
45973         New module 'powf'.
45974         * lib/math.in.h (powf): New declaration.
45975         * lib/powf.c: New file.
45976         * m4/powf.m4: New file.
45977         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
45978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
45979         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
45980         * modules/powf: New file.
45981         * tests/test-math-c++.cc: Check the declaration of powf.
45982         * doc/posix-functions/powf.texi: Mention the new module.
45984         pow: Use a .m4 file.
45985         * m4/pow.m4: New file.
45986         * modules/pow (Files): Add it.
45987         (configure.ac): Just invoke gl_FUNC_POW.
45989 2011-10-08  Bruno Haible  <bruno@clisp.org>
45991         Tests for module 'log10f'.
45992         * modules/log10f-tests: New file.
45993         * tests/test-log10f.c: New file.
45995         New module 'log10f'.
45996         * lib/math.in.h (log10f): New declaration.
45997         * lib/log10f.c: New file.
45998         * m4/log10f.m4: New file.
45999         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
46000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
46001         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
46002         * modules/log10f: New file.
46003         * tests/test-math-c++.cc: Check the declaration of log10f.
46004         * doc/posix-functions/log10f.texi: Mention the new module.
46006         log10: Use a .m4 file.
46007         * m4/log10.m4: New file.
46008         * modules/log10 (Files): Add it.
46009         (configure.ac): Just invoke gl_FUNC_LOG10.
46011 2011-10-08  Bruno Haible  <bruno@clisp.org>
46013         Tests for module 'logf'.
46014         * modules/logf-tests: New file.
46015         * tests/test-logf.c: New file.
46017         New module 'logf'.
46018         * lib/math.in.h (logf): New declaration.
46019         * lib/logf.c: New file.
46020         * m4/logf.m4: New file.
46021         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
46022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
46023         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
46024         * modules/logf: New file.
46025         * tests/test-math-c++.cc: Check the declaration of logf.
46026         * doc/posix-functions/logf.texi: Mention the new module.
46028         log: Use a .m4 file.
46029         * m4/log.m4: New file.
46030         * modules/log (Files): Add it.
46031         (configure.ac): Just invoke gl_FUNC_LOG.
46033 2011-10-08  Bruno Haible  <bruno@clisp.org>
46035         Tests for module 'expf'.
46036         * modules/expf-tests: New file.
46037         * tests/test-expf.c: New file.
46039         New module 'expf'.
46040         * lib/math.in.h (expf): New declaration.
46041         * lib/expf.c: New file.
46042         * m4/expf.m4: New file.
46043         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
46044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
46045         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
46046         * modules/expf: New file.
46047         * tests/test-math-c++.cc: Check the declaration of expf.
46048         * doc/posix-functions/expf.texi: Mention the new module.
46050         exp: Use a .m4 file.
46051         * m4/exp.m4: New file.
46052         * modules/exp (Files): Add it.
46053         (configure.ac): Just invoke gl_FUNC_EXP.
46055 2011-10-08  Bruno Haible  <bruno@clisp.org>
46057         Tests for module 'sqrtf'.
46058         * modules/sqrtf-tests: New file.
46059         * tests/test-sqrtf.c: New file.
46061         New module 'sqrtf'.
46062         * lib/math.in.h (sqrtf): New declaration.
46063         * lib/sqrtf.c: New file.
46064         * m4/sqrtf.m4: New file.
46065         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
46066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
46067         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
46068         * modules/sqrtf: New file.
46069         * tests/test-math-c++.cc: Check the declaration of sqrtf.
46070         * doc/posix-functions/sqrtf.texi: Mention the new module.
46072 2011-10-08  Bruno Haible  <bruno@clisp.org>
46074         Tests: Avoid link failures w.r.t. libintl.
46075         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
46076         $(LIBINTL).
46077         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
46078         $(LIBINTL).
46079         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
46080         against $(LIBINTL).
46081         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
46082         $(LIBINTL).
46083         * modules/openat-tests (Makefile.am): Link test-fchmodat against
46084         $(LIBINTL).
46085         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
46087 2011-10-08  Bruno Haible  <bruno@clisp.org>
46089         pow tests: Defeat compiler optimizations.
46090         * tests/test-pow.c (main): Assign arguments to x and y before use.
46092 2011-10-08  Bruno Haible  <bruno@clisp.org>
46094         gnulib-tool: Improve last commit.
46095         * gnulib-tool (func_modules_transitive_closure): Simplify code.
46096         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
46097         ignore dependencies that are not among the modules list.
46099 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
46101         gnulib-tool: don't follow dependencies to avoided modules
46102         This fixes a bug that is related to the previous one.
46103         * gnulib-tool (func_modules_transitive_closure)
46104         (func_emit_autoconf_snippets):
46105         Check whether a dependency is acceptable before using it.
46106         (--extract-dependencies): Report an error if --avoid is also used,
46107         since this combination of options is not yet supported.
46109         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
46110         Problem reported by Peter Dyballa in
46111         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
46112         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
46113         when echoing "$condition".
46115 2011-10-07  Bruno Haible  <bruno@clisp.org>
46117         Fix documentation about math functions on MacOS X.
46118         * doc/posix-functions/exp2.texi: Don't say the function is missing on
46119         MacOS X 10.5.
46120         * doc/posix-functions/fdim.texi: Likewise.
46121         * doc/posix-functions/feclearexcept.texi: Likewise.
46122         * doc/posix-functions/fegetenv.texi: Likewise.
46123         * doc/posix-functions/fegetround.texi: Likewise.
46124         * doc/posix-functions/feholdexcept.texi: Likewise.
46125         * doc/posix-functions/feraiseexcept.texi: Likewise.
46126         * doc/posix-functions/fesetenv.texi: Likewise.
46127         * doc/posix-functions/fesetround.texi: Likewise.
46128         * doc/posix-functions/fetestexcept.texi: Likewise.
46129         * doc/posix-functions/feupdateenv.texi: Likewise.
46130         * doc/posix-functions/fmax.texi: Likewise.
46131         * doc/posix-functions/fmin.texi: Likewise.
46132         * doc/posix-functions/log2.texi: Likewise.
46133         * doc/posix-functions/modff.texi: Likewise.
46134         * doc/posix-functions/nan.texi: Likewise.
46135         * doc/posix-functions/nanf.texi: Likewise.
46136         * doc/posix-functions/nextafterf.texi: Likewise.
46137         * doc/posix-functions/remquo.texi: Likewise.
46139 2011-10-07  Bruno Haible  <bruno@clisp.org>
46141         modff: Drop assumption about library that defines modff.
46142         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
46143         AC_CHECK_FUNCS.
46144         * modules/modff (Files): Add m4/mathfunc.m4.
46146 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
46148         raise tests: Avoid a GCC warning.
46149         * tests/test-raise.c (handler): Use _Noreturn.
46151 2011-10-07  Bruno Haible  <bruno@clisp.org>
46153         Tests for module 'ldexpf'.
46154         * modules/ldexpf-tests: New file.
46155         * tests/test-ldexpf.c: New file.
46157         New module 'ldexpf'.
46158         * lib/math.in.h (ldexpf): New declaration.
46159         * lib/ldexpf.c: New file.
46160         * m4/ldexpf.m4: New file.
46161         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
46162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
46163         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
46164         * modules/ldexpf: New file.
46165         * tests/test-math-c++.cc: Check the declaration of ldexpf.
46166         * doc/posix-functions/ldexpf.texi: Mention the new module.
46168 2011-10-06  Bruno Haible  <bruno@clisp.org>
46170         frexpf: Work around problems on IRIX and mingw.
46171         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
46172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
46173         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
46174         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
46175         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
46176         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
46177         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
46179 2011-10-06  Bruno Haible  <bruno@clisp.org>
46181         fabsf: Drop assumption about library that defines fabsf.
46182         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
46183         AC_CHECK_FUNCS.
46184         * modules/fabsf (Files): Add m4/mathfunc.m4.
46186 2011-10-06  Bruno Haible  <bruno@clisp.org>
46188         frexpf: Drop assumption about library that defines frexpf.
46189         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
46190         'int *', 'float *', 'long double *', 'float', 'long double'.
46191         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
46192         AC_CHECK_FUNCS.
46193         * modules/frexpf (Files): Add m4/mathfunc.m4.
46195         Tests for module 'frexpf'.
46196         * modules/frexpf-tests: New file.
46197         * tests/test-frexpf.c: New file.
46199         New module 'frexpf'.
46200         * lib/math.in.h (frexpf): New declaration.
46201         * lib/frexpf.c: New file.
46202         * m4/frexpf.m4: New file.
46203         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
46204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
46205         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
46206         * modules/frexpf: New file.
46207         * tests/test-math-c++.cc: Check the declaration of frexpf.
46208         * doc/posix-functions/frexpf.texi: Mention the new module.
46210 2011-10-06  Bruno Haible  <bruno@clisp.org>
46212         math: Sort function declarations of math.in.h.
46213         * lib/math.in.h (frexp, logb): Move declarations.
46215 2011-10-05  Bruno Haible  <bruno@clisp.org>
46217         Tests for module 'modff'.
46218         * modules/modff-tests: New file.
46219         * tests/test-modff.c: New file.
46221         New module 'modff'.
46222         * lib/math.in.h (modff): New declaration.
46223         * lib/modff.c: New file.
46224         * m4/modff.m4: New file.
46225         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
46226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
46227         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
46228         * modules/modff: New file.
46229         * tests/test-math-c++.cc: Check the declaration of modff.
46230         * doc/posix-functions/modff.texi: Mention the new module.
46232         modf tests: Make test sharper.
46233         * tests/test-modf.c (main): Strengthen upper bound.
46235         modf: Use a .m4 file.
46236         * m4/modf.m4: New file.
46237         * modules/modf (Files): Add it.
46238         (configure.ac): Just invoke gl_FUNC_MODF.
46240 2011-10-05  Bruno Haible  <bruno@clisp.org>
46242         Tests for module 'fmodf'.
46243         * modules/fmodf-tests: New file.
46244         * tests/test-fmodf.c: New file.
46246         New module 'fmodf'.
46247         * lib/math.in.h (fmodf): New declaration.
46248         * lib/fmodf.c: New file.
46249         * m4/fmodf.m4: New file.
46250         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
46251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
46252         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
46253         * modules/fmodf: New file.
46254         * tests/test-math-c++.cc: Check the declaration of fmodf.
46255         * doc/posix-functions/fmodf.texi: Mention the new module.
46257         fmod: Use a .m4 file.
46258         * m4/fmod.m4: New file.
46259         * modules/fmod (Files): Add it.
46260         (configure.ac): Just invoke gl_FUNC_FMOD.
46262 2011-10-05  Bruno Haible  <bruno@clisp.org>
46264         Tests for module 'fabsf'.
46265         * modules/fabsf-tests: New file.
46266         * tests/test-fabsf.c: New file.
46268         New module 'fabsf'.
46269         * lib/math.in.h (fabsf): New declaration.
46270         * lib/fabsf.c: New file.
46271         * m4/fabsf.m4: New file.
46272         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
46273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
46274         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
46275         * modules/fabsf: New file.
46276         * tests/test-math-c++.cc: Check the declaration of fabsf.
46277         * doc/posix-functions/fabsf.texi: Mention the new module.
46279         fabs: Use a .m4 file.
46280         * m4/fabs.m4: New file.
46281         * modules/fabs (Files): Add it.
46282         (configure.ac): Just invoke gl_FUNC_FABS.
46284 2011-10-05  Jim Meyering  <meyering@redhat.com>
46286         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
46287         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
46288         ls -lL regression introduced in coreutils-8.12, it does so at the
46289         cost of an additional stat call in the common case.  Besides, now
46290         that the kernel change that prompted commit 95f7c57f has been reverted
46291         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
46292         we have no use for commit 95f7c57f, "file-has-acl: use
46293         acl_extended_file_nofollow if available".
46295 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
46297         file-has-acl: revert unintended change in behavior of ls -L
46298         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
46299         derived from...
46300         (file_has_acl): ...code here.  Call it.
46301         This problem was introduced with 2011-07-22 commit 95f7c57f,
46302         "file-has-acl: use acl_extended_file_nofollow if available".
46303         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
46305 2011-10-03  Bruno Haible  <bruno@clisp.org>
46307         poll: Avoid link errors on MSVC.
46308         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
46309         * modules/poll (Depends-on): Add sockets.
46310         (Link): New section.
46311         * NEWS: Mention the change.
46312         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
46313         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
46314         $(LIB_POLL) instead of $(LIBSOCKET).
46316 2011-10-03  Bruno Haible  <bruno@clisp.org>
46318         sys_select tests: Fix link error on MSVC 9.
46319         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
46320         with $(LIB_SELECT) instead of $(LIBSOCKET).
46322 2011-10-03  Bruno Haible  <bruno@clisp.org>
46324         sys_select: Fix compilation error on mingw.
46325         * lib/sys_select.in.h: On native Windows, include <io.h>.
46327 2011-10-03  Bruno Haible  <bruno@clisp.org>
46329         wmemset: Support for MSVC.
46330         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
46331         whether wmemset() exists.
46333 2011-10-03  Bruno Haible  <bruno@clisp.org>
46335         wmemmove: Support for MSVC.
46336         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
46337         whether wmemmove() exists.
46339 2011-10-03  Bruno Haible  <bruno@clisp.org>
46341         wmemcpy: Support for MSVC.
46342         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
46343         whether wmemcpy() exists.
46345 2011-10-03  Bruno Haible  <bruno@clisp.org>
46347         wmemcmp: Support for MSVC.
46348         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
46349         whether wmemcmp() exists.
46351 2011-10-03  Bruno Haible  <bruno@clisp.org>
46353         wmemchr: Support for MSVC.
46354         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
46355         whether wmemchr() exists.
46357 2011-10-03  Bruno Haible  <bruno@clisp.org>
46359         glthread/*, strsignal: Support for MSVC.
46360         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
46361         including <winsock.h> on MSVC 9.
46362         * lib/glthread/lock.h: Likewise.
46363         * lib/glthread/thread.h: Likewise.
46364         * lib/glthread/tls.h: Likewise.
46365         * lib/glthread/yield.h: Likewise.
46366         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
46367         if HAVE_UNISTD_H is false.
46368         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
46370 2011-10-03  Bruno Haible  <bruno@clisp.org>
46372         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
46373         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
46374         Set to 100000.
46376 2011-10-03  Bruno Haible  <bruno@clisp.org>
46378         acl: Fix specification.
46379         * lib/file-has-acl.c (file_has_acl): Fix specification.
46381 2011-10-03  Bruno Haible  <bruno@clisp.org>
46383         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
46384         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
46385         (compute_curr_prefix, shared_library_fullname,
46386         find_shared_library_fullname, get_shared_library_fullname, relocate):
46387         Use it together with PIC && INSTALLDIR.
46388         Reported by <jojelino@gmail.com>
46389         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
46391 2011-10-01  Jim Meyering  <meyering@redhat.com>
46393         maint.mk: adjust a release-related rule not to require use of gzip
46394         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
46395         Instead, check each file in $(DIST_ARCHIVES).  This is better for
46396         projects that build only .tar.xz files.  Also fix an erroneous test.
46398         test-linkat: don't leave behind a temporary file
46399         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
46400         Otherwise, coreutils' "make distcheck" would fail with this:
46401           Only in /c/cu/tests/torture/coreutils/test/\
46402             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
46403           make[2]: *** [my-distcheck] Error 1
46405         float, math: add omitted file
46406         * lib/itold.c: Add file, required for yesterday's float change.
46408 2011-10-01  Bruno Haible  <bruno@clisp.org>
46410         isinf: Fix for OpenBSD/x86.
46411         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
46412         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
46413         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
46415 2011-10-01  Bruno Haible  <bruno@clisp.org>
46417         isfinite: Fix syntax error in configure test.
46418         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
46420         isfinite: Fix typo.
46421         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
46422         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
46424 2011-10-01  Bruno Haible  <bruno@clisp.org>
46426         nonblocking tests: Fix test failure on Linux/IA-64.
46427         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
46428         Set to 270000.
46430 2011-10-01  Bruno Haible  <bruno@clisp.org>
46432         mkfifoat tests: Fix a test failure on mingw.
46433         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
46434         with error ENOSYS.
46436 2011-09-30  Bruno Haible  <bruno@clisp.org>
46438         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
46439         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
46440         'long double'. Set REPLACE_ITOLD.
46441         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
46442         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
46443         * lib/itold.c: New file.
46444         * modules/float (Files): Add lib/itold.c.
46445         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
46446         (Makefile.am): Substitute REPLACE_ITOLD.
46447         * modules/math (Depends-on): Add float.
46448         (Makefile.am): Substitute REPLACE_ITOLD.
46449         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
46450         * doc/posix-headers/math.texi: Likewise.
46451         * doc/posix-functions/logl.texi: Likewise.
46453 2011-09-30  Bruno Haible  <bruno@clisp.org>
46455         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
46456         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
46457         Set to 140000.
46459 2011-09-30  Bruno Haible  <bruno@clisp.org>
46461         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
46462         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
46463         invocation, say "right after AC_PROG_CC_STDC", not "right after
46464         AC_PROG_CC".
46465         Reported by Gary V. Vaughan <gary@gnu.org>.
46467 2011-09-30  Bruno Haible  <bruno@clisp.org>
46469         Centralize C99 requirement.
46470         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
46471         * modules/stdarg (configure.ac-early): Invoke it instead of
46472         AC_PROG_CC_STDC.
46473         Reported by Gary V. Vaughan and Paul Eggert.
46475 2011-09-29  Bruno Haible  <bruno@clisp.org>
46477         float: Fix LDBL_MAX value on Linux/PowerPC.
46478         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
46479         on Linux/PowerPC.
46480         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
46481         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
46482         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
46483         platform.
46484         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
46486 2011-09-29  Bruno Haible  <bruno@clisp.org>
46488         doc: Improve doc about gl_EARLY.
46489         * doc/gnulib-tool.texi (Initial import): Mention where to place an
46490         AC_PROG_CC_STDC invocation.
46491         Reported by Gary V. Vaughan <gary@gnu.org>.
46493 2011-09-28  Bruno Haible  <bruno@clisp.org>
46495         fgetc, fputc, fread, fwrite tests: Fix link error.
46496         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
46497         on non-MSVC platforms.
46498         * tests/test-fputc.c (main): Likewise.
46499         * tests/test-fread.c (main): Likewise.
46500         * tests/test-fwrite.c (main): Likewise.
46501         Reported by Jim Meyering.
46503 2011-09-27  Bruno Haible  <bruno@clisp.org>
46505         fputc, fwrite tests: Avoid test failure on MSVC.
46506         * tests/test-fgetc.c: Include msvc-inval.h.
46507         (main): Invoke gl_msvc_inval_ensure_handler.
46508         * tests/test-fputc.c: Include msvc-inval.h.
46509         (main): Invoke gl_msvc_inval_ensure_handler.
46510         * tests/test-fread.c: Include msvc-inval.h.
46511         (main): Invoke gl_msvc_inval_ensure_handler.
46512         * tests/test-fwrite.c: Include msvc-inval.h.
46513         (main): Invoke gl_msvc_inval_ensure_handler.
46514         * modules/fgetc-tests (Depends-on): Add msvc-inval.
46515         * modules/fputc-tests (Depends-on): Likewise.
46516         * modules/fread-tests (Depends-on): Likewise.
46517         * modules/fwrite-tests (Depends-on): Likewise.
46519 2011-09-27  Bruno Haible  <bruno@clisp.org>
46521         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
46522         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
46523         (raise): Remove older, duplicated declaration.
46524         (_gl_raise_SIGPIPE): New declaration.
46525         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
46526         (rpl_raise): Remove function.
46527         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
46528         a gnulib-defined SIGPIPE here.
46529         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
46530         'sigprocmask' has detected missing signal-blocking and the module
46531         'sigpipe' is enabled.
46532         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46534 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
46536         base64-tests: avoid memory leak
46537         * tests/test-base64.c (main): Plug memory leak.
46539         base32: new module
46540         * modules/base32: New module.
46541         * lib/base32.c: New file.
46542         * lib/base32.h: Likewise.
46543         * m4/base32.m4: Likewise.
46544         * modules/base32-tests: New test.
46545         * tests/test-base32.c: Likewise.
46546         * MODULES.html.sh (Misc): Mention it.
46548 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46550         gnulib: use more-standard license notice wording
46551         * gnulib-tool (func_emit_copyright_notice): When emitting a
46552         license notice into a file, use the standard wording as suggested
46553         by the current information for GNU maintainers, except say "file"
46554         rather than "program".  The new wording gives a license version
46555         number, which addresses an issue raised by Glenn Morris in
46556         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
46557         * m4/onceonly.m4: Use that same wording here, too.
46559         dup2: minor simplification
46560         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
46561         as lib/dup2.c no longer uses 'inline'.
46563 2011-09-25  Bruno Haible  <bruno@clisp.org>
46565         strings: Fix compilation error on MSVC.
46566         * lib/strings.in.h: Include <stddef.h> for size_t.
46568 2011-09-25  Bruno Haible  <bruno@clisp.org>
46570         fflush et al.: Document limitation on MSVC.
46571         * doc/posix-functions/fflush.texi: Document possible crash in handling
46572         mode other than DEFAULT_HANDLING.
46573         * doc/posix-functions/fgetc.texi: Likewise.
46574         * doc/posix-functions/fputc.texi: Likewise.
46575         * doc/posix-functions/fread.texi: Likewise.
46576         * doc/posix-functions/fwrite.texi: Likewise.
46578 2011-09-25  Bruno Haible  <bruno@clisp.org>
46580         msvc-inval: Allow three invalid parameter handling modes.
46581         * lib/msvc-inval.h: Don't include <stdlib.h> here.
46582         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
46583         macros.
46584         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
46585         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
46586         SANE_LIBRARY_HANDLING as a no-op.
46587         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
46588         <stdlib.h>.
46589         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
46591 2011-09-25  Bruno Haible  <bruno@clisp.org>
46593         msvc-inval: Make handler multithread-safe.
46594         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
46595         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
46596         declarations.
46597         (gl_msvc_inval_current): New declaration.
46598         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46599         Operate on the structure returned by gl_msvc_inval_current().
46600         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
46601         Remove varaiables.
46602         (tls_index, tls_initialized): New variables.
46603         (not_per_thread): New variable.
46604         (gl_msvc_inval_current): New function.
46605         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
46606         returned by gl_msvc_inval_current().
46608 2011-09-25  Bruno Haible  <bruno@clisp.org>
46610         msvc-inval: Install handler globally.
46611         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
46612         !_MSC_VER.
46613         (gl_msvc_invalid_parameter_handler): Remove declaration.
46614         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
46615         declarations.
46616         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46617         Install the handler globally, don't uninstall it.
46618         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
46619         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
46620         currently valid, call RaiseException instead.
46621         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
46622         for !_MSC_VER.
46624 2011-09-25  Bruno Haible  <bruno@clisp.org>
46626         strerror_r-posix: Fix for MSVC 9.
46627         * lib/strerror_r.c (local_snprintf): New function.
46628         (snprintf): Define to local_snprintf, not to _snprintf.
46630 2011-09-25  Bruno Haible  <bruno@clisp.org>
46632         ftruncate: Support for MSVC 9.
46633         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
46634         (chsize_nothrow): New function.
46635         (chsize): Redefine as a macro.
46636         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
46637         * modules/ftruncate (Depends-on): Add msvc-inval.
46639 2011-09-25  Bruno Haible  <bruno@clisp.org>
46641         New module 'fstat'.
46642         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
46643         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
46644         * lib/fchdir.c (rpl_fstat): Remove function.
46645         * m4/fstat.m4: New file.
46646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
46647         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
46648         declared.
46649         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
46650         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
46651         * modules/fstat: New file.
46652         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
46653         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
46654         is set.
46655         * doc/posix-functions/fstat.texi: Mention the new module and the
46656         problem on MSVC.
46657         * NEWS: Mention the change.
46658         * modules/acl (Depends-on): Add fstat.
46659         * modules/chdir-safer (Depends-on): Likewise.
46660         * modules/chown (Depends-on): Likewise.
46661         * modules/copy-file (Depends-on): Likewise.
46662         * modules/fchdir (Depends-on): Likewise.
46663         * modules/fdopendir (Depends-on): Likewise.
46664         * modules/fopen (Depends-on): Likewise.
46665         * modules/fts (Depends-on): Likewise.
46666         * modules/getcwd (Depends-on): Likewise.
46667         * modules/isapipe (Depends-on): Likewise.
46668         * modules/linkat (Depends-on): Likewise.
46669         * modules/lseek (Depends-on): Likewise.
46670         * modules/mkdir-p (Depends-on): Likewise.
46671         * modules/open (Depends-on): Likewise.
46672         * modules/openat (Depends-on): Likewise.
46673         * modules/read-file (Depends-on): Likewise.
46674         * modules/renameat (Depends-on): Likewise.
46675         * modules/utimens (Depends-on): Likewise.
46677 2011-09-25  Bruno Haible  <bruno@clisp.org>
46679         linkat: Fix compilation on MSVC 9.
46680         * lib/linkat.c: Don't include <stdint.h>.
46682 2011-09-25  Bruno Haible  <bruno@clisp.org>
46684         fclose: Support for MSVC 9.
46685         * lib/fclose.c: Include msvc-inval.h.
46686         (fclose_nothrow): New function.
46687         (rpl_fclose): Use it.
46688         * modules/fclose (Depends-on): Add msvc-inval.
46689         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
46691 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
46693         dup2: minor simplifications
46694         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
46695         that it's a performance win.
46696         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
46697         ! defined __CYGWIN__)" to "ifdef F_GETFL".
46699 2011-09-24  Jim Meyering  <meyering@redhat.com>
46701         test-futimens: avoid a warning from gcc -Wshadow
46702         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
46703         to avoid a shadowing warning.
46705 2011-09-24  Bruno Haible  <bruno@clisp.org>
46707         fdopen: Support for MSVC 9.
46708         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
46709         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
46710         * lib/fdopen.c: Include msvc-inval.h.
46711         (fdopen_nothrow): New function.
46712         (rpl_fdopen): Use it.
46713         * modules/fdopen (Depends-on): Add msvc-inval.
46714         * modules/fclose-tests (Depends-on): Add fdopen.
46715         * modules/fflush-tests (Depends-on): Likewise.
46716         * modules/fgetc-tests (Depends-on): Likewise.
46717         * modules/fputc-tests (Depends-on): Likewise.
46718         * modules/fread-tests (Depends-on): Likewise.
46719         * modules/freopen-tests (Depends-on): Likewise.
46720         * modules/fseeko-tests (Depends-on): Likewise.
46721         * modules/ftello-tests (Depends-on): Likewise.
46722         * modules/fwrite-tests  (Depends-on): Likewise.
46723         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
46725 2011-09-24  Bruno Haible  <bruno@clisp.org>
46727         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
46728         * modules/fgetc-tests (Depends-on): Add unistd.
46729         * modules/fputc-tests (Depends-on): Likewise.
46730         * modules/fread-tests (Depends-on): Likewise.
46731         * modules/fwrite-tests (Depends-on): Likewise.
46733 2011-09-24  Bruno Haible  <bruno@clisp.org>
46735         dup: Simplify autoconf test.
46736         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
46737         on gl_MSVC_INVAL's result.
46739 2011-09-24  Bruno Haible  <bruno@clisp.org>
46741         Tests for function fwrite().
46742         * modules/fwrite-tests: New file.
46743         * tests/test-fwrite.c: New file.
46744         * modules/stdio-tests (Depends-on): Add fwrite-tests.
46746         Tests for function fread().
46747         * modules/fread-tests: New file.
46748         * tests/test-fread.c: New file.
46749         * modules/stdio-tests (Depends-on): Add fread-tests.
46751         Activate fputc tests.
46752         * modules/stdio-tests (Depends-on): Add fputc-tests.
46754         Enhance fgetc, fputc tests.
46755         * tests/test-fgetc.c (main): Also test the stream's error indicator.
46756         * tests/test-fputc.c (main): Likewise.
46758 2011-09-24  Bruno Haible  <bruno@clisp.org>
46760         write: Support for MSVC 9.
46761         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46762         is not 1.
46763         * lib/write.c (write_nothrow): New function.
46764         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
46765         not 1. Use write_nothrow.
46766         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
46767         invalid parameter handler.
46768         (gl_PREREQ_WRITE): New macro.
46769         * modules/write (Depends-on): Add msvc-inval.
46770         (configure.ac): Invoke gl_PREREQ_WRITE.
46771         * doc/posix-functions/write.texi: Mention the problem on MSVC.
46773 2011-09-24  Bruno Haible  <bruno@clisp.org>
46775         read: Fix last commit.
46776         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
46778 2011-09-24  Bruno Haible  <bruno@clisp.org>
46780         dup2: Fix last commit.
46781         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
46782         (rpl_dup2): Disable fcntl workaround on native Windows.
46784         sigprocmask: Make code safer.
46785         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
46786         section that changes macro definitions for this compilation unit.
46788 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46790         dup2: clarify by coalescing Windows-specific material
46791         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
46792         "msvc-nothrow.h"' to the Windows-specific section, so that the
46793         Emacs source need not contain these include files.
46794         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
46795         Windows-specific fixes into this function rather than just the
46796         nothrow fix, as this shortens and clarifies the code.  Always
46797         define as a function, as that's a bit cleaner than having it be
46798         sometimes a function and sometimes a macro.
46799         (rpl_dup2): Move the Windows-specific stuff out of here and into
46800         ms_windows_dup2.  Don't protect the Haiku-related fix with
46801         "#if !defined __linux__", as the same code also works around
46802         a Linux kernel bug, and it doesn't add any system calls on any
46803         platform.  Add comment about FreeBSD 6.1.
46805         sigprocmask: move #include directive
46806         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
46807         Windows-specific section, so that the Emacs source need not
46808         contain msvc-inval.h.
46810 2011-09-23  Bruno Haible  <bruno@clisp.org>
46812         read: Support for MSVC 9.
46813         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46814         is not 1.
46815         * lib/read.c (read_nothrow): New function.
46816         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
46817         read_nothrow.
46818         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
46819         invalid parameter handler.
46820         (gl_PREREQ_READ): New macro.
46821         * modules/read (Depends-on): Add msvc-inval.
46822         (configure.ac): Invoke gl_PREREQ_READ.
46823         * doc/posix-functions/read.texi: Mention the problem on MSVC.
46825 2011-09-23  Bruno Haible  <bruno@clisp.org>
46827         close: Support for MSVC 9.
46828         * lib/close.c: Include <errno.h>, msvc-inval.h.
46829         (close_nothrow): New function.
46830         (rpl_close): Use it.
46831         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
46832         invalid parameter handler.
46833         * modules/close (Depends-on): Add msvc-inval.
46834         * modules/dup2-tests (Depends-on): Add close.
46835         * modules/dup3-tests (Depends-on): Likewise.
46836         * modules/fcntl-tests (Depends-on): Likewise.
46837         * modules/spawn-pipe-tests (Depends-on): Likewise.
46838         * modules/unistd-safer-tests (Depends-on): Likewise.
46839         * doc/posix-functions/close.texi: Mention the problem on MSVC.
46841 2011-09-23  Bruno Haible  <bruno@clisp.org>
46843         New module 'dup'.
46844         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
46845         Allow replacement.
46846         * lib/dup.c: New file.
46847         * lib/fchdir.c (rpl_dup): Remove function.
46848         * m4/dup.m4: New file.
46849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
46850         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
46851         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
46852         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
46853         * modules/dup: New file.
46854         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
46855         'dup' module is in use.
46856         * modules/fdopendir (Depends-on): Add dup.
46857         * modules/fdutimensat-tests (Depends-on): Likewise.
46858         * modules/fts (Depends-on): Likewise.
46859         * modules/futimens-tests (Depends-on): Likewise.
46860         * modules/posix_spawnp-tests (Depends-on): Likewise.
46861         * modules/unistd-safer-tests (Depends-on): Likewise.
46862         * modules/utimens-tests (Depends-on): Likewise.
46863         * doc/posix-functions/dup.texi: Mention the new module and the problem
46864         on MSVC.
46866 2011-09-23  Bruno Haible  <bruno@clisp.org>
46868         getdtablesize: Support for MSVC 9.
46869         * lib/getdtablesize.c: Include msvc-inval.h.
46870         (_setmaxstdio_nothrow): New function.
46871         (_setmaxstdio): Redefine it.
46872         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
46873         * modules/getdtablesize (Depends-on): Add msvc-inval.
46874         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
46876 2011-09-23  Bruno Haible  <bruno@clisp.org>
46878         signal-h: Rename from signal.
46879         * modules/signal-h: Renamed from modules/signal.
46880         * modules/pthread_sigmask (Depends-on): Update.
46881         * modules/raise (Depends-on): Likewise.
46882         * modules/sigaction (Depends-on): Likewise.
46883         * modules/sigpipe (Depends-on): Likewise.
46884         * modules/sigprocmask (Depends-on): Likewise.
46885         * modules/sys_select (Depends-on): Likewise.
46886         * modules/signal-h-tests: Renamed from modules/signal-tests.
46887         (Files, Depends-on, Makefile.am): Update.
46888         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
46889         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
46890         (Files, Makefile.am): Update.
46891         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
46892         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
46893         * modules/signal: New placeholder file.
46894         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
46895         * doc/posix-headers/signal.texi: Update.
46896         * NEWS: Mention the change.
46898 2011-09-23  Bruno Haible  <bruno@clisp.org>
46900         sigprocmask: Avoid crashes through signal() on MSVC 9.
46901         * lib/sigprocmask.c: Include msvc-inval.h.
46902         (signal_nothrow): New function.
46903         (signal): Redefine it.
46904         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
46905         * modules/sigprocmask (Depends-on): Add msvc-inval.
46906         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
46908 2011-09-23  Bruno Haible  <bruno@clisp.org>
46910         Tests for module 'raise'.
46911         * modules/raise-tests: New file.
46912         * tests/test-raise.c: New file.
46914         raise: Support for MSVC.
46915         * lib/signal.in.h (raise): New declaration.
46916         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
46917         for native Windows platforms.
46918         * m4/raise.m4: New file.
46919         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
46920         HAVE_RAISE, REPLACE_RAISE.
46921         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
46922         REPLACE_RAISE.
46923         * modules/raise (Status, Notice): Remove fields.
46924         (Files): Add m4/raise.m4.
46925         (Depends-on): Add signal, msvc-inval.
46926         (configure.ac): Use the common idioms.
46927         (Maintainer): Add me.
46928         * tests/test-signal-c++.cc: Check the signature of raise.
46929         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
46931 2011-09-23  Bruno Haible  <bruno@clisp.org>
46933         pipe2: Fix compilation on pre-C99 compilers.
46934         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
46936 2011-09-23  Bruno Haible  <bruno@clisp.org>
46938         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
46939         * lib/msvc-nothrow.h: New file.
46940         * lib/msvc-nothrow.c: New file.
46941         * m4/msvc-nothrow.m4: New file.
46942         * modules/msvc-nothrow: New file.
46943         * lib/dup2.c: Include msvc-nothrow.h.
46944         (rpl_dup2): No need to protect _get_osfhandle call here.
46945         * lib/accept4.c: Include msvc-nothrow.h.
46946         * lib/error.c: Likewise.
46947         * lib/fcntl.c: Likewise.
46948         * lib/lseek.c: Likewise.
46949         * lib/nonblocking.c: Likewise.
46950         * lib/poll.c: Likewise.
46951         * lib/read.c: Likewise.
46952         * lib/select.c: Likewise.
46953         * lib/sockets.h: Likewise.
46954         * lib/sockets.c: Likewise.
46955         * lib/stdio-read.c: Likewise.
46956         * lib/stdio-write.c: Likewise.
46957         * lib/write.c: Likewise.
46958         * lib/w32sock.h: Likewise.
46959         * lib/w32spawn.h: Likewise.
46960         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
46961         * lib/fsync.c: Likewise.
46962         * lib/isapipe.c: Likewise.
46963         * modules/dup2 (Depends-on): Add msvc-nothrow.
46964         * modules/accept4 (Depends-on): Likewise.
46965         * modules/error (Depends-on): Likewise.
46966         * modules/fcntl (Depends-on): Likewise.
46967         * modules/lseek (Depends-on): Likewise.
46968         * modules/nonblocking (Depends-on): Likewise.
46969         * modules/poll (Depends-on): Likewise.
46970         * modules/read (Depends-on): Likewise.
46971         * modules/select (Depends-on): Likewise.
46972         * modules/sockets (Depends-on): Likewise.
46973         * modules/sigpipe (Depends-on): Likewise.
46974         * modules/write (Depends-on): Likewise.
46975         * modules/accept (Depends-on): Likewise.
46976         * modules/bind (Depends-on): Likewise.
46977         * modules/connect (Depends-on): Likewise.
46978         * modules/gethostname (Depends-on): Likewise.
46979         * modules/getpeername (Depends-on): Likewise.
46980         * modules/getsockname (Depends-on): Likewise.
46981         * modules/getsockopt (Depends-on): Likewise.
46982         * modules/ioctl (Depends-on): Likewise.
46983         * modules/listen (Depends-on): Likewise.
46984         * modules/recv (Depends-on): Likewise.
46985         * modules/recvfrom (Depends-on): Likewise.
46986         * modules/send (Depends-on): Likewise.
46987         * modules/sendto (Depends-on): Likewise.
46988         * modules/setsockopt (Depends-on): Likewise.
46989         * modules/shutdown (Depends-on): Likewise.
46990         * modules/socket (Depends-on): Likewise.
46991         * modules/execute (Depends-on): Likewise.
46992         * modules/spawn-pipe (Depends-on): Likewise.
46993         * modules/flock (Depends-on): Likewise.
46994         * modules/fsync (Depends-on): Likewise.
46995         * modules/isapipe (Depends-on): Likewise.
46996         * tests/test-cloexec.c: Include msvc-nothrow.h.
46997         * tests/test-dup-safer.c: Likewise.
46998         * tests/test-dup2.c: Likewise.
46999         * tests/test-dup3.c: Likewise.
47000         * tests/test-fcntl.c: Likewise.
47001         * tests/test-pipe.c: Likewise.
47002         * tests/test-pipe2.c: Likewise.
47003         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
47004         * modules/unistd-safer-tests (Depends-on): Likewise.
47005         * modules/dup2-tests (Depends-on): Likewise.
47006         * modules/dup3-tests (Depends-on): Likewise.
47007         * modules/fcntl-tests (Depends-on): Likewise.
47008         * modules/pipe-posix-tests (Depends-on): Likewise.
47009         * modules/pipe2-tests (Depends-on): Likewise.
47011 2011-09-23  Bruno Haible  <bruno@clisp.org>
47013         dup2: Make code more maintainable.
47014         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
47015         (rpl_dup2): Use it.
47016         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
47017         * modules/dup2 (configure.ac): Invoke it.
47018         Reported by Paul Eggert.
47020 2011-09-23  Bruno Haible  <bruno@clisp.org>
47022         msvc-inval: Fix compilation error.
47023         * lib/msvc-inval.h: Include <excpt.h>.
47025 2011-09-23  Bruno Haible  <bruno@clisp.org>
47027         mkdir: Tweak for MSVC 9.
47028         * lib/sys_stat.in.h: Update comments.
47029         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
47031         Tests for module 'chdir'.
47032         * modules/chdir-tests: New file.
47033         * tests/test-chdir.c: New file.
47035         New module 'chdir'.
47036         * modules/chdir: New file.
47037         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
47038         (chdir): New declaration.
47039         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
47040         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
47041         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
47042         * tests/test-unistd-c++.cc: Check signature of chdir.
47043         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
47044         * modules/chdir-long (Depends-on): Add chdir.
47045         * modules/fchdir (Depends-on): Likewise.
47046         * modules/rename (Depends-on): Likewise.
47047         * modules/savewd (Depends-on): Likewise.
47049         rmdir: Support for mingw, MSVC 9.
47050         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
47051         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
47053         getcwd: Tweak for MSVC 9.
47054         * lib/unistd.in.h: Update comments.
47055         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
47057 2011-09-22  Bruno Haible  <bruno@clisp.org>
47059         strerror_r-posix: Avoid a link error on MSVC.
47060         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
47061         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
47063 2011-09-22  Bruno Haible  <bruno@clisp.org>
47065         select: Avoid link errors on MSVC.
47066         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
47067         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
47068         * modules/pselect (Link): Likewise.
47069         * NEWS: Mention the change.
47070         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
47071         test-select-stdin against $(LIB_SELECT).
47072         * modules/pselect-tests (Makefile.am): Link test-pselect against
47073         $(LIB_SELECT).
47075 2011-09-22  Bruno Haible  <bruno@clisp.org>
47077         select: Avoid compilation error on MSVC.
47078         * lib/select.c: Don't include <stdbool.h>.
47080 2011-09-21  Bruno Haible  <bruno@clisp.org>
47082         Consolidate all uses of PATH_MAX in *.m4 files.
47083         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
47084         macros.
47085         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
47086         and gl_PATHMAX_SNIPPET.
47087         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47088         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47089         * modules/chdir-long (Files): Add m4/pathmax.m4.
47090         * modules/getcwd (Files): Likewise.
47092 2011-09-21  Bruno Haible  <bruno@clisp.org>
47094         ftruncate: Un-deprecate, concentrate on Win32 support.
47095         * modules/ftruncate (Status, Notice): Remove sections.
47096         (Depends-on): Add largefile.
47097         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
47098         non-mingw platforms.
47099         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
47100         include <io.h>.
47101         * modules/perror-tests (Depends-on): Add ftruncate.
47102         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
47103         'ftruncate' module.
47105 2011-09-21  Bruno Haible  <bruno@clisp.org>
47107         Add dependencies to new dirent related modules.
47108         * modules/opendir (Depends-on): Add closedir.
47109         * modules/getcwd (Depends-on): Add opendir, closedir.
47110         * modules/dirent-safer-tests (Depends-on): Likewise.
47111         * modules/fdopendir-tests (Depends-on): Likewise.
47112         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
47113         * modules/renameat-tests (Depends-on): Likewise.
47115 2011-09-21  Bruno Haible  <bruno@clisp.org>
47117         opendir: Avoid compilation error on mingw.
47118         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
47119         * modules/opendir (Depends-on): Add unistd.
47121 2011-09-21  Bruno Haible  <bruno@clisp.org>
47123         ftruncate tests: Avoid a test failure on mingw.
47124         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
47126 2011-09-21  Bruno Haible  <bruno@clisp.org>
47128         select tests: Avoid test failures on OSF/1 5.1 and mingw.
47129         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
47130         native Windows.
47132 2011-09-21  Bruno Haible  <bruno@clisp.org>
47134         New module 'fdopen'.
47135         * lib/stdio.in.h (fdopen): New declaration.
47136         * lib/fdopen.c: New file.
47137         * m4/fdopen.m4: New file.
47138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
47139         REPLACE_FDOPEN.
47140         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
47141         REPLACE_FDOPEN.
47142         * modules/fdopen: New file.
47143         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
47144         * tests/test-stdio-c++.cc: Check signature of fdopen.
47145         * doc/posix-functions/fdopen.texi: Mention the new module.
47147 2011-09-21  Bruno Haible  <bruno@clisp.org>
47149         unlockpt tests: Avoid test failure on NetBSD 5.1.
47150         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
47151         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
47153 2011-09-21  Bruno Haible  <bruno@clisp.org>
47155         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
47156         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
47157         * tests/test-getlogin_r.c (main): Likewise.
47159 2011-09-20  Bruno Haible  <bruno@clisp.org>
47161         time tests: Don't require pid_t.
47162         * doc/posix-headers/time.texi: Revert last change.
47163         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
47164         * tests/test-time.c: Comment out the check for pid_t.
47166 2011-09-20  Bruno Haible  <bruno@clisp.org>
47168         fsync tests: Avoid a test failure on mingw.
47169         * tests/test-fsync.c (main): Allow a failure with EIO.
47171 2011-09-20  Bruno Haible  <bruno@clisp.org>
47173         euidaccess: Update comments.
47174         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
47176 2011-09-20  Bruno Haible  <bruno@clisp.org>
47178         Ensure EBADF returns for socket functions on mingw.
47179         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
47180         descriptor is invalid.
47181         * lib/bind.c (rpl_bind): Likewise.
47182         * lib/connect.c (rpl_connect): Likewise.
47183         * lib/getpeername.c (rpl_getpeername): Likewise.
47184         * lib/getsockname.c (rpl_getsockname): Likewise.
47185         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47186         * lib/listen.c (rpl_listen): Likewise.
47187         * lib/recv.c (rpl_recv): Likewise.
47188         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47189         * lib/send.c (rpl_send): Likewise.
47190         * lib/sendto.c (rpl_sendto): Likewise.
47191         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47192         * lib/shutdown.c (rpl_shutdown): Likewise.
47194 2011-09-20  Bruno Haible  <bruno@clisp.org>
47196         select tests: EBADF tests.
47197         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
47198         test_bad_fd): New functions.
47199         (test_function): Invoke also test_bad_fd.
47201 2011-09-20  Bruno Haible  <bruno@clisp.org>
47203         Tests for module 'posix_spawn_file_actions_addopen.
47204         * modules/posix_spawn_file_actions_addopen-tests: New file.
47205         * tests/test-posix_spawn_file_actions_addopen.c: New file.
47207         Tests for module 'posix_spawn_file_actions_adddup2'.
47208         * modules/posix_spawn_file_actions_adddup2-tests: New file.
47209         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
47211         Tests for module 'posix_spawn_file_actions_addclose'.
47212         * modules/posix_spawn_file_actions_addclose-tests: New file.
47213         * tests/test-posix_spawn_file_actions_addclose.c: New file.
47215 2011-09-20  Bruno Haible  <bruno@clisp.org>
47217         Tests for module 'unlockpt'.
47218         * modules/unlockpt-tests: New file.
47219         * tests/test-unlockpt.c: New file.
47220         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
47222         Tests for module 'grantpt'.
47223         * modules/grantpt-tests: New file.
47224         * tests/test-grantpt.c: New file.
47225         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
47227 2011-09-20  Bruno Haible  <bruno@clisp.org>
47229         freopen tests: EBADF tests.
47230         * tests/test-freopen.c: Include errno.h, unistd.h.
47231         (main): Add tests for EBADF, commented out for the moment.
47233         fclose tests: EBADF tests.
47234         * tests/test-fclose.c (main): Add tests for EBADF.
47236         fflush tests: EBADF tests.
47237         * tests/test-fflush.c: Include errno.h, macros.h.
47238         (main): Add tests for EBADF.
47240         ftello tests: EBADF tests.
47241         * tests/test-ftello4.sh: New file.
47242         * tests/test-ftello4.c: New file.
47243         * modules/ftello-tests (Files): Add them.
47244         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
47246         fseeko tests: EBADF tests.
47247         * tests/test-fseeko4.sh: New file.
47248         * tests/test-fseeko4.c: New file.
47249         * modules/fseeko-tests (Files): Add them.
47250         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
47252         Tests for function fputc().
47253         * modules/fputc-tests: New file.
47254         * tests/test-fputc.c: New file.
47255         * modules/stdio-tests (Depends-on): Add fputc-tests.
47257         Tests for function fgetc().
47258         * modules/fgetc-tests: New file.
47259         * tests/test-fgetc.c: New file.
47260         * modules/stdio-tests (Depends-on): Add fgetc-tests.
47262         Tests for function fdopen().
47263         * modules/fdopen-tests: New file.
47264         * tests/test-fdopen.c: New file.
47265         * modules/stdio-tests (Depends-on): Add fdopen-tests.
47267         Tests for module 'vdprintf'.
47268         * modules/vdprintf-tests: New file.
47269         * tests/test-vdprintf.c: New file.
47271         Tests for module 'dprintf'.
47272         * modules/dprintf-tests: New file.
47273         * tests/test-dprintf.c: New file.
47275 2011-09-20  Bruno Haible  <bruno@clisp.org>
47277         Tests for module 'ioctl'.
47278         * modules/ioctl-tests: New file.
47279         * tests/test-ioctl.c: New file.
47281 2011-09-20  Bruno Haible  <bruno@clisp.org>
47283         fcntl tests: EBADF tests.
47284         * tests/test-fcntl.c (main): Add more tests for EBADF.
47286 2011-09-20  Bruno Haible  <bruno@clisp.org>
47288         utimensat tests: EBADF tests.
47289         * tests/test-utimensat.c (main): Add tests for EBADF.
47291         renameat tests: EBADF tests.
47292         * tests/test-renameat.c (main): Add tests for EBADF.
47294         mkfifoat tests: EBADF tests.
47295         * tests/test-mkfifoat.c (main): Add tests for EBADF.
47297         readlinkat tests: EBADF tests.
47298         * tests/test-readlinkat.c (main): Add tests for EBADF.
47300         symlinkat tests: EBADF tests.
47301         * tests/test-symlinkat.c (main): Add tests for EBADF.
47303         linkat tests: EBADF tests.
47304         * tests/test-linkat.c (main): Add tests for EBADF.
47306         Tests for module 'faccessat'.
47307         * modules/faccessat-tests: New file.
47308         * tests/test-faccessat.c: New file.
47310         fdopendir tests: EBADF tests.
47311         * tests/test-fdopendir.c (main): Add more tests for EBADF.
47313         openat tests: EBADF tests.
47314         * tests/test-fchownat.c (main): Add tests for EBADF.
47315         * tests/test-fstatat.c (main): Likewise.
47316         * tests/test-mkdirat.c (main): Likewise.
47317         * tests/test-openat.c (main): Likewise.
47318         * tests/test-unlinkat.c (main): Likewise.
47319         * tests/test-fchmodat.c: New file.
47320         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
47321         (Makefile.am): Also run 'test-fchmodat'.
47323 2011-09-20  Bruno Haible  <bruno@clisp.org>
47325         utimens, futimens, fdutimensat tests: EBADF tests.
47326         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
47328         Tests for function fstat().
47329         * modules/fstat-tests: New file.
47330         * tests/test-fstat.c: New file.
47331         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
47333 2011-09-20  Bruno Haible  <bruno@clisp.org>
47335         test-ttyname_r tests: EBADF tests.
47336         * tests/test-ttyname_r.c (main): Add tests for EBADF.
47338         Tests for module 'isatty'.
47339         * modules/isatty-tests: New file.
47340         * tests/test-isatty.c: New file.
47342         Tests for module 'write'.
47343         * modules/write-tests: New file.
47344         * tests/test-write.c: New file.
47346         Tests for module 'read'.
47347         * modules/read-tests: New file.
47348         * tests/test-read.c: New file.
47350         pwrite tests: EBADF tests.
47351         * tests/test-pwrite.c (main): Add tests for EBADF.
47353         pread tests: EBADF tests.
47354         * tests/test-pread.c (main): Add tests for EBADF.
47356         lseek tests: EBADF tests.
47357         * tests/test-lseek.c (main): Add more tests for EBADF.
47359         Tests for module 'ftruncate'.
47360         * modules/ftruncate-tests: New file.
47361         * tests/test-ftruncate.sh: New file.
47362         * tests/test-ftruncate.c: New file.
47364         fsync tests: EBADF tests.
47365         * tests/test-fsync.c (main): Add more tests for EBADF.
47367         fdatasync tests: EBADF tests.
47368         * tests/test-fdatasync.c (main): Add more tests for EBADF.
47370         Tests for module 'fchown'.
47371         * modules/fchown-tests: New file.
47372         * tests/test-fchown.c: New file.
47374         Tests for module 'fchmod'.
47375         * modules/fchmod-tests: New file.
47376         * tests/test-fchmod.c: New file.
47378         fchdir tests: EBADF tests.
47379         * tests/test-fchdir.c (main): Add more tests for EBADF.
47381         dup2 tests: EBADF tests.
47382         * tests/test-dup2.c (main): Add more tests for EBADF.
47384         Tests for module 'dup'.
47385         * modules/dup-tests: New file.
47386         * tests/test-dup.c: New file.
47388         Tests for module 'close'.
47389         * modules/close-tests: New file.
47390         * tests/test-close.c: New file.
47392 2011-09-20  Bruno Haible  <bruno@clisp.org>
47394         Tests for module 'shutdown'.
47395         * modules/shutdown-tests: New file.
47396         * tests/test-shutdown.c: New file.
47398         Tests for module 'setsockopt'.
47399         * modules/setsockopt-tests: New file.
47400         * tests/test-setsockopt.c: New file.
47402         Tests for module 'sendto'.
47403         * modules/sendto-tests: New file.
47404         * tests/test-sendto.c: New file.
47406         Tests for module 'send'.
47407         * modules/send-tests: New file.
47408         * tests/test-send.c: New file.
47410         Tests for module 'recvfrom'.
47411         * modules/recvfrom-tests: New file.
47412         * tests/test-recvfrom.c: New file.
47414         Tests for module 'recv'.
47415         * modules/recv-tests: New file.
47416         * tests/test-recv.c: New file.
47418         Tests for module 'listen'.
47419         * modules/listen-tests: New file.
47420         * tests/test-listen.c: New file.
47422         Tests for module 'getsockopt'.
47423         * modules/getsockopt-tests: New file.
47424         * tests/test-getsockopt.c: New file.
47426         Tests for module 'getsockname'.
47427         * modules/getsockname-tests: New file.
47428         * tests/test-getsockname.c: New file.
47430         Tests for module 'getpeername'.
47431         * modules/getpeername-tests: New file.
47432         * tests/test-getpeername.c: New file.
47434         Tests for module 'connect'.
47435         * modules/connect-tests: New file.
47436         * tests/test-connect.c: New file.
47438         Tests for module 'bind'.
47439         * modules/bind-tests: New file.
47440         * tests/test-bind.c: New file.
47442         accept4 tests: Fix for native Windows.
47443         * tests/test-accept4.c: Include sockets.h.
47444         (main): Invoke gl_sockets_startup.
47445         * modules/accept4-tests (Depends-on): Add sockets.
47447         accept tests: Fix for native Windows.
47448         * tests/test-accept.c: Include sockets.h.
47449         (main): Invoke gl_sockets_startup.
47450         * modules/accept-tests (Depends-on): Add sockets.
47452 2011-09-19  Bruno Haible  <bruno@clisp.org>
47454         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
47455         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
47456         do...while(0).
47457         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
47458         Suggested by Paul Eggert.
47460 2011-09-19  Bruno Haible  <bruno@clisp.org>
47462         sched: Ensure pid_t is defined.
47463         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
47464         not define pid_t.
47465         * lib/sched.in.h: Include <sys/types.h>.
47466         * doc/posix-headers/sched.texi: Mention the pid_t problem.
47467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47469 2011-09-19  Bruno Haible  <bruno@clisp.org>
47471         msvc-inval: Ensure the entire expansion is a single statement.
47472         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
47473         of braces.
47475 2011-09-19  Jim Meyering  <meyering@redhat.com>
47477         tests: use printf, not echo in init.sh's warn_ function
47478         * tests/init.sh (warn_): Use printf, not echo.  The latter would
47479         misbehave when given strings containing a backslash or starting
47480         with e.g., -n.  James Youngman suggested setting IFS.
47482 2011-09-19  Eric Blake  <eblake@redhat.com>
47484         futimens: enhance test
47485         * tests/test-futimens.h (test_futimens): Also check for EBADF on
47486         closed non-negative fd.
47488         date: accept 'hence' as opposite of 'ago'
47489         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
47490         * tests/test-parse-datetime.c (main): Enhance test.
47491         Suggested by Jesse Wilson.
47493 2011-09-19  Jim Meyering  <meyering@redhat.com>
47495         getcwd: don't fail in a deep directory on a system without openat
47496         Before this change, getcwd would fail when called from a directory
47497         of depth PATH_MAX / 3 or greater.  That was due to the fact that
47498         the non-openat implementation used "..", "../..", "../../..", etc.
47499         to access ancestor directories.  With too many, that string would
47500         be longer than PATH_MAX.
47501         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
47502         using gnulib's openat replacement.
47503         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
47504         we're using the replacement function.
47506 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
47508         maint.mk: avoid warnings from perl about missing files
47509         * top/maint.mk (def_sym_regex): Ignore files listed in
47510         $(gl_other_headers_) that do not exist, say because a project
47511         does not use a corresponding module.
47513 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47515         stat: use pathmax.h only if needed
47516         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
47517         This is better for Emacs, which does not have a mingw port and
47518         therefore can avoid the pathmax module.
47520         utimens: remove dependency on dup2
47521         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
47522         to work around the Linux kernel bug.
47523         * modules/utimens (Depends-on): Remove dup2.
47525 2011-09-18  Bruno Haible  <bruno@clisp.org>
47527         inet_ntop, inet_pton: Look for it also in libresolv.
47528         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
47529         libnsl, search for it in libresolv.
47530         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47531         Needed on Solaris 7.
47533 2011-09-18  Bruno Haible  <bruno@clisp.org>
47535         accept, accept4 tests: Avoid link error on Solaris.
47536         * modules/accept-tests (Makefile.am): Link test-accept against
47537         $(LIBSOCKET).
47538         * modules/accept4-tests (Makefile.am): Link test-accept4 against
47539         $(LIBSOCKET).
47541         accept4: Avoid link error on Solaris.
47542         * modules/accept4 (Link): New section.
47544         socket functions: Avoid link errors on Solaris.
47545         * modules/accept (Depends-on): Add socketlib.
47546         (Link): New section.
47547         * modules/bind (Depends-on): Add socketlib.
47548         (Link): New section.
47549         * modules/connect (Depends-on): Add socketlib.
47550         (Link): New section.
47551         * modules/getpeername (Depends-on): Add socketlib.
47552         (Link): New section.
47553         * modules/getsockname (Depends-on): Add socketlib.
47554         (Link): New section.
47555         * modules/getsockopt (Depends-on): Add socketlib.
47556         (Link): New section.
47557         * modules/listen (Depends-on): Add socketlib.
47558         (Link): New section.
47559         * modules/recv (Depends-on): Add socketlib.
47560         (Link): New section.
47561         * modules/recvfrom (Depends-on): Add socketlib.
47562         (Link): New section.
47563         * modules/send (Depends-on): Add socketlib.
47564         (Link): New section.
47565         * modules/sendto (Depends-on): Add socketlib.
47566         (Link): New section.
47567         * modules/setsockopt (Depends-on): Add socketlib.
47568         (Link): New section.
47569         * modules/shutdown (Depends-on): Add socketlib.
47570         (Link): New section.
47571         * modules/socket (Depends-on): Add socketlib.
47572         (Link): New section.
47574 2011-09-18  Bruno Haible  <bruno@clisp.org>
47576         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
47577         * tests/test-ptsname.c (main): Terminate the test if it takes longer
47578         than 5 seconds.
47579         * modules/ptsname-tests (configure.ac): Test for alarm.
47581 2011-09-18  Bruno Haible  <bruno@clisp.org>
47583         posix_spawn_file_actions_add*: Fix module dependencies.
47584         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
47585         posix_spawn_file_actions_init.
47586         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
47587         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
47589 2011-09-18  Bruno Haible  <bruno@clisp.org>
47591         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
47592         * tests/test-rename.h (test_rename): Allow error code EEXIST.
47593         * tests/test-renameat.c (main): Likewise.
47595 2011-09-18  Bruno Haible  <bruno@clisp.org>
47597         Tests for module 'accept4'.
47598         * modules/accept4-tests: New file.
47599         * tests/test-accept4.c: New file.
47601 2011-09-18  Bruno Haible  <bruno@clisp.org>
47603         Tests for module 'accept'.
47604         * modules/accept-tests: New file.
47605         * tests/test-accept.c: New file.
47607 2011-09-18  Bruno Haible  <bruno@clisp.org>
47609         dup2: Support for MSVC.
47610         * lib/dup2.c: Include msvc-inval.h.
47611         (rpl_dup2): Handle invalid parameter notifications during dup2 and
47612         _get_osfhandle calls.
47613         * modules/dup2 (Depends-on): Add msvc-inval.
47614         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
47616         New module 'msvc-inval'.
47617         * lib/msvc-inval.h: New file.
47618         * lib/msvc-inval.c: New file.
47619         * m4/msvc-inval.m4: New file.
47620         * modules/msvc-inval: New file.
47622 2011-09-17  Bruno Haible  <bruno@clisp.org>
47624         Tests for module 'pclose'.
47625         * modules/pclose-tests: New file.
47627         New module 'pclose'.
47628         * lib/stdio.in.h (pclose): New declaration.
47629         * lib/pclose.c: New file.
47630         * m4/pclose.m4: New file.
47631         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
47632         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
47633         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
47634         * modules/pclose: New file.
47635         * modules/popen-tests (Depends-on): Add pclose.
47636         * modules/popen-safer-tests (Depends-on): Likewise.
47637         * doc/posix-functions/pclose.texi: Mention the new module.
47639 2011-09-17  Bruno Haible  <bruno@clisp.org>
47641         popen: Support for MSVC.
47642         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
47643         * lib/popen.c (popen): Provide alternate definition for native Windows.
47644         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
47645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
47646         * modules/popen (Depends-on, configure.ac): Update condition.
47647         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
47648         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
47649         fixed.
47651 2011-09-17  Bruno Haible  <bruno@clisp.org>
47653         isnanl, isnand, isnanf: Work around MSVC bug.
47654         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
47656 2011-09-17  Bruno Haible  <bruno@clisp.org>
47658         sys_socket tests: Fix recent mistake.
47659         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
47661 2011-09-17  Bruno Haible  <bruno@clisp.org>
47663         putenv: Support for MSVC.
47664         * modules/putenv (Depends-on): Add environ.
47665         * lib/putenv.c (environ): Disable declaration.
47666         * lib/unistd.in.h: Update comment.
47668 2011-09-17  Bruno Haible  <bruno@clisp.org>
47670         math: Avoid macro redefinition warnings on MSVC.
47671         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
47672         Undefine before redefining.
47674 2011-09-17  Bruno Haible  <bruno@clisp.org>
47676         doc: Mention functions which are declared as macros.
47677         * doc/posix-functions/*[fl].texi: Mention that some functions are
47678         defined as macros with arguments only.
47680 2011-09-17  Bruno Haible  <bruno@clisp.org>
47682         Add dependencies to new dirent related modules.
47683         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
47684         * modules/fts (Depends-on): Likewise.
47685         * modules/glob (Depends-on): Likewise.
47686         * modules/savedir (Depends-on): Likewise.
47687         * modules/scandir (Depends-on): Likewise.
47688         * modules/dirent-safer (Depends-on): Add opendir, closedir.
47689         * modules/fdopendir (Depends-on): Add opendir.
47691 2011-09-17  Bruno Haible  <bruno@clisp.org>
47693         inet_pton: Support for MSVC on Windows Vista or newer.
47694         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
47695         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
47696         HAVE_DECL_INET_PTON is defined.
47697         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
47698         On platforms with <winsock2.h>, test whether inet_pton is declared in
47699         <ws2tcpip.h>. If so, arrange to replace it.
47700         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
47701         REPLACE_INET_PTON.
47702         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
47703         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
47704         (Depends-on, configure.ac): Update condition.
47705         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
47707 2011-09-17  Bruno Haible  <bruno@clisp.org>
47709         inet_ntop: Support for MSVC on Windows Vista or newer.
47710         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
47711         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
47712         HAVE_DECL_INET_NTOP is defined.
47713         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
47714         On platforms with <winsock2.h>, test whether inet_ntop is declared in
47715         <ws2tcpip.h>. If so, arrange to replace it.
47716         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
47717         REPLACE_INET_NTOP.
47718         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
47719         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
47720         (Depends-on, configure.ac): Update condition.
47721         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
47723 2011-09-16  Eric Blake  <eblake@redhat.com>
47725         test-fsync: yet another enhancement
47726         * tests/test-fsync.c (main): Also test behavior on read-only text
47727         file.
47729 2011-09-16  Bruno Haible  <bruno@clisp.org>
47731         Enhance fsync, fdatasync tests.
47732         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
47733         * tests/test-fdatasync.c (main): Likewise.
47735 2011-09-16  Bruno Haible  <bruno@clisp.org>
47737         Support for MSVC compiler: Ensure mode_t gets defined.
47738         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
47739         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
47740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47741         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
47742         * tests/test-fcntl-h.c: Check that mode_t is defined.
47743         * tests/test-sys_stat.c: Likewise.
47744         * tests/test-sys_types.c: Likewise.
47745         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
47746         * doc/posix-headers/sys_stat.texi: Likewise.
47747         * doc/posix-headers/sys_types.texi: Likewise.
47749 2011-09-16  Bruno Haible  <bruno@clisp.org>
47751         sys_stat: Support for MSVC.
47752         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
47753         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
47754         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
47755         MSVC.
47757 2011-09-16  Bruno Haible  <bruno@clisp.org>
47759         Support for MSVC compiler: Ensure off_t gets defined.
47760         * lib/unistd.in.h: Include <sys/types.h>.
47761         * tests/test-fcntl-h.c: Check that off_t is defined.
47762         * tests/test-sys_stat.c: Likewise.
47763         * tests/test-sys_types.c: Likewise.
47765 2011-09-16  Eric Blake  <eblake@redhat.com>
47767         fdatasync: port to Solaris
47768         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
47769         * modules/fdatasync (Link): Document it.
47770         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
47772         fdatasync: port to MacOS X 10.7
47773         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
47774         declared.
47775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
47776         * modules/unistd (Makefile.am): Substitute it.
47777         * lib/unistd.in.h (fdatasync): Declare on MacOS.
47778         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
47780         fdatasync: minor improvements
47781         * modules/fdatasync (Depends-on): Add condition for fsync.
47782         * lib/fdatasync.c (fdatasync): Add comment.
47783         * tests/test-unistd-c++.cc: Test fdatasync.
47785         unistd: update refs to newer POSIX
47786         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
47787         Suggested by Bruno Haible.
47789         fdatasync: new module
47790         * modules/fsync (Description): Document difference to fdatasync.
47791         * modules/fdatasync: New module.
47792         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
47793         * lib/fdatasync.c (fdatasync): Likewise.
47794         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
47795         defaults.
47796         * modules/unistd (Makefile.am): Set witnesses.
47797         * lib/unistd.in.h (fdatasync): Declare.
47798         * MODULES.html.sh: Document it.
47799         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
47800         * modules/fdatasync-tests: New test.
47801         * tests/test-fdatasync.c: Likewise.
47803 2011-09-16  Eric Blake  <eblake@redhat.com>
47805         test-fsync: enhance tests
47806         * modules/fsync-tests (Depends-on): Add errno, for mingw.
47807         * tests/test-fsync.c (main): Enhance test.
47809 2011-09-15  Bruno Haible  <bruno@clisp.org>
47811         Support for MSVC compiler: Ensure ssize_t gets defined.
47812         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
47813         * doc/posix-headers/stdio.texi: Likewise.
47814         * modules/stdio (Depends-on): Add ssize_t.
47815         * modules/sys_socket (Depends-on): Likewise.
47816         * modules/sys_types (Depends-on): Likewise.
47817         * modules/sys_uio (Depends-on): Likewise.
47818         * modules/unistd (Depends-on): Likewise.
47819         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
47820         * tests/test-sys_types.c: Check that ssize_t is defined.
47822 2011-09-14  Bruno Haible  <bruno@clisp.org>
47824         Avoid using #, the m4 comment starter character, near brackets.
47825         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
47826         delimiter character in sed expressions.
47827         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
47828         Suggested by Eric Blake.
47830         Properly quote AC_CHECK_DECLS' 4th argument.
47831         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
47832         argument.
47833         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47834         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47835         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47836         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
47837         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47838         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
47839         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
47840         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
47841         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
47842         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47843         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
47844         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47845         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47846         * m4/isinf.m4 (gl_ISINF): Likewise.
47847         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47848         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47849         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47850         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47852         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47853         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47854         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47855         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
47856         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47857         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47858         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47859         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
47860         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47862         Reported by Eric Blake.
47864         Properly quote AC_CHECK_DECL's 4th argument.
47865         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
47866         argument.
47867         * m4/argp.m4 (gl_ARGP): Likewise.
47868         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47869         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47870         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47871         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47872         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
47873         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
47874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
47875         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47876         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47877         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47878         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47879         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47880         Reported by Eric Blake.
47882 2011-09-14  Eric Blake  <eblake@redhat.com>
47884         opendir: avoid compile warning
47885         * lib/opendir.c (includes): Always include errno.h.
47886         Reported by Tatsuro MATSUOKA.
47888 2011-09-14  Jim Meyering  <meyering@redhat.com>
47890         maint.mk: sc_tight_scope: propagate failure from sub-make
47891         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
47892         Reported by Martin von Gagern.
47894 2011-09-13  Bruno Haible  <bruno@clisp.org>
47896         tempname: Support for MSVC.
47897         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
47898         MSVC.
47899         * modules/tempname (Depends-on): Add fcntl-h.
47901 2011-09-13  Bruno Haible  <bruno@clisp.org>
47903         sys_time: Support for MSVC.
47904         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
47905         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
47906         include <winsock2.h>.
47907         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
47908         function declarations that collide with POSIX.
47909         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
47910         (Makefile.am): Substitute HAVE_WINSOCK2_H.
47912 2011-09-13  Bruno Haible  <bruno@clisp.org>
47914         stat: Support for MSVC.
47915         * lib/stat.c: Include pathmax.h.
47916         * modules/stat (Depends-on): Add pathmax.
47918         pathmax: Support for native Windows.
47919         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
47921 2011-09-12  Bruno Haible  <bruno@clisp.org>
47923         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
47924         * lib/dirent.in.h (struct dirent): New type.
47925         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
47926         DT_WHT): New macros.
47927         (DIR): New type.
47928         (opendir, closedir): Declare only if the module 'opendir' is enabled.
47929         (readdir, rewinddir): New declarations.
47930         * lib/dirent-private.h: New file.
47931         * lib/opendir.c: New file.
47932         * lib/readdir.c: New file.
47933         * lib/rewinddir.c: New file.
47934         * lib/closedir.c: New file.
47935         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
47936         * m4/opendir.m4: New file.
47937         * m4/readdir.m4: New file.
47938         * m4/rewinddir.m4: New file.
47939         * m4/closedir.m4: New file.
47940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
47941         REPLACE_CLOSEDIR here.
47942         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
47943         readdir, rewinddir are declared.
47944         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
47945         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
47946         HAVE_REWINDDIR, HAVE_CLOSEDIR.
47947         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
47948         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
47949         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
47950         * modules/opendir: New file.
47951         * modules/readdir: New file.
47952         * modules/rewinddir: New file.
47953         * modules/closedir: New file.
47954         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
47955         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
47956         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
47957         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
47958         * NEWS: Mention the 'fchdir' change.
47960 2011-09-11  Bruno Haible  <bruno@clisp.org>
47962         asm-underscore.m4: Support for MSVC.
47963         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
47964         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
47966 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
47968         Doc about crypt functions.
47969         * doc/posix-functions/crypt.texi: Expand range of glibc versions
47970         needing for _GNU_SOURCE to get crypt.
47971         * doc/posix-functions/encrypt.texi: Likewise.
47972         * doc/posix-functions/setkey.texi: Likewise.
47974 2011-09-11  Bruno Haible  <bruno@clisp.org>
47976         doc: Update regarding MSVC 9.
47977         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
47978         tested".
47979         * doc/posix-functions/*.texi: Update with info about MSVC 9.
47980         * doc/posix-headers/*.texi: Likewise.
47981         * doc/pastposix-functions/*.texi: Likewise.
47982         * doc/glibc-functions/*.texi: Likewise.
47983         * doc/glibc-headers/*.texi: Likewise.
47985 2011-09-11  Bruno Haible  <bruno@clisp.org>
47987         unistd et al.: Don't assume <unistd.h> exists.
47988         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
47989         does not exist.
47990         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
47991         exist. But include <stdlib.h>.
47992         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
47993         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
47994         symlink() does not exist.
47995         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
47996         include <io.h> instead.
47997         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
47998         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
47999         include <direct.h> instead.
48000         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48001         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48002         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
48003         <io.h> instead.
48004         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
48005         correctly if the system does not have hard links.
48006         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
48007         <direct.h> instead.
48008         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
48009         it when looking for function declarations.
48010         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
48011         <direct.h> and <io.h> instead.
48012         * doc/posix-headers/unistd.texi: More details about MSVC problem.
48014 2011-09-11  Bruno Haible  <bruno@clisp.org>
48016         strcase: Support for MSVC.
48017         * modules/strcase (Status, Notice): Remove obsoletion mark.
48018         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
48019         * doc/posix-functions/strncasecmp.texi: Likewise.
48021         strings: Don't assume <strings.h> exists.
48022         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
48023         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
48024         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
48025         * doc/posix-headers/strings.texi: Mention the MSVC problem.
48027 2011-09-11  Bruno Haible  <bruno@clisp.org>
48029         dirent: Don't assume <dirent.h> exists.
48030         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
48031         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
48032         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
48033         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
48035 2011-09-11  Bruno Haible  <bruno@clisp.org>
48037         Fix wint_t on MSVC.
48038         * lib/wchar.in.h (wint_t): On MSVC, override it.
48039         * lib/wctype.in.h (wint_t): Likewise.
48040         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
48041         MSVC.
48042         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
48043         * doc/posix-headers/wctype.texi: Likewise.
48045 2011-09-11  Bruno Haible  <bruno@clisp.org>
48047         sys_types: Fix typo.
48048         * lib/sys_types.in.h: Fix typo in comment.
48049         Reported by Paul Eggert.
48051         Support for MSVC compiler: Ensure size_t gets defined.
48052         * modules/strings (Depends-on): Add 'sys_types'.
48053         * modules/sys_uio (Depends-on): Likewise.
48054         * lib/sys_uio.in.h: Update comment.
48056         C++ tests for module 'sys_types'.
48057         * modules/sys_types-c++-tests: New file.
48058         * tests/test-sys_types-c++.cc: New file.
48060         Tests for module 'sys_types'.
48061         * modules/sys_types-tests: New file.
48062         * tests/test-sys_types.c: New file.
48064         New module 'sys_types'.
48065         * lib/sys_types.in.h: New file.
48066         * m4/sys_types_h.m4: New file.
48067         * modules/sys_types: New file.
48068         * doc/posix-headers/sys_types.texi: Mention the new module and the
48069         size_t problem on MSVC 9.
48071 2011-09-11  Bruno Haible  <bruno@clisp.org>
48073         Support for MSVC compiler: Avoid division by a literal 0.
48074         * lib/math.in.h (NAN): Define through a function call also on MSVC.
48075         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
48076         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
48077         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
48078         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
48079         * tests/infinity.h: New file.
48080         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
48081         on MSVC.
48082         * tests/test-ceilf1.c: Include infinity.h.
48083         (main): Use Infinityf.
48084         * tests/test-ceil1.c: Include infinity.h.
48085         (main): Use Infinityd.
48086         * tests/test-ceill.c: Include infinity.h.
48087         (main): Use Infinityl.
48088         * tests/test-dprintf-posix.c: Include infinity.h.
48089         (test_function): Use Infinityd.
48090         * tests/test-floorf1.c: Include infinity.h.
48091         (main): Use Infinityf.
48092         * tests/test-floor1.c: Include infinity.h.
48093         (main): Use Infinityd.
48094         * tests/test-floorl.c: Include infinity.h.
48095         (main): Use Infinityl.
48096         * tests/test-fprintf-posix.c: Include infinity.h.
48097         (test_function): Use Infinityd.
48098         * tests/test-frexp.c: Include infinity.h.
48099         (main): Use Infinityd.
48100         * tests/test-frexpl.c: Include infinity.h.
48101         (main): Use Infinityl.
48102         * tests/test-isfinite.c: Include infinity.h.
48103         (test_isfinitef): Use Infinityf.
48104         (test_isfinited): Use Infinityd.
48105         (test_isfinitel): Use Infinityl.
48106         * tests/test-isinf.c: Include infinity.h.
48107         (test_isinff): Use Infinityf.
48108         (test_isinfd): Use Infinityd.
48109         (test_isinfl): Use Infinityl.
48110         * tests/test-isnan.c: Include infinity.h.
48111         (test_float): Use Infinityf.
48112         (test_double): Use Infinityd.
48113         (test_long_double): Use Infinityl.
48114         * tests/test-isnanf.h: Include infinity.h.
48115         (main): Use Infinityf.
48116         * tests/test-isnand.h: Include infinity.h.
48117         (main): Use Infinityd.
48118         * tests/test-isnanl.h: Include infinity.h.
48119         (main): Use Infinityl.
48120         * tests/test-ldexpl.c: Include infinity.h.
48121         (main): Use Infinityl.
48122         * tests/test-printf-posix.h: Include infinity.h.
48123         (test_function): Use Infinityd.
48124         * tests/test-roundf1.c: Include infinity.h.
48125         (main): Use Infinityf.
48126         * tests/test-round1.c: Include infinity.h.
48127         (main): Use Infinityd.
48128         * tests/test-roundl.c: Include infinity.h.
48129         (main): Use Infinityl.
48130         * tests/test-signbit.c: Include infinity.h.
48131         (test_signbitf): Use Infinityf.
48132         (test_signbitd): Use Infinityd.
48133         (test_signbitl): Use Infinityl.
48134         * tests/test-snprintf-posix.h: Include infinity.h.
48135         (test_function): Use Infinityd, Infinityl.
48136         * tests/test-sprintf-posix.h: Include infinity.h.
48137         (test_function): Use Infinityd, Infinityl.
48138         * tests/test-truncf1.c: Include infinity.h.
48139         (main): Use Infinityf.
48140         * tests/test-trunc1.c: Include infinity.h.
48141         (main): Use Infinityd.
48142         * tests/test-truncl.c: Include infinity.h.
48143         (main): Use Infinityl.
48144         * tests/test-vasnprintf-posix.c: Include infinity.h.
48145         (test_function): Use Infinityd, Infinityl.
48146         * tests/test-vasprintf-posix.c: Include infinity.h.
48147         (test_function): Use Infinityd, Infinityl.
48148         * modules/ceilf-tests (Files): Add tests/infinity.h.
48149         * modules/ceil-tests (Files): Likewise.
48150         * modules/ceill-tests (Files): Likewise.
48151         * modules/dprintf-posix-tests (Files): Likewise.
48152         * modules/floorf-tests (Files): Likewise.
48153         * modules/floor-tests (Files): Likewise.
48154         * modules/floorl-tests (Files): Likewise.
48155         * modules/fprintf-posix-tests (Files): Likewise.
48156         * modules/frexp-tests (Files): Likewise.
48157         * modules/frexp-nolibm-tests (Files): Likewise.
48158         * modules/frexpl-tests (Files): Likewise.
48159         * modules/frexpl-nolibm-tests (Files): Likewise.
48160         * modules/isfinite-tests (Files): Likewise.
48161         * modules/isinf-tests (Files): Likewise.
48162         * modules/isnan-tests (Files): Likewise.
48163         * modules/isnanf-tests (Files): Likewise.
48164         * modules/isnanf-nolibm-tests (Files): Likewise.
48165         * modules/isnand-tests (Files): Likewise.
48166         * modules/isnand-nolibm-tests (Files): Likewise.
48167         * modules/isnanl-tests (Files): Likewise.
48168         * modules/isnanl-nolibm-tests (Files): Likewise.
48169         * modules/ldexpl-tests (Files): Likewise.
48170         * modules/printf-posix-tests (Files): Likewise.
48171         * modules/roundf-tests (Files): Likewise.
48172         * modules/round-tests (Files): Likewise.
48173         * modules/roundl-tests (Files): Likewise.
48174         * modules/signbit-tests (Files): Likewise.
48175         * modules/snprintf-posix-tests (Files): Likewise.
48176         * modules/sprintf-posix-tests (Files): Likewise.
48177         * modules/truncf-tests (Files): Likewise.
48178         * modules/trunc-tests (Files): Likewise.
48179         * modules/truncl-tests (Files): Likewise.
48180         * modules/vasnprintf-posix-tests (Files): Likewise.
48181         * modules/vasprintf-posix-tests (Files): Likewise.
48182         * modules/vdprintf-posix-tests (Files): Likewise.
48183         * modules/vfprintf-posix-tests (Files): Likewise.
48184         * modules/vprintf-posix-tests (Files): Likewise.
48185         * modules/vsnprintf-posix-tests (Files): Likewise.
48186         * modules/vsprintf-posix-tests (Files): Likewise.
48187         * modules/xprintf-posix-tests (Files): Likewise.
48189 2011-09-11  Bruno Haible  <bruno@clisp.org>
48191         Ensure pid_t gets defined.
48192         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
48193         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
48194         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48195         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48196         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48197         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
48198         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48199         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48200         * tests/test-fcntl-h.c: Check that pid_t is defined.
48201         * tests/test-sched.c: Likewise.
48202         * tests/test-termios.c: Likewise.
48203         * tests/test-time.c: Likewise.
48204         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
48205         * doc/posix-headers/signal.texi: Likewise.
48206         * doc/posix-headers/sys_types.texi: Likewise.
48207         * doc/posix-headers/time.texi: Likewise.
48209 2011-09-11  Bruno Haible  <bruno@clisp.org>
48211         acl: Fix compilation on Solaris 10 (older version).
48212         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
48213         of ACE_EVERYONE.
48214         * lib/set-mode-acl.c (qset_acl): Likewise.
48215         Reported by Christian Jullien <eligis@orange.fr>.
48217 2011-09-10  Bruno Haible  <bruno@clisp.org>
48219         iconv, unsetenv: Add support for MSVC compiler.
48220         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
48221         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
48223 2011-09-10  Bruno Haible  <bruno@clisp.org>
48225         *printf: Add support for MSVC compiler.
48226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
48227         handles the exception caused by the %n directive. When cross-compiling,
48228         guess no on native Windows.
48229         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48230         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
48231         emulate it through vsnprintf.
48232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
48233         * doc/posix-functions/dprintf.texi: Update documentation regarding
48234         MSVC 9.
48235         * doc/posix-functions/fprintf.texi: Likewise.
48236         * doc/posix-functions/printf.texi: Likewise.
48237         * doc/posix-functions/snprintf.texi: Likewise.
48238         * doc/posix-functions/sprintf.texi: Likewise.
48239         * doc/posix-functions/swprintf.texi: Likewise.
48240         * doc/posix-functions/vdprintf.texi: Likewise.
48241         * doc/posix-functions/vfprintf.texi: Likewise.
48242         * doc/posix-functions/vprintf.texi: Likewise.
48243         * doc/posix-functions/vsnprintf.texi: Likewise.
48244         * doc/posix-functions/vsprintf.texi: Likewise.
48245         * doc/glibc-functions/asprintf.texi: Likewise.
48246         * doc/glibc-functions/obstack_printf.texi: Likewise.
48247         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48248         * doc/glibc-functions/vasprintf.texi: Likewise.
48250 2011-09-10  Bruno Haible  <bruno@clisp.org>
48252         nocrash: Add support for native Windows.
48253         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
48255 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
48256             Bruno Haible  <bruno@clisp.org>
48258         absolute-header, include-next: Add support for MSVC compiler.
48259         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
48260         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
48261         directory separator in #line directives.
48262         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
48263         recognize also backslash as directory separator in #line directives.
48265 2011-09-08  Jim Meyering  <meyering@redhat.com>
48267         maint.mk: mark the post-release commit log with "maint: " prefix
48268         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
48269         one-line commit-log summary.
48271 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
48272             Bruno Haible  <bruno@clisp.org>
48274         Doc about crypt functions.
48275         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
48276         systems.
48277         * doc/posix-functions/encrypt.texi: Likewise.
48278         * doc/posix-functions/setkey.texi: Likewise.
48280 2011-09-08  Simon Josefsson  <simon@josefsson.org>
48282         * lib/gc.h: Fix copyright header.
48284 2011-09-07  Bruno Haible  <bruno@clisp.org>
48286         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
48287         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
48288         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
48290 2011-09-07  Bruno Haible  <bruno@clisp.org>
48292         openat: Work around compilation error with OSF/1 5.1 DTK cc.
48293         * lib/fopen.c: Use different syntax for include of <stdio.h>.
48294         * lib/freopen.c: Likewise.
48295         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
48296         * lib/lstat.c: Likewise.
48297         * lib/stat.c: Likewise.
48298         * lib/open.c: Use different syntax for include of <fcntl.h>.
48299         * lib/openat.c: Include fcntl.h again, explicitly.
48301 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
48303         parse-datetime: document the newly accepted format
48304         * doc/parse-datetime.texi (Combined date and time of day items):
48305         New section.
48307 2011-09-06  Bruno Haible  <bruno@clisp.org>
48309         acl: Fix a test failure on newer Solaris 10 with ZFS.
48310         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
48311         ENOSYS as no ACL.
48312         Reported by Jim Meyering.
48314 2011-09-06  Bruno Haible  <bruno@clisp.org>
48316         acl: Update for AIX >= 5.3 with NFS.
48317         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
48318         ENOSYS as no ACL.
48320         acl: Fix a test failure on AIX >= 5.3 with NFS.
48321         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
48322         as no ACL.
48324 2011-09-06  Bruno Haible  <bruno@clisp.org>
48326         acl: Fix a test failure on IRIX 6.5 with NFS.
48327         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
48328         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
48329         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
48330         * lib/copy-acl.c (qcopy_acl): Likewise.
48332 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48334         openat: port to AIX 7.1 with large files
48335         AIX 7.1 does a "#define openat open64at" if large files are in use,
48336         so we can't simply #undef openat.  Use the orig_openat trick (similar
48337         to orig_open in lib/open.c) to work around the problem.  Problem
48338         reported by Kevin Brott for GNU tar, in the thread containing
48339         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
48340         * lib/openat.c (__need_system_fcntl_h): Define first.
48341         Include <fcntl.h> and <sys/types.h> before undefining.
48342         (orig_openat) [HAVE_OPENAT]: New inline function.
48343         (openat) [HAVE_OPENAT]: Do not undef.
48344         (rpl_openat): Use orig_openat, not openat.
48346 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48347             Bruno Haible  <bruno@clisp.org>
48349         acl: Avoid errors on NonStop Kernel.
48350         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
48351         ENOTSUP errors.
48353 2011-09-05  Bruno Haible  <bruno@clisp.org>
48355         acl: Clean up Solaris code.
48356         * lib/acl-internal.h: Remove no-op #if.
48357         * lib/file-has-acl.c: Likewise.
48358         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
48359         * lib/copy-acl.c (qcopy_acl): Likewise.
48361 2011-09-05  Bruno Haible  <bruno@clisp.org>
48363         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
48364         binaries built on the original Solaris 10.
48365         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
48366         trivial.
48368 2011-09-05  Bruno Haible  <bruno@clisp.org>
48370         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48371         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
48372         10.
48373         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
48374         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
48375         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
48376         instead of acl_get, facl_get, acl_set, facl_set.
48378 2011-09-05  Bruno Haible  <bruno@clisp.org>
48380         copy-file: Try unit tests on more file systems.
48381         * tests/test-copy-file-1.sh: New file.
48382         * tests/test-copy-file-2.sh: New file.
48383         * modules/copy-file-tests (Files): Add them.
48384         (Makefile.am): Add them to TESTS.
48386         acl: Try unit tests on more file systems.
48387         * tests/test-file-has-acl-1.sh: New file.
48388         * tests/test-file-has-acl-2.sh: New file.
48389         * tests/test-set-mode-acl-1.sh: New file.
48390         * tests/test-set-mode-acl-2.sh: New file.
48391         * tests/test-copy-acl-1.sh: New file.
48392         * tests/test-copy-acl-2.sh: New file.
48393         * modules/acl-tests (Files): Add them.
48394         (Makefile.am): Add them to TESTS.
48396 2011-09-04  Bruno Haible  <bruno@clisp.org>
48398         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48399         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
48400         10.
48401         (OLD_ALLOW, OLD_DENY): New macros.
48402         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
48403         ACE_ACCESS_ALLOWED_ACE_TYPE.
48404         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
48405         ACE_ACCESS_DENIED_ACE_TYPE.
48406         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
48407         (NEW_ACE_EXECUTE): Fix value.
48408         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
48409         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
48410         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
48411         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
48412         NEW_ACE_SYNCHRONIZE): New macros.
48413         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
48414         instead of acl_fromtext, acl_set, facl_set.
48415         Fixes a coreutils/tests/cp/perm failure.
48417 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
48419         openat: test for fstatat (..., 0) bug
48420         Further testing with tar suggests that fstatat (..., 0)
48421         does not work in general, on AIX 7.1; see
48422         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
48423         So, give up entirely on AIX 7.1's fstatat, and fall back on our
48424         replacement fstatat (which is what older AIX releases were using
48425         anyway).
48426         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
48427         use is now changed to orig_fstatat.  This was probably the right
48428         thing to do anyway.
48429         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
48430         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
48431         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
48432         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
48433         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
48434         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
48435         if the bug is found.
48437         openat: test for fstatat (AT_FDCWD, ..., 0) bug
48438         This tests for another fstatat bug on AIX 7.1:
48439         fstatat (AT_FDCWD, ..., 0) does not work.  See
48440         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
48441         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
48442         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
48443         (rpl_fstatat): Adjust so that it works around either (or both)
48444         bugs if present.
48445         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
48447 2011-09-03  Karl Berry  <karl@gnu.org>
48449         * doc/regex.texi (Character Class Operators): Avoid literal ":"
48450         in index entries.
48452 2011-09-02  Bruno Haible  <bruno@clisp.org>
48454         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
48455         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
48456         values of AR, ARFLAGS, RANLIB.
48457         Reported by John W. Eaton <jwe@gnu.org> for Octave.
48459 2011-09-02  Bruno Haible  <bruno@clisp.org>
48461         Find 'ar' program that fits with --host argument.
48462         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
48464 2011-09-02  Bruno Haible  <bruno@clisp.org>
48466         tests: init.sh: Support any non-GNU diff.
48467         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
48468         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
48469         Solaris 8.
48471 2011-09-02  Bruno Haible  <bruno@clisp.org>
48473         tests: init.sh: work also with any non-GNU diff that supports -u
48474         * tests/init.sh: Relax check for diff -u support.
48475         Rather than checking for GNU diff via --version, simply check
48476         for support for -u itself.  Useful at least on OpenBSD 4.9,
48477         AIX 7.1, IRIX 6.5, and Solaris 10.
48479 2011-09-01  Bruno Haible  <bruno@clisp.org>
48481         strtoimax, strtoumax: Document problem on HP-UX 11.
48482         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
48483         * doc/posix-functions/strtoumax.texi: Likewise.
48485 2011-09-01  Bruno Haible  <bruno@clisp.org>
48487         strtoumax: Avoid link error on OSF/1 with DTK cc.
48488         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
48489         defined as a function.
48490         * modules/strtoumax (Depends-on, configure.ac): Test only whether
48491         strtoumax is defined, not whether it is declared.
48493 2011-09-01  Bruno Haible  <bruno@clisp.org>
48495         strtoimax: Avoid link error on OSF/1 with DTK cc.
48496         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
48497         defined as a function.
48498         * modules/strtoimax (Depends-on, configure.ac): Test only whether
48499         strtoimax is defined, not whether it is declared.
48501 2011-09-01  Bruno Haible  <bruno@clisp.org>
48503         imaxdiv: Avoid link error on OSF/1 with DTK cc.
48504         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
48505         as a function.
48506         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
48507         whether it is declared.
48509 2011-09-01  Bruno Haible  <bruno@clisp.org>
48511         imaxabs: Avoid link error on OSF/1 with DTK cc.
48512         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
48513         as a function.
48514         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
48515         whether it is declared.
48517 2011-09-01  Bruno Haible  <bruno@clisp.org>
48519         Tests for module 'strtoumax'.
48520         * modules/strtoumax-tests: New file.
48521         * tests/test-strtoumax.c: New file.
48523         Tests for module 'strtoimax'.
48524         * modules/strtoimax-tests: New file.
48525         * tests/test-strtoimax.c: New file.
48527         Tests for module 'imaxdiv'.
48528         * modules/imaxdiv-tests: New file.
48529         * tests/test-imaxdiv.c: New file.
48531         Tests for module 'imaxabs'.
48532         * modules/imaxabs-tests: New file.
48533         * tests/test-imaxabs.c: New file.
48535 2011-09-01  Bruno Haible  <bruno@clisp.org>
48537         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
48538         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
48539         pthread_create.
48541 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48543         openat: work around AIX 7.1 fstatat issue
48544         This should fix the problem that was not properly fixed
48545         in the previous change, dated 2011-08-30.
48546         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
48547         __need_system_stat_h defined.
48548         (orig_fstatat) [HAVE_FSTATAT]: New function.
48549         (rpl_fstatat): Go back to the old way of doing things,
48550         except call orig_fstatat instead of fstatat.
48551         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
48552         Remove unnecessary check whether fstatat fills in st_size etc.
48554 2011-09-01  Bruno Haible  <bruno@clisp.org>
48556         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
48557         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
48558         just include the system's header.
48560 2011-08-31  Jim Meyering  <meyering@redhat.com>
48562         tests: avoid spurious assertion failure in test-float.c on ppc64
48563         * tests/test-float.c (test_long_double): Comment out an assertion,
48564         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
48565         with gcc-4.4.4.
48567         maint: indent with spaces, not TABs
48568         I need to get in the habit of running gnulib's "make check".
48569         Both of these would have been caught.
48570         * m4/largefile.m4: Indent with spaces, not TABs.
48571         * lib/parse-datetime.y (iso_8601_time): Likewise.
48572         Spotted by Pádraig Brady.
48574         test-parse-datetime.c: accommodate a relatively strict gcc warning
48575         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
48576         to avoid a warning from gcc's -Werror=missing-declarations.
48577         Insert a few spaces-before-funcall-parenthesis.
48579 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
48581         parse-datetime: accept ISO 8601 date and time rep with "T" separator
48582         The parser now accepts ISO 8601 date-time strings with "T" as the
48583         separator.  It has long parsed dates like "2004-02-29 16:21:42"
48584         with a space between the date and time strings.  Now it also parses
48585         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
48586         variants like "2004-02-29T16:21:42.333-07:00"
48587         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
48588         of day representation using the 'T' separator character.
48589         * doc/parse-datetime.texi (General date syntax): replace use of
48590         deprecated --iso-8601 option with --rfc-3339 in example of date
48591         command output formats that can be parsed.
48592         * tests/test-parse-datetime.c (tm_diff): New function, taken from
48593         lib/parse-datetime.y.
48594         (gmt_offset): New function.
48595         (main): Add additional test cases to validate ISO8601 extended
48596         date and time of day parsing.
48598 2011-08-31  Bruno Haible  <bruno@clisp.org>
48600         freopen: Documentation.
48601         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
48602         name.
48603         Reported by Claudio Bley <claudio.bley@gmail.com>.
48605 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
48607         freopen: Don't crash if the filename argument is NULL.
48608         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
48609         NULL.
48611 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48613         openat: work around AIX 7.1 fstatat bug
48614         Problem reported by Kevin Brott for GNU tar, in the thread containing
48615         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
48616         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
48617         FSTATAT_ST_SIZE_ETC_BROKEN.
48618         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
48619         rpl_fstatat.
48620         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
48621         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
48622         AC_CHECK_FUNCS_ONCE for fstatat.
48623         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
48624         fchmodat, mkdirat, openat and unlinkat.
48626 2011-08-30  Bruno Haible  <bruno@clisp.org>
48628         Avoid endless recursions if config.h includes some header files.
48629         * lib/fopen.c (__need_FILE): Define already before including config.h.
48630         * lib/freopen.c (__need_FILE): Likewise.
48631         * lib/open.c (__need_system_fcntl_h): Likewise.
48632         * lib/stat.c (__need_system_sys_stat_h): Likewise.
48633         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
48634         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
48636 2011-08-25  Karl Berry  <karl@gnu.org>
48638         * config/srclist.txt (ylwrap): new try.
48639         * build-aux/ylwrap: new file.
48641 2011-08-23  Bruno Haible  <bruno@clisp.org>
48643         tmpdir: Use a good default directory on native Windows.
48644         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
48645         (P_tmpdir): Default to _P_tmpdir on native Windows.
48646         (path_search): On native Windows, try the value returned by GetTempPath
48647         before trying P_tmpdir.
48648         * modules/tmpdir (Depends-on): Add pathmax.
48649         Suggested by John Darrington <john@darrington.wattle.id.au>.
48651 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
48653         doc: fix typo in README-release
48654         * top/README-release: Capitalize first word of a sentence.
48656 2011-08-19  Jim Meyering  <meyering@redhat.com>
48658         fts: do not exhaust memory when processing million-entry directories
48659         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
48660         directory would require about 256*N bytes of memory.  Thus, it was
48661         easy to construct a directory too large to be processed by any of
48662         those tools.  With this change, fts' maximum memory utilization is
48663         now limited to around 30MB.
48664         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
48665         (fts_read): When we've processed the final entry (i.e., when
48666         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
48667         using the parent entry to read any remaining entries.  Dispatch
48668         depending on what fts_build returns:
48669         - NULL+stop, aka failure: stop
48670         - NULL otherwise: move up in the dir hierarchy
48671         - non-NULL: handle this new entry
48672         (fts_build): Declare and use new local, continue_readdir.
48673         Prepare to be called from fts_read, when the entries
48674         from a partially-read directory have just been exhausted.
48675         In that case, we'll skip the opendir and instead use the parent's
48676         fts_dirp and derive dir_fd from that.
48677         Finally, in the readdir loop, if we read max_entries entries,
48678         exit the loop ensuring *not* to call closedir.  This is required
48679         so that fts_dirp can be reused on a subsequent call.
48680         Prompted by Ben England's report of memory exhaustion in find
48681         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
48683         maint: fts: move decl of `dp' down into while loop; split a long line
48684         * lib/fts.c (fts_build): No semantic change.
48686         fts: add/use new struct member, fts_dirp
48687         We are about to use this to manage any directory with
48688         too many entries to read all of them into memory at once.
48689         To do that, we'll need to save the DIR* pointer in each
48690         affected FTSENT struct.
48691         * lib/fts_.h: Include <dirent.h>.
48692         (struct FTSENT) [fts_dirp]: New member.
48693         * lib/fts.c (closedir_and_clear): Define.
48694         Use it in place of closedir so that we are sure to
48695         clear the new fts_dirp member when done with it.
48696         (fts_alloc): Initialize the new member.
48697         (fts_lfree): Free, if needed.
48699         maint: fts: give __opendir2 a new parameter and rename
48700         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
48701         than surreptitiously using sole caller's "dir_fd".
48702         (fts_opendir): Rename from __opendir2.
48704         maint: fts.c: remove __opendir2's now-unused parameter, oflag
48705         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
48707         maint: fts.c: correct off-by-one indentation
48708         * lib/fts.c (fts_build): Correct indentation, change style
48709         of a couple of block comments, and bracing style.
48711         maint: fts.c: move __opendir2 #define "up" out of function body
48712         * lib/fts.c (__opendir2): Move "up".  No semantic change.
48714         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
48715         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
48716         out for a long time and besides was useful only on BSD systems.
48718 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48720         regex: port to Stratus OpenVOS
48721         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
48722         define to empty, rather than attempting nonportable optimizations.
48723         Problem reported by Paul Green in:
48724         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
48725         and fix suggested by Eric Blake in:
48726         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
48728 2011-08-17  Eric Blake  <eblake@redhat.com>
48730         getcwd: fix test failures on mingw
48731         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
48732         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
48733         test if long directory cannot be created, and allow mingw errno.
48735         getcwd-lgpl: fix m4 to match relaxed test for BSD
48736         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
48737         (gl_FUNC_GETCWD_SIGNATURE): New macro.
48738         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
48739         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
48740         signature problem.
48742         getcwd: fix compilation on mingw64
48743         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
48744         getcwd.
48745         Reported by Marc-André Lureau.
48747         pipe2: silence compiler warning
48748         * lib/pipe2.c (pipe2): Hide label if it is not used.
48750 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
48752         relocatable-prog: fix link error
48753         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
48754         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
48755         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
48756         into modules/relocatable-lib without noticing that
48757         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
48758         also needs to build relocatable.c.
48760 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48762         getaddrinfo: fix sh typo in gai_strerrorA decl checking
48763         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
48764         shell code: it contained a 'break' that was not in a loop.
48765         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
48766         via a shell-language loop; this may have been true in old Autoconf
48767         versions, but it's not true in Autoconf 2.68.  I found this bug
48768         when testing coreutils git on Solaris 8, whose shell complains
48769         about the syntax error.
48771 2011-08-12  Simon Josefsson  <simon@josefsson.org>
48773         * lib/base64.c: Fix comment to reference RFC 4648.
48774         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
48775         <gvtulder@gmail.com>.
48777 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48779         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
48781         po/Makefile.in.in: fix make -q problem
48782         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
48783         rule, since there's no file named 'check-macro-version' and its
48784         use as a file breaks make -q.
48785         (all): Don't depend on check-macro-version.
48786         (CHECK_MACRO_VERSION): New macro.
48787         (stamp-po): Use it.
48789         configmake: fix make -q problem
48790         * modules/configmake (configmake.h): Update configmake.h's time stamp
48791         even if the file does not change.  Otherwise, 'make -q' fails.
48792         Problem reported by Simon Josefsson in
48793         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
48795 2011-08-11  Jim Meyering  <meyering@redhat.com>
48797         git-version-gen: correct the advice in a comment
48798         * build-aux/git-version-gen: Correct comment.
48799         Don't recommend to list .tarball-version in .gitignore.
48801 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48803         base64: fix off-by-one buffer size bug
48804         Problem and (trivial) fix reported by Gijs van Tulder in
48805         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
48806         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
48807         * tests/test-base64.c (main): Catch the bug.
48809 2011-08-10  Eric Blake  <eblake@redhat.com>
48811         closein: correct comments
48812         * lib/closein.c (close_stdin): Improve comments.
48814 2011-08-09  Bruno Haible  <bruno@clisp.org>
48816         More tests for 'fseeko'.
48817         * tests/test-fseeko3.c: New file, from Eric Blake.
48818         * tests/test-fseeko3.sh: New file.
48819         * modules/fseeko-tests (Files): Add them.
48820         (TESTS): Add test-fseeko3.sh.
48821         (check_PROGRAMS): Add test-fseeko3.
48823 2011-08-09  Eric Blake  <eblake@redhat.com>
48825         fseeko: remove unneeded hack
48826         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
48828         fseeko: fix bug on glibc
48829         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
48830         Reported by John W. Eaton.
48832 2011-08-08  Bruno Haible  <bruno@clisp.org>
48834         unictype/base: Fix interoperability with preinstalled libunistring.
48835         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
48836         Reported by Simon Josefsson.
48838 2011-08-08  Bruno Haible  <bruno@clisp.org>
48840         iswblank: Detect declaration correctly.
48841         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
48842         AC_CHECK_DECLS invocation.
48844 2011-08-08  Bruno Haible  <bruno@clisp.org>
48846         tcgetsid: Detect declaration correctly.
48847         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
48848         AC_CHECK_DECLS invocation.
48849         Reported by Simon Josefsson.
48851 2011-08-08  Eric Blake  <eblake@redhat.com>
48853         largefile: fix typo that regressed large file support
48854         * modules/largefile (configure.ac-early): Fix section name.
48856 2011-08-06  Karl Berry  <karl@gnu.org>
48858         * MODULES.html.sh (func_all_files): _Noreturn is no longer
48859         a separate module.
48861 2011-08-05  Simon Josefsson  <simon@josefsson.org>
48863         openat: Fix warnings and commens when building unlinkat.c on Hurd.
48864         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
48865         get prototype for free.
48867 2011-08-04  Bruno Haible  <bruno@clisp.org>
48869         Tests for module 'pathmax'.
48870         * modules/pathmax-tests: New file.
48871         * tests/test-pathmax.c: New file.
48873         canonicalize-lgpl: Support larger filenames on the Hurd.
48874         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
48875         Reported by Paul Eggert.
48877         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
48878         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
48879         * lib/chdir-long.h: Include pathmax.h.
48880         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
48881         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
48882         (PATH_MAX): Remove code that is done by pathmax.h.
48883         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
48884         * lib/tmpfile.c: Add a comment.
48885         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
48886         * modules/chdir-long (Depends-on): Add pathmax.
48887         * modules/getcwd (Depends-on): Add pathmax.
48888         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
48889         is not defined.
48890         * doc/posix-headers/limits.texi: Mention the pathmax module.
48891         * NEWS: Mention the change.
48893 2011-08-02  Bruno Haible  <bruno@clisp.org>
48895         pthread_sigmask: Actually use results of gl_THREADLIB.
48896         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
48897         gl_THREADLIB, not gl_[]THREADLIB.
48898         Reported by Eric Blake.
48900 2011-08-02  Jim Meyering  <meyering@redhat.com>
48902         maint.mk: relax the default _gl_TS_function_match regexp
48903         * top/maint.mk (_gl_TS_function_match): Don't require at least one
48904         space between function name and "(" in an "extern" declaration.
48905         That would fail to match a decl with no space there: extern void foo();
48907 2011-07-31  Iain Nicol  <iain@thenicols.net>
48909         git-version-gen: document that EXTRA_DIST must include .version
48910         * build-aux/git-version-gen: In the how-to-use comment, document
48911         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
48912         will fail when run from an unpacked distribution tarball.
48914 2011-08-01  Bruno Haible  <bruno@clisp.org>
48916         wctype-h: Fix last change.
48917         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
48918         REPLACE_TOWLOWER to 0.
48919         Reported by Sam Steingold <sds@gnu.org>.
48921 2011-07-31  Bruno Haible  <bruno@clisp.org>
48923         frexpl: Update autoconf test.
48924         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
48925         according to changes of 2011-06-20.
48927 2011-07-31  Bruno Haible  <bruno@clisp.org>
48929         sys_utsname: Add support for Minix.
48930         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
48931         <sys/utsname.h>.
48932         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
48933         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
48935 2011-07-31  Bruno Haible  <bruno@clisp.org>
48937         strings: Add support for Minix.
48938         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
48939         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
48940         * doc/posix-headers/strings.texi: Document the Minix problem.
48942 2011-07-31  Bruno Haible  <bruno@clisp.org>
48944         wctype-h: Add support for Minix.
48945         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
48946         REPLACE_TOWLOWER.
48947         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
48948         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
48949         REPLACE_ISWCNTRL.
48951 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
48953         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
48954         This is a performance improvement for 64-bit hosts: it causes the
48955         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
48957 2011-07-31  Bruno Haible  <bruno@clisp.org>
48959         stdioext: Add support for Minix.
48960         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
48961         * lib/fpurge.c (fpurge): Likewise.
48962         * lib/freadahead.c (freadahead): Likewise.
48963         * lib/freadable.c (freadable): Likewise.
48964         * lib/freading.c (freading): Likewise.
48965         * lib/freadptr.c (freadptr): Likewise.
48966         * lib/freadseek.c (freadptrinc): Likewise.
48967         * lib/fseeko.c (rpl_fseeko): Likewise.
48968         * lib/fseterr.c (fseterr): Likewise.
48969         * lib/fwritable.c (fwritable): Likewise.
48970         * lib/fwriting.c (fwriting): Likewise.
48971         * lib/fflush.c (clear_ungetc_buffer): Update comment.
48972         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
48974 2011-07-31  Bruno Haible  <bruno@clisp.org>
48976         errno: Port to Minix.
48977         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
48978         ECONNABORTED are defined.
48979         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
48980         GNULIB_defined_ECONNABORTED): New macros.
48981         * lib/strerror-override.h (strerror_override): Test also
48982         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
48983         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
48984         ECONNABORTED.
48985         * doc/posix-headers/errno.texi: Mention the Minix problem.
48987 2011-07-31  Bruno Haible  <bruno@clisp.org>
48989         Work around declaration collisions on Minix.
48990         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
48991         defined, set REPLACE_MBSINIT.
48992         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
48993         defined, set REPLACE_MBRTOWC.
48994         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
48995         set REPLACE_MBRLEN.
48996         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
48997         defined, set REPLACE_MBSRTOWCS.
48998         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
48999         defined, set REPLACE_WCRTOMB.
49000         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
49001         defined, set REPLACE_WCSRTOMBS.
49003 2011-07-31  Bruno Haible  <bruno@clisp.org>
49005         Add support for Minix with ACK compiler.
49006         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
49007         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
49008         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
49010 2011-07-31  Bruno Haible  <bruno@clisp.org>
49012         Documentation about Minix.
49013         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
49014         * doc/glibc-headers/*.texi: Likewise.
49015         * doc/posix-functions/*.texi: Likewise.
49016         * doc/glibc-functions/*.texi: Likewise.
49018 2011-07-31  Bruno Haible  <bruno@clisp.org>
49020         snippet/warn-on-use: Fix indentation.
49021         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
49023 2011-07-25  Jim Meyering  <meyering@redhat.com>
49025         tests: test-update-copyright.sh: remove unnecessary "rm" commands
49026         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
49027         commands.
49029 2011-07-27  Jim Meyering  <meyering@redhat.com>
49031         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
49032         * top/maint.mk (gl_extract_significant_defines_): Now that
49033         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
49034         gnulib/lib/signal.in.h, and now that we recommend to
49035         define-if-undefined those two symbols in application code,
49036         we must filter them out of the "significant" list.
49037         This avoids a "make syntax-check" failure in coreutils.
49039 2011-07-26  Eric Blake  <eblake@redhat.com>
49041         warnings: add comments about previous patch
49042         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
49043         * m4/include_next.m4: Likewise.
49044         * m4/warn-on-use.m4: Likewise.
49045         * m4/warnings.m4: Likewise, and simplify use.
49046         Suggested by Stefano Lattarini.
49048         include-next, warnings: support older autoconf
49049         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
49050         AS_VAR_PUSHDEF in a way that works with older autoconf.
49051         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
49052         Reported by Daniel P. Berrange.
49054 2011-07-25  Bruno Haible  <bruno@clisp.org>
49056         fseek, ftell: Fix doc.
49057         * doc/posix-functions/fseek.texi: Reword statement about
49058         AC_SYS_LARGEFILE.
49059         * doc/posix-functions/ftell.texi: Likewise.
49061 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49062             Bruno Haible  <bruno@clisp.org>
49064         Add dependencies to the 'largefile' module.
49065         * modules/fopen (Depends-on): Add 'largefile'.
49066         * modules/freopen (Depends-on): Likewise.
49067         * modules/fseeko (Depends-on): Likewise.
49068         * modules/ftello (Depends-on): Likewise.
49069         * modules/glob (Depends-on): Likewise.
49070         * modules/lseek (Depends-on): Likewise.
49071         * modules/lstat (Depends-on): Likewise.
49072         * modules/mkostemp (Depends-on): Likewise.
49073         * modules/mkostemps (Depends-on): Likewise.
49074         * modules/mkstemp (Depends-on): Likewise.
49075         * modules/mkstemps (Depends-on): Likewise.
49076         * modules/open (Depends-on): Likewise.
49077         * modules/openat (Depends-on): Likewise.
49078         * modules/pread (Depends-on): Likewise.
49079         * modules/pwrite (Depends-on): Likewise.
49080         * modules/scandir (Depends-on): Likewise.
49081         * modules/stat (Depends-on): Likewise.
49082         * modules/tmpfile (Depends-on): Likewise.
49083         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
49084         since the containing module now depends on the largefile module.
49085         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
49086         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
49087         off_t is fixed by gnulib.
49088         * doc/posix-functions/freopen.texi: Likewise.
49089         * doc/posix-functions/fseeko.texi: Likewise.
49090         * doc/posix-functions/fstatat.texi: Likewise.
49091         * doc/posix-functions/ftello.texi: Likewise.
49092         * doc/posix-functions/glob.texi: Likewise.
49093         * doc/posix-functions/lseek.texi: Likewise.
49094         * doc/posix-functions/lstat.texi: Likewise.
49095         * doc/posix-functions/mkstemp.texi: Likewise.
49096         * doc/posix-functions/open.texi: Likewise.
49097         * doc/posix-functions/openat.texi: Likewise.
49098         * doc/posix-functions/pread.texi: Likewise.
49099         * doc/posix-functions/pwrite.texi: Likewise.
49100         * doc/posix-functions/scandir.texi: Likewise.
49101         * doc/posix-functions/stat.texi: Likewise.
49102         * doc/posix-functions/tmpfile.texi: Likewise.
49103         * doc/glibc-functions/mkostemp.texi: Likewise.
49104         * doc/glibc-functions/mkostemps.texi: Likewise.
49105         * doc/glibc-functions/mkstemps.texi: Likewise.
49107 2011-07-25  Bruno Haible  <bruno@clisp.org>
49109         fcntl: Move AC_LIBOBJ invocation to module description.
49110         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
49111         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
49113         fcntl: Remove call-in from fchdir.m4.
49114         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
49115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
49117         dup3: Remove potential call-in from fchdir.m4.
49118         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
49119         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
49121         dup2: Move AC_LIBOBJ invocation to module description.
49122         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
49123         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
49124         Don't invoke AC_LIBOBJ.
49125         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
49127         dup2: Remove call-in from fchdir.m4.
49128         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
49129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
49131         fclose: Move AC_LIBOBJ invocation to module description.
49132         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
49133         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
49134         to 1.
49135         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
49137         fclose: Remove call-in from close.m4.
49138         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
49139         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
49141         close: Move AC_LIBOBJ invocation to module description.
49142         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
49143         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
49144         1.
49145         * modules/close (configure.ac): Invoke AC_LIBOBJ.
49147         close: Remove call-in from fchdir.m4.
49148         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
49149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
49151         open: Move AC_LIBOBJ invocation to module description.
49152         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
49153         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
49154         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
49156         open: Remove call-in from fchdir.m4.
49157         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
49158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
49160         fchdir: Start to remove gl_REPLACE_* idiom.
49161         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
49162         (gl_FUNC_FCHDIR): Invoke it.
49164 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49166         * lib/ftell.c (ftell): Comment out cast.
49168         close: use gl_REPLACE_FCLOSE only if defined
49169         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
49170         is defined.  The close module doesn't depend on the fclose module
49171         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
49172         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
49173         I reproduced the problem with "./gnulib-tool --test close sys_socket".
49175 2011-07-24  Jim Meyering  <meyering@redhat.com>
49177         test-select.h: avoid warning when using gcc's -Wmissing-declarations
49178         * tests/test-select.h (test_function): Declare as "static".
49180 2011-07-24  Bruno Haible  <bruno@clisp.org>
49182         doc: Mention the effects of AC_SYS_LARGEFILE.
49183         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
49184         on this function.
49185         * doc/posix-functions/aio_error.texi: Likewise.
49186         * doc/posix-functions/aio_fsync.texi: Likewise.
49187         * doc/posix-functions/aio_read.texi: Likewise.
49188         * doc/posix-functions/aio_return.texi: Likewise.
49189         * doc/posix-functions/aio_suspend.texi: Likewise.
49190         * doc/posix-functions/aio_write.texi: Likewise.
49191         * doc/posix-functions/fgetpos.texi: Likewise.
49192         * doc/posix-functions/fopen.texi: Likewise.
49193         * doc/posix-functions/freopen.texi: Likewise.
49194         * doc/posix-functions/fsetpos.texi: Likewise.
49195         * doc/posix-functions/fstatvfs.texi: Likewise.
49196         * doc/posix-functions/ftruncate.texi: Likewise.
49197         * doc/posix-functions/ftw.texi: Likewise.
49198         * doc/posix-functions/getrlimit.texi: Likewise.
49199         * doc/posix-functions/glob.texi: Likewise.
49200         * doc/posix-functions/lio_listio.texi: Likewise.
49201         * doc/posix-functions/lockf.texi: Likewise.
49202         * doc/posix-functions/mkstemp.texi: Likewise.
49203         * doc/posix-functions/mmap.texi: Likewise.
49204         * doc/posix-functions/nftw.texi: Likewise.
49205         * doc/posix-functions/openat.texi: Likewise.
49206         * doc/posix-functions/opendir.texi: Likewise.
49207         * doc/posix-functions/posix_fadvise.texi: Likewise.
49208         * doc/posix-functions/posix_fallocate.texi: Likewise.
49209         * doc/posix-functions/pread.texi: Likewise.
49210         * doc/posix-functions/pwrite.texi: Likewise.
49211         * doc/posix-functions/readdir.texi: Likewise.
49212         * doc/posix-functions/readdir_r.texi: Likewise.
49213         * doc/posix-functions/rewinddir.texi: Likewise.
49214         * doc/posix-functions/scandir.texi: Likewise.
49215         * doc/posix-functions/seekdir.texi: Likewise.
49216         * doc/posix-functions/setrlimit.texi: Likewise.
49217         * doc/posix-functions/statvfs.texi: Likewise.
49218         * doc/posix-functions/telldir.texi: Likewise.
49219         * doc/posix-functions/tmpfile.texi: Likewise.
49220         * doc/posix-functions/truncate.texi: Likewise.
49221         * doc/glibc-functions/fallocate.texi: Likewise.
49222         * doc/glibc-functions/fstatfs.texi: Likewise.
49223         * doc/glibc-functions/fts_children.texi: Likewise.
49224         * doc/glibc-functions/fts_read.texi: Likewise.
49225         * doc/glibc-functions/getdirentries.texi: Likewise.
49226         * doc/glibc-functions/mkostemp.texi: Likewise.
49227         * doc/glibc-functions/mkostemps.texi: Likewise.
49228         * doc/glibc-functions/mkstemps.texi: Likewise.
49229         * doc/glibc-functions/preadv.texi: Likewise.
49230         * doc/glibc-functions/pwritev.texi: Likewise.
49231         * doc/glibc-functions/sendfile.texi: Likewise.
49232         * doc/glibc-functions/statfs.texi: Likewise.
49234 2011-07-24  Bruno Haible  <bruno@clisp.org>
49236         doc: Fix typo.
49237         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
49239 2011-07-24  Bruno Haible  <bruno@clisp.org>
49241         doc: Mention fsusage.
49242         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
49244 2011-07-24  Bruno Haible  <bruno@clisp.org>
49246         doc: Mention new glibc headers and functions.
49247         * doc/glibc-headers/gshadow.texi: New file.
49248         * doc/glibc-functions/endsgent.texi: New file.
49249         * doc/glibc-functions/fgetsgent.texi: New file.
49250         * doc/glibc-functions/fgetsgent_r.texi: New file.
49251         * doc/glibc-functions/getsgent.texi: New file.
49252         * doc/glibc-functions/getsgent_r.texi: New file.
49253         * doc/glibc-functions/getsgnam.texi: New file.
49254         * doc/glibc-functions/getsgnam_r.texi: New file.
49255         * doc/glibc-functions/putsgent.texi: New file.
49256         * doc/glibc-functions/setsgent.texi: New file.
49257         * doc/glibc-functions/sgetsgent.texi: New file.
49258         * doc/glibc-functions/sgetsgent_r.texi: New file.
49259         * doc/glibc-functions/malloc_info.texi: New file.
49260         * doc/glibc-functions/preadv.texi: New file.
49261         * doc/glibc-functions/pwritev.texi: New file.
49262         * doc/glibc-functions/register_printf_modifier.texi: New file.
49263         * doc/glibc-functions/register_printf_specifier.texi: New file.
49264         * doc/glibc-functions/register_printf_type.texi: New file.
49265         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
49266         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
49267         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
49268         * doc/glibc-functions/pthread_getname_np.texi: New file.
49269         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
49270         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
49271         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
49272         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
49273         * doc/glibc-functions/pthread_setname_np.texi: New file.
49274         * doc/glibc-functions/pthread_sigqueue.texi: New file.
49275         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
49276         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
49277         * doc/glibc-functions/qsort_r.texi: New file.
49278         * doc/glibc-functions/quick_exit.texi: New file.
49279         * doc/glibc-functions/syncfs.texi: New file.
49280         * doc/gnulib.texi: Include them.
49281         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
49282         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
49283         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
49284         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
49285         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
49286         * doc/glibc-functions/execvpe.texi: Likewise.
49288 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49290         ftell: don't include <unistd.h>
49291         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
49292         guaranteed to define off_t, and the ftell module depends on the
49293         stdio module.
49295         ftell: do not assume wraparound signed arithmetic
49296         * lib/ftell.c: Include <limits.h>.
49297         (ftell): Don't assume wraparound signed arithmetic.
49299 2011-07-24  Bruno Haible  <bruno@clisp.org>
49301         close: No longer depend on module 'fclose'.
49302         * modules/close (Depends-on): Remove fclose.
49303         * NEWS: Mention the change.
49304         Suggested by Sam Steingold <sds@gnu.org>.
49306 2011-07-24  Bruno Haible  <bruno@clisp.org>
49308         fsusage: Enable large volume support on AIX >= 5.2.
49309         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
49310         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
49311         instead of STAT_STATVFS.
49312         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
49314         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
49315         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
49316         f_blocks field only on MacOS X.
49318         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
49319         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
49320         * modules/fsusage (Depends-on): Add largefile.
49322 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49324         * README: Modernize discussion of signed integers.
49325         Assuming overflow wraparound is no longer safe.
49326         Mention ones' complement and signed magnitude.
49328 2011-07-22  Bruno Haible  <bruno@clisp.org>
49330         select tests, pselect tests: Refactor.
49331         * tests/test-select.h: New file, extracted from tests/test-select.c.
49332         (select_fn): New type.
49333         (test, do_select, do_select_nowait, do_select_wait, test_tty,
49334         test_connect_first, test_accept_first, test_pair, test_socket_pair,
49335         test_pipe): Add my_select argument.
49336         (test_function): Renamed from main. Add my_select argument.
49337         * tests/test-select.c: Move most code to tests/test-select.h. Include
49338         test-select.h.
49339         * modules/select-tests (Files): Add tests/test-select.h.
49340         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
49341         (my_select, main): New functions.
49342         * modules/pselect-tests (Files): Add tests/test-select.h,
49343         tests/macros.h, tests/signature.h.
49344         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
49345         (configure.ac): Check for <sys/wait.h>.
49347 2011-07-22  Bruno Haible  <bruno@clisp.org>
49349         sys_select tests: Check the signature of FD_*.
49350         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
49351         signature tests from here...
49352         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
49353         here.
49354         * modules/sys_select-tests (Files): Add tests/signature.h.
49356 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49358         largefile: new module, replacing large-inode
49359         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
49360         * MODULES.html.sh: Add largefile, remove large-inode.
49361         * modules/largefile, m4/largefile.m4: New files.
49362         * modules/large-inode, m4/large-inode.m4: Remove.
49364         fsusage: port to MacOS X 10.7 with 4 TiB file systems
49365         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
49366         implementations that use only 32 bits to count blocks.
49367         On typical hosts with 1024-byte blocks, this fails with file
49368         systems as small as 4 TiB.  Problem reported by Herb Wartens
49369         <http://debbugs.gnu.org/9140> and this should also fix a similar
49370         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
49372         large-inode: New module
49373         * MODULES.html.sh: Add it.
49374         * modules/large-inode, m4/large-inode.m4: New files.
49376         extensions: Enable extensions on MacOS X 10.5 and later.
49377         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
49379 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
49381         file-has-acl: use acl_extended_file_nofollow if available
49382         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
49383         (acl_extended_file): New macro.
49384         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
49385         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
49387 2011-07-21  Bruno Haible  <bruno@clisp.org>
49389         Declare system functions in a way that works with C++.
49390         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
49391         declare fdopendir as extern "C".
49392         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
49393         declare frexpl as extern "C".
49394         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
49395         declare gai_strerror as extern "C".
49396         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
49397         programs, declare gai_strerror as extern "C".
49398         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
49399         declare getlogin_r as extern "C".
49400         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
49401         as extern "C".
49402         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
49403         declare ldexpl as extern "C".
49404         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
49405         as extern "C".
49406         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
49407         program, declare getmntinfo as extern "C".
49408         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
49409         stpncpy as extern "C".
49410         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
49411         program, declare __xpg_strerror_r as extern "C".
49412         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
49413         strndup as extern "C".
49414         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
49415         declare memset and bzero as extern "C".
49416         Reported by Sam Steingold <sds@gnu.org>.
49418 2011-07-12  Jim Meyering  <meyering@redhat.com>
49420         maint.mk: prohibit inclusion of "verify.h" without use
49421         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
49423 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49425         timer-time: A new module to check for timer_settime()
49426         * m4/timer_time.m4: Check for the posix function.
49427         * modules/timer-time: Add the new module.
49428         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
49429         Mention it.
49431 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
49432             Bruno Haible  <bruno@clisp.org>
49434         pthread_sigmask: assume POSIX threads if --avoid=threadlib
49435         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
49436         not defined, assume POSIX threads and look for pthread_sigmask in
49437         $LIBS, without changing $CPPFLAGS.
49439 2011-07-19  Bruno Haible  <bruno@clisp.org>
49441         strstr: Update cross-compilation guess.
49442         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
49443         CPUs, guess no, in view of glibc
49444         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
49445         Suggested by Eric Blake. Reported by Reuben Thomas.
49447 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49449         getopt-gnu: suppress core dumps from detection code
49450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
49451         to suppress core dumps that may well occur on glibc systems.
49452         * modules/getopt-gnu: Depend on nocrash.
49454 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49456         pthread_sigmask: ensure usleep is declared
49457         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
49458         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
49460 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49462         doc: Document NonStop portability issues.
49463         * doc/posix-functions/sigaction.texi (sigaction):
49464         * doc/posix-headers/signal.texi (signal.h):
49465         Document NonStop.  See Joachim Schmitz in
49466         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
49468 2011-07-15  Bruno Haible  <bruno@clisp.org>
49470         ffsl, ffsll: Avoid unportable behaviour.
49471         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
49473 2011-07-15  Bruno Haible  <bruno@clisp.org>
49475         ffs: More tests.
49476         * tests/test-ffs.c (NBITS): New macro.
49477         (main): Add more tests.
49478         * tests/test-ffsl.c (NBITS): New macro.
49479         (main): Add more tests.
49480         * tests/test-ffsll.c (NBITS): New macro.
49481         (main): Add more tests.
49483 2011-07-15  Eric Blake  <eblake@redhat.com>
49485         ffsl, ffsll: new modules
49486         * modules/ffsl: New file.
49487         * modules/ffsll: Likewise.
49488         * m4/ffsl.m4: Likewise.
49489         * m4/ffsll.m4: Likewise.
49490         * lib/ffsl.c: Likewise.
49491         * lib/ffsl.h: Likewise.
49492         * lib/ffsll.c: Likewise.
49493         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
49494         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
49495         * modules/string (Makefile.am): Substitute witnesses.
49496         * lib/strings.in.h (ffsl, ffsll): Declare.
49497         * modules/ffsl-tests: New test file.
49498         * modules/ffsll-tests: Likewise.
49499         * tests/test-ffsl.c: Likewise.
49500         * tests/test-ffsll.c: Likewise.
49501         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49502         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
49503         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
49505         ffs: fix m4 prerequisite
49506         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
49508         ffs: avoid undefined behavior
49509         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
49510         * tests/test-ffs.c (naive, main): Avoid signed shifts.
49511         Reported by Bruno Haible.
49513 2011-07-12  Bruno Haible  <bruno@clisp.org>
49515         pthread_sigmask: Rely on module 'threadlib'.
49516         * modules/pthread_sigmask (Depends-on): Add threadlib.
49517         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
49518         is defined.
49520 2011-07-12  Bruno Haible  <bruno@clisp.org>
49522         regex: Depend on module 'strcase'.
49523         * modules/regex (Depends-on): Add strcase, for strcasecmp().
49525 2011-07-12  Jim Meyering  <meyering@redhat.com>
49527         warn-on-use: fix typo in file name
49528         * modules/snippet/warn-on-use (Files): Correct file name:
49529         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
49531 2011-07-12  Bruno Haible  <bruno@clisp.org>
49533         strings: Document module.
49534         * doc/posix-headers/strings.texi: Mention module 'strings'.
49536 2011-07-12  Bruno Haible  <bruno@clisp.org>
49538         Rename module '_Noreturn' to 'snippet/_Noreturn'.
49539         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
49540         (Files, Makefile.am): Update.
49541         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
49542         * modules/stdlib (Depends-on): Update.
49544 2011-07-12  Bruno Haible  <bruno@clisp.org>
49546         * NEWS: Mention the changes.
49548         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
49549         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
49550         (Files, Makefile.am): Update.
49551         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
49552         * modules/arpa_inet (Depends-on): Update.
49553         * modules/ctype (Depends-on): Update.
49554         * modules/dirent (Depends-on): Update.
49555         * modules/fcntl-h (Depends-on): Update.
49556         * modules/glob (Depends-on): Update.
49557         * modules/iconv-h (Depends-on): Update.
49558         * modules/inttypes-incomplete (Depends-on): Update.
49559         * modules/langinfo (Depends-on): Update.
49560         * modules/locale (Depends-on): Update.
49561         * modules/math (Depends-on): Update.
49562         * modules/netdb (Depends-on): Update.
49563         * modules/poll-h (Depends-on): Update.
49564         * modules/pty (Depends-on): Update.
49565         * modules/search (Depends-on): Update.
49566         * modules/signal (Depends-on): Update.
49567         * modules/spawn (Depends-on): Update.
49568         * modules/stdio (Depends-on): Update.
49569         * modules/stdlib (Depends-on): Update.
49570         * modules/string (Depends-on): Update.
49571         * modules/strings (Depends-on): Update.
49572         * modules/sys_file (Depends-on): Update.
49573         * modules/sys_ioctl (Depends-on): Update.
49574         * modules/sys_select (Depends-on): Update.
49575         * modules/sys_socket (Depends-on): Update.
49576         * modules/sys_stat (Depends-on): Update.
49577         * modules/sys_time (Depends-on): Update.
49578         * modules/sys_times (Depends-on): Update.
49579         * modules/sys_utsname (Depends-on): Update.
49580         * modules/sys_wait (Depends-on): Update.
49581         * modules/termios (Depends-on): Update.
49582         * modules/time (Depends-on): Update.
49583         * modules/unistd (Depends-on): Update.
49584         * modules/wchar (Depends-on): Update.
49585         * modules/wctype-h (Depends-on): Update.
49586         * MODULES.html.sh (Support for building libraries and executables):
49587         Update.
49589         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
49590         * modules/snippet/unused-parameter: Renamed from
49591         modules/unused-parameter.
49592         (Files, Makefile.am): Update.
49593         * build-aux/snippet/unused-parameter.h: Renamed from
49594         build-aux/unused-parameter.h.
49595         * modules/selinux-h (Depends-on): Update.
49596         * modules/unistr/base (Depends-on): Update.
49597         * MODULES.html.sh (Core language properties): Update.
49599         Rename module 'link-warning' to 'snippet/link-warning'.
49600         * modules/snippet/link-warning: Renamed from modules/link-warning.
49601         (Files, Makefile.am): Update.
49602         * build-aux/snippet/link-warning.h: Renamed from
49603         build-aux/link-warning.h.
49604         * MODULES.html.sh (Support for building libraries and executables):
49605         Update.
49607         Rename module 'c++defs' to 'snippet/c++defs'.
49608         * modules/snippet/c++defs: Renamed from modules/c++defs.
49609         (Files, Makefile.am): Update.
49610         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
49611         * modules/arpa_inet (Depends-on): Update.
49612         * modules/ctype (Depends-on): Update.
49613         * modules/dirent (Depends-on): Update.
49614         * modules/fcntl-h (Depends-on): Update.
49615         * modules/glob (Depends-on): Update.
49616         * modules/iconv-h (Depends-on): Update.
49617         * modules/langinfo (Depends-on): Update.
49618         * modules/locale (Depends-on): Update.
49619         * modules/math (Depends-on): Update.
49620         * modules/netdb (Depends-on): Update.
49621         * modules/poll-h (Depends-on): Update.
49622         * modules/pty (Depends-on): Update.
49623         * modules/search (Depends-on): Update.
49624         * modules/signal (Depends-on): Update.
49625         * modules/spawn (Depends-on): Update.
49626         * modules/stdio (Depends-on): Update.
49627         * modules/stdlib (Depends-on): Update.
49628         * modules/string (Depends-on): Update.
49629         * modules/strings (Depends-on): Update.
49630         * modules/sys_ioctl (Depends-on): Update.
49631         * modules/sys_select (Depends-on): Update.
49632         * modules/sys_socket (Depends-on): Update.
49633         * modules/sys_stat (Depends-on): Update.
49634         * modules/sys_time (Depends-on): Update.
49635         * modules/sys_wait (Depends-on): Update.
49636         * modules/termios (Depends-on): Update.
49637         * modules/time (Depends-on): Update.
49638         * modules/unistd (Depends-on): Update.
49639         * modules/wchar (Depends-on): Update.
49640         * modules/wctype-h (Depends-on): Update.
49642         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
49643         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
49644         (Files, Makefile.am): Update.
49645         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
49646         * modules/argv-iter (Depends-on): Update.
49647         * modules/arpa_inet (Depends-on): Update.
49648         * modules/dirent (Depends-on): Update.
49649         * modules/fcntl-h (Depends-on): Update.
49650         * modules/fnmatch (Depends-on): Update.
49651         * modules/getopt-posix (Depends-on): Update.
49652         * modules/glob (Depends-on): Update.
49653         * modules/iconv-h (Depends-on): Update.
49654         * modules/inttypes-incomplete (Depends-on): Update.
49655         * modules/locale (Depends-on): Update.
49656         * modules/math (Depends-on): Update.
49657         * modules/netdb (Depends-on): Update.
49658         * modules/search (Depends-on): Update.
49659         * modules/signal (Depends-on): Update.
49660         * modules/spawn (Depends-on): Update.
49661         * modules/stdio (Depends-on): Update.
49662         * modules/stdlib (Depends-on): Update.
49663         * modules/string (Depends-on): Update.
49664         * modules/strings (Depends-on): Update.
49665         * modules/sys_socket (Depends-on): Update.
49666         * modules/sys_stat (Depends-on): Update.
49667         * modules/sys_time (Depends-on): Update.
49668         * modules/sys_times (Depends-on): Update.
49669         * modules/sys_utsname (Depends-on): Update.
49670         * modules/time (Depends-on): Update.
49671         * modules/unistd (Depends-on): Update.
49672         * modules/wchar (Depends-on): Update.
49673         * MODULES.html.sh (Support for building libraries and executables):
49674         Update.
49676 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49678         Improvements on _Noreturn and related modules.
49680         modules/_Exit-tests: test _Noreturn too
49681         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
49682         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
49683         (main): Use them.
49685         stdnoreturn, stdnoreturn-tests: remove modules
49686         They're not needed here and a bit premature for use elsewhere.  See
49687         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
49688         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
49689         * tests/test-stdnoreturn.c: Remove files.
49690         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
49691         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
49692         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
49693         and using noreturn.
49694         * modules/openat, modules/sigpipe-die, modules/xalloc:
49695         * modules/xmemdup0, modules/xstrtol:
49696         Remove dependency on stdnoreturn.
49698         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
49699         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
49700         Reparenthesize to avoid GCC warning.
49701         Support Microsoft's syntax.
49702         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
49704         _Noreturn-tests: remove module
49705         * modules/_Noreturn-tests: Remove.
49706         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
49707         * tests/test-_Noreturn.c: Remove.
49708         * tests/test-stdnoreturn.c: Merge from the old
49709         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
49711 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49713         _Noreturn, stdnoreturn, and related modules.
49715         * top/maint.mk: Adjust to new noreturn support.
49716         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
49717         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
49719         xalloc: use stdnoreturn.h
49720         * lib/xalloc.h: Include <stdnoreturn.h>.
49721         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49722         * modules/xalloc (Depends-on): Add stdnoreturn.
49724         xstrtol: use stdnoreturn.h
49725         * lib/xstrtol.h: Include <stdnoreturn.h>.
49726         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49727         * modules/xstrtol (Depends-on): Add stdnoreturn.
49729         xmemdup0: use stdnoreturn.h
49730         * lib/xmemdup0.h: Include <stdnoreturn.h>.
49731         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49732         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
49734         sigpipe-die: use stdnoreturn.h
49735         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
49736         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49737         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
49739         openat: use stdnoreturn.h
49740         * lib/openat.h: Include <stdnoreturn.h>.
49741         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49742         * modules/openat (Depends-on): Add stdnoreturn.
49744         * lib/openat-die.c (openat_save_fail): Modernize comment.
49746         * lib/xalloc-die.c (xalloc_die): Modernize comment.
49748         * lib/glthread/thread.h: Modernize comment.
49750         obstack: use _Noreturn
49751         * lib/obstack.c (__attribute__): Remove macro.
49752         (print_and_abort): Use _Noreturn.
49754         c-stack: use _Noreturn
49755         * lib/c-stack.c (die, overflow_handler, segv_handler):
49756         Use _Noreturn rather than __attribute__((noreturn)).
49758         argmatch-tests, exclude_tests: use _Noreturn
49759         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
49760         Remove.
49761         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
49763         stdlib: use _Noreturn
49764         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
49765         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
49766         * modules/stdlib (Depends-on): Add _Noreturn.
49767         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
49769         stdnoreturn-tests: new module
49770         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
49772         stdnoreturn: new module
49773         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
49774         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
49776         _Noreturn-tests: new module
49777         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
49779         _Noreturn: new module
49780         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
49781         New section, mentioning it.
49782         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
49784         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
49786 2011-07-11  Eric Blake  <eblake@redhat.com>
49788         ffs: new module
49789         * modules/ffs: New file.
49790         * m4/ffs.m4: Likewise.
49791         * lib/ffs.c: Likewise.
49792         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
49793         * modules/strings (Makefile.am): Substitute witness.
49794         (Depends-on): Add c++defs.
49795         * lib/strings.in.h (ffs): Declare.
49796         * modules/ffs-tests: New test file.
49797         * tests/test-ffs.c: Test new module.
49798         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49799         * doc/posix-functions/ffs.texi (ffs): Likewise.
49801         regex: avoid compiler warning
49802         * lib/regex.c (includes): Include <strings.h>, for use of
49803         strcasecmp in regcomp.c.
49804         Reported by Joachim Schmitz.
49806 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49808         stdint: respect system's intmax_t if INTMAX_MAX
49809         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
49810         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
49811         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
49812         long but int64_t is long long, and where we will clash with the
49813         system intmax_t if we override it.  See
49814         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
49815         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
49816         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
49817         similarly for UINTMAX_C.
49819 2011-07-08  Bruno Haible  <bruno@clisp.org>
49821         pthread_sigmask tests: Avoid a compiler warning.
49822         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
49823         non-zero.
49825         sigprocmask tests: A better way to avoid a compiler warning.
49826         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
49827         (main): Complain if system() returns non-zero.
49828         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
49830 2011-07-08  Bruno Haible  <bruno@clisp.org>
49832         pthread_sigmask: Work around IRIX bug.
49833         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
49834         bug.
49835         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
49836         there may be unblocked pending signals.
49837         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
49839 2011-07-08  Bruno Haible  <bruno@clisp.org>
49841         pthread_sigmask: Work around Cygwin bug.
49842         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
49843         bug.
49844         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
49845         the system's pthread_sigmask function.
49846         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
49848 2011-07-08  Bruno Haible  <bruno@clisp.org>
49850         pthread_sigmask: Work around bug in single-threaded implementation.
49851         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
49852         FreeBSD, HP-UX, Solaris bug.
49853         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
49854         * lib/pthread_sigmask.c: Include <stddef.h>.
49855         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
49856         the system's pthread_sigmask function.
49857         * modules/pthread_sigmask (configure.ac): Invoke
49858         gl_PREREQ_PTHREAD_SIGMASK.
49859         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
49860         HP-UX, Solaris.
49862 2011-07-08  Eric Blake  <eblake@redhat.com>
49864         test-sigprocmask: avoid compiler warning
49865         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
49866         * tests/test-sigprocmask.c (main): Use it to silence warning.
49867         Reported by Jim Meyering.
49869         test-snprintf: avoid compiler warning
49870         * tests/test-snprintf.c (main): Avoid shadowed declaration.
49871         * tests/test-vsnprintf.c (main): Likewise.
49872         Reported by Jim Meyering.
49874 2011-07-08  Bruno Haible  <bruno@clisp.org>
49876         Tests for module 'pthread_sigmask'.
49877         * modules/pthread_sigmask-tests: New file.
49878         * tests/test-pthread_sigmask1.c: New file, based on
49879         tests/test-sigprocmask.c.
49880         * tests/test-pthread_sigmask2.c: New file.
49882 2011-07-08  Jim Meyering  <meyering@redhat.com>
49884         test-getopt.h: avoid warning about an unused variable
49885         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
49887 2011-07-07  Jim Meyering  <meyering@redhat.com>
49889         maint: reduce list of files exempt from sc_prohibit_leading_TABs
49890         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
49891         now that it no longer contains leading TABs.
49892         Remove unused "url=FIXME" statement.
49894 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49896         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
49897         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49898         When gl_THREADLIB is not in use, assume that the POSIX sematics
49899         are desired.  This is better for Emacs, which uses POSIX semantics
49900         on GNUish and/or POSIXish platforms, and does not use threads at
49901         all otherwise.
49903         pthread_sigmask: fix typo when testing for libraries
49904         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49905         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
49907 2011-07-08  Eric Blake  <eblake@redhat.com>
49909         fts: introduce FTS_NOATIME
49910         * lib/fts_.h (FTS_NOATIME): New bit flag.
49911         (FTS_OPTIONMASK): Adjust.
49912         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
49913         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
49915 2011-07-08  Bruno Haible  <bruno@clisp.org>
49917         Tests for module 'thread'.
49918         * modules/thread-tests: New file.
49919         * tests/test-thread_self.c: New file.
49920         * tests/test-thread_create.cc: New file.
49922 2011-07-08  Bruno Haible  <bruno@clisp.org>
49924         thread: Avoid gcc warnings when using gl_thread_self().
49925         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
49926         'void *'.
49927         (gl_thread_self_pointer): Update.
49929 2011-07-07  Bruno Haible  <bruno@clisp.org>
49931         signal-c++-tests: Check declaration of pthread_sigmask.
49932         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
49933         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
49934         $(LIB_PTHREAD_SIGMASK).
49936 2011-07-07  Bruno Haible  <bruno@clisp.org>
49938         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
49939         * lib/signal.in.h (pthread_sigmask): Override if
49940         REPLACE_PTHREAD_SIGMASK is 1.
49941         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49942         REPLACE_PTHREAD_SIGMASK.
49943         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
49944         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
49945         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
49946         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
49947         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
49949 2011-07-07  Bruno Haible  <bruno@clisp.org>
49951         pthread_sigmask: Ensure declaration in <signal.h>.
49952         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
49953         include <pthread.h>.
49954         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
49955         problem.
49957 2011-07-07  Bruno Haible  <bruno@clisp.org>
49959         pthread_sigmask: Document the module.
49960         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
49962 2011-07-07  Bruno Haible  <bruno@clisp.org>
49964         pthread_sigmask: Follow gnulib conventions.
49965         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
49966         gl_PTHREAD_SIGMASK.
49967         * modules/pthread_sigmask (configure.ac): Update.
49969 2011-07-07  Bruno Haible  <bruno@clisp.org>
49971         pthread_sigmask: Make declaration C++ safe.
49972         * lib/signal.in.h: In two special conditions, just do an #include_next.
49973         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
49974         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
49975         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49976         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
49977         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
49978         not REPLACE_PTHREAD_MASK.
49979         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
49980         not REPLACE_PTHREAD_MASK.
49981         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
49983 2011-07-07  Bruno Haible  <bruno@clisp.org>
49985         pthread_sigmask: Fix return value.
49986         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
49987         * lib/pthread_sigmask.c: New file.
49988         * modules/pthread_sigmask (Files): Add it.
49989         (configure.ac): Invoke AC_LIBOBJ.
49991 2011-07-07  Eric Blake  <eblake@redhat.com>
49993         getopt: more portable argv creation
49994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
49995         const, use char arrays rather than strings.
49996         Suggested by Paul Eggert.
49998 2011-07-07  Bruno Haible  <bruno@clisp.org>
50000         Tests for module 'sigprocmask'.
50001         * modules/sigprocmask-tests: New file.
50002         * tests/test-sigprocmask.c: New file.
50004 2011-07-07  Bruno Haible  <bruno@clisp.org>
50006         float tests: Tweak.
50007         * tests/test-float.c (main): Tweak skip message.
50009 2011-07-07  Eric Blake  <eblake@redhat.com>
50011         getopt: avoid compiler warning during configure
50012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
50013         assigning string literals to non-const pointer.
50015         getopt-gnu: avoid crash in glibc getopt
50016         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
50017         * tests/test-getopt.h (test_getopt): Enhance test.
50018         * tests/test-getopt_long.h (test_getopt_long): Likewise.
50019         * doc/posix-functions/getopt.texi (getopt): Document it.
50020         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50021         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50022         Likewise.
50024 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
50026         getopt: handle W; without long options in getopt [BZ #12922]
50027         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
50028         but no long options are defined, just return 'W'.
50030 2011-07-07  Bruno Haible  <bruno@clisp.org>
50032         Avoid literal tabs.
50033         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
50034         variable containing a tab instead of a literal tab.
50035         Reported by Jim Meyering.
50037 2011-07-07  Bruno Haible  <bruno@clisp.org>
50039         Comments.
50040         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
50042 2011-07-06  Bruno Haible  <bruno@clisp.org>
50044         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
50045         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
50046         <winsock2.h>.
50047         (rpl_fd_isset, FD_ISSET): New definitions, copied from
50048         lib/sys_socket.in.h.
50049         (close, gethostname): Hide declarations from <winsock2.h>.
50050         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50051         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
50052         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
50053         (select): Don't override if gnulib's <sys/select.h> was already
50054         included.
50055         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50056         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50057         setsockopt, shutdown, select): Tweak indentation.
50059 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50061         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
50062         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
50063         in an application that does not use the sys_select module.
50065 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
50067         poll: do not return 0 on timeout=-1
50068         * lib/poll.c: Loop with yield if no events occurred.
50070 2011-07-06  Eric Blake  <eblake@redhat.com>
50072         pthread_sigmask: always replace when not using pthread
50073         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
50074         replacement when using some threading other than pthread.  Fix
50075         logic bug.
50077 2011-07-06  Bruno Haible  <bruno@clisp.org>
50079         Comments.
50080         * m4/printf.m4: Update comments about mingw.
50082 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50084         sys_select: define sigset_t more portably
50085         * lib/sys_select.in.h: Always include <sys/types.h>, since
50086         we now need sigset_t and mingw defines it there.
50087         Include <signal.h> before split inclusion guard, to avoid
50088         mishaps on Solaris, whose <signal.h> eventually includes us.
50089         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
50090         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
50091         which come from ...
50092         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50093         gl_CHECK_TYPE_SIGSET_T.
50094         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
50095         does the real work.
50096         * modules/sys_select (Depends-on): Add 'signal'.
50098         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
50099         Suggested by Bruno Haible.
50101         pselect: Use pthread_sigmask, not sigprocmask.
50102         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
50103         multithreaded apps better than sigprocmask does.
50104         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
50105         sigprocmask directly.
50107 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50109         * lib/pselect.c (pselect): Use plain name, without "rpl_".
50110         Don't #undef,  since we don't need any underlying pselect.
50111         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
50112         (Depends-on): Add select.
50113         (Link): Add $(LIBSOCKET).
50114         These changes suggested by Bruno Haible.
50116         pselect: document better
50117         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50118         * doc/posix-functions/pselect.texi (pselect): Document new module.
50120         pthread_sigmask: new module
50121         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50122         * doc/posix-functions/pthread_sigmask.texi: Document new module.
50123         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
50124         This is done only as a macro; I don't know how well that'll
50125         work for C++.  Move <sys/types.h> include before the include_next,
50126         to avoid mishap on Solaris.
50127         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
50128         * modules/signal (Makefile.am): Substitute the check's results.
50129         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
50131         test-pselect: new module
50132         * modules/pselect-tests, tests/test-pselect.c: New files.
50133         * tests/test-select.c, tests/test-sys_select-c++.cc:
50134         If TEST_PSELECT is defined, test pselect instead of testing select.
50136         * tests/test-sys_select.c (sigset_t): Test for it, too.
50137         Suggested by Bruno Haible.
50139 2011-07-05  Eric Blake  <eblake@redhat.com>
50141         snprintf: guarantee %1$d, for libintl
50142         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
50143         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50144         * doc/posix-functions/snprintf.texi (snprintf): Update.
50145         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50146         * tests/test-snprintf.c (main): Enhance test.
50147         * tests/test-vsnprintf.c (main): Likewise.
50149 2011-07-05  Jim Meyering  <meyering@redhat.com>
50151         maint: exempt stdio-read.c and stdio-write.c from the cppi check
50152         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
50153         per Bruno's request, to accommodate this idiom (no space after "#")
50154         even when the function is inside an #if block:
50155         char *
50156         gets (char *s)
50157         #undef gets
50158         {
50159           ...
50160         }
50162 2011-07-04  Jim Meyering  <meyering@redhat.com>
50164         maint: indent with spaces, not TABs, and add a rule to check this
50165         * tests/test-userspec.c: Indent with spaces, not TABs.
50166         * tests/test-argp.c: Likewise.
50167         * tests/test-c-stack2.sh: Likewise.
50168         * tests/test-parse-duration.sh: Likewise
50169         * m4/strtod.m4: Likewise.
50170         * m4/alloca.m4: Likewise.
50171         * m4/pselect.m4: Likewise.
50172         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
50174 2011-07-03  Jim Meyering  <meyering@redhat.com>
50176         maint.mk: correct omissions in prohibit_argmatch_without_use check
50177         This rule would mistakenly report that argmatch.h is included without
50178         use even when both the argmatch and invalid_arg macro were used.
50179         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
50180         of argmatch and invalid_arg.
50182 2011-07-03  Bruno Haible  <bruno@clisp.org>
50184         Comments about EINTR.
50185         * lib/safe-read.h: Explain the purpose of this module.
50186         * lib/safe-write.h: Likewise.
50187         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
50188         module.
50189         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
50190         module.
50191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50193 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50195         xnanosleep: Rewrite to use new dtotimespec module.
50196         It has the conversion code that used to be in xnanosleep.
50197         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
50198         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
50199         (TIME_T_MAX): Remove.
50200         (xnanosleep): Rewrite in terms of dtotimespec.
50201         * modules/xnanosleep (Depends-on): Add dtotimespec.
50202         Remove intprops, stdbool.
50204         timespec-add, timespec-sub: new modules
50205         * lib/timespec.h (timespec_add, timespec_sub): New decls.
50206         * lib/timespec-add.c, lib/timespec-sub.c:
50207         * modules/timespec-add, modules/timespec-sub: New files.
50209         dtotimespec: new module
50210         * lib/timespec.h (dtotimespec): New decl.
50211         * lib/dtotimespec.c, modules/dtotimespec: New files.
50213         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
50215         pselect: new module
50216         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
50217         (pselect): New decls.
50218         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
50219         since the standard pselect decl uses 'restrict'.
50220         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
50221         HAVE_PSELECT, REPLACE_PSELECT.
50222         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
50223         HAVE_PSELECT, REPLACE_PSELECT.
50224         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
50226         sys_select: don't depend on sys_socket
50227         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
50228         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
50229         This fix works on GNU and GNU-like platforms, but has not been tested
50230         on native Windows.
50231         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
50232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
50233         gl_HEADER_SYS_SOCKET.
50234         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
50235         gl_PREREQ_SYS_H_WINSOCK2.
50237 2011-06-29  Eric Blake  <eblake@redhat.com>
50239         pipe2: fix C89 compile problem
50240         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
50241         Reported by Bruno Haible.
50243         pipe, pipe2: don't corrupt fd on error
50244         * lib/pipe.c (pipe): Leave fd unchanged on error.
50245         * lib/pipe2.c (pipe2): Likewise.
50246         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
50247         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50249 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
50251         mmap-anon: do not use regular expressions inadvertently
50252         * m4/mmap-anon.m4: Remove trailing period from strings sought
50253         in the output.
50255 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
50257         nanosleep: fix integer overflow problem
50258         * lib/nanosleep.c (my_usleep): Don't assume signed integer
50259         arithmetic wraps around on overflow.
50261         nanosleep: simplify carrying
50262         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
50263         first call to the underyling nanosleep, not for the last one.
50264         This doesn't fix any bugs, but it simplifies the computation of
50265         the remaining delay.  Found while auditing integer overflow issues.
50267         dup2: remove test for existence of fcntl
50268         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
50269         "#if HAVE_FCNTL", in the configure-time test program.
50270         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
50271         and therefore speeds up "configure" a bit.  Found while
50272         adding the dup2 module to Emacs.
50274 2011-06-24  Eric Blake  <eblake@redhat.com>
50276         maint.mk: enhance useless header checks
50277         * top/maint.mk (_sc_header_without_use): Check both include
50278         styles.
50279         (sc_prohibit_assert_without_use)
50280         (sc_prohibit_close_stream_without_use)
50281         (sc_prohibit_getopt_without_use)
50282         (sc_prohibit_quotearg_without_use)
50283         (sc_prohibit_quote_without_use)
50284         (sc_prohibit_long_options_without_use)
50285         (sc_prohibit_inttostr_without_use)
50286         (sc_prohibit_ignore_value_without_use)
50287         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
50288         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
50289         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
50290         (sc_prohibit_hash_pjw_without_use)
50291         (sc_prohibit_safe_read_without_use)
50292         (sc_prohibit_argmatch_without_use)
50293         (sc_prohibit_canonicalize_without_use)
50294         (sc_prohibit_root_dev_ino_without_use)
50295         (sc_prohibit_openat_without_use)
50296         (sc_prohibit_c_ctype_without_use)
50297         (sc_prohibit_signal_without_use)
50298         (sc_prohibit_stdio--_without_use)
50299         (sc_prohibit_stdio-safer_without_use)
50300         (sc_prohibit_strings_without_use)
50301         (sc_prohibit_intprops_without_use)
50302         (sc_prohibit_stddef_without_use)
50303         (sc_prohibit_xfreopen_without_use): Update clients.
50305 2011-06-24  Jim Meyering  <meyering@redhat.com>
50307         syntax-check: keep one maint.mk rule in sync with its header
50308         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
50309         of the bug Eric has just fixed, with today's commit 25e4c2ec.
50310         I prefer to avoid temporary files here, so use <(...), but that
50311         is not supported by /bin/sh, so...
50312         (SHELL): Define to /bin/bash.
50314 2011-06-24  Eric Blake  <eblake@redhat.com>
50316         maint.mk: update sc_prohibit_intprops_without_use
50317         * top/maint.mk (_intprops_names): Match recent changes.
50319 2011-06-24  Bruno Haible  <bruno@clisp.org>
50321         strerror-override: No-op tweak.
50322         * lib/strerror-override.h (strerror_override): Reorder conditions,
50323         for consistency with lib/strerror-override.c.
50325 2011-06-23  Eric Blake  <eblake@redhat.com>
50327         maint.mk: test further PATH_MAX issues
50328         * top/maint.mk (sc_prohibit_path_max_array): Rename...
50329         (sc_prohibit_path_max_allocation): ...and also test alloca.
50330         Suggested by Jim Meyering.
50332 2011-06-22  Eric Blake  <eblake@redhat.com>
50334         maint.mk: add syntax-check to avoid char[PATH_MAX]
50335         * top/maint.mk (sc_prohibit_path_max_array): New rule.
50337         stat: be robust to PATH_MAX definition
50338         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
50339         * modules/stat (Depends-on): Add verify.
50341         link: work around IRIX bug
50342         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
50343         * lib/link.c (rpl_link): Work around it.
50344         * tests/test-link.h (test_link): Enhance test.
50345         * doc/posix-functions/link.texi (link): Document the bug.
50347         getopt: silence clang warning
50348         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
50349         dereference.
50350         Reported by Gustavo Martin Domato.
50352 2011-06-22  Jim Meyering  <meyering@redhat.com>
50354         bootstrap: do not insert a blank line into each .gitignore file
50355         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
50357 2011-06-21  Eric Blake  <eblake@redhat.com>
50359         perror: test for output mismatch
50360         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
50361         perror on IRIX.
50363         strerror_r: fix OpenBSD behavior on out-of-range
50364         * lib/strerror_r.c (strerror_r): Always use maximal string.
50365         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50367         strerror_r: fix OpenBSD behavior on 0
50368         * lib/strerror-override.c (strerror_override): Also override 0
50369         when needed.
50370         * lib/strerror-override.h (strerror_override): Likewise.
50371         * lib/strerror.c (strerror): Simplify, now that 0 override is done
50372         earlier.
50373         * lib/strerror_r.c (strerror_r): Likewise.
50374         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
50375         behavior...
50376         (gl_FUNC_STRERROR_0): ...into new macro.
50377         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
50378         is overridden.
50379         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
50380         * modules/strerror-override (Files): Add strerror.m4.
50381         (configure.ac): Also provide override for 0 when needed.
50382         * doc/posix-functions/strerror.texi (strerror): Document this.
50383         * doc/posix-functions/perror.texi (perror): Likewise.
50385         perror: adjust array size
50386         * modules/perror (Depends-on): Add strerror-override.
50387         * lib/perror.c (perror): Use it to avoid magic number.
50389         strerror-override: reduce size
50390         * lib/strerror-override.c (strerror_override): Use fewer lines.
50392 2011-06-20  Bruno Haible  <bruno@clisp.org>
50394         pathmax: Ensure correct value for PATH_MAX on HP-UX.
50395         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
50397 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50399         alloca: port to compilers that can optimize like GCC 4.6.0
50400         * lib/alloca.c (find_stack_direction): New signature, taken from
50401         Autoconf git.  This works with GCC 4.6.0.  This code should never
50402         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
50403         be used with other compilers that optimize as well as GCC 4.6.0 does.
50404         (alloca): Adjust to new signature.
50405         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
50406         New macro, which patches Autoconf in a similar way.
50408         c-stack: stop worrying about stack direction
50409         * lib/c-stack.c (find_stack_direction): Remove.
50410         (segv_handler): Don't worry about stack direction growth, as it's
50411         too much of a pain to configure this correctly, given how compilers
50412         are optimizing-away our stack-growth detection code.  Instead, assume
50413         that any access to just before or just after the stack is OK.
50414         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50415         Don't require AC_FUNC_ALLOCA; no longer needed.
50417 2011-06-20  Eric Blake  <eblake@redhat.com>
50419         test-stat: don't allocate PATH_MAX bytes
50420         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
50421         PATH_MAX-sized buffer.
50422         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
50423         * modules/stat-tests (Depends-on): Likewise.
50424         * tests/test-fstatat.c (includes): Drop pathmax.h.
50425         * tests/test-stat.c (includes): Likewise.
50426         Reported by Bruno Haible.
50428 2011-06-20  Bruno Haible  <bruno@clisp.org>
50430         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
50431         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
50432         * lib/float.c: New file.
50433         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
50434         REPLACE_FLOAT_LDBL.
50435         * modules/float (Files): Add lib/float.c.
50436         (configure.ac): Invoke AC_LIBOBJ.
50437         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
50439 2011-06-20  Bruno Haible  <bruno@clisp.org>
50441         Tests for module 'float'.
50442         * modules/float-tests: New file.
50443         * tests/test-float.c: New file.
50445 2011-06-19  Bruno Haible  <bruno@clisp.org>
50447         isinf: Coding style.
50448         * lib/isinf.c: Use GNU coding style.
50450 2011-06-19  Bruno Haible  <bruno@clisp.org>
50452         linkat test: Avoid test failure on AIX 7.1.
50453         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
50454         * tests/test-link.h (test_link): Likewise.
50456 2011-06-19  Bruno Haible  <bruno@clisp.org>
50458         pread test: Avoid test failure on OpenBSD 4.9.
50459         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
50461 2011-06-19  Bruno Haible  <bruno@clisp.org>
50463         sprintf-posix: Fix test failure on AIX 7.1.
50464         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
50465         * doc/posix-functions/dprintf.texi: Mention limited precision problem
50466         on AIX.
50467         * doc/posix-functions/fprintf.texi: Likewise.
50468         * doc/posix-functions/printf.texi: Likewise.
50469         * doc/posix-functions/snprintf.texi: Likewise.
50470         * doc/posix-functions/sprintf.texi: Likewise.
50471         * doc/posix-functions/vdprintf.texi: Likewise.
50472         * doc/posix-functions/vfprintf.texi: Likewise.
50473         * doc/posix-functions/vprintf.texi: Likewise.
50474         * doc/posix-functions/vsnprintf.texi: Likewise.
50475         * doc/posix-functions/vsprintf.texi: Likewise.
50477 2011-06-19  Bruno Haible  <bruno@clisp.org>
50479         roundl-ieee: Fix test failure on AIX 7.1.
50480         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
50481         * doc/posix-functions/roundl.texi: Mention problem with negative
50482         arguments.
50484 2011-06-19  Bruno Haible  <bruno@clisp.org>
50486         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50487         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
50488         * doc/posix-functions/round.texi: Mention problem with negative
50489         arguments.
50490         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
50492 2011-06-19  Bruno Haible  <bruno@clisp.org>
50494         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50495         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
50496         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
50497         * doc/posix-functions/roundf.texi: Mention problem with negative
50498         arguments.
50499         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
50501 2011-06-19  Bruno Haible  <bruno@clisp.org>
50503         ceilf-ieee: Work around bug on MacOS X 10.5.
50504         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
50506         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
50507         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
50508         IEEE compliant, avoid compiler optimizations.
50509         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
50510         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50511         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
50512         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50513         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50514         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
50515         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50516         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
50517         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
50518         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
50520 2011-06-19  Bruno Haible  <bruno@clisp.org>
50522         ceilf-ieee: Work around bug on AIX 7.1.
50523         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
50524         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
50526 2011-06-19  Bruno Haible  <bruno@clisp.org>
50528         ceil-ieee: Work around bug on AIX 7.1.
50529         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
50530         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
50532 2011-06-18  Bruno Haible  <bruno@clisp.org>
50534         fsync test: Avoid test failure on MacOS X and AIX.
50535         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
50536         EINVAL.
50538 2011-06-18  Bruno Haible  <bruno@clisp.org>
50540         openat, fdopendir tests: Fix link errors.
50541         * modules/openat-tests (Depends-on): Add progname.
50542         * modules/fdopendir-tests (Depends-on): Likewise.
50543         * tests/test-fchownat.c: Include progname.h.
50544         (main): Call set_program_name.
50545         * tests/test-fstatat.c: Include progname.h.
50546         (main): Call set_program_name.
50547         * tests/test-mkdirat.c: Include progname.h.
50548         (main): Call set_program_name.
50549         * tests/test-openat.c: Include progname.h.
50550         (main): Call set_program_name.
50551         * tests/test-unlinkat.c: Include progname.h.
50552         (main): Call set_program_name.
50553         * tests/test-fdopendir.c: Include progname.h.
50554         (main): Call set_program_name.
50556 2011-06-18  Bruno Haible  <bruno@clisp.org>
50558         Doc update.
50559         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
50560         HP-UX.
50561         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
50563 2011-06-18  Bruno Haible  <bruno@clisp.org>
50565         getcwd tests: Avoid compilation error on HP-UX 11.31.
50566         * modules/getcwd-tests (Depends-on): Add pathmax.
50567         * tests/test-getcwd.c: Include pathmax.h.
50569 2011-06-18  Bruno Haible  <bruno@clisp.org>
50571         isfinite, isinf: Fix link error on AIX 6 and 7.
50572         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
50573         needed, also test the macro with a 'float' argument.
50574         * m4/isinf.m4 (gl_ISINF): Likewise.
50576 2011-06-18  Bruno Haible  <bruno@clisp.org>
50578         getloadavg: Don't clobber LIBS. Regression from previous commit.
50579         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
50580         AC_CHECK_LIB from here...
50581         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
50582         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
50583         gl_func_getloadavg_done.
50584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50586 2011-06-18  Bruno Haible  <bruno@clisp.org>
50588         clean-temp: Improve documentation.
50589         * lib/clean-temp.h: Explain better how to use this module.
50590         Reported by John Darrington <john@darrington.wattle.id.au>.
50592 2011-06-17  Bruno Haible  <bruno@clisp.org>
50594         pread, pwrite: Avoid cc warning on AIX.
50595         * lib/unistd.in.h (pread): Undefine before defining as a macro.
50596         (pwrite): Likewise.
50598 2011-06-17  Bruno Haible  <bruno@clisp.org>
50600         spawn-pipe tests: Fix link error.
50601         * tests/test-spawn-pipe-child.c: Undefine fprintf.
50602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50604 2011-06-17  Bruno Haible  <bruno@clisp.org>
50606         Tests: Remove unnecessary dependency.
50607         * modules/canonicalize-tests (Depends-on): Remove progname.
50608         * modules/chown-tests (Depends-on): Likewise.
50609         * modules/dirname-tests (Depends-on): Likewise.
50610         * modules/fdopendir-tests (Depends-on): Likewise.
50611         * modules/fdutimensat-tests (Depends-on): Likewise.
50612         * modules/hash-tests (Depends-on): Likewise.
50613         * modules/lchown-tests (Depends-on): Likewise.
50614         * modules/linkat-tests (Depends-on): Likewise.
50615         * modules/renameat-tests (Depends-on): Likewise.
50616         * modules/spawn-pipe-tests (Depends-on): Likewise.
50617         * modules/utimensat-tests (Depends-on): Likewise.
50619 2011-06-17  Bruno Haible  <bruno@clisp.org>
50621         spawn-pipe tests: Fix link error.
50622         * tests/test-spawn-pipe-child.c: Undefine fflush.
50624 2011-06-17  Bruno Haible  <bruno@clisp.org>
50626         Fix tests link errors.
50627         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
50628         * modules/chown-tests (Makefile.am): Don't link test-chown with
50629         LIBINTL.
50630         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
50631         LIBINTL.
50632         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
50633         LIBINTL.
50634         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
50635         LIBINTL.
50637 2011-06-16  Bruno Haible  <bruno@clisp.org>
50639         crypto/gc-sha1: Fix recent regression.
50640         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
50641         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
50643         crypto/gc-md5: Fix recent regression.
50644         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
50646         crypto/gc-md4: Fix recent regression.
50647         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
50648         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
50650         crypto/gc-arctwo: Fix recent regression.
50651         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
50652         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
50654         crypto/gc-rijndael: Fix recent regression.
50655         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
50656         (configure.ac): Invoke AC_LIBOBJ here.
50657         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
50658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50660         crypto/gc-hmac-sha1: Fix recent regression.
50661         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
50662         (configure.ac): Invoke AC_LIBOBJ here.
50663         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
50664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50666         crypto/gc-hmac-md5: Fix recent regression.
50667         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
50668         (configure.ac): Invoke AC_LIBOBJ here.
50669         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
50670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50672         crypto/gc-des: Fix recent regression.
50673         * modules/crypto/gc-des (Files): Remove m4/des.m4.
50674         (configure.ac): Invoke AC_LIBOBJ here.
50675         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
50676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50678         crypto/gc-arcfour: Fix recent regression.
50679         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
50680         (configure.ac): Invoke AC_LIBOBJ here.
50681         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
50682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50684 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
50686         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
50687         After the 2011-05-21 change, this macro requires
50688         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
50689         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50691 2011-06-16  Bruno Haible  <bruno@clisp.org>
50693         fprintftime: Move AC_LIBOBJ invocations to module description.
50694         * m4/fprintftime.m4: Remove file.
50695         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
50696         (configure.ac): Remove gl_FPRINTFTIME call.
50697         (Makefile.am): Augment lib_SOURCES.
50698         Reported by Jim Meyering.
50700 2011-06-16  Bruno Haible  <bruno@clisp.org>
50702         tmpfile-safer: Finish 2011-05-23 commit.
50703         * m4/stdio-safer.m4: Really remove file.
50704         Reported by Jim Meyering.
50706 2011-06-16  Bruno Haible  <bruno@clisp.org>
50708         syntax-check: Fix typo.
50709         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
50710         printf-posix.m4.
50711         Reported by Jim Meyering.
50713 2011-06-13  Jim Meyering  <meyering@redhat.com>
50715         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
50716         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
50718 2011-05-23  Bruno Haible  <bruno@clisp.org>
50720         yesno: Move AC_LIBOBJ invocations to module description.
50721         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
50722         * modules/yesno (Makefile.am): Augment lib_SOURCES.
50724 2011-05-23  Bruno Haible  <bruno@clisp.org>
50726         xstrtol: Move AC_LIBOBJ invocations to module description.
50727         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
50728         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
50730 2011-05-23  Bruno Haible  <bruno@clisp.org>
50732         xstrtold: Move AC_LIBOBJ invocations to module description.
50733         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
50734         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
50736 2011-05-23  Bruno Haible  <bruno@clisp.org>
50738         xstrtod: Move AC_LIBOBJ invocations to module description.
50739         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
50740         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
50742 2011-05-23  Bruno Haible  <bruno@clisp.org>
50744         xnanosleep: Move AC_LIBOBJ invocations to module description.
50745         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
50746         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
50748 2011-05-23  Bruno Haible  <bruno@clisp.org>
50750         xgetcwd: Move AC_LIBOBJ invocations to module description.
50751         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
50752         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
50754 2011-05-23  Bruno Haible  <bruno@clisp.org>
50756         xalloc: Move AC_LIBOBJ invocations to module description.
50757         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
50758         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
50760 2011-05-23  Bruno Haible  <bruno@clisp.org>
50762         write-any-file: Move AC_LIBOBJ invocations to module description.
50763         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
50764         invocation.
50765         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
50767 2011-05-23  Bruno Haible  <bruno@clisp.org>
50769         utimens: Move AC_LIBOBJ invocations to module description.
50770         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
50771         * modules/utimens (Makefile.am): Augment lib_SOURCES.
50773 2011-05-23  Bruno Haible  <bruno@clisp.org>
50775         utimecmp: Move AC_LIBOBJ invocations to module description.
50776         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
50777         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
50779 2011-05-23  Bruno Haible  <bruno@clisp.org>
50781         userspec: Move AC_LIBOBJ invocations to module description.
50782         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
50783         * modules/userspec (Makefile.am): Augment lib_SOURCES.
50785 2011-05-23  Bruno Haible  <bruno@clisp.org>
50787         unlinkdir: Move AC_LIBOBJ invocations to module description.
50788         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
50789         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
50791 2011-05-23  Bruno Haible  <bruno@clisp.org>
50793         unistd-safer: Move AC_LIBOBJ invocations to module description.
50794         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
50795         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
50797 2011-05-23  Bruno Haible  <bruno@clisp.org>
50799         tempname: Move AC_LIBOBJ invocations to module description.
50800         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
50801         * modules/tempname (Makefile.am): Augment lib_SOURCES.
50803 2011-05-23  Bruno Haible  <bruno@clisp.org>
50805         strftime: Move AC_LIBOBJ invocations to module description.
50806         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
50807         * modules/strftime (Makefile.am): Augment lib_SOURCES.
50809 2011-05-23  Bruno Haible  <bruno@clisp.org>
50811         stdlib-safer: Move AC_LIBOBJ invocations to module description.
50812         * m4/stdlib-safer.m4: Remove file.
50813         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
50814         (configure.ac): Remove gl_STDLIB_SAFER call.
50815         (Makefile.am): Augment lib_SOURCES.
50817 2011-05-23  Bruno Haible  <bruno@clisp.org>
50819         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
50820         * m4/stdio-safer.m4: Remove file.
50821         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
50822         (configure.ac): Remove gl_TMPFILE_SAFER call.
50823         (Makefile.am): Augment lib_SOURCES.
50825 2011-05-23  Bruno Haible  <bruno@clisp.org>
50827         popen-safer: Move AC_LIBOBJ invocations to module description.
50828         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
50829         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
50830         (configure.ac): Remove gl_POPEN_SAFER call.
50831         (Makefile.am): Augment lib_SOURCES.
50833 2011-05-23  Bruno Haible  <bruno@clisp.org>
50835         freopen-safer: Move AC_LIBOBJ invocations to module description.
50836         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
50837         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
50838         (configure.ac): Remove gl_FREOPEN_SAFER call.
50839         (Makefile.am): Augment lib_SOURCES.
50841 2011-05-23  Bruno Haible  <bruno@clisp.org>
50843         fopen-safer: Move AC_LIBOBJ invocations to module description.
50844         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
50845         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
50846         (configure.ac): Remove gl_FOPEN_SAFER call.
50847         (Makefile.am): Augment lib_SOURCES.
50849 2011-05-23  Bruno Haible  <bruno@clisp.org>
50851         crypto/sha512: Move AC_LIBOBJ invocations to module description.
50852         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
50853         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
50855 2011-05-23  Bruno Haible  <bruno@clisp.org>
50857         crypto/sha256: Move AC_LIBOBJ invocations to module description.
50858         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
50859         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
50861 2011-05-23  Bruno Haible  <bruno@clisp.org>
50863         crypto/sha1: Move AC_LIBOBJ invocations to module description.
50864         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
50865         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
50867 2011-05-23  Bruno Haible  <bruno@clisp.org>
50869         settime: Move AC_LIBOBJ invocations to module description.
50870         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
50871         * modules/settime (Makefile.am): Augment lib_SOURCES.
50873 2011-05-23  Bruno Haible  <bruno@clisp.org>
50875         savedir: Move AC_LIBOBJ invocations to module description.
50876         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
50877         * modules/savedir (Makefile.am): Augment lib_SOURCES.
50879 2011-05-23  Bruno Haible  <bruno@clisp.org>
50881         save-cwd: Move AC_LIBOBJ invocations to module description.
50882         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
50883         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
50885 2011-05-23  Bruno Haible  <bruno@clisp.org>
50887         same: Move AC_LIBOBJ invocations to module description.
50888         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
50889         * modules/same (Makefile.am): Augment lib_SOURCES.
50891 2011-05-23  Bruno Haible  <bruno@clisp.org>
50893         safe-write: Move AC_LIBOBJ invocations to module description.
50894         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
50895         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
50896         instead of gl_SAFE_WRITE.
50897         (Makefile.am): Augment lib_SOURCES.
50899 2011-05-23  Bruno Haible  <bruno@clisp.org>
50901         safe-read: Move AC_LIBOBJ invocations to module description.
50902         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
50903         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
50904         of gl_SAFE_READ.
50905         (Makefile.am): Augment lib_SOURCES.
50907 2011-05-23  Bruno Haible  <bruno@clisp.org>
50909         safe-alloc: Move AC_LIBOBJ invocations to module description.
50910         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
50911         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
50913 2011-05-23  Bruno Haible  <bruno@clisp.org>
50915         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
50916         * m4/rijndael.m4: Remove file.
50917         * modules/crypto/rijndael (Files): Remove it.
50918         (configure.ac): Remove gl_RIJNDAEL call.
50919         (Makefile.am): Augment lib_SOURCES.
50921 2011-05-23  Bruno Haible  <bruno@clisp.org>
50923         readtokens: Move AC_LIBOBJ invocations to module description.
50924         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
50925         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
50927 2011-05-23  Bruno Haible  <bruno@clisp.org>
50929         read-file: Move AC_LIBOBJ invocations to module description.
50930         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
50931         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
50932         of gl_FUNC_READ_FILE.
50933         (Makefile.am): Augment lib_SOURCES.
50935 2011-05-23  Bruno Haible  <bruno@clisp.org>
50937         quotearg: Move AC_LIBOBJ invocations to module description.
50938         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
50939         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
50941 2011-05-23  Bruno Haible  <bruno@clisp.org>
50943         quote: Move AC_LIBOBJ invocations to module description.
50944         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
50945         * modules/quote (Makefile.am): Augment lib_SOURCES.
50947 2011-05-23  Bruno Haible  <bruno@clisp.org>
50949         posixver: Move AC_LIBOBJ invocations to module description.
50950         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
50951         * modules/posixver (Makefile.am): Augment lib_SOURCES.
50953 2011-05-23  Bruno Haible  <bruno@clisp.org>
50955         posixtm: Move AC_LIBOBJ invocations to module description.
50956         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
50957         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
50959 2011-05-23  Bruno Haible  <bruno@clisp.org>
50961         physmem: Move AC_LIBOBJ invocations to module description.
50962         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
50963         * modules/physmem (Makefile.am): Augment lib_SOURCES.
50965 2011-05-23  Bruno Haible  <bruno@clisp.org>
50967         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
50968         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
50969         invocation.
50970         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
50972 2011-05-23  Bruno Haible  <bruno@clisp.org>
50974         mpsort: Move AC_LIBOBJ invocations to module description.
50975         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
50976         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
50978 2011-05-23  Bruno Haible  <bruno@clisp.org>
50980         modechange: Move AC_LIBOBJ invocations to module description.
50981         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
50982         * modules/modechange (Makefile.am): Augment lib_SOURCES.
50984 2011-05-23  Bruno Haible  <bruno@clisp.org>
50986         mkdir-p: Move AC_LIBOBJ invocations to module description.
50987         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
50988         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
50990 2011-05-23  Bruno Haible  <bruno@clisp.org>
50992         mkancesdirs: Move AC_LIBOBJ invocations to module description.
50993         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
50994         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
50996 2011-05-23  Bruno Haible  <bruno@clisp.org>
50998         mgetgroups: Move AC_LIBOBJ invocations to module description.
50999         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
51000         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
51002 2011-05-23  Bruno Haible  <bruno@clisp.org>
51004         memxor: Move AC_LIBOBJ invocations to module description.
51005         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
51006         * modules/memxor (Makefile.am): Augment lib_SOURCES.
51008 2011-05-23  Bruno Haible  <bruno@clisp.org>
51010         memcoll: Move AC_LIBOBJ invocations to module description.
51011         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
51012         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
51014 2011-05-23  Bruno Haible  <bruno@clisp.org>
51016         memcasecmp: Move AC_LIBOBJ invocations to module description.
51017         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
51018         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
51020 2011-05-23  Bruno Haible  <bruno@clisp.org>
51022         crypto/md5: Move AC_LIBOBJ invocations to module description.
51023         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
51024         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
51026 2011-05-23  Bruno Haible  <bruno@clisp.org>
51028         crypto/md4: Move AC_LIBOBJ invocations to module description.
51029         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
51030         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
51032 2011-05-23  Bruno Haible  <bruno@clisp.org>
51034         crypto/md2: Move AC_LIBOBJ invocations to module description.
51035         * m4/md2.m4: Remove file.
51036         * modules/crypto/md2 (Files): Remove it.
51037         (configure.ac): Remove gl_MD2 call.
51038         (Makefile.am): Augment lib_SOURCES.
51040 2011-05-23  Bruno Haible  <bruno@clisp.org>
51042         long-options: Move AC_LIBOBJ invocations to module description.
51043         * m4/long-options.m4: Remove file.
51044         * modules/long-options (Files): Remove it.
51045         (configure.ac): Remove gl_LONG_OPTIONS call.
51046         (Makefile.am): Augment lib_SOURCES.
51048 2011-05-23  Bruno Haible  <bruno@clisp.org>
51050         i-ring: Move AC_LIBOBJ invocations to module description.
51051         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
51052         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
51054 2011-05-23  Bruno Haible  <bruno@clisp.org>
51056         idcache: Move AC_LIBOBJ invocations to module description.
51057         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
51058         * modules/idcache (Makefile.am): Augment lib_SOURCES.
51060 2011-05-23  Bruno Haible  <bruno@clisp.org>
51062         human: Move AC_LIBOBJ invocations to module description.
51063         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
51064         * modules/human (Makefile.am): Augment lib_SOURCES.
51066 2011-05-23  Bruno Haible  <bruno@clisp.org>
51068         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
51069         * m4/hmac-sha1.m4: Remove file.
51070         * modules/crypto/hmac-sha1 (Files): Remove it.
51071         (configure.ac): Remove gl_HMAC_SHA1 call.
51072         (Makefile.am): Augment lib_SOURCES.
51074 2011-05-23  Bruno Haible  <bruno@clisp.org>
51076         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
51077         * m4/hmac-md5.m4: Remove file.
51078         * modules/crypto/hmac-md5 (Files): Remove it.
51079         (configure.ac): Remove gl_HMAC_MD5 call.
51080         (Makefile.am): Augment lib_SOURCES.
51082 2011-05-23  Bruno Haible  <bruno@clisp.org>
51084         hash: Move AC_LIBOBJ invocations to module description.
51085         * m4/hash.m4: Remove file.
51086         * modules/hash (Files): Remove it.
51087         (configure.ac): Remove gl_HASH call.
51088         (Makefile.am): Augment lib_SOURCES.
51090 2011-05-23  Bruno Haible  <bruno@clisp.org>
51092         hard-locale: Move AC_LIBOBJ invocations to module description.
51093         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
51094         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
51096 2011-05-23  Bruno Haible  <bruno@clisp.org>
51098         getugroups: Move AC_LIBOBJ invocations to module description.
51099         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
51100         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
51102 2011-05-23  Bruno Haible  <bruno@clisp.org>
51104         gettime: Move AC_LIBOBJ invocations to module description.
51105         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
51106         * modules/gettime (Makefile.am): Augment lib_SOURCES.
51108 2011-05-23  Bruno Haible  <bruno@clisp.org>
51110         getndelim2: Move AC_LIBOBJ invocations to module description.
51111         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
51112         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
51114 2011-05-23  Bruno Haible  <bruno@clisp.org>
51116         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
51117         * m4/gc-pbkdf2-sha1.m4: Remove file.
51118         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
51119         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
51120         (Makefile.am): Augment lib_SOURCES.
51122 2011-05-23  Bruno Haible  <bruno@clisp.org>
51124         fts: Move AC_LIBOBJ invocations to module description.
51125         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
51126         * modules/fts (configure.ac): ... to here.
51128 2011-05-23  Bruno Haible  <bruno@clisp.org>
51130         file-type: Move AC_LIBOBJ invocations to module description.
51131         * m4/file-type.m4: Remove file.
51132         * modules/file-type (Files): Remove it.
51133         (configure.ac): Remove gl_FILE_TYPE call.
51134         (Makefile.am): Augment lib_SOURCES.
51136 2011-05-23  Bruno Haible  <bruno@clisp.org>
51138         filenamecat*: Respect rules for use of AC_LIBOBJ.
51139         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
51140         Remove AC_LIBOBJ invocation.
51141         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
51142         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
51144 2011-05-23  Bruno Haible  <bruno@clisp.org>
51146         filemode: Move AC_LIBOBJ invocations to module description.
51147         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
51148         * modules/filemode (Makefile.am): Augment lib_SOURCES.
51150 2011-05-23  Bruno Haible  <bruno@clisp.org>
51152         openat-safer: Move AC_LIBOBJ invocations to module description.
51153         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
51154         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
51156 2011-05-23  Bruno Haible  <bruno@clisp.org>
51158         fcntl-safer: Move AC_LIBOBJ invocations to module description.
51159         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
51160         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
51162 2011-05-23  Bruno Haible  <bruno@clisp.org>
51164         exclude: Move AC_LIBOBJ invocations to module description.
51165         * m4/exclude.m4: Remove file.
51166         * modules/exclude (Files): Remove it.
51167         (configure.ac): Remove gl_EXCLUDE call.
51168         (Makefile.am): Augment lib_SOURCES.
51170 2011-05-23  Bruno Haible  <bruno@clisp.org>
51172         dirname*: Respect rules for use of AC_LIBOBJ.
51173         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
51174         invocations.
51175         * modules/dirname (Makefile.am): Augment lib_SOURCES.
51176         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
51178 2011-05-23  Bruno Haible  <bruno@clisp.org>
51180         dirent-safer: Move AC_LIBOBJ invocations to module description.
51181         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
51182         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
51184 2011-05-23  Bruno Haible  <bruno@clisp.org>
51186         crypto/des: Move AC_LIBOBJ invocations to module description.
51187         * m4/des.m4: Remove file.
51188         * modules/crypto/des (Files): Remove it.
51189         (configure.ac): Remove gl_DES call.
51190         (Makefile.am): Augment lib_SOURCES.
51192 2011-05-23  Bruno Haible  <bruno@clisp.org>
51194         cycle-check: Move AC_LIBOBJ invocations to module description.
51195         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
51196         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
51198 2011-05-23  Bruno Haible  <bruno@clisp.org>
51200         c-strtold: Move AC_LIBOBJ invocations to module description.
51201         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
51202         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
51204 2011-05-23  Bruno Haible  <bruno@clisp.org>
51206         c-strtod: Move AC_LIBOBJ invocations to module description.
51207         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
51208         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
51210 2011-05-23  Bruno Haible  <bruno@clisp.org>
51212         crc: Move AC_LIBOBJ invocations to module description.
51213         * m4/crc.m4: Remove file.
51214         * modules/crc (Files): Remove it.
51215         (configure.ac): Remove gl_CRC call.
51216         (Makefile.am): Augment lib_SOURCES.
51218 2011-05-23  Bruno Haible  <bruno@clisp.org>
51220         close-stream: Move AC_LIBOBJ invocations to module description.
51221         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
51222         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
51224 2011-05-23  Bruno Haible  <bruno@clisp.org>
51226         closeout: Move AC_LIBOBJ invocations to module description.
51227         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
51228         * modules/closeout (Makefile.am): Augment lib_SOURCES.
51230 2011-05-23  Bruno Haible  <bruno@clisp.org>
51232         closein: Move AC_LIBOBJ invocations to module description.
51233         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
51234         * modules/closein (Makefile.am): Augment lib_SOURCES.
51236 2011-05-23  Bruno Haible  <bruno@clisp.org>
51238         cloexec: Move AC_LIBOBJ invocations to module description.
51239         * m4/cloexec.m4: Remove file.
51240         * modules/cloexec (Files): Remove it.
51241         (configure.ac): Remove gl_CLOEXEC call.
51242         (Makefile.am): Augment lib_SOURCES.
51244 2011-05-23  Bruno Haible  <bruno@clisp.org>
51246         check-version: Move AC_LIBOBJ invocations to module description.
51247         * m4/check-version.m4: Remove file.
51248         * modules/check-version (Files): Remove it.
51249         (configure.ac): Remove gl_CHECK_VERSION call.
51250         (Makefile.am): Augment lib_SOURCES.
51252 2011-05-23  Bruno Haible  <bruno@clisp.org>
51254         chdir-safer: Move AC_LIBOBJ invocations to module description.
51255         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
51256         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
51258 2011-05-23  Bruno Haible  <bruno@clisp.org>
51260         canonicalize: Move AC_LIBOBJ invocations to module description.
51261         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
51262         AC_LIBOBJ invocation.
51263         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
51265 2011-05-23  Bruno Haible  <bruno@clisp.org>
51267         canon-host: Move AC_LIBOBJ invocations to module description.
51268         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
51269         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
51270         instead of gl_CANON_HOST.
51271         (Makefile.am): Augment lib_SOURCES.
51273 2011-05-23  Bruno Haible  <bruno@clisp.org>
51275         backupfile: Move AC_LIBOBJ invocations to module description.
51276         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
51277         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
51279 2011-05-23  Bruno Haible  <bruno@clisp.org>
51281         argmatch: Move AC_LIBOBJ invocations to module description.
51282         * m4/argmatch.m4: Remove file.
51283         * modules/argmatch (Files): Remove it.
51284         (configure.ac): Remove gl_ARGMATCH call.
51285         (Makefile.am): Augment lib_SOURCES.
51287 2011-05-23  Bruno Haible  <bruno@clisp.org>
51289         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
51290         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
51291         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
51293 2011-05-23  Bruno Haible  <bruno@clisp.org>
51295         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
51296         * m4/arcfour.m4: Remove file.
51297         * modules/crypto/arcfour (Files): Remove it.
51298         (configure.ac): Remove gl_ARCFOUR call.
51299         (Makefile.am): Augment lib_SOURCES.
51301 2011-05-22  Bruno Haible  <bruno@clisp.org>
51303         write: Move AC_LIBOBJ invocations to module description.
51304         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
51305         * modules/write (configure.ac): ... to here.
51307 2011-05-22  Bruno Haible  <bruno@clisp.org>
51309         wmemset: Move AC_LIBOBJ invocations to module description.
51310         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
51311         here...
51312         * modules/wmemset (configure.ac): ... to here.
51314 2011-05-22  Bruno Haible  <bruno@clisp.org>
51316         wmemmove: Move AC_LIBOBJ invocations to module description.
51317         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
51318         here...
51319         * modules/wmemmove (configure.ac): ... to here.
51321 2011-05-22  Bruno Haible  <bruno@clisp.org>
51323         wmemcpy: Move AC_LIBOBJ invocations to module description.
51324         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
51325         here...
51326         * modules/wmemcpy (configure.ac): ... to here.
51328 2011-05-22  Bruno Haible  <bruno@clisp.org>
51330         wmemcmp: Move AC_LIBOBJ invocations to module description.
51331         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
51332         here...
51333         * modules/wmemcmp (configure.ac): ... to here.
51335 2011-05-22  Bruno Haible  <bruno@clisp.org>
51337         wmemchr: Move AC_LIBOBJ invocations to module description.
51338         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
51339         here...
51340         * modules/wmemchr (configure.ac): ... to here.
51342 2011-05-22  Bruno Haible  <bruno@clisp.org>
51344         wcswidth: Move AC_LIBOBJ invocations to module description.
51345         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
51346         here...
51347         * modules/wcswidth (configure.ac): ... to here.
51349 2011-05-22  Bruno Haible  <bruno@clisp.org>
51351         wcwidth: Respect rules for use of AC_LIBOBJ.
51352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
51353         invocation from here...
51354         * modules/wcwidth (configure.ac): ... to here.
51355         (Depends-on): Update conditions.
51357 2011-05-22  Bruno Haible  <bruno@clisp.org>
51359         wctype: Move AC_LIBOBJ invocations to module description.
51360         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
51361         invocation from here...
51362         * modules/wctype (configure.ac): ... to here.
51363         (Depends-on): Update conditions.
51365 2011-05-22  Bruno Haible  <bruno@clisp.org>
51367         wctrans: Move AC_LIBOBJ invocations to module description.
51368         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
51369         invocation from here...
51370         * modules/wctrans (configure.ac): ... to here.
51372 2011-05-22  Bruno Haible  <bruno@clisp.org>
51374         wctomb: Move AC_LIBOBJ invocations to module description.
51375         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
51376         invocations from here...
51377         * modules/wctomb (configure.ac): ... to here.
51379 2011-05-22  Bruno Haible  <bruno@clisp.org>
51381         wctob: Move AC_LIBOBJ invocations to module description.
51382         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
51383         gl_PREREQ_WCTOB invocations from here...
51384         * modules/wctob (configure.ac): ... to here.
51385         (Depends-on): Update conditions.
51387 2011-05-22  Bruno Haible  <bruno@clisp.org>
51389         wcsxfrm: Move AC_LIBOBJ invocations to module description.
51390         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
51391         here...
51392         * modules/wcsxfrm (configure.ac): ... to here.
51394 2011-05-22  Bruno Haible  <bruno@clisp.org>
51396         wcstok: Move AC_LIBOBJ invocations to module description.
51397         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
51398         * modules/wcstok (configure.ac): ... to here.
51400 2011-05-22  Bruno Haible  <bruno@clisp.org>
51402         wcsstr: Move AC_LIBOBJ invocations to module description.
51403         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
51404         * modules/wcsstr (configure.ac): ... to here.
51406 2011-05-22  Bruno Haible  <bruno@clisp.org>
51408         wcsspn: Move AC_LIBOBJ invocations to module description.
51409         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
51410         * modules/wcsspn (configure.ac): ... to here.
51412 2011-05-22  Bruno Haible  <bruno@clisp.org>
51414         wcsrtombs: Move AC_LIBOBJ invocations to module description.
51415         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
51416         gl_PREREQ_WCSRTOMBS invocations from here...
51417         * modules/wcsrtombs (configure.ac): ... to here.
51419 2011-05-22  Bruno Haible  <bruno@clisp.org>
51421         wcsrchr: Move AC_LIBOBJ invocations to module description.
51422         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
51423         here...
51424         * modules/wcsrchr (configure.ac): ... to here.
51426 2011-05-22  Bruno Haible  <bruno@clisp.org>
51428         wcspbrk: Move AC_LIBOBJ invocations to module description.
51429         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
51430         here...
51431         * modules/wcspbrk (configure.ac): ... to here.
51433 2011-05-22  Bruno Haible  <bruno@clisp.org>
51435         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
51436         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
51437         gl_PREREQ_WCSNRTOMBS invocations from here...
51438         * modules/wcsnrtombs (configure.ac): ... to here.
51440 2011-05-22  Bruno Haible  <bruno@clisp.org>
51442         wcsnlen: Move AC_LIBOBJ invocations to module description.
51443         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
51444         here...
51445         * modules/wcsnlen (configure.ac): ... to here.
51447 2011-05-22  Bruno Haible  <bruno@clisp.org>
51449         wcsncpy: Move AC_LIBOBJ invocations to module description.
51450         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
51451         here...
51452         * modules/wcsncpy (configure.ac): ... to here.
51454 2011-05-22  Bruno Haible  <bruno@clisp.org>
51456         wcsncmp: Move AC_LIBOBJ invocations to module description.
51457         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
51458         here...
51459         * modules/wcsncmp (configure.ac): ... to here.
51461 2011-05-22  Bruno Haible  <bruno@clisp.org>
51463         wcsncat: Move AC_LIBOBJ invocations to module description.
51464         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
51465         here...
51466         * modules/wcsncat (configure.ac): ... to here.
51468 2011-05-22  Bruno Haible  <bruno@clisp.org>
51470         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
51471         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
51472         from here...
51473         * modules/wcsncasecmp (configure.ac): ... to here.
51475 2011-05-22  Bruno Haible  <bruno@clisp.org>
51477         wcslen: Move AC_LIBOBJ invocations to module description.
51478         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
51479         * modules/wcslen (configure.ac): ... to here.
51481 2011-05-22  Bruno Haible  <bruno@clisp.org>
51483         wcsdup: Move AC_LIBOBJ invocations to module description.
51484         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
51485         * modules/wcsdup (configure.ac): ... to here.
51487 2011-05-22  Bruno Haible  <bruno@clisp.org>
51489         wcscspn: Move AC_LIBOBJ invocations to module description.
51490         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
51491         here...
51492         * modules/wcscspn (configure.ac): ... to here.
51494 2011-05-22  Bruno Haible  <bruno@clisp.org>
51496         wcscpy: Move AC_LIBOBJ invocations to module description.
51497         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
51498         * modules/wcscpy (configure.ac): ... to here.
51500 2011-05-22  Bruno Haible  <bruno@clisp.org>
51502         wcscoll: Move AC_LIBOBJ invocations to module description.
51503         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
51504         here...
51505         * modules/wcscoll (configure.ac): ... to here.
51507 2011-05-22  Bruno Haible  <bruno@clisp.org>
51509         wcscmp: Move AC_LIBOBJ invocations to module description.
51510         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
51511         * modules/wcscmp (configure.ac): ... to here.
51513 2011-05-22  Bruno Haible  <bruno@clisp.org>
51515         wcschr: Move AC_LIBOBJ invocations to module description.
51516         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
51517         * modules/wcschr (configure.ac): ... to here.
51519 2011-05-22  Bruno Haible  <bruno@clisp.org>
51521         wcscat: Move AC_LIBOBJ invocations to module description.
51522         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
51523         * modules/wcscat (configure.ac): ... to here.
51525 2011-05-22  Bruno Haible  <bruno@clisp.org>
51527         wcscasecmp: Move AC_LIBOBJ invocations to module description.
51528         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
51529         here...
51530         * modules/wcscasecmp (configure.ac): ... to here.
51532 2011-05-22  Bruno Haible  <bruno@clisp.org>
51534         wcrtomb: Move AC_LIBOBJ invocations to module description.
51535         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
51536         invocations from here...
51537         * modules/wcrtomb (configure.ac): ... to here.
51539 2011-05-22  Bruno Haible  <bruno@clisp.org>
51541         wcpncpy: Move AC_LIBOBJ invocations to module description.
51542         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
51543         here...
51544         * modules/wcpncpy (configure.ac): ... to here.
51546 2011-05-22  Bruno Haible  <bruno@clisp.org>
51548         wcpcpy: Move AC_LIBOBJ invocations to module description.
51549         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
51550         * modules/wcpcpy (configure.ac): ... to here.
51552 2011-05-22  Bruno Haible  <bruno@clisp.org>
51554         waitpid: Move AC_LIBOBJ invocations to module description.
51555         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
51556         invocation from here...
51557         * modules/waitpid (configure.ac): ... to here.
51559 2011-05-22  Bruno Haible  <bruno@clisp.org>
51561         utimensat: Move AC_LIBOBJ invocations to module description.
51562         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
51563         here...
51564         * modules/utimensat (configure.ac): ... to here.
51566 2011-05-22  Bruno Haible  <bruno@clisp.org>
51568         usleep: Move AC_LIBOBJ invocations to module description.
51569         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
51570         here...
51571         * modules/usleep (configure.ac): ... to here.
51573 2011-05-22  Bruno Haible  <bruno@clisp.org>
51575         unlockpt: Move AC_LIBOBJ invocations to module description.
51576         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
51577         gl_PREREQ_UNLOCKPT invocations from here...
51578         * modules/unlockpt (configure.ac): ... to here.
51580 2011-05-22  Bruno Haible  <bruno@clisp.org>
51582         unlink: Respect rules for use of AC_LIBOBJ.
51583         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
51584         * modules/unlink (configure.ac): ... to here.
51586 2011-05-22  Bruno Haible  <bruno@clisp.org>
51588         uname: Move AC_LIBOBJ invocations to module description.
51589         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
51590         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
51591         here...
51592         * modules/uname (configure.ac): ... to here.
51594 2011-05-22  Bruno Haible  <bruno@clisp.org>
51596         ttyname_r: Move AC_LIBOBJ invocations to module description.
51597         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
51598         gl_PREREQ_TTYNAME_R invocations from here...
51599         * modules/ttyname_r (configure.ac): ... to here.
51601 2011-05-22  Bruno Haible  <bruno@clisp.org>
51603         tsearch: Move AC_LIBOBJ invocations to module description.
51604         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
51605         invocations from here...
51606         * modules/tsearch (configure.ac): ... to here.
51608 2011-05-22  Bruno Haible  <bruno@clisp.org>
51610         towctrans: Move AC_LIBOBJ invocations to module description.
51611         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
51612         AC_LIBOBJ invocation from here...
51613         * modules/towctrans (configure.ac): ... to here.
51615 2011-05-22  Bruno Haible  <bruno@clisp.org>
51617         tmpfile: Move AC_LIBOBJ invocations to module description.
51618         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
51619         invocations from here...
51620         * modules/tmpfile (configure.ac): ... to here.
51622 2011-05-22  Bruno Haible  <bruno@clisp.org>
51624         times: Move AC_LIBOBJ invocations to module description.
51625         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
51626         * modules/times (configure.ac): ... to here.
51628 2011-05-22  Bruno Haible  <bruno@clisp.org>
51630         time_r: Move AC_LIBOBJ invocations to module description.
51631         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
51632         invocations from here...
51633         * modules/time_r (configure.ac): ... to here.
51635 2011-05-22  Bruno Haible  <bruno@clisp.org>
51637         timegm: Move AC_LIBOBJ invocations to module description.
51638         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
51639         invocations from here...
51640         * modules/timegm (configure.ac): ... to here.
51642 2011-05-22  Bruno Haible  <bruno@clisp.org>
51644         tcgetsid: Move AC_LIBOBJ invocations to module description.
51645         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
51646         and gl_PREREQ_TCGETSID invocations from here...
51647         * modules/tcgetsid (configure.ac): ... to here.
51648         (Depends-on): Update conditions.
51650 2011-05-22  Bruno Haible  <bruno@clisp.org>
51652         symlinkat: Move AC_LIBOBJ invocations to module description.
51653         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
51654         here...
51655         * modules/symlinkat (configure.ac): ... to here.
51657 2011-05-22  Bruno Haible  <bruno@clisp.org>
51659         symlink: Move AC_LIBOBJ invocations to module description.
51660         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
51661         here...
51662         * modules/symlink (configure.ac): ... to here.
51664 2011-05-22  Bruno Haible  <bruno@clisp.org>
51666         strverscmp: Move AC_LIBOBJ invocations to module description.
51667         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
51668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
51669         from here...
51670         * modules/strverscmp (configure.ac): ... to here.
51672 2011-05-22  Bruno Haible  <bruno@clisp.org>
51674         strtok_r: Move AC_LIBOBJ invocations to module description.
51675         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
51676         and gl_PREREQ_STRTOK_R invocations from here...
51677         * modules/strtok_r (configure.ac): ... to here.
51678         (Depends-on): Update conditions.
51680 2011-05-22  Bruno Haible  <bruno@clisp.org>
51682         strtoumax: Move AC_LIBOBJ invocations to module description.
51683         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
51684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
51685         from here...
51686         * modules/strtoumax (configure.ac): ... to here.
51688 2011-05-22  Bruno Haible  <bruno@clisp.org>
51690         strtoimax: Move AC_LIBOBJ invocations to module description.
51691         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
51692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
51693         from here...
51694         * modules/strtoimax (configure.ac): ... to here.
51696 2011-05-22  Bruno Haible  <bruno@clisp.org>
51698         strtoull: Move AC_LIBOBJ invocations to module description.
51699         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
51700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
51701         from here...
51702         * modules/strtoull (configure.ac): ... to here.
51704 2011-05-22  Bruno Haible  <bruno@clisp.org>
51706         strtoll: Move AC_LIBOBJ invocations to module description.
51707         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
51708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
51709         here...
51710         * modules/strtoll (configure.ac): ... to here.
51712 2011-05-22  Bruno Haible  <bruno@clisp.org>
51714         strtoul: Move AC_LIBOBJ invocations to module description.
51715         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
51716         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
51717         * modules/strtoul (configure.ac): ... to here.
51719 2011-05-22  Bruno Haible  <bruno@clisp.org>
51721         strtol: Move AC_LIBOBJ invocations to module description.
51722         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
51723         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
51724         * modules/strtol (configure.ac): ... to here.
51726 2011-05-22  Bruno Haible  <bruno@clisp.org>
51728         strtod: Move AC_LIBOBJ invocations to module description.
51729         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
51730         invocations from here...
51731         * modules/strtod (configure.ac): ... to here.
51733 2011-05-22  Bruno Haible  <bruno@clisp.org>
51735         strstr*: Move AC_LIBOBJ invocations to module description.
51736         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
51737         invocations from here...
51738         * modules/strstr-simple (configure.ac): ... to here.
51739         * modules/strstr (configure.ac): ... and here.
51741 2011-05-22  Bruno Haible  <bruno@clisp.org>
51743         strsignal: Move AC_LIBOBJ invocations to module description.
51744         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
51745         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
51746         * modules/strsignal (configure.ac): ... to here.
51747         (Depends-on): Update conditions.
51749 2011-05-22  Bruno Haible  <bruno@clisp.org>
51751         strsep: Move AC_LIBOBJ invocations to module description.
51752         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
51753         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
51754         here...
51755         * modules/strsep (configure.ac): ... to here.
51757 2011-05-22  Bruno Haible  <bruno@clisp.org>
51759         strptime: Move AC_LIBOBJ invocations to module description.
51760         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
51761         gl_PREREQ_STRPTIME invocations from here...
51762         * modules/strptime (configure.ac): ... to here.
51764 2011-05-22  Bruno Haible  <bruno@clisp.org>
51766         strpbrk: Move AC_LIBOBJ invocations to module description.
51767         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
51768         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
51769         here...
51770         * modules/strpbrk (configure.ac): ... to here.
51772 2011-05-22  Bruno Haible  <bruno@clisp.org>
51774         strnlen: Move AC_LIBOBJ invocations to module description.
51775         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
51776         invocations from here...
51777         * modules/strnlen (configure.ac): ... to here.
51779 2011-05-22  Bruno Haible  <bruno@clisp.org>
51781         strndup: Move AC_LIBOBJ invocations to module description.
51782         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
51783         invocations from here...
51784         * modules/strndup (configure.ac): ... to here.
51785         (Depends-on): Update conditions.
51787 2011-05-22  Bruno Haible  <bruno@clisp.org>
51789         strncat: Move AC_LIBOBJ invocations to module description.
51790         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
51791         invocations from here...
51792         * modules/strncat (configure.ac): ... to here.
51794 2011-05-22  Bruno Haible  <bruno@clisp.org>
51796         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
51797         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
51798         invocations from here...
51799         * modules/strdup (configure.ac): ... to here.
51800         * modules/strdup-posix (configure.ac): ... and here.
51802 2011-05-22  Bruno Haible  <bruno@clisp.org>
51804         strcspn: Move AC_LIBOBJ invocations to module description.
51805         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
51806         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
51807         here...
51808         * modules/strcspn (configure.ac): ... to here.
51810 2011-05-22  Bruno Haible  <bruno@clisp.org>
51812         strchrnul: Move AC_LIBOBJ invocations to module description.
51813         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
51814         gl_PREREQ_STRCHRNUL invocations from here...
51815         * modules/strchrnul (configure.ac): ... to here.
51817 2011-05-22  Bruno Haible  <bruno@clisp.org>
51819         strcasestr*: Move AC_LIBOBJ invocations to module description.
51820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
51821         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
51822         * modules/strcasestr-simple (configure.ac): ... to here.
51823         * modules/strcasestr (configure.ac): ... and here.
51825 2011-05-22  Bruno Haible  <bruno@clisp.org>
51827         strcase: Move AC_LIBOBJ invocations to module description.
51828         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
51829         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
51830         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
51831         gl_PREREQ_STRNCASECMP invocations from here...
51832         * modules/strcase (configure.ac): ... to here.
51834 2011-05-22  Bruno Haible  <bruno@clisp.org>
51836         stpncpy: Move AC_LIBOBJ invocations to module description.
51837         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
51838         here...
51839         * modules/stpncpy (configure.ac): ... to here.
51841 2011-05-22  Bruno Haible  <bruno@clisp.org>
51843         stpcpy: Move AC_LIBOBJ invocations to module description.
51844         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
51845         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
51846         here...
51847         * modules/stpcpy (configure.ac): ... to here.
51849 2011-05-21  Bruno Haible  <bruno@clisp.org>
51851         stat: Move AC_LIBOBJ invocations to module description.
51852         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
51853         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
51854         here...
51855         * modules/stat (configure.ac): ... to here.
51857 2011-05-21  Bruno Haible  <bruno@clisp.org>
51859         sleep: Move AC_LIBOBJ invocations to module description.
51860         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
51861         * modules/sleep (configure.ac): ... to here.
51863 2011-05-21  Bruno Haible  <bruno@clisp.org>
51865         signbit: Move AC_LIBOBJ invocations to module description.
51866         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
51867         * modules/signbit (configure.ac): ... to here.
51869 2011-05-21  Bruno Haible  <bruno@clisp.org>
51871         sigprocmask: Move AC_LIBOBJ invocations to module description.
51872         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
51873         gl_PREREQ_SIGPROMASK invocations from here...
51874         * modules/sigprocmask (configure.ac): ... to here.
51876 2011-05-21  Bruno Haible  <bruno@clisp.org>
51878         sigaction: Move AC_LIBOBJ invocations to module description.
51879         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
51880         gl_PREREQ_SIGACTION invocations from here...
51881         * modules/sigaction (configure.ac): ... to here.
51883 2011-05-21  Bruno Haible  <bruno@clisp.org>
51885         sig2str: Move AC_LIBOBJ invocations to module description.
51886         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
51887         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
51888         here...
51889         * modules/sig2str (configure.ac): ... to here.
51891 2011-05-21  Bruno Haible  <bruno@clisp.org>
51893         setlocale: Move AC_LIBOBJ invocations to module description.
51894         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
51895         gl_PREREQ_SETLOCALE invocations from here...
51896         * modules/setlocale (configure.ac): ... to here.
51898 2011-05-21  Bruno Haible  <bruno@clisp.org>
51900         unsetenv: Move AC_LIBOBJ invocations to module description.
51901         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
51902         and gl_PREREQ_UNSETENV invocations from here...
51903         * modules/unsetenv (configure.ac): ... to here.
51904         (Depends-on): Update.
51906 2011-05-21  Bruno Haible  <bruno@clisp.org>
51908         setenv: Move AC_LIBOBJ invocations to module description.
51909         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
51910         here...
51911         * modules/setenv (configure.ac): ... to here.
51913 2011-05-21  Bruno Haible  <bruno@clisp.org>
51915         selinux-h: Move AC_LIBOBJ invocations to module description.
51916         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
51917         AC_LIBOBJ invocation from here...
51918         * modules/selinux-h (configure.ac): ... to here.
51920 2011-05-21  Bruno Haible  <bruno@clisp.org>
51922         select: Respect rules for use of AC_LIBOBJ.
51923         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
51924         here...
51925         * modules/select (configure.ac): ... to here.
51927 2011-05-21  Bruno Haible  <bruno@clisp.org>
51929         scandir: Move AC_LIBOBJ invocations to module description.
51930         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
51931         invocations from here...
51932         * modules/scandir (configure.ac): ... to here.
51934 2011-05-21  Bruno Haible  <bruno@clisp.org>
51936         rpmatch: Move AC_LIBOBJ invocations to module description.
51937         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
51938         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
51939         here...
51940         * modules/rpmatch (configure.ac): ... to here.
51942 2011-05-21  Bruno Haible  <bruno@clisp.org>
51944         rmdir: Respect rules for use of AC_LIBOBJ.
51945         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
51946         * modules/rmdir (configure.ac): ... to here.
51948 2011-05-21  Bruno Haible  <bruno@clisp.org>
51950         renameat: Move AC_LIBOBJ invocations to module description.
51951         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
51952         here...
51953         * modules/renameat (configure.ac): ... to here.
51955 2011-05-21  Bruno Haible  <bruno@clisp.org>
51957         rename: Respect rules for use of AC_LIBOBJ.
51958         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
51959         here...
51960         * modules/rename (configure.ac): ... to here.
51962 2011-05-21  Bruno Haible  <bruno@clisp.org>
51964         remove: Move AC_LIBOBJ invocations to module description.
51965         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
51966         here...
51967         * modules/remove (configure.ac): ... to here.
51969 2011-05-21  Bruno Haible  <bruno@clisp.org>
51971         relocatable-lib: Move AC_LIBOBJ invocations to module description.
51972         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
51973         macro.
51974         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
51975         * modules/relocatable-lib (configure.ac): ... to here.
51976         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51977         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
51979 2011-05-21  Bruno Haible  <bruno@clisp.org>
51981         relocatable-prog: Move AC_LIBOBJ invocations to module description.
51982         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
51983         here...
51984         * modules/relocatable-prog (configure.ac): ... to here.
51986 2011-05-21  Bruno Haible  <bruno@clisp.org>
51988         regex: Move AC_LIBOBJ invocations to module description.
51989         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
51990         invocations from here...
51991         * modules/regex (configure.ac): ... to here.
51993 2011-05-21  Bruno Haible  <bruno@clisp.org>
51995         realloc-*: Move AC_LIBOBJ invocations to module description.
51996         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
51997         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
51998         AC_LIBOBJ invocations from here...
51999         * modules/realloc-gnu (configure.ac): ... to here.
52000         * modules/realloc-posix (configure.ac): ... and here.
52002 2011-05-21  Bruno Haible  <bruno@clisp.org>
52004         readutmp: Move AC_LIBOBJ invocations to module description.
52005         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
52006         * modules/readutmp (configure.ac): ... to here.
52008 2011-05-21  Bruno Haible  <bruno@clisp.org>
52010         readlinkat: Move AC_LIBOBJ invocations to module description.
52011         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
52012         here...
52013         * modules/readlinkat (configure.ac): ... to here.
52015 2011-05-21  Bruno Haible  <bruno@clisp.org>
52017         readlink: Move AC_LIBOBJ invocations to module description.
52018         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
52019         gl_PREREQ_READLINK invocations from here...
52020         * modules/readlink (configure.ac): ... to here.
52022 2011-05-21  Bruno Haible  <bruno@clisp.org>
52024         readline: Move AC_LIBOBJ invocations to module description.
52025         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
52026         gl_PREREQ_READLINE invocations from here...
52027         * modules/readline (configure.ac): ... to here.
52029 2011-05-21  Bruno Haible  <bruno@clisp.org>
52031         read: Move AC_LIBOBJ invocations to module description.
52032         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
52033         * modules/read (configure.ac): ... to here.
52035 2011-05-21  Bruno Haible  <bruno@clisp.org>
52037         rawmemchr: Move AC_LIBOBJ invocations to module description.
52038         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
52039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
52040         from here...
52041         * modules/rawmemchr (configure.ac): ... to here.
52043 2011-05-21  Bruno Haible  <bruno@clisp.org>
52045         random_r: Move AC_LIBOBJ invocations to module description.
52046         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
52047         gl_PREREQ_RANDOM_R invocations from here...
52048         * modules/random_r (configure.ac): ... to here.
52050 2011-05-21  Bruno Haible  <bruno@clisp.org>
52052         pwrite: Move AC_LIBOBJ invocations to module description.
52053         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
52054         * modules/pwrite (configure.ac): ... to here.
52056 2011-05-21  Bruno Haible  <bruno@clisp.org>
52058         putenv: Move AC_LIBOBJ invocations to module description.
52059         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
52060         * modules/putenv (configure.ac): ... to here.
52062 2011-05-21  Bruno Haible  <bruno@clisp.org>
52064         login_tty: Move AC_LIBOBJ invocations to module description.
52065         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
52066         * modules/login_tty (configure.ac): ... to here.
52068 2011-05-21  Bruno Haible  <bruno@clisp.org>
52070         openpty: Move AC_LIBOBJ invocations to module description.
52071         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
52072         * modules/openpty (configure.ac): ... to here.
52074 2011-05-21  Bruno Haible  <bruno@clisp.org>
52076         forkpty: Move AC_LIBOBJ invocations to module description.
52077         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
52078         * modules/forkpty (configure.ac): ... to here.
52080 2011-05-21  Bruno Haible  <bruno@clisp.org>
52082         ptsname: Move AC_LIBOBJ invocations to module description.
52083         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
52084         invocations from here...
52085         * modules/ptsname (configure.ac): ... to here.
52087 2011-05-21  Bruno Haible  <bruno@clisp.org>
52089         pread: Move AC_LIBOBJ invocations to module description.
52090         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
52091         * modules/pread (configure.ac): ... to here.
52093 2011-05-21  Bruno Haible  <bruno@clisp.org>
52095         posix_spawn*: Move AC_LIBOBJ invocations to module description.
52096         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
52097         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
52098         * modules/posix_spawn (configure.ac): ... to here.
52099         * modules/posix_spawnp (configure.ac): ... and here.
52101 2011-05-21  Bruno Haible  <bruno@clisp.org>
52103         popen: Move AC_LIBOBJ invocations to module description.
52104         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
52105         invocations from here...
52106         * modules/popen (configure.ac): ... to here.
52108 2011-05-21  Bruno Haible  <bruno@clisp.org>
52110         poll: Move AC_LIBOBJ invocations to module description.
52111         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
52112         invocations from here...
52113         * modules/poll (configure.ac): ... to here.
52115 2011-05-21  Bruno Haible  <bruno@clisp.org>
52117         pipe-posix: Move AC_LIBOBJ invocations to module description.
52118         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
52119         * modules/pipe-posix (configure.ac): ... to here.
52121 2011-05-21  Bruno Haible  <bruno@clisp.org>
52123         openat: Respect rules for use of AC_LIBOBJ.
52124         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
52125         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52126         * modules/openat (configure.ac): ... to here.
52128 2011-05-21  Bruno Haible  <bruno@clisp.org>
52130         obstack-printf*: Move AC_LIBOBJ invocations to module description.
52131         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
52132         invocation from here...
52133         * modules/obstack-printf (configure.ac): ... to here.
52134         * modules/obstack-printf-posix (configure.ac): ... and here.
52136 2011-05-21  Bruno Haible  <bruno@clisp.org>
52138         nl_langinfo: Move AC_LIBOBJ invocations to module description.
52139         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
52140         from here...
52141         * modules/nl_langinfo (configure.ac): ... to here.
52143 2011-05-21  Bruno Haible  <bruno@clisp.org>
52145         nanosleep: Move AC_LIBOBJ invocations to module description.
52146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
52147         gl_PREREQ_NANOSLEEP invocations from here...
52148         * modules/nanosleep (configure.ac): ... to here.
52150 2011-05-21  Bruno Haible  <bruno@clisp.org>
52152         mountlist: Move AC_LIBOBJ invocations to module description.
52153         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
52154         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
52155         * modules/mountlist (configure.ac): ... to here.
52157 2011-05-21  Bruno Haible  <bruno@clisp.org>
52159         mktime: Respect rules for use of AC_LIBOBJ.
52160         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
52161         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
52162         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
52163         (gl_FUNC_MKTIME_INTERNAL): ... and here...
52164         * modules/mktime (configure.ac): ... to here.
52165         * modules/mktime-internal (configure.ac): ... and here.
52166         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
52168 2011-05-21  Bruno Haible  <bruno@clisp.org>
52170         mkstemps: Move AC_LIBOBJ invocations to module description.
52171         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
52172         here...
52173         * modules/mkstemps (configure.ac): ... to here.
52175 2011-05-21  Bruno Haible  <bruno@clisp.org>
52177         mkstemp: Move AC_LIBOBJ invocations to module description.
52178         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
52179         gl_PREREQ_MKSTEMP invocations from here...
52180         * modules/mkstemp (configure.ac): ... to here.
52182 2011-05-21  Bruno Haible  <bruno@clisp.org>
52184         mkostemps: Move AC_LIBOBJ invocations to module description.
52185         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
52186         here...
52187         * modules/mkostemps (configure.ac): ... to here.
52189 2011-05-21  Bruno Haible  <bruno@clisp.org>
52191         mkostemp: Move AC_LIBOBJ invocations to module description.
52192         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
52193         gl_PREREQ_MKOSTEMP invocations from here...
52194         * modules/mkostemp (configure.ac): ... to here.
52196 2011-05-21  Bruno Haible  <bruno@clisp.org>
52198         mknod: Move AC_LIBOBJ invocations to module description.
52199         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
52200         * modules/mknod (configure.ac): ... to here.
52202 2011-05-21  Bruno Haible  <bruno@clisp.org>
52204         mkfifoat: Move AC_LIBOBJ invocations to module description.
52205         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
52206         here...
52207         * modules/mkfifoat (configure.ac): ... to here.
52209 2011-05-21  Bruno Haible  <bruno@clisp.org>
52211         mkfifo: Respect rules for use of AC_LIBOBJ.
52212         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
52213         here...
52214         * modules/mkfifo (configure.ac): ... to here.
52216 2011-05-21  Bruno Haible  <bruno@clisp.org>
52218         mkdtemp: Move AC_LIBOBJ invocations to module description.
52219         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
52220         invocations from here...
52221         * modules/mkdtemp (configure.ac): ... to here.
52223 2011-05-21  Bruno Haible  <bruno@clisp.org>
52225         mkdir: Move AC_LIBOBJ invocations to module description.
52226         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
52227         * modules/mkdir (configure.ac): ... to here.
52229 2011-05-21  Bruno Haible  <bruno@clisp.org>
52231         memset: Move AC_LIBOBJ invocations to module description.
52232         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
52233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
52234         here...
52235         * modules/memset (configure.ac): ... to here.
52237 2011-05-21  Bruno Haible  <bruno@clisp.org>
52239         memrchr: Move AC_LIBOBJ invocations to module description.
52240         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
52241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
52242         here...
52243         * modules/memrchr (configure.ac): ... to here.
52245 2011-05-21  Bruno Haible  <bruno@clisp.org>
52247         mempcpy: Move AC_LIBOBJ invocations to module description.
52248         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
52249         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
52250         here...
52251         * modules/mempcpy (configure.ac): ... to here.
52253 2011-05-21  Bruno Haible  <bruno@clisp.org>
52255         memmove: Move AC_LIBOBJ invocations to module description.
52256         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
52257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
52258         here...
52259         * modules/memmove (configure.ac): ... to here.
52261 2011-05-21  Bruno Haible  <bruno@clisp.org>
52263         memmem*: Move AC_LIBOBJ invocations to module description.
52264         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
52265         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
52266         here...
52267         (gl_FUNC_MEMMEM): ... and here...
52268         * modules/memmem-simple (configure.ac): ... to here.
52269         * modules/memmem (configure.ac): ... and here.
52271 2011-05-21  Bruno Haible  <bruno@clisp.org>
52273         memcpy: Move AC_LIBOBJ invocations to module description.
52274         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
52275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
52276         here...
52277         * modules/memcpy (configure.ac): ... to here.
52279 2011-05-21  Bruno Haible  <bruno@clisp.org>
52281         memcmp: Simplify autoconf macro.
52282         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
52283         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
52284         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
52286 2011-05-21  Bruno Haible  <bruno@clisp.org>
52288         memcmp: Move AC_LIBOBJ invocations to module description.
52289         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
52290         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
52291         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
52292         * modules/memcmp (configure.ac): ... to here.
52293         (Depends-on): Update conditions.
52295 2011-05-21  Bruno Haible  <bruno@clisp.org>
52297         memchr: Respect rules for use of AC_LIBOBJ.
52298         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
52299         invocations from here...
52300         * modules/memchr (configure.ac): ... to here.
52302 2011-05-21  Bruno Haible  <bruno@clisp.org>
52304         mbtowc: Move AC_LIBOBJ invocations to module description.
52305         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
52306         invocations from here...
52307         * modules/mbtowc (configure.ac): ... to here.
52309 2011-05-21  Bruno Haible  <bruno@clisp.org>
52311         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52312         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
52313         gl_PREREQ_MBSRTOWCS invocations from here...
52314         * modules/mbsrtowcs (configure.ac): ... to here.
52316 2011-05-21  Bruno Haible  <bruno@clisp.org>
52318         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
52319         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
52320         gl_PREREQ_MBSNRTOWCS invocations from here...
52321         * modules/mbsnrtowcs (configure.ac): ... to here.
52323 2011-05-21  Bruno Haible  <bruno@clisp.org>
52325         mbsinit: Move AC_LIBOBJ invocations to module description.
52326         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
52327         invocations from here...
52328         * modules/mbsinit (configure.ac): ... to here.
52330 2011-05-21  Bruno Haible  <bruno@clisp.org>
52332         mbrlen: Move AC_LIBOBJ invocations to module description.
52333         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
52334         invocations from here...
52335         * modules/mbrlen (configure.ac): ... to here.
52337 2011-05-21  Bruno Haible  <bruno@clisp.org>
52339         mbrtowc: Respect rules for use of AC_LIBOBJ.
52340         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
52341         invocations from here...
52342         * modules/mbrtowc (configure.ac): ... to here.
52344 2011-05-21  Bruno Haible  <bruno@clisp.org>
52346         malloc-*: Move AC_LIBOBJ invocations to module description.
52347         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
52348         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
52349         AC_LIBOBJ invocations from here...
52350         * modules/malloc-gnu (configure.ac): ... to here.
52351         * modules/malloc-posix (configure.ac): ... and here.
52353 2011-05-21  Bruno Haible  <bruno@clisp.org>
52355         lstat, openat: Respect rules for use of AC_LIBOBJ.
52356         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
52357         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
52358         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
52359         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
52360         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
52361         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
52362         here.
52363         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
52365 2011-05-21  Bruno Haible  <bruno@clisp.org>
52367         lseek: Move AC_LIBOBJ invocations to module description.
52368         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
52369         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
52370         * modules/lseek (configure.ac): ... to here.
52372 2011-05-21  Bruno Haible  <bruno@clisp.org>
52374         linkat: Move AC_LIBOBJ invocations to module description.
52375         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
52376         here...
52377         * modules/linkat (configure.ac): ... to here.
52379 2011-05-21  Bruno Haible  <bruno@clisp.org>
52381         link: Respect rules for use of AC_LIBOBJ.
52382         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
52383         * modules/link (configure.ac): ... to here.
52385 2011-05-21  Bruno Haible  <bruno@clisp.org>
52387         lchown: Move AC_LIBOBJ invocations to module description.
52388         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52389         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52390         * modules/lchown (configure.ac): ... to here.
52392 2011-05-21  Bruno Haible  <bruno@clisp.org>
52394         iswctype: Move AC_LIBOBJ invocations to module description.
52395         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
52396         here...
52397         * modules/iswctype (configure.ac): ... to here.
52399 2011-05-21  Bruno Haible  <bruno@clisp.org>
52401         iswblank: Move AC_LIBOBJ invocations to module description.
52402         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
52403         here...
52404         * modules/iswblank (configure.ac): ... to here.
52406 2011-05-21  Bruno Haible  <bruno@clisp.org>
52408         atanl: Move AC_LIBOBJ invocations to module description.
52409         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
52410         * modules/atanl (configure.ac): ... to here.
52412 2011-05-21  Bruno Haible  <bruno@clisp.org>
52414         acosl: Move AC_LIBOBJ invocations to module description.
52415         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
52416         * modules/acosl (configure.ac): ... to here.
52418 2011-05-21  Bruno Haible  <bruno@clisp.org>
52420         asinl: Respect rules for use of AC_LIBOBJ.
52421         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
52422         * modules/asinl (configure.ac): ... to here.
52424 2011-05-21  Bruno Haible  <bruno@clisp.org>
52426         tanl: Move AC_LIBOBJ invocations to module description.
52427         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
52428         * modules/tanl (configure.ac): ... to here.
52430 2011-05-21  Bruno Haible  <bruno@clisp.org>
52432         cosl: Move AC_LIBOBJ invocations to module description.
52433         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
52434         * modules/cosl (configure.ac): ... to here.
52436 2011-05-21  Bruno Haible  <bruno@clisp.org>
52438         sinl: Move AC_LIBOBJ invocations to module description.
52439         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
52440         * modules/sinl (configure.ac): ... to here.
52442 2011-05-21  Bruno Haible  <bruno@clisp.org>
52444         logl: Move AC_LIBOBJ invocations to module description.
52445         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
52446         * modules/logl (configure.ac): ... to here.
52448 2011-05-21  Bruno Haible  <bruno@clisp.org>
52450         expl: Move AC_LIBOBJ invocations to module description.
52451         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
52452         * modules/expl (configure.ac): ... to here.
52454 2011-05-21  Bruno Haible  <bruno@clisp.org>
52456         roundl: Move AC_LIBOBJ invocations to module description.
52457         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
52458         * modules/roundl (configure.ac): ... to here.
52460 2011-05-21  Bruno Haible  <bruno@clisp.org>
52462         round: Move AC_LIBOBJ invocations to module description.
52463         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
52464         * modules/round (configure.ac): ... to here.
52466 2011-05-21  Bruno Haible  <bruno@clisp.org>
52468         roundf: Move AC_LIBOBJ invocations to module description.
52469         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
52470         * modules/roundf (configure.ac): ... to here.
52472 2011-05-21  Bruno Haible  <bruno@clisp.org>
52474         truncl: Move AC_LIBOBJ invocations to module description.
52475         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
52476         * modules/truncl (configure.ac): ... to here.
52478 2011-05-21  Bruno Haible  <bruno@clisp.org>
52480         trunc: Move AC_LIBOBJ invocations to module description.
52481         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
52482         * modules/trunc (configure.ac): ... to here.
52484 2011-05-21  Bruno Haible  <bruno@clisp.org>
52486         truncf: Move AC_LIBOBJ invocations to module description.
52487         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
52488         * modules/truncf (configure.ac): ... to here.
52490 2011-05-21  Bruno Haible  <bruno@clisp.org>
52492         ceill: Move AC_LIBOBJ invocations to module description.
52493         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
52494         * modules/ceill (configure.ac): ... to here.
52496 2011-05-21  Bruno Haible  <bruno@clisp.org>
52498         ceil: Move AC_LIBOBJ invocations to module description.
52499         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
52500         * modules/ceil (configure.ac): ... to here.
52502 2011-05-21  Bruno Haible  <bruno@clisp.org>
52504         ceilf: Move AC_LIBOBJ invocations to module description.
52505         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
52506         * modules/ceilf (configure.ac): ... to here.
52508 2011-05-21  Bruno Haible  <bruno@clisp.org>
52510         floorl: Respect rules for use of AC_LIBOBJ.
52511         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
52512         * modules/floorl (configure.ac): ... to here.
52514 2011-05-21  Bruno Haible  <bruno@clisp.org>
52516         floor: Respect rules for use of AC_LIBOBJ.
52517         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
52518         * modules/floor (configure.ac): ... to here.
52520 2011-05-21  Bruno Haible  <bruno@clisp.org>
52522         floorf: Move AC_LIBOBJ invocations to module description.
52523         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
52524         * modules/floorf (configure.ac): ... to here.
52526 2011-05-20  Bruno Haible  <bruno@clisp.org>
52528         sqrtl: Respect rules for use of AC_LIBOBJ.
52529         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
52530         * modules/sqrtl (configure.ac): ... to here.
52532 2011-05-20  Bruno Haible  <bruno@clisp.org>
52534         ldexpl: Respect rules for use of AC_LIBOBJ.
52535         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
52536         * modules/ldexpl (configure.ac): ... to here.
52538 2011-05-20  Bruno Haible  <bruno@clisp.org>
52540         frexpl*: Respect rules for use of AC_LIBOBJ.
52541         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
52542         invocation from here...
52543         * modules/frexpl (configure.ac): ... to here.
52544         * modules/frexpl-nolibm (configure.ac): ... and here.
52546 2011-05-20  Bruno Haible  <bruno@clisp.org>
52548         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
52549         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
52550         invocation from here...
52551         * modules/frexp (configure.ac): ... to here.
52552         * modules/frexp-nolibm (configure.ac): ... and here.
52554 2011-05-20  Bruno Haible  <bruno@clisp.org>
52556         isnan: Respect rules for use of AC_LIBOBJ.
52557         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
52558         invocations here.
52559         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
52560         REPLACE_ISNAN.
52561         * modules/isnand (configure.ac): Likewise.
52562         * modules/isnanl (configure.ac): Likewise.
52564 2011-05-20  Bruno Haible  <bruno@clisp.org>
52566         isnanl*: Respect rules for use of AC_LIBOBJ.
52567         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
52568         invocation from here...
52569         * modules/isnanl (configure.ac): ... to here.
52570         * modules/isnanl-nolibm (configure.ac): ... and here.
52572 2011-05-20  Bruno Haible  <bruno@clisp.org>
52574         isnand*: Move AC_LIBOBJ invocations to module description.
52575         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
52576         invocation from here...
52577         * modules/isnand (configure.ac): ... to here.
52578         * modules/isnand-nolibm (configure.ac): ... and here.
52580 2011-05-20  Bruno Haible  <bruno@clisp.org>
52582         isnanf*: Move AC_LIBOBJ invocations to module description.
52583         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
52584         invocation from here...
52585         * modules/isnanf (configure.ac): ... to here.
52586         * modules/isnanf-nolibm (configure.ac): ... and here.
52588 2011-05-20  Bruno Haible  <bruno@clisp.org>
52590         isnan*: Separate the AC_LIBOBJ invocations.
52591         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
52592         AC_LIBOBJ invocation.
52593         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
52594         here.
52595         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
52596         AC_LIBOBJ invocation.
52597         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
52598         here.
52599         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
52600         AC_LIBOBJ invocation.
52601         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
52602         here.
52603         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
52605 2011-05-08  Bruno Haible  <bruno@clisp.org>
52607         isinf: Move AC_LIBOBJ invocations to module description.
52608         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
52609         * modules/isinf (configure.ac): ... to here.
52611 2011-05-08  Bruno Haible  <bruno@clisp.org>
52613         isfinite: Move AC_LIBOBJ invocations to module description.
52614         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
52615         * modules/isfinite (configure.ac): ... to here.
52617 2011-05-08  Bruno Haible  <bruno@clisp.org>
52619         isblank: Move AC_LIBOBJ invocations to module description.
52620         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
52621         here...
52622         * modules/isblank (configure.ac): ... to here.
52624 2011-05-08  Bruno Haible  <bruno@clisp.org>
52626         isapipe: Move AC_LIBOBJ invocations to module description.
52627         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
52628         gl_PREREQ_ISAPIPE invocations from here...
52629         * modules/isapipe (configure.ac): ... to here.
52630         (Depends-on): Update condition.
52632 2011-05-08  Bruno Haible  <bruno@clisp.org>
52634         ioctl: Move AC_LIBOBJ invocations to module description.
52635         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
52636         invocations from here...
52637         * modules/ioctl (configure.ac): ... to here.
52638         (Depends-on): Update condition.
52640 2011-05-08  Bruno Haible  <bruno@clisp.org>
52642         imaxdiv: Move AC_LIBOBJ invocations to module description.
52643         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
52644         invocations from here...
52645         * modules/imaxdiv (configure.ac): ... to here.
52647 2011-05-08  Bruno Haible  <bruno@clisp.org>
52649         imaxabs: Move AC_LIBOBJ invocations to module description.
52650         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
52651         invocations from here...
52652         * modules/imaxabs (configure.ac): ... to here.
52654 2011-05-08  Bruno Haible  <bruno@clisp.org>
52656         getaddrinfo: Move AC_LIBOBJ invocations to module description.
52657         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
52658         AC_LIBOBJ invocations from here...
52659         * modules/getaddrinfo (configure.ac): ... to here.
52660         (Depends-on): Add conditions.
52662 2011-05-08  Bruno Haible  <bruno@clisp.org>
52664         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52665         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
52666         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52667         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
52668         (gl_PREREQ_INET_PTON): ... from here.
52669         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
52670         gl_PREREQ_INET_PTON here.
52671         (Depends-on): Update condition.
52673 2011-05-08  Bruno Haible  <bruno@clisp.org>
52675         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52676         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
52677         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52678         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
52679         (gl_PREREQ_INET_NTOP): ... from here.
52680         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
52681         gl_PREREQ_INET_NTOP here.
52682         (Depends-on): Update condition.
52684 2011-05-08  Bruno Haible  <bruno@clisp.org>
52686         iconv_open: Move AC_LIBOBJ invocations to module description.
52687         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
52688         AC_LIBOBJ invocations from here...
52689         * modules/iconv_open (configure.ac): ... to here.
52691 2011-05-08  Bruno Haible  <bruno@clisp.org>
52693         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
52694         If module 'iconv_open' is among the main modules and module
52695         'iconv_open-utf' is among the tests dependencies, then
52696         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
52697         return the special iconv_t values. Therefore iconv() and iconv_close()
52698         must support these special iconv_t values, already in lib, not only in
52699         tests.
52700         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
52701         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
52702         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
52703         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
52704         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
52705         (Depends-on): Add the dependencies of iconv_open-utf.
52706         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
52707         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
52708         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
52710 2011-05-08  Bruno Haible  <bruno@clisp.org>
52712         group-member: Move AC_LIBOBJ invocations to module description.
52713         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
52714         gl_PREREQ_GROUP_MEMBER invocations from here...
52715         * modules/group-member (configure.ac): ... to here.
52717 2011-05-08  Bruno Haible  <bruno@clisp.org>
52719         grantpt: Move AC_LIBOBJ invocations to module description.
52720         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
52721         invocations from here...
52722         * modules/grantpt (configure.ac): ... to here.
52724 2011-05-08  Bruno Haible  <bruno@clisp.org>
52726         glob: Move AC_LIBOBJ invocations to module description.
52727         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
52728         from here...
52729         * modules/glob (configure.ac): ... to here.
52731 2011-05-08  Bruno Haible  <bruno@clisp.org>
52733         getusershell: Move AC_LIBOBJ invocations to module description.
52734         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
52735         Move AC_LIBOBJ invocation from here...
52736         * modules/getusershell (configure.ac): ... to here.
52737         (Depends-on): Update condition.
52739 2011-05-08  Bruno Haible  <bruno@clisp.org>
52741         gettimeofday: Move AC_LIBOBJ invocations to module description.
52742         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52743         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
52744         gl_PREREQ_GETTIMEOFDAY invocations from here...
52745         * modules/gettimeofday (configure.ac): ... to here.
52747 2011-05-08  Bruno Haible  <bruno@clisp.org>
52749         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
52750         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
52751         just gl_FUNC_TZSET.
52752         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
52753         (gl_FUNC_TZSET_CLOBBER): Remove actions.
52754         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
52755         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
52757 2011-05-08  Bruno Haible  <bruno@clisp.org>
52759         getsubopt: Move AC_LIBOBJ invocations to module description.
52760         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
52761         gl_PREREQ_GETSUBOPT invocations from here...
52762         * modules/getsubopt (configure.ac): ... to here.
52764 2011-05-08  Bruno Haible  <bruno@clisp.org>
52766         getpass-gnu: Move AC_LIBOBJ invocations to module description.
52767         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
52768         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
52769         * modules/getpass-gnu (configure.ac): ... to here.
52771 2011-05-08  Bruno Haible  <bruno@clisp.org>
52773         getpass: Move AC_LIBOBJ invocations to module description.
52774         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
52775         gl_PREREQ_GETPASS invocations from here...
52776         * modules/getpass (configure.ac): ... to here.
52778 2011-05-08  Bruno Haible  <bruno@clisp.org>
52780         getpagesize: Move AC_LIBOBJ invocations to module description.
52781         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
52782         from here...
52783         * modules/getpagesize (configure.ac): ... to here.
52785 2011-05-08  Bruno Haible  <bruno@clisp.org>
52787         getopt: Move AC_LIBOBJ invocations to module description.
52788         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
52789         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
52790         invocations from here...
52791         * modules/getopt-gnu (configure.ac): ... to here.
52792         * modules/getopt-posix (configure.ac): ... and here.
52793         (Depends-on): Update condition.
52795 2011-05-08  Bruno Haible  <bruno@clisp.org>
52797         getopt, argp: Respect rules for use of AC_LIBOBJ.
52798         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
52799         (gl_REPLACE_GETOPT_ALWAYS): New macro.
52800         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
52801         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
52803 2011-05-08  Bruno Haible  <bruno@clisp.org>
52805         getlogin_r: Move AC_LIBOBJ invocations to module description.
52806         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
52807         gl_PREREQ_GETLOGIN_R invocations from here...
52808         * modules/getlogin_r (configure.ac): ... to here.
52810 2011-05-08  Bruno Haible  <bruno@clisp.org>
52812         getlogin: Move AC_LIBOBJ invocations to module description.
52813         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
52814         here...
52815         * modules/getlogin (configure.ac): ... to here.
52817 2011-05-08  Bruno Haible  <bruno@clisp.org>
52819         getloadavg: Move AC_LIBOBJ invocations to module description.
52820         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
52821         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
52822         * modules/getloadavg (configure.ac): ... to here.
52824 2011-05-08  Bruno Haible  <bruno@clisp.org>
52826         gethrxtime: Move AC_LIBOBJ invocations to module description.
52827         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
52828         LIB_GETHRXTIME from here...
52829         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
52830         invocations from here...
52831         * modules/gethrxtime (configure.ac): ... to here.
52833 2011-05-08  Bruno Haible  <bruno@clisp.org>
52835         gethostname: Move AC_LIBOBJ invocations to module description.
52836         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
52837         gl_PREREQ_GETHOSTNAME invocations from here...
52838         * modules/gethostname (configure.ac): ... to here.
52840 2011-05-08  Bruno Haible  <bruno@clisp.org>
52842         getgroups: Move AC_LIBOBJ invocations to module description.
52843         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
52844         here...
52845         * modules/getgroups (configure.ac): ... to here.
52847 2011-05-08  Bruno Haible  <bruno@clisp.org>
52849         getdtablesize: Move AC_LIBOBJ invocations to module description.
52850         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
52851         invocation from here...
52852         * modules/getdtablesize (configure.ac): ... to here.
52854 2011-05-08  Bruno Haible  <bruno@clisp.org>
52856         getdomainname: Move AC_LIBOBJ invocations to module description.
52857         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
52858         gl_PREREQ_GETDOMAINNAME invocations from here...
52859         * modules/getdomainname (configure.ac): ... to here.
52861 2011-05-08  Bruno Haible  <bruno@clisp.org>
52863         getline: Move AC_LIBOBJ invocations to module description.
52864         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
52865         invocations from here...
52866         * modules/getline (configure.ac): ... to here.
52868 2011-05-08  Bruno Haible  <bruno@clisp.org>
52870         getline: Simplify.
52871         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
52872         It's already handled through the module dependency.
52874 2011-05-08  Bruno Haible  <bruno@clisp.org>
52876         getdelim: Move AC_LIBOBJ invocations to module description.
52877         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
52878         and gl_PREREQ_GETDELIM invocations from here...
52879         * modules/getdelim (configure.ac): ... to here.
52880         (Depends-on): Fix condition.
52882 2011-05-08  Bruno Haible  <bruno@clisp.org>
52884         getcwd: Move AC_LIBOBJ invocations to module description.
52885         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
52886         invocations from here...
52887         * modules/getcwd (configure.ac): ... to here.
52889 2011-05-08  Bruno Haible  <bruno@clisp.org>
52891         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
52892         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
52893         here...
52894         * modules/getcwd-lgpl (configure.ac): ... to here.
52896 2011-05-07  Bruno Haible  <bruno@clisp.org>
52898         crypto/gc: Move AC_LIBOBJ invocations to module description.
52899         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
52900         * modules/crypto/gc (configure.ac): ... to here.
52902 2011-05-07  Bruno Haible  <bruno@clisp.org>
52904         fwriting: Move AC_LIBOBJ invocations to module description.
52905         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
52906         here...
52907         * modules/fwriting (configure.ac): ... to here.
52909 2011-05-07  Bruno Haible  <bruno@clisp.org>
52911         fwritable: Move AC_LIBOBJ invocations to module description.
52912         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
52913         here...
52914         * modules/fwritable (configure.ac): ... to here.
52916 2011-05-07  Bruno Haible  <bruno@clisp.org>
52918         futimens: Move AC_LIBOBJ invocations to module description.
52919         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
52920         here...
52921         * modules/futimens (configure.ac): ... to here.
52923 2011-05-07  Bruno Haible  <bruno@clisp.org>
52925         ftruncate: Move AC_LIBOBJ invocations to module description.
52926         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
52927         gl_PREREQ_FTRUNCATE invocations from here...
52928         * modules/ftruncate (configure.ac): ... to here.
52930 2011-05-07  Bruno Haible  <bruno@clisp.org>
52932         fsync: Move AC_LIBOBJ invocations to module description.
52933         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
52934         invocations from here...
52935         * modules/fsync (configure.ac): ... to here.
52937 2011-05-07  Bruno Haible  <bruno@clisp.org>
52939         fsusage: Move AC_LIBOBJ invocations to module description.
52940         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
52941         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
52942         * modules/fsusage (configure.ac): ... to here.
52944 2011-05-07  Bruno Haible  <bruno@clisp.org>
52946         freopen: Move AC_LIBOBJ invocations to module description.
52947         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
52948         invocations from here...
52949         * modules/freopen (configure.ac): ... to here.
52951 2011-05-07  Bruno Haible  <bruno@clisp.org>
52953         free: Move AC_LIBOBJ invocations to module description.
52954         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
52955         invocations from here...
52956         * modules/free (configure.ac): ... to here.
52958 2011-05-07  Bruno Haible  <bruno@clisp.org>
52960         freadable: Move AC_LIBOBJ invocations to module description.
52961         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
52962         here...
52963         * modules/freadable (configure.ac): ... to here.
52965 2011-05-07  Bruno Haible  <bruno@clisp.org>
52967         fpurge: Move AC_LIBOBJ invocations to module description.
52968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
52969         invocations from here...
52970         * modules/fpurge (configure.ac): ... to here.
52972 2011-05-07  Bruno Haible  <bruno@clisp.org>
52974         fpending: Move AC_LIBOBJ invocations to module description.
52975         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
52976         gl_FUNC_FPENDING.
52977         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
52978         invocations from here...
52979         * modules/fpending (configure.ac): ... to here.
52981 2011-05-07  Bruno Haible  <bruno@clisp.org>
52983         fopen: Move AC_LIBOBJ invocations to module description.
52984         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
52985         invocations from here...
52986         * modules/fopen (configure.ac): ... to here.
52988 2011-05-07  Bruno Haible  <bruno@clisp.org>
52990         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
52991         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
52992         gl_FUNC_FNMATCH_POSIX.
52993         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
52994         invocations from here...
52995         * modules/fnmatch (configure.ac): ... to here.
52996         * modules/fnmatch-gnu (configure.ac): ... and here.
52998 2011-05-07  Bruno Haible  <bruno@clisp.org>
53000         flock: Move AC_LIBOBJ invocations to module description.
53001         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
53002         invocations from here...
53003         * modules/flock (configure.ac): ... to here.
53005 2011-05-07  Bruno Haible  <bruno@clisp.org>
53007         fileblocks: Move AC_LIBOBJ invocations to module description.
53008         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
53009         gl_PREREQ_FILEBLOCKS invocations from here...
53010         * modules/fileblocks (configure.ac): ... to here.
53012 2011-05-06  Bruno Haible  <bruno@clisp.org>
53014         fflush: Move AC_LIBOBJ invocations to module description.
53015         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
53016         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
53017         invocations from here...
53018         * modules/fflush (configure.ac): ... to here.
53020 2011-05-06  Bruno Haible  <bruno@clisp.org>
53022         fdopendir: Move AC_LIBOBJ invocations to module description.
53023         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
53024         here...
53025         * modules/fdopendir (configure.ac): ... to here.
53026         (Depends-on): Improve conditions.
53028 2011-05-06  Bruno Haible  <bruno@clisp.org>
53030         _Exit: Move AC_LIBOBJ invocations to module description.
53031         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
53032         invocations from here...
53033         * modules/_Exit (configure.ac): ... to here.
53035 2011-05-21  Bruno Haible  <bruno@clisp.org>
53037         euidaccess: Respect rules for use of AC_LIBOBJ.
53038         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
53040         from here...
53041         * modules/euidaccess (configure.ac): ... to here.
53043 2011-05-06  Bruno Haible  <bruno@clisp.org>
53045         error: Move AC_LIBOBJ invocations to module description.
53046         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
53047         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
53048         invocations from here...
53049         * modules/error (configure.ac): ... to here.
53051 2011-05-06  Bruno Haible  <bruno@clisp.org>
53053         duplocale: Move AC_LIBOBJ invocations to module description.
53054         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
53055         gl_PREREQ_DUPLOCALE invocations from here...
53056         * modules/duplocale (configure.ac): ... to here.
53058 2011-05-05  Bruno Haible  <bruno@clisp.org>
53060         dirfd: Move AC_LIBOBJ invocations to module description.
53061         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
53062         gl_FUNC_DIRFD.
53063         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
53064         here...
53065         * modules/dirfd (configure.ac): ... to here.
53066         (Depends-on): Fix condition.
53068 2011-05-05  Bruno Haible  <bruno@clisp.org>
53070         chown: Respect rules for use of AC_LIBOBJ.
53071         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
53072         * modules/chown (configure.ac): ... to here.
53074 2011-05-05  Bruno Haible  <bruno@clisp.org>
53076         chdir-long: Move AC_LIBOBJ invocations to module description.
53077         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
53078         gl_PREREQ_CHDIR_LONG invocations from here...
53079         * modules/chdir-long (configure.ac): ... to here.
53081 2011-05-05  Bruno Haible  <bruno@clisp.org>
53083         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
53084         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
53085         from here...
53086         * modules/canonicalize-lgpl (configure.ac): ... to here.
53088 2011-05-05  Bruno Haible  <bruno@clisp.org>
53090         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
53091         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
53092         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
53093         REPLACE_CALLOC.
53094         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
53095         * modules/calloc-gnu (configure.ac): Likewise.
53097 2011-05-05  Bruno Haible  <bruno@clisp.org>
53099         btowc: Move AC_LIBOBJ invocations to module description.
53100         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
53101         invocations from here...
53102         * modules/btowc (configure.ac): ... to here.
53104 2011-05-21  Bruno Haible  <bruno@clisp.org>
53106         atexit: Move AC_LIBOBJ invocations to module description.
53107         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
53108         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
53109         here...
53110         * modules/atexit (configure.ac): ... to here.
53112 2011-05-05  Bruno Haible  <bruno@clisp.org>
53114         atoll: Move AC_LIBOBJ invocations to module description.
53115         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
53116         invocations from here...
53117         * modules/atoll (configure.ac): ... to here.
53119 2011-05-05  Bruno Haible  <bruno@clisp.org>
53121         argz: Move AC_LIBOBJ invocations to module description.
53122         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
53123         * modules/argz (configure.ac): ... to here.
53125 2011-05-05  Bruno Haible  <bruno@clisp.org>
53127         alphasort: Move AC_LIBOBJ invocations to module description.
53128         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
53129         gl_PREREQ_ALPHASORT invocations from here...
53130         * modules/alphasort (configure.ac): ... to here.
53132 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53134         verify: new macro verify_expr; verify_true deprecated
53135         * NEWS: Mention this.
53136         * doc/verify.texi (Compile-time Assertions): Document this.
53137         * lib/verify.h (verify_true): Deprecate.
53138         (verify_expr): New macro.
53139         * tests/test-verify.c (function): Test verify_expr.
53141 2011-06-14  Jim Meyering  <meyering@redhat.com>
53143         init.sh: give more portable redirection-related advice in a comment
53144         * tests/init.sh (stderr_fileno_): Update the advice in comments.
53145         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
53146         for lots of discussion.  Stefano Lattarini suggested the solution
53147         of putting "9>&2" after the command.  Reported by Bruno Haible.
53149 2011-06-13  Bruno Haible  <bruno@clisp.org>
53151         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
53152         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
53153         'none'.
53155 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53157         ftoastr: use strtof only if HAVE_STRTOF
53158         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
53159         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
53160         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
53161         * modules/ftoastr (configure.ac): Check for strtof.
53163 2011-06-13  Bruno Haible  <bruno@clisp.org>
53165         gnulib-tool: Addendum to 2011-06-08 commit.
53166         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
53167         and --witness-c-macro have been given, augment AM_CPPFLAGS.
53169 2011-06-13  Bruno Haible  <bruno@clisp.org>
53171         fseeko: Provide a non-inline replacement of fseek().
53172         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
53173         * modules/fseeko (Depends-on): Add fseek.
53174         * modules/fseek (License): Change to LGPLv2+.
53176 2011-06-13  Bruno Haible  <bruno@clisp.org>
53178         ftello: Provide a non-inline replacement of ftell().
53179         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
53180         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
53181         not have ftello() (such as on mingw).
53182         * modules/ftello (Depends-on): Add ftell.
53183         * modules/ftell (License): Change to LGPLv2+.
53185 2011-05-07  Bruno Haible  <bruno@clisp.org>
53187         ftell: Move AC_LIBOBJ invocations to module description.
53188         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
53189         * modules/ftell (configure.ac): ... to here.
53191 2011-05-07  Bruno Haible  <bruno@clisp.org>
53193         ftello: Respect rules for use of AC_LIBOBJ.
53194         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
53195         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
53196         here...
53197         * modules/ftello (configure.ac): ... to here.
53199 2011-05-07  Bruno Haible  <bruno@clisp.org>
53201         fseeko: Simplify.
53202         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
53203         (gl_FUNC_FSEEKO): Inline it here.
53205 2011-05-07  Bruno Haible  <bruno@clisp.org>
53207         fseek: Move AC_LIBOBJ invocations to module description.
53208         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
53209         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53210         * modules/fseek (configure.ac): ... to here.
53212 2011-05-07  Bruno Haible  <bruno@clisp.org>
53214         fseek: Respect rules for use of AC_LIBOBJ.
53215         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
53216         here...
53217         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
53219 2011-05-07  Bruno Haible  <bruno@clisp.org>
53221         fseeko: Respect rules for use of AC_LIBOBJ.
53222         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
53223         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
53224         here...
53225         * modules/fseeko (configure.ac): ... to here.
53227 2011-06-13  Bruno Haible  <bruno@clisp.org>
53229         gnulib-tool: Allow comments in the 'Depends-on' section.
53230         * doc/gnulib.texi (Module description): Mention comment syntax in the
53231         Depends-on section.
53232         * gnulib-tool (func_get_dependencies): Filter out comment lines.
53234 2011-06-13  Bruno Haible  <bruno@clisp.org>
53236         file-set.h: guard __attibute__ use, now that it's not always defined
53237         * lib/file-set.h (record_file): Use __attribute__ only with compiler
53238         versions that support it.  This fixes a coreutils build failure with
53239         the vendor cc on HP-UX 11.31.
53241 2011-06-12  Bruno Haible  <bruno@clisp.org>
53243         acl: Add support for HP-UX >= 11.11 JFS ACLs.
53244         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
53245         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
53246         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
53247         (acl, aclsort): New declarations.
53248         (aclv_nontrivial): New declaration.
53249         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
53250         (file_has_acl): Read also the second kind of HP-UX ACLs.
53251         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
53252         kind of HP-UX ACLs if the first kind fails.
53253         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
53254         second kind of HP-UX ACLs.
53255         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
53256         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
53257         agree.
53258         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53259         hpuxjfs.
53260         Handle hpuxjfs.
53261         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53262         hpuxjfs.
53263         Handle hpuxjfs.
53264         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53265         (func_test_same_acls): Use both lsacl and getacl.
53266         Handle hpuxjfs.
53267         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53268         (func_test_same_acls): Use both lsacl and getacl.
53269         Handle hpuxjfs.
53271 2011-06-12  Bruno Haible  <bruno@clisp.org>
53273         acl: Complete the 2010-08-10 fix.
53274         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
53275         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
53276         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
53277         explicitly.
53278         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
53279         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
53281 2011-06-12  Bruno Haible  <bruno@clisp.org>
53283         spawn-pipe tests: Comments.
53284         * tests/test-spawn-pipe-child.c (main): Update comment.
53285         Reported by James Youngman <jay@gnu.org>.
53287 2011-06-11  James Youngman  <jay@gnu.org>
53289         New module 'stat-size'.
53290         * modules/stat-size: New module.  Provides macros for accessing
53291         file size information in instances of struct stat.  Depends on the
53292         fileblocks module because it calls st_blocks.
53293         * lib/stat-size.h: New file, adapted from coreutils' system.h.
53294         * doc/gnulib.texi: Include stat-size.texi.
53295         * doc/stat-size.texi: Documentation for this module.
53296         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
53297         * m4/fileblocks.m4: Mention that stat-size depends on the call to
53298         AC_STRUCT_ST_BLOCKS.
53300 2011-06-09  Bruno Haible  <bruno@clisp.org>
53302         thread: Support pthreads-win32.
53303         * lib/glthread/thread.h (gl_thread_self): Define differently on
53304         pthreads-win32.
53305         (gl_null_thread): New declaration.
53306         (gl_thread_self_pointer): New macro.
53307         * lib/glthread/thread.c (gl_null_thread): New constant.
53308         * tests/test-lock.c: Use gl_thread_self_pointer instead of
53309         gl_thread_self.
53310         * tests/test-tls.c: Likewise.
53311         Suggested by Paul Eggert. Reported by Eric Blake.
53313 2011-06-09  Bruno Haible  <bruno@clisp.org>
53315         thread: Fix confusion between NULL and 0.
53316         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
53317         Reported by Paul Eggert.
53319 2011-06-09  Bruno Haible  <bruno@clisp.org>
53321         spawn-pipe tests: Avoid test failure on HP-UX 11.
53322         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
53323         is closed.
53325 2011-06-09  Bruno Haible  <bruno@clisp.org>
53327         acl tests: Fix compilation error on HP-UX 11.
53328         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
53330 2011-06-09  Bruno Haible  <bruno@clisp.org>
53332         rmdir: Avoid test failure on HP-UX 10.20.
53333         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
53334         EEXIST.
53336 2011-06-08  Eric Blake  <eblake@redhat.com>
53338         perror: fix test on mingw
53339         * modules/perror-tests (Depends-on): Add dup2.
53341         strerror_r-posix: fix on MacOS
53342         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
53343         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
53344         logic bug.
53345         * lib/strerror_r.c (strerror_r): Fix the bug.
53346         * lib/strerror.c (strerror): Likewise.
53347         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
53348         problem.
53349         * doc/posix-functions/strerror.texi (strerror): Likewise.
53350         * doc/posix-functions/perror.texi (perror): Likewise.
53351         * tests/test-strerror.c (main): Enhance test.
53352         * tests/test-strerror_r.c (main): Likewise.
53354 2011-06-08  Bruno Haible  <bruno@clisp.org>
53356         gnulib-tool: Better isolation between different gnulib-tool invocations.
53357         * gnulib-tool: New option --witness-c-macro.
53358         (witness_c_macro): New variable.
53359         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
53360         AM_CPPFLAGS define it as a C macro.
53361         (func_emit_tests_Makefile_am): Likewise.
53362         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
53363         read it from there.
53364         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
53365         m4_define, not AC_DEFUN.
53366         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
53367         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
53368         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
53369         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
53370         s|...|...|, to substitute the values of the GNULIB_* module indicator
53371         variables.
53372         * modules/dirent (Makefile.am): Likewise.
53373         * modules/fcntl-h (Makefile.am): Likewise.
53374         * modules/iconv-h (Makefile.am): Likewise.
53375         * modules/langinfo (Makefile.am): Likewise.
53376         * modules/locale (Makefile.am): Likewise.
53377         * modules/math (Makefile.am): Likewise.
53378         * modules/netdb (Makefile.am): Likewise.
53379         * modules/poll-h (Makefile.am): Likewise.
53380         * modules/pty (Makefile.am): Likewise.
53381         * modules/search (Makefile.am): Likewise.
53382         * modules/signal (Makefile.am): Likewise.
53383         * modules/spawn (Makefile.am): Likewise.
53384         * modules/stdio (Makefile.am): Likewise.
53385         * modules/stdlib (Makefile.am): Likewise.
53386         * modules/string (Makefile.am): Likewise.
53387         * modules/sys_ioctl (Makefile.am): Likewise.
53388         * modules/sys_select (Makefile.am): Likewise.
53389         * modules/sys_socket (Makefile.am): Likewise.
53390         * modules/sys_stat (Makefile.am): Likewise.
53391         * modules/sys_times (Makefile.am): Likewise.
53392         * modules/sys_utsname (Makefile.am): Likewise.
53393         * modules/sys_wait (Makefile.am): Likewise.
53394         * modules/termios (Makefile.am): Likewise.
53395         * modules/time (Makefile.am): Likewise.
53396         * modules/unistd (Makefile.am): Likewise.
53397         * modules/wchar (Makefile.am): Likewise.
53399 2011-06-08  Eric Blake  <eblake@redhat.com>
53401         strerror: simplify replacement
53402         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
53403         * modules/strerror (configure.ac): No prereqs needed here...
53404         * modules/strerror-override (configure.ac): ...but this needs it.
53405         (Files): Add file for needed prereq macro.
53407 2011-06-08  Bruno Haible  <bruno@clisp.org>
53409         strerror_r-posix: Tweaks.
53410         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
53411         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
53412         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
53413         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
53414         (gl_FUNC_STRERROR_R): ... to here.
53415         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
53417 2011-06-07  Eric Blake  <eblake@redhat.com>
53419         perror: document fixed bugs
53420         * doc/posix-functions/perror.texi (perror): Document recent
53421         patches.
53423 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
53425         stat-time: get_stat_birthtime failure is better-defined
53426         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
53427         return a timestamp whose tv_sec and tv_nsec values are both -1.
53428         Previously, the spec said only that the tv_nsec value was negative.
53429         This upward-compatible change simplifies GNU tar a bit.
53431 2011-06-07  Eric Blake  <eblake@redhat.com>
53433         strerror_r-posix: work around cygwin 1.7.9
53434         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
53435         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
53436         bug without replacing strerror_r.
53437         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
53438         strerror_r is buggy, but without requiring strerror_r compilation.
53439         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
53441         test-perror: relax test to ignore cygwin bug
53442         * tests/test-perror2.c (main): Relax test on requiring detection
53443         of stream errors, and use unbuffered stream.
53444         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
53445         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
53446         * doc/posix-functions/fputc.texi (fputc): Likewise.
53447         * doc/posix-functions/fputs.texi (fputs): Likewise.
53448         * doc/posix-functions/fputws.texi (fputws): Likewise.
53449         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
53450         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
53451         * doc/posix-functions/getopt.texi (getopt): Likewise.
53452         * doc/posix-functions/perror.texi (perror): Likewise.
53453         * doc/posix-functions/printf.texi (printf): Likewise.
53454         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
53455         * doc/posix-functions/psignal.texi (psignal): Likewise.
53456         * doc/posix-functions/putc.texi (putc): Likewise.
53457         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
53458         Likewise.
53459         * doc/posix-functions/putchar.texi (putchar): Likewise.
53460         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
53461         Likewise.
53462         * doc/posix-functions/puts.texi (puts): Likewise.
53463         * doc/posix-functions/putwc.texi (putwc): Likewise.
53464         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53465         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53466         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53467         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
53468         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53469         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53470         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
53471         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
53473 2011-05-22  Bruno Haible  <bruno@clisp.org>
53475         strerror: Move AC_LIBOBJ invocations to module description.
53476         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
53477         gl_PREREQ_STRERROR invocations from here...
53478         * modules/strerror (configure.ac): ... to here.
53480 2011-05-21  Bruno Haible  <bruno@clisp.org>
53482         perror: Use common idiom.
53483         * modules/perror (configure.ac): Reorder statements.
53485 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53487         tests: fix usage message in 'mktempd_'
53488         * tests/init.sh (mktempd_): In the usage message, use literal
53489         'mktempd_', not '$ME' (which is even undefined), as the name of
53490         the subroutine.
53492 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53494         tests init: new function 'fatal_', for hard errors
53495         Before this patch, the only way offered by tests/init.sh to
53496         properly signal a hard error was the `framework_failure_'
53497         function.  But the error message issued by that function,
53498         as its name would suggest, refers to a set-up failure in the
53499         testsuite, while hard errors can obviously also be due to
53500         other reasons.  The best way to fix this inconsistency is to
53501         introduce a new function with a more general error message.
53502         * tests/init.sh (fatal_): New function.
53504 2011-06-06  Eric Blake  <eblake@redhat.com>
53506         canonicalize-lgpl: use common idiom
53507         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
53508         over newer POSIX -Rf.
53509         Reported by Bruno Haible.
53511         canonicalize-lgpl: work around AIX realpath bug
53512         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
53513         * doc/posix-functions/realpath.texi (realpath): Document it.
53514         Reported by Bruno Haible.
53516         strerror: work around FreeBSD bug
53517         * lib/strerror.c (strerror): Special case 0.
53518         Reported by Bruno Haible.
53520         strerror-override: avoid bloating errno module
53521         * modules/errno (Files, configure.ac): Move replacement strings...
53522         * modules/strerror-override: ...to new module.
53523         * modules/strerror (Depends-on): Add strerror-override.
53524         * modules/strerror_r-posix (Depends-on): Likewise.
53525         * MODULES.html.sh: Document new module.
53526         Reported by Bruno Haible.
53528 2011-06-06  Bruno Haible  <bruno@clisp.org>
53530         spawn-pipe tests: Rename program.
53531         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
53532         * tests/test-spawn-pipe-child.c: Update comment.
53533         * tests/test-spawn-pipe.sh: Update.
53534         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
53536         spawn-pipe tests: Link the child program only against libc.
53537         * tests/test-spawn-pipe-child.c: New file, extracted from
53538         tests/test-spawn-pipe.c.
53539         (main): Expect only one argument.
53540         (is_open): New function, copied from tests/test-pipe.c.
53541         * tests/test-spawn-pipe.c: Don't include <errno.h>.
53542         (child_main): Remove function.
53543         (test_pipe): Pass only one argument to the child program.
53544         (main): Remove child process code. Expect the child program's name as
53545         first argument.
53546         * tests/test-spawn-pipe.sh: Pass the child program's name as first
53547         argument.
53548         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
53549         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
53550         test-spawn-pipe-child against no libraries.
53552 2011-06-06  Bruno Haible  <bruno@clisp.org>
53554         careadlinkat: Avoid mismatch between ssize_t and int.
53555         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
53556         * lib/careadlinkat.c (careadlinkatcwd): Define always.
53558 2011-06-06  Jim Meyering  <meyering@redhat.com>
53560         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
53561         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
53562         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
53564 2011-06-05  Bruno Haible  <bruno@clisp.org>
53566         ansi-c++-opt: Interoperability with libtool.
53567         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
53568         set the variable to "no", not to ":".
53569         * NEWS: Mention the change.
53571 2011-06-05  Bruno Haible  <bruno@clisp.org>
53573         acl: Fix test failure on AIX 7.
53574         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
53575         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
53577 2011-06-05  Bruno Haible  <bruno@clisp.org>
53579         pipe-filter-ii: Fix test failure on AIX and IRIX.
53580         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
53581         with EAGAIN, retry with a smaller buffer size.
53583 2011-06-05  Bruno Haible  <bruno@clisp.org>
53585         localename: Fix link dependencies.
53586         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
53587         * modules/localename-tests (Makefile.am): Link test-localename with
53588         $(LIBTHREAD).
53590 2011-06-05  Bruno Haible  <bruno@clisp.org>
53592         error: Avoid gcc warning.
53593         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
53595 2011-06-05  Bruno Haible  <bruno@clisp.org>
53597         unsetenv: Avoid gcc warning.
53598         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
53600 2011-06-05  Bruno Haible  <bruno@clisp.org>
53602         setenv: Avoid gcc warning.
53603         * lib/setenv.c (setenv): Provide declaration if system lacks it.
53605 2011-06-05  Bruno Haible  <bruno@clisp.org>
53607         sys_select: Ensure memset is declared also on AIX 7.
53608         * lib/sys_select.in.h: Include <string.h> also on AIX.
53609         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
53610         self-contained also on AIX 7.1.
53612 2011-06-04  Jim Meyering  <meyering@redhat.com>
53614         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
53615         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
53616         function name, "error".
53617         (_gl_translatable_diag_func_re): New configurable variable.
53619 2011-06-04  Bruno Haible  <bruno@clisp.org>
53621         getopt: Avoid gcc warning.
53622         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
53624 2011-06-04  Bruno Haible  <bruno@clisp.org>
53626         strerror_r: Fix comments.
53627         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
53628         commit.
53630 2011-06-04  Bruno Haible  <bruno@clisp.org>
53632         perror: Fix compilation error.
53633         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
53634         Undefine fprintf, not sprintf.
53635         * modules/perror (Depends-on): Remove intprops, verify.
53637 2011-06-04  Bruno Haible  <bruno@clisp.org>
53639         setlocale: Enable replacement on Cygwin 1.5.
53640         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
53641         Cygwin 1.5.x.
53642         * doc/posix-functions/setlocale.texi: Mention that the problem with the
53643         LC_CTYPE category also exists on Cygwin 1.5.x.
53645 2011-06-04  Bruno Haible  <bruno@clisp.org>
53647         strerror-override: Don't disable symbol renamings.
53648         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
53649         * lib/strerror-override.c: Include config.h.
53650         (strerror_override): Don't undefine.
53652 2011-06-03  Bruno Haible  <bruno@clisp.org>
53654         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
53655         * lib/localename.h: Update copyright header.
53656         * lib/localename.c: Likewise.
53657         * lib/relocatable.h: Likewise.
53658         * lib/relocatable.c: Likewise.
53660 2011-06-02  Bruno Haible  <bruno@clisp.org>
53662         doc: Fix a module name.
53663         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
53665 2011-06-02  Bruno Haible  <bruno@clisp.org>
53667         pipe2: Remove dependency on 'nonblocking' module.
53668         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
53669         O_NONBLOCK is defined by gnulib.
53670         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
53671         is zero.
53672         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
53673         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
53674         defined by gnulib.
53675         (get_nonblocking_flag): New function.
53676         (main): Test O_NONBLOCK flag only if it is nonzero.
53677         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
53679 2011-06-03  Jim Meyering  <meyering@redhat.com>
53681         maint: three new prohibit-header-without-use rules
53682         Prohibit use of cloexec.h, posixver.h, same.h without use.
53683         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
53684         (sc_prohibit_posixver_without_use): Likewise.
53685         (sc_prohibit_same_without_use): Likewise.
53687 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53689         allocator: 'die' routine is now given requested size
53690         * lib/allocator.h (struct allocator.die): New size arg.
53691         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
53692         If the actual problem is an ssize_t limitation, not a size_t or
53693         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
53695 2011-06-01  Eric Blake  <eblake@redhat.com>
53697         strerror: drop strerror_r dependency
53698         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
53699         * lib/strerror-override.c (strerror_override): ...to new file.
53700         * lib/strerror-override.h: Add prototype.
53701         * lib/strerror-impl.h: Delete.
53702         * lib/strerror.c (strerror): New implementation.
53703         * modules/errno (Files): Add new files.
53704         (configure.ac): Compile new file as appropriate.
53705         * modules/strerror (Files): Drop unused file.
53706         (Depends-on): Drop strerror_r-posix.
53707         * MODULES.html.sh: Document strerror_r-posix.
53708         Requested by Sam Steingold.
53710         perror: call strerror_r directly
53711         * modules/perror (Files): Drop strerror-impl.h.
53712         * lib/perror.c (perror): Use our own stack buffer, rather than
53713         calling a wrapper that uses static storage.
53714         * doc/posix-functions/perror.texi (perror): Document a limitation
53715         of our replacement.
53717         strerror_r: fix includes for FreeBSD
53718         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
53719         since we use abort on some platforms.
53720         Reported by Matthias Bolte.
53722 2011-05-31  Bruno Haible  <bruno@clisp.org>
53724         Fix link errors in tests: openat-die uses gettext-h.
53725         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
53726         against $(LIBINTL).
53727         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
53728         against $(LIBINTL).
53729         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
53730         $(LIBINTL).
53731         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
53732         against $(LIBINTL).
53733         * modules/linkat-tests (Makefile.am): Link test-linkat against
53734         $(LIBINTL).
53735         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
53736         $(LIBINTL).
53737         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
53738         against $(LIBINTL).
53739         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
53740         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
53741         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
53742         $(LIBINTL).
53743         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
53744         $(LIBINTL).
53745         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
53746         $(LIBINTL).
53747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53749 2011-05-31  Bruno Haible  <bruno@clisp.org>
53751         Fix link errors in tests: wait-process uses gettext-h.
53752         * modules/nonblocking-pipe-tests (Makefile.am): Set
53753         test_nonblocking_pipe_main_LDADD.
53754         * modules/nonblocking-socket-tests (Makefile.am): Link
53755         test-nonblocking-socket-main against $(LIBINTL).
53756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53758 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
53760         assert-h: work around 'verify' incompatibility
53761         * lib/verify.h: Use @...@ directives, not ifdef.
53762         * modules/assert-h (assert.h): Implement the directives.
53763         (assert.h): Substitute the symbol-prefix more consistently.
53765 2011-05-29  Jim Meyering  <meyering@redhat.com>
53767         trim: remove three superfluous assignments
53768         * lib/trim.c (trim2): Remove three superfluous assignments
53769         and correct brace positioning.
53771 2011-05-29  Bruno Haible  <bruno@clisp.org>
53773         wctype-h: Avoid namespace pollution on Solaris 2.6.
53774         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
53775         identifiers.
53776         * doc/posix-headers/wctype.texi: Mention the problem.
53777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53779 2011-05-28  Jim Meyering  <meyering@redhat.com>
53781         parse-datetime.y: accommodate -Wstrict-overflow
53782         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
53783         placate -Wstrict-overflow.
53785         trim: avoid a warning from -O2 -Wstrict-overflow
53786         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
53788 2011-05-29  Bruno Haible  <bruno@clisp.org>
53790         gnulib-tool: Fix bug in yesterday's commit.
53791         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
53792         twice.
53794 2011-05-29  Bruno Haible  <bruno@clisp.org>
53796         Allow multiple gnulib generated include files to be combined.
53797         * gnulib-tool (func_compute_include_guard_prefix): New function.
53798         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
53799         ${gl_include_guard_prefix} references.
53800         (func_import, func_create_testdir): Invoke
53801         func_compute_include_guard_prefix.
53802         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
53803         * lib/ctype.in.h: Likewise.
53804         * lib/dirent.in.h: Likewise.
53805         * lib/errno.in.h: Likewise.
53806         * lib/fcntl.in.h: Likewise.
53807         * lib/float.in.h: Likewise.
53808         * lib/getopt.in.h: Likewise.
53809         * lib/iconv.in.h: Likewise.
53810         * lib/langinfo.in.h: Likewise.
53811         * lib/locale.in.h: Likewise.
53812         * lib/math.in.h: Likewise.
53813         * lib/netdb.in.h: Likewise.
53814         * lib/netinet_in.in.h: Likewise.
53815         * lib/poll.in.h: Likewise.
53816         * lib/pthread.in.h: Likewise.
53817         * lib/pty.in.h: Likewise.
53818         * lib/sched.in.h: Likewise.
53819         * lib/se-selinux.in.h: Likewise.
53820         * lib/search.in.h: Likewise.
53821         * lib/signal.in.h: Likewise.
53822         * lib/spawn.in.h: Likewise.
53823         * lib/stdarg.in.h: Likewise.
53824         * lib/stddef.in.h: Likewise.
53825         * lib/stdint.in.h: Likewise.
53826         * lib/stdio.in.h: Likewise.
53827         * lib/stdlib.in.h: Likewise.
53828         * lib/string.in.h: Likewise.
53829         * lib/strings.in.h: Likewise.
53830         * lib/sys_file.in.h: Likewise.
53831         * lib/sys_ioctl.in.h: Likewise.
53832         * lib/sys_select.in.h: Likewise.
53833         * lib/sys_socket.in.h: Likewise.
53834         * lib/sys_stat.in.h: Likewise.
53835         * lib/sys_time.in.h: Likewise.
53836         * lib/sys_times.in.h: Likewise.
53837         * lib/sys_uio.in.h: Likewise.
53838         * lib/sys_utsname.in.h: Likewise.
53839         * lib/sys_wait.in.h: Likewise.
53840         * lib/sysexits.in.h: Likewise.
53841         * lib/termios.in.h: Likewise.
53842         * lib/time.in.h: Likewise.
53843         * lib/unistd.in.h: Likewise.
53844         * lib/wchar.in.h: Likewise.
53845         * lib/wctype.in.h: Likewise.
53846         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
53847         * modules/ctype (Makefile.am): Likewise.
53848         * modules/dirent (Makefile.am): Likewise.
53849         * modules/errno (Makefile.am): Likewise.
53850         * modules/fcntl-h (Makefile.am): Likewise.
53851         * modules/float (Makefile.am): Likewise.
53852         * modules/getopt-posix (Makefile.am): Likewise.
53853         * modules/iconv-h (Makefile.am): Likewise.
53854         * modules/langinfo (Makefile.am): Likewise.
53855         * modules/locale (Makefile.am): Likewise.
53856         * modules/math (Makefile.am): Likewise.
53857         * modules/netdb (Makefile.am): Likewise.
53858         * modules/netinet_in (Makefile.am): Likewise.
53859         * modules/poll-h (Makefile.am): Likewise.
53860         * modules/pthread (Makefile.am): Likewise.
53861         * modules/pty (Makefile.am): Likewise.
53862         * modules/sched (Makefile.am): Likewise.
53863         * modules/search (Makefile.am): Likewise.
53864         * modules/selinux-h (Makefile.am): Likewise.
53865         * modules/signal (Makefile.am): Likewise.
53866         * modules/spawn (Makefile.am): Likewise.
53867         * modules/stdarg (Makefile.am): Likewise.
53868         * modules/stddef (Makefile.am): Likewise.
53869         * modules/stdint (Makefile.am): Likewise.
53870         * modules/stdio (Makefile.am): Likewise.
53871         * modules/stdlib (Makefile.am): Likewise.
53872         * modules/string (Makefile.am): Likewise.
53873         * modules/strings (Makefile.am): Likewise.
53874         * modules/sys_file (Makefile.am): Likewise.
53875         * modules/sys_ioctl (Makefile.am): Likewise.
53876         * modules/sys_select (Makefile.am): Likewise.
53877         * modules/sys_socket (Makefile.am): Likewise.
53878         * modules/sys_stat (Makefile.am): Likewise.
53879         * modules/sys_time (Makefile.am): Likewise.
53880         * modules/sys_times (Makefile.am): Likewise.
53881         * modules/sys_uio (Makefile.am): Likewise.
53882         * modules/sys_utsname (Makefile.am): Likewise.
53883         * modules/sys_wait (Makefile.am): Likewise.
53884         * modules/sysexits (Makefile.am): Likewise.
53885         * modules/termios (Makefile.am): Likewise.
53886         * modules/time (Makefile.am): Likewise.
53887         * modules/unistd (Makefile.am): Likewise.
53888         * modules/wchar (Makefile.am): Likewise.
53889         * modules/wctype-h (Makefile.am): Likewise.
53890         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
53892 2011-05-29  Bruno Haible  <bruno@clisp.org>
53894         assert-h: Allow multiple gnulib generated replacements to coexist.
53895         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
53897 2011-05-29  Bruno Haible  <bruno@clisp.org>
53899         argp: Allow coexistence with strerror_r-posix module.
53900         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
53901         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
53902         by gnulib's <string.h> replacement), assume it has the POSIX signature,
53903         not the glibc signature.
53905 2011-05-28  Bruno Haible  <bruno@clisp.org>
53907         gnulib-tool: Alternative structure of testdirs, similar to --import.
53908         * gnulib-tool: New option --single-configure.
53909         (func_usage): Document it.
53910         (single_configure): New variable.
53911         (func_modules_transitive_closure_separately,
53912         func_modules_transitive_closure_separately,
53913         func_determine_use_libtests, func_modules_add_dummy_separately,
53914         func_modules_to_filelist_separately): New functions, extracted from
53915         func_import.
53916         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
53917         (func_import): Use the new functions.
53918         (func_create_testdir): Set final_modules. Handle $single_configure =
53919         true case.
53921 2011-05-28  Bruno Haible  <bruno@clisp.org>
53923         getloadavg: Remove an unreliable safety check.
53924         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
53925         getloadavg.c is in place.
53926         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
53927         Reported by Sam Steingold <sds@gnu.org>.
53929 2011-05-28  Bruno Haible  <bruno@clisp.org>
53931         doc: Cleanup yet another file produced by texinfo.tex.
53932         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
53934 2011-05-28  Bruno Haible  <bruno@clisp.org>
53936         Finish the conditional dependencies mechanism.
53937         * gnulib-tool: New option --no-conditional-dependencies.
53938         (func_usage): Document it. Don't mark --conditional-dependencies as
53939         experimental.
53940         (cond_dependencies): The possible values can now be true, false, empty.
53941         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
53942         (func_import): Store setting in gnulib-cache.m4 and read it from there.
53943         * doc/gnulib-tool.texi (Conditional dependencies): New section.
53945 2011-05-28  Bruno Haible  <bruno@clisp.org>
53947         doc: Use a recent texinfo.tex.
53948         * doc/Makefile (tex_opts): New variable.
53949         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
53951 2011-05-28  Jim Meyering  <meyering@redhat.com>
53953         intprops.h: adjust comment to match code change
53954         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
53955         only once, it *may* have side effects.  Also fix an unrelated typo.
53956         (_GL_INT_SIGNED): Likewise.
53958 2011-05-26  Simon Josefsson  <simon@josefsson.org>
53960         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
53962 2011-05-26  Bruno Haible  <bruno@clisp.org>
53964         mbsrchr: Avoid collision with system function on Interix.
53965         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
53966         Reported by Markus Duft <mduft@gentoo.org>.
53968 2011-05-15  James Youngman  <jay@gnu.org>
53970         getopt: for ambiguous options, enumerate the possibilities.
53971         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
53972         the ambiguous options when an ambiguous prefix is given. This was
53973         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
53974         glibc change was
53975         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
53977 2011-05-25  Eric Blake  <eblake@redhat.com>
53979         getcwd: work around mingw bug
53980         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
53981         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53982         Reported by Matthias Bolte.
53984 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
53986         test-intprops: disable -Wtype-limits diagnostics
53987         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
53988         diagnostics.  Otherwise, the integer overflow macros generate many
53989         diagnostics.  Reported by Jim Meyering in
53990         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
53992         intprops: shorten, to pacify gcc -Woverlength-strings
53993         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
53994         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
53995         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
53996         likely to run afoul of C compiler limits for string constant lengths.
53997         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
53999 2011-05-24  Eric Blake  <eblake@redhat.com>
54001         docs: document recently fixed glibc printf bug
54002         * doc/posix-functions/fprintf.texi (fprintf): Document it.
54003         * doc/posix-functions/printf.texi (printf): Likewise.
54004         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54005         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54007         closein-tests: convert to init.sh
54008         * modules/closein-tests (Files): Add init.sh
54009         * tests/test-closein.sh Use it.
54011         yesno-tests: convert to init.sh
54012         * modules/yesno-tests (Files): Add init.sh.
54013         * tests/test-yesno.sh: Use it.
54015         atexit-tests: ensure reliable exit status
54016         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
54017         Reported by Bruno Haible.
54019 2011-05-24  Bruno Haible  <bruno@clisp.org>
54021         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
54022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
54023         gl_PREREQ_STRERROR_R invocations from here...
54024         * modules/strerror_r-posix (configure.ac): ... to here.
54026 2011-05-24  Eric Blake  <eblake@redhat.com>
54028         strerror_r: fix missing header
54029         * lib/strerror_r.c: Avoid compiler warning about snprintf.
54031         strerror_r: fix AIX test failures
54032         * lib/strerror_r.c (strerror_r): Convert silent truncation to
54033         ERANGE failure.
54035         strerror_r: fix Solaris test failures
54036         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
54037         failures.
54038         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54040         strerror_r: enforce POSIX recommendations
54041         * lib/strerror_r.c (safe_copy): New helper method.
54042         (strerror_r): Guarantee a non-empty string.
54043         * tests/test-strerror_r.c (main): Enhance tests to incorporate
54044         recent POSIX rulings and to match our strerror guarantees.
54045         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54047 2011-05-24  Jim Meyering  <meyering@redhat.com>
54049         test-perror2.c: avoid warning about unused variable
54050         * tests/test-perror2.c (main): Remove declaration of unused "fp".
54052 2011-05-24  Eric Blake  <eblake@redhat.com>
54054         perror: avoid spurious test failure on HP-UX
54055         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
54057         tests: fix logic bug in init.sh
54058         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
54059         shell.
54061 2011-05-24  Jim Meyering  <meyering@redhat.com>
54063         utimensat: do not reference an out-of-scope buffer
54064         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
54065         declared in an inner scope, yet "times" would be dereferenced outside
54066         the scope in which "ts" was valid.
54067         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
54068         of ts[2] "out/up", so that the use of aliased "times" (via
54069         "times = ts;") does not end up referencing an out-of-scope "ts"
54071         opendir-safer.c: don't clobber errno; don't close negative FD
54072         * lib/opendir-safer.c (opendir_safer):
54073         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
54074         file descriptor, and more importantly, don't clobber the
54075         offending errno value with EINVAL.  Before, upon failure
54076         of dup_safer, we would pass the negative file descriptor to
54077         fdopendir, which would clobber errno.
54079 2011-05-23  Bruno Haible  <bruno@clisp.org>
54081         idcache: Fix module description.
54082         * modules/idcache (Include): Set to "idcache.h".
54084 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
54086         gnulib-tool: fix portability problem with MacOS sed
54087         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
54088         before the "}".  Problem reported by Leo in
54089         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
54090         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
54091         sed_extract_condition1, sed_extract_condition2.
54093 2011-05-23  Bruno Haible  <bruno@clisp.org>
54095         hash: Simplify autoconf macro.
54096         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
54098 2011-05-23  Bruno Haible  <bruno@clisp.org>
54100         getugroups: Fix module description.
54101         * modules/getugroups (Include): Set to "getugroups.h".
54103 2011-05-23  Bruno Haible  <bruno@clisp.org>
54105         linkat: Simplify autoconf macro.
54106         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
54108 2011-05-23  Bruno Haible  <bruno@clisp.org>
54109             Eric Blake  <eblake@redhat.com>
54111         linkat, renameat: Update dependencies.
54112         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
54113         * modules/linkat (Depends-on): Likewise. Remove also readlink,
54114         symlinkat.
54116 2011-05-23  Jim Meyering  <meyering@redhat.com>
54118         maint.mk: more tight_scope improvements
54119         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
54120         (_gl_TS_headers): Define only in if-0'd block.
54121         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
54122         sometimes we must *not* use it.  Adjust uses accordingly.
54123         (sc_tight_scope): Use much simpler grep-based test to determine
54124         whether we skip this rule.
54126         maint.mk: generalize/improve the tight-scope rule
54127         * top/maint.mk: Emit a warning when the test is skipped.
54128         (_gl_TS_dir): Add $(srcdir)/ prefix.
54129         (_gl_TS_function_match): Simplify, rather than trying
54130         to enumerate common types.  Otherwise, it would fail to match an
54131         "extern unsigned char const *" declaration in idutils.
54132         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
54133         a way to support use of that type of macro.
54134         (_gl_TS_var_match): Simplify regexp.
54135         (_gl_TS_obj_files): New configurable variable.
54136         (_gl_TS_headers): Likewise.
54138 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54140         verify: fix bug when gnulib <assert.h> is also included
54141         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
54142         is defined, not if _GL_STATIC_ASSERT_H is not defined.
54143         Perhaps there's a better way, but this fixes the immediate problem.
54144         Problem reported by Bruno Haible in
54145         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
54147 2011-05-22  Bruno Haible  <bruno@clisp.org>
54149         xgetcwd: Simplify autoconf macro.
54150         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
54152 2011-05-22  Bruno Haible  <bruno@clisp.org>
54154         New module 'mktime-internal'.
54155         * modules/mktime-internal: New file.
54156         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
54157         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
54158         mktime_internal as a C macro if libc has __mktime_internal.
54159         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
54160         conditions.
54161         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
54163 2011-05-22  Bruno Haible  <bruno@clisp.org>
54165         timegm: Correct mktime replacement statements.
54166         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
54167         defining mktime as a C macro. This completes a 2009-07-28 commit.
54169 2011-05-22  Bruno Haible  <bruno@clisp.org>
54171         timegm: Simplify autoconf macro.
54172         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
54174 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
54176         clock-time: change to LGPLv2+.
54177         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
54178         BSD-like but we have no mark for that; this is good enough for now.
54180 2011-05-21  Bruno Haible  <bruno@clisp.org>
54182         strerror_r: Fix comments.
54183         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
54185 2011-05-21  Bruno Haible  <bruno@clisp.org>
54187         relocatable-prog-wrapper: Fix possible link error.
54188         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
54189         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
54190         (gl_FUNC_SETENV): ... to here.
54191         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
54192         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
54194 2011-05-21  Bruno Haible  <bruno@clisp.org>
54196         relocatable-prog-wrapper: Assume strerror() exists.
54197         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
54198         m4/strerror.m4.
54199         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
54200         * lib/relocwrapper.c: Remove mention of strerror module.
54201         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
54202         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
54203         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
54204         C macro.
54206 2011-05-21  Bruno Haible  <bruno@clisp.org>
54208         select: Simplify replacement idiom.
54209         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
54210         Win32 platforms.
54211         * lib/sys_select.in.h (select): Simplify accordingly.
54212         * modules/select (Depends-on): Likewise.
54214 2011-05-21  Bruno Haible  <bruno@clisp.org>
54216         mkdir-p: Simplify autoconf macro.
54217         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
54218         gl_FUNC_LCHOWN.
54220 2011-05-21  Eric Blake  <eblake@redhat.com>
54222         strerror_r: avoid clobbering strerror on cygwin
54223         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
54224         fall back instead to sys_errlist.
54225         * modules/strerror (configure.ac): Add witness.
54226         * tests/test-strerror_r.c (main): Enhance test.
54227         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54228         * tests/test-perror2.c (main): Free memory before exit.
54230 2011-05-21  Bruno Haible  <bruno@clisp.org>
54232         mkdtemp: Use gnulib naming conventions.
54233         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
54234         * modules/mkdtemp (configure.ac): Update.
54236 2011-05-20  Eric Blake  <eblake@redhat.com>
54238         strerror_r: avoid corrupting errno on Solaris
54239         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
54240         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54242         strerror_r: avoid compiler warning
54243         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
54245         strerror_r: simplify AIX code
54246         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
54248         test-perror: avoid spurious failure on FreeBSD
54249         * modules/perror-tests (Depends-on): Add strerror, now that
54250         strerror_r no longer pulls it in.
54252 2011-05-20  Bruno Haible  <bruno@clisp.org>
54254         strerror_r-posix: Remove unused dependencies.
54255         * modules/strerror_r-posix (Depends-on): Remove strerror.
54256         Reported by Eric Blake.
54258 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54260         intprops: remove assumption about A|B representation
54261         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
54262         is a valid integer if both A and B are.  Although this is true for
54263         all known practical hosts, the C standard doesn't guarantee it,
54264         and the code need not assume it.  Also, this change may work around
54265         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
54266         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
54268 2011-05-20  Eric Blake  <eblake@redhat.com>
54270         perror: work around FreeBSD bug
54271         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
54272         is broken.  Move AC_LIBOBJ...
54273         * modules/perror (configure.ac): Here.
54274         * doc/posix-functions/perror.texi (perror): Document this.
54275         * tests/test-perror2.c (main): Enhance test.
54277         test-perror: check for strerror interactions
54278         * tests/macros.h (STREQ): Add macro.
54279         * modules/perror-tests (Files): Add second test.
54280         * tests/test-perror2.c (main): New file.
54281         * doc/posix-functions/perror.texi (perror): Document glibc bug.
54283         test-perror: rewrite to use init script
54284         * modules/perror-tests (Files): Add init.sh.
54285         * tests/test-perror.sh: Use temporary directory.
54287 2011-05-20  Jim Meyering  <meyering@redhat.com>
54289         maint: replace misused "a" with "an"
54290         * doc/intprops.texi: "a integer"
54291         * doc/regex.texi: "a explanation"
54292         * lib/alignof.h: "a object"
54293         * lib/argmatch.h: "a explanation"
54294         * lib/argp-help.c: "a option" and "a OPTION_DOC"
54295         * lib/stdint.in.h: "a integer"
54296         * lib/userspec.c: "a owner"
54297         * doc/gnulib.texi: Fix "a idea", and reword.
54299 2011-05-19  Jim Meyering  <meyering@redhat.com>
54301         maint: correct misuse of "a" and "an"
54302         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
54303         * lib/argp-help.c: "an docum...": s/an/a/
54304         * lib/argp-parse.c: "An vector": s/An/A/
54305         * lib/execute.c: "an native": s/an/a/
54306         * lib/spawn-pipe.c: Likewise.
54307         * lib/gc.h: "an Gc_rc": s/an/a/
54308         * lib/unigbrk.in.h: "an grapheme": s/an/a/
54309         * lib/fts.c: "an stat.st_dev": s/an/a/
54311 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54313         intprops-tests: work around HP-UX 11.23 cc bug with constants
54314         * tests/test-intprops.c (VERIFY): New macro.
54315         (main): Use it, instead of verify, to work around the compiler bug; see
54316         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54318         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
54319         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
54320         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
54321         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
54322         (_GL_REMAINDER_OVERFLOW): Use it.
54324         intprops-tests: revert unsigned part of previous change
54325         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
54326         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
54327         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
54328         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
54330 2011-05-19  Bruno Haible  <bruno@clisp.org>
54332         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
54333         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
54334         strerror_r() returned without filling the buffer.
54335         Reported by Eric Blake.
54337 2011-05-19  Eric Blake  <eblake@redhat.com>
54339         strerror_r: guarantee unchanged errno
54340         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
54341         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
54342         failure.
54343         * tests/test-strerror_r.c (main): Enhance test.
54345 2011-05-19  Bruno Haible  <bruno@clisp.org>
54347         strerror_r: Reorder #if blocks.
54348         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
54349         for consistency with the previous commit.
54351 2011-05-19  Bruno Haible  <bruno@clisp.org>
54353         perror: Avoid clobbering the strerror buffer when possible.
54354         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
54355         * lib/strerror.c: Include it.
54356         * modules/strerror (Files): Add lib/strerror-impl.h.
54357         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
54358         (my_strerror): New function, defined through lib/strerror-impl.h.
54359         (perror): Use it instead of strerror.
54360         * modules/perror (Files): Add lib/strerror-impl.h.
54361         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
54363 2011-05-19  Eric Blake  <eblake@redhat.com>
54365         strerror_r: fix on newer cygwin
54366         * lib/strerror_r.c (strerror_r): Cygwin now has
54367         __xpg_strerror_r, use it.
54369 2011-05-19  Bruno Haible  <bruno@clisp.org>
54371         strerror_r: Avoid clobbering the strerror buffer when possible.
54372         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
54373         (sys_nerr, sys_errlist): New declarations.
54374         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
54375         HP-UX, native Win32, IRIX, and 32-bit Solaris.
54376         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
54378 2011-05-19  Bruno Haible  <bruno@clisp.org>
54380         strerror_r: Fix test failure on mingw.
54381         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
54382         EXTEND_STRERROR_R.
54383         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
54384         macros from errno.in.h instead.
54386 2011-05-19  Eric Blake  <eblake@redhat.com>
54388         strerror: relax test for Solaris
54389         * tests/test-strerror.c (main): Permit Solaris behavior.
54390         * tests/test-strerror_r.c (main): Likewise.
54392         strerror: enforce POSIX ruling on strerror(0)
54393         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
54394         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54395         * lib/strerror_r.c (rpl_strerror_r): Work around it.
54396         * doc/posix-functions/strerror.texi (strerror): Document it.
54397         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
54398         * tests/test-strerror.c (main): Strengthen test.
54399         * tests/test-strerror_r.c (main): Likewise.
54401 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54403         intprop-tests: port to older and more-pedantic compilers
54404         * modules/intprops-tests (Files): Add tests/macros.h.
54405         * tests/test-intprops.c: Include macros.h.
54406         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
54407         it's no longer documented to expand to an integer constant expression.
54408         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
54409         argument is floating point, as it's no longer documented to expand
54410         to an integer constant expression in that case.
54411         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
54412         compiler bugs reported by Bruno Haible.  See
54413         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54414         (U0, U1): New constants, to work around the same bugs.  Also,
54415         in tests, use e.g., "(unsigned int) 39" rather than "39u".
54417         intprops: work around C compiler bugs
54418         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
54419         bug in Sun C 5.11 2010/08/13 and other compilers; see
54420         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54422         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
54423         * doc/intprops.texi (Integer Type Determination): Fix
54424         documentation for TYPE_IS_INTEGER: it returns an constant
54425         expression, not an integer constant expression.  Fix doc for
54426         TYPE_SIGNED: it returns an integer constant expression only if its
54427         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
54428         hardly worth documented that way....)
54430 2011-05-18  Bruno Haible  <bruno@clisp.org>
54432         strerror_r: Avoid clobbering the strerror buffer when possible.
54433         * lib/strerror_r.c (strerror_r): Merge the three implementations.
54434         Handle gnulib defined errno values here. When strerror() returns NULL
54435         or an empty string, return EINVAL.
54436         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
54437         gnulib defined errno values here.
54438         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
54440 2011-05-18  Eric Blake  <eblake@redhat.com>
54442         fnmatch: avoid compiler warning
54443         * lib/fnmatch_loop.c (FCT): Use correct type.
54444         Reported by Matthias Bolte.
54446 2011-05-13  Jim Meyering  <meyering@redhat.com>
54448         maint.mk: three new prohibit_<HDR>_without_use rules
54449         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
54450         (sc_prohibit_stdio-safer_without_use): Likewise.
54451         (sc_prohibit_xfreopen_without_use): Likewise.
54453 2011-05-17  Jim Meyering  <meyering@redhat.com>
54455         announce-gen: fail if the NEWS delta is empty
54456         If there's nothing noteworthy in NEWS, then either you forgot
54457         or you shouldn't be releasing.
54458         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
54460 2011-05-17  Pádraig Brady  <P@draigBrady.com>
54462         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
54463         reserved symbols starting with double underscore from the check.
54465 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54467         intprops: add doc
54468         * doc/intprops.texi: New file, documenting intprops.
54469         * doc/gnulib.texi (Particular Modules): Include it.
54471         verify: add doc to gnulib manual and fix example
54472         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
54473         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
54474         (Compile-time Assertions): Fix example so it can't overflow.
54476 2011-05-17  Jim Meyering  <meyering@redhat.com>
54478         warnings.m4: don't usurp save_CPPFLAGS variable name
54479         * m4/warnings.m4: Prefix local temporary variable name with gl_.
54481         doc: fix typo
54482         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
54484 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54485             Bruno Haible  <bruno@clisp.org>
54487         doc: Tweak recent change.
54488         * README (Portability guidelines): Tweak new text.
54489         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
54490         Interix 6.1.
54492 2011-05-16  Eric Blake  <eblake@redhat.com>
54494         inttypes: avoid autoconf warning
54495         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
54496         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54498 2011-05-16  Sam Steingold  <sds@gnu.org>
54499         and Eric Blake  <eblake@redhat.com>
54501         vc-list-files: accept multiple directory operands
54502         * build-aux/vc-list-files: Iterate over all remaining operands.
54504 2011-05-16  Bruno Haible  <bruno@clisp.org>
54506         Fix confusion regarding deprecated modules.
54507         * modules/calloc (Status, Notice): Mark module as deprecated, not
54508         obsolete.
54509         * modules/fnmatch-posix (Status, Notice): Likewise.
54510         * modules/getdate (Status, Notice): Likewise.
54511         * modules/getopt (Status, Notice): Likewise.
54512         * modules/malloc (Status, Notice): Likewise.
54513         * modules/pipe (Status, Notice): Likewise.
54514         * modules/realloc (Status, Notice): Likewise.
54515         * modules/rename-dest-slash (Status, Notice): Likewise.
54516         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
54517         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
54518         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
54519         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
54520         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
54522 2011-05-16  Bruno Haible  <bruno@clisp.org>
54524         doc: List the target platforms.
54525         * doc/gnulib-intro.texi (Target Platforms): New section.
54526         * doc/gnulib.texi (Introduction): Update menu.
54527         * README (Portability guidelines): Refer to the new section. Update
54528         statement about oldest supported environment. Remove rationale why
54529         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
54530         unportable C89 function.
54531         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
54532         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
54534 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54536         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
54538 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54540         intprops-tests: new module
54541         * modules/intprops-tests, tests/test-intprops.c: New files.
54543         intprops: add safe, portable integer overflow checking
54544         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
54545         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
54546         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
54547         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
54548         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
54549         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
54550         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
54551         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
54552         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
54553         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
54554         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
54556 2011-05-12  James Youngman  <jay@gnu.org>
54558         Add a test for glibc's Bugzilla bug #12378.
54559         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
54560         doesn't allow the literal matching of a lone "[" (which is
54561         required by POSIX).
54562         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
54564 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
54566         Sync glibc change fixing Bugzilla bug #12378.
54567         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
54568         beginning and fall back to matching as normal character if the
54569         string ends before the matching ']' is found.  This is what POSIX
54570         requires.
54572 2011-05-13  Eric Blake  <eblake@redhat.com>
54574         getcwd-lgpl: relax test for FreeBSD
54575         * doc/posix-functions/getcwd.texi (getcwd): Document portability
54576         issue.
54577         * tests/test-getcwd-lgpl.c (main): Relax test.
54578         Reported by Matthias Bolte.
54580 2011-05-11  Eric Blake  <eblake@redhat.com>
54582         test-fflush: silence compiler warning
54583         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
54585 2011-05-11  Bruno Haible  <bruno@clisp.org>
54587         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
54588         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
54589         * modules/canonicalize (Depends-on): Add 'nocrash'.
54590         * modules/canonicalize-lgpl (Depends-on): Likewise.
54591         * doc/posix-functions/realpath.texi: Update platforms list.
54592         Reported by Ryan Schmidt <ryandesign@macports.org>.
54594 2011-05-11  Bruno Haible  <bruno@clisp.org>
54596         group-member: Declare function in <unistd.h>.
54597         * lib/unistd.in.h (group_member): New declaration.
54598         * lib/group-member.h: Remove file.
54599         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
54600         * tests/test-unistd-c++.cc: Check signature of group_member.
54601         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
54602         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
54603         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
54604         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
54605         HAVE_GROUP_MEMBER.
54606         * modules/group-member (Files): Remove lib/group-member.h.
54607         (Depends-on): Add unistd. Specify conditions.
54608         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54609         (Include): Change to <unistd.h>.
54610         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
54611         HAVE_GROUP_MEMBER.
54612         * NEWS: Mention the change.
54613         * lib/euidaccess.c: Don't include group-member.h.
54615 2011-05-11  Bruno Haible  <bruno@clisp.org>
54617         group-member: Document module.
54618         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
54619         module.
54621 2011-05-11  Bruno Haible  <bruno@clisp.org>
54623         fclose: Fix mistake earlier today.
54624         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
54626 2011-05-11  Eric Blake  <eblake@redhat.com>
54628         fclose: preserve fflush errors
54629         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
54630         Reported by Jim Meyering.
54632         bootstrap: support a prereq of 'rpcgen -' on RHEL5
54633         * build-aux/bootstrap (check_versions): When no specific version
54634         is required, merely check that the app produces an exit status
54635         that indicates its existence.
54637         maint.mk: drop redundant check
54638         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
54639         the same but better.
54641 2011-05-11  Bruno Haible  <bruno@clisp.org>
54643         fclose: Fix possible link error.
54644         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
54645         unregister_shadow_fd. Improve comments.
54646         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
54647         Eric Blake.
54649 2011-05-11  Jim Meyering  <meyering@redhat.com>
54651         maint.mk: improve "can not" detection and generalize rule name
54652         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
54653         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
54654         Use the same technique as in sc_prohibit_doubled_word, so that
54655         we recognize "can not" also when the words are separated by a newline.
54656         Suggested by Eric Blake.
54657         (perl_filename_lineno_text_): Define.  Factored out of...
54658         (prohibit_doubled_word_): ...here.  Use the new definition.
54659         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
54660         (prohibit_undesirable_word_seq_RE_): New overridable variable.
54661         (ignore_undesirable_word_sequence_RE_): New overridable variable.
54663 2011-05-10  Eric Blake  <eblake@redhat.com>
54665         fclose: avoid double close race when possible
54666         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
54667         all but WINDOWS_SOCKETS.
54669 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
54671         openat: correct new comment
54672         * lib/openat-proc.c (openat_proc_name): Correct the comment.
54674 2011-05-10  Jim Meyering  <meyering@redhat.com>
54676         openat: add comments
54677         * lib/openat-proc.c (openat_proc_name): Add comments,
54678         mostly from Eric Blake.
54680 2011-05-09  Eric Blake  <eblake@redhat.com>
54682         openat: reduce syscalls in first probe of /proc
54683         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
54684         be a directory.  Simplify the probe for .. bugs.
54685         * modules/openat (Depends-on): Drop same-inode.
54686         Reported by Bastien ROUCARIES.
54688 2011-05-09  Jim Meyering  <meyering@redhat.com>
54690         maint.mk: change semantics/name of tight_scope variables
54691         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
54692         Rename variables to align with semantics that make them more useful.
54694         maint.mk: tweak new rule's name not to impinge
54695         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
54696         (sc_tight_scope): Use new rule name rather than $@-0.
54698         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
54699         * top/maint.mk (sc_tight_scope): New rule.
54700         (sc_tight_scope-0): New rule, ifdef'd out.
54701         (_gl_TS_dir): Default.
54702         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
54703         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
54705 2011-05-09  Simon Josefsson  <simon@josefsson.org>
54707         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
54708         Haible <bruno@clisp.org>.
54710 2011-05-08  Bruno Haible  <bruno@clisp.org>
54712         Comments.
54713         * m4/isnanf.m4: Add comment.
54714         * m4/isnanl.m4: Likewise.
54716 2011-05-08  Bruno Haible  <bruno@clisp.org>
54718         glob: Remove obsolete macro.
54719         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
54721 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
54723         intprops: Sun C 5.11 supports __typeof__
54724         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
54725         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
54726         which is new.
54727         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
54729         intprops: switch to usual gnulib indenting and naming
54730         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
54731         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
54733         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
54735 2011-05-08  Jim Meyering  <meyering@redhat.com>
54737         maint.mk: suppress "Entering/Leaving directory" diag in announcement
54738         * top/maint.mk (release-prep): Use make's --no-print-directory
54739         option when generating the announcement.  This eliminates the
54740         pesky "make[2]: Entering/Leaving directory" diagnostics in the
54741         generated announcement template.
54743 2011-05-08  Bruno Haible  <bruno@clisp.org>
54745         tzset: Fix gettimeofday wrapper on Solaris 2.6.
54746         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
54747         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
54749 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
54751         ignore-value, verify: Omit include files from lib_SOURCES.
54752         * modules/ignore-value, modules/verify (Makefile.am):
54753         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
54754         that leads Automake to duplicate use of am__objects_... variables
54755         in Makefile.in.  See
54756         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
54758 2011-05-07  Bruno Haible  <bruno@clisp.org>
54760         fclose: Simplify autoconf macro.
54761         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
54762         defined.
54764 2011-05-07  Bruno Haible  <bruno@clisp.org>
54766         canonicalize-lgpl: Fix autoconf macro ordering bug.
54767         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
54768         gl_STDLIB_H_DEFAULTS.
54770 2011-05-06  Eric Blake  <eblake@redhat.com>
54772         maintainer-makefile: make sc_po_check easier to tune
54773         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
54774         to probe for strings, such as an alternate location for gnulib.
54776         fclose: guarantee behavior on seekable stdin
54777         * modules/fclose (Depends-on): Add fflush.
54778         * doc/posix-functions/fclose.texi (fclose): Document this.
54779         * tests/test-fclose.c (main): Make test for this unconditional.
54781 2011-05-06  Bruno Haible  <bruno@clisp.org>
54783         fflush, fpurge: Relicense under LGPLv2+.
54784         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
54785         * modules/fpurge (License): Likewise.
54786         With permission from Eric Blake and Jim Meyering.
54787         Suggested by Eric Blake.
54789 2011-05-06  Karl Berry  <karl@gnu.org>
54791         * MODULES.html.sh (func_all_modules): remove exit.
54793 2011-05-06  Jim Meyering  <meyering@redhat.com>
54795         maint.mk: use info-gnu@ as the default only for a stable release
54796         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
54797         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
54798         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
54799         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
54801 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
54803         assert-h: new module, which supports C1X-style static_assert
54804         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
54805         * lib/verify.h: Revamp so that this can be copied into assert.h,
54806         while retaining the ability to use it standalone as before.
54807         Rename private identifiers so as not to encroach on the
54808         standard C namespace, since this is now used by assert.h.
54809         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
54810         the old verify_true.
54811         (_GL_VERIFY_TRUE): New macro, with much of the contents of
54812         the old verify_true.  Use _GL_VERIFY_TYPE.
54813         (_GL_VERIFY): New macro, with much of the contents of the old verify.
54814         (static_assert): New macro, if _GL_STATIC_ASSERT_H
54815         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
54816         defined when this file is copied into the replacement assert.h.
54817         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
54818         and _Static_assert is not built in.
54819         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
54820         defined, and use the new macros mentioned above.
54821         * doc/posix-headers/assert.texi: Document this.
54823 2011-05-05  Bruno Haible  <bruno@clisp.org>
54825         fclose, fflush: Respect rules for use of AC_LIBOBJ.
54826         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
54827         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
54828         gl_REPLACE_FCLOSE here.
54829         * modules/fflush (Depends-on): Remove fclose.
54830         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
54831         combination with module 'fclose'.
54833 2011-05-05  Bruno Haible  <bruno@clisp.org>
54835         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
54836         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
54837         gl_FUNC_FFLUSH.
54838         (gl_FUNC_FFLUSH): Use it.
54839         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
54840         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
54841         gl_REPLACE_FSEEKO here.
54843 2011-05-05  Bruno Haible  <bruno@clisp.org>
54845         tzset: Relicense under LGPL.
54846         * modules/tzset (License): Change to LGPL.
54847         No agreement needed; it's a no-op.
54849         strtoimax, strtoumax: Relicense under LGPL.
54850         * modules/strtoimax (License): Change to LGPL.
54851         * modules/strtoumax (License): Likewise.
54852         With permission from Jim Meyering, Paul Eggert:
54853         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
54854         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
54856         getgroups: Relicense under LGPL.
54857         * modules/getgroups (License): Change to LGPL.
54858         With permission from Jim Meyering, Paul Eggert, Eric Blake:
54859         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54860         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54861         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54863         nanosleep: Relicense under LGPL.
54864         * modules/nanosleep (License): Change to LGPL.
54865         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
54866         Haible:
54867         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54868         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54869         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54870         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54872         futimens: Relicense under LGPL.
54873         * modules/futimens (License): Change to LGPL.
54874         With permission from Eric Blake:
54875         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54877         fflush: Relicense under LGPL.
54878         * modules/fflush (License): Change to LGPL.
54879         With permission from Eric Blake, Bruno Haible, Jim Meyering:
54880         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54881         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54882         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
54884         tmpfile: Relicense under LGPL.
54885         * modules/tmpfile (License): Change to LGPL.
54886         With permission from Ben Pfaff:
54887         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54889         isfinite: Relicense under LGPL.
54890         * modules/isfinite (License): Change to LGPL.
54891         With permission from Ben Pfaff, Bruno Haible:
54892         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54893         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
54895         acosl..tanl: Relicense under LGPL.
54896         * modules/acosl (License): Change to LGPL.
54897         * modules/asinl (License): Likewise.
54898         * modules/atanl (License): Likewise.
54899         * modules/cosl (License): Likewise.
54900         * modules/expl (License): Likewise.
54901         * modules/logl (License): Likewise.
54902         * modules/sinl (License): Likewise.
54903         * modules/sqrtl (License): Likewise.
54904         * modules/tanl (License): Likewise.
54905         Source code originally from glibc and Paolo Bonzini. Agreements:
54906         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
54907         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
54909 2011-05-05  Bruno Haible  <bruno@clisp.org>
54911         signal: Define sighandler_t.
54912         * lib/signal.in.h (sighandler_t): New type.
54913         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
54914         whether sighandler_t is defined.
54915         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
54916         * modules/signal (Depends-on): Add extensions.
54917         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
54918         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
54919         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
54921 2011-05-05  Eric Blake  <eblake@redhat.com>
54923         maint: remove useless REPLACE_*_H macros
54924         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
54925         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
54926         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
54927         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
54928         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
54929         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
54930         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
54931         * m4/btowc.m4: Update callers.
54932         * m4/dirfd.m4: Likewise.
54933         * m4/duplocale.m4: Likewise.
54934         * m4/fchdir.m4: Likewise.
54935         * m4/fdopendir.m4: Likewise.
54936         * m4/inet_ntop.m4: Likewise.
54937         * m4/inet_pton.m4: Likewise.
54938         * m4/ioctl.m4: Likewise.
54939         * m4/mbrlen.m4: Likewise.
54940         * m4/mbrtowc.m4: Likewise.
54941         * m4/mbsinit.m4: Likewise.
54942         * m4/mbsnrtowcs.m4: Likewise.
54943         * m4/mbsrtowcs.m4: Likewise.
54944         * m4/poll.m4: Likewise.
54945         * m4/setlocale.m4: Likewise.
54946         * m4/wcrtomb.m4: Likewise.
54947         * m4/wcsnrtombs.m4: Likewise.
54948         * m4/wcsrtombs.m4: Likewise.
54949         * m4/wctob.m4: Likewise.
54950         * m4/wcwidth.m4: Likewise.
54951         * modules/posix_spawn: Likewise.
54952         * modules/posix_spawn_file_actions_addclose: Likewise.
54953         * modules/posix_spawn_file_actions_adddup2: Likewise.
54954         * modules/posix_spawn_file_actions_addopen: Likewise.
54955         * modules/posix_spawn_file_actions_destroy: Likewise.
54956         * modules/posix_spawn_file_actions_init: Likewise.
54957         * modules/posix_spawnattr_destroy: Likewise.
54958         * modules/posix_spawnattr_getflags: Likewise.
54959         * modules/posix_spawnattr_getpgroup: Likewise.
54960         * modules/posix_spawnattr_getschedparam: Likewise.
54961         * modules/posix_spawnattr_getschedpolicy: Likewise.
54962         * modules/posix_spawnattr_getsigdefault: Likewise.
54963         * modules/posix_spawnattr_getsigmask: Likewise.
54964         * modules/posix_spawnattr_init: Likewise.
54965         * modules/posix_spawnattr_setflags: Likewise.
54966         * modules/posix_spawnattr_setpgroup: Likewise.
54967         * modules/posix_spawnattr_setschedparam: Likewise.
54968         * modules/posix_spawnattr_setschedpolicy: Likewise.
54969         * modules/posix_spawnattr_setsigdefault: Likewise.
54970         * modules/posix_spawnattr_setsigmask: Likewise.
54971         * modules/posix_spawnp: Likewise.
54973 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
54975         Add option to do-release-commit-and-tag to specify branch.
54976         * build-aux/do-release-commit-and-tag: Add --branch.
54978 2011-05-03  Bruno Haible  <bruno@clisp.org>
54980         Avoid unnecessary compilation units, through conditional dependencies.
54981         * modules/accept (Depends-on): Add conditions to the dependencies.
54982         * modules/acosl (Depends-on): Likewise.
54983         * modules/argz (Depends-on): Likewise.
54984         * modules/asinl (Depends-on): Likewise.
54985         * modules/atanl (Depends-on): Likewise.
54986         * modules/atoll (Depends-on): Likewise.
54987         * modules/bind (Depends-on): Likewise.
54988         * modules/btowc (Depends-on): Likewise.
54989         * modules/canonicalize-lgpl (Depends-on): Likewise.
54990         * modules/ceil (Depends-on): Likewise.
54991         * modules/ceilf (Depends-on): Likewise.
54992         * modules/ceill (Depends-on): Likewise.
54993         * modules/chdir-long (Depends-on): Likewise.
54994         * modules/chown (Depends-on): Likewise.
54995         * modules/close (Depends-on): Likewise.
54996         * modules/connect (Depends-on): Likewise.
54997         * modules/cosl (Depends-on): Likewise.
54998         * modules/dirfd (Depends-on): Likewise.
54999         * modules/dprintf (Depends-on): Likewise.
55000         * modules/dprintf-posix (Depends-on): Likewise.
55001         * modules/error (Depends-on): Likewise.
55002         * modules/euidaccess (Depends-on): Likewise.
55003         * modules/expl (Depends-on): Likewise.
55004         * modules/faccessat (Depends-on): Likewise.
55005         * modules/fchdir (Depends-on): Likewise.
55006         * modules/fclose (Depends-on): Likewise.
55007         * modules/fcntl (Depends-on): Likewise.
55008         * modules/fdopendir (Depends-on): Likewise.
55009         * modules/fflush (Depends-on): Likewise.
55010         * modules/floor (Depends-on): Likewise.
55011         * modules/floorf (Depends-on): Likewise.
55012         * modules/floorl (Depends-on): Likewise.
55013         * modules/fnmatch (Depends-on): Likewise.
55014         * modules/fopen (Depends-on): Likewise.
55015         * modules/fprintf-posix (Depends-on): Likewise.
55016         * modules/frexp (Depends-on): Likewise.
55017         * modules/frexp-nolibm (Depends-on): Likewise.
55018         * modules/frexpl (Depends-on): Likewise.
55019         * modules/frexpl-nolibm (Depends-on): Likewise.
55020         * modules/fseek (Depends-on): Likewise.
55021         * modules/fsusage (Depends-on): Likewise.
55022         * modules/ftell (Depends-on): Likewise.
55023         * modules/ftello (Depends-on): Likewise.
55024         * modules/futimens (Depends-on): Likewise.
55025         * modules/getcwd (Depends-on): Likewise.
55026         * modules/getcwd-lgpl (Depends-on): Likewise.
55027         * modules/getdelim (Depends-on): Likewise.
55028         * modules/getdomainname (Depends-on): Likewise.
55029         * modules/getgroups (Depends-on): Likewise.
55030         * modules/gethostname (Depends-on): Likewise.
55031         * modules/getline (Depends-on): Likewise.
55032         * modules/getlogin_r (Depends-on): Likewise.
55033         * modules/getopt-posix (Depends-on): Likewise.
55034         * modules/getpeername (Depends-on): Likewise.
55035         * modules/getsockname (Depends-on): Likewise.
55036         * modules/getsockopt (Depends-on): Likewise.
55037         * modules/getsubopt (Depends-on): Likewise.
55038         * modules/getusershell (Depends-on): Likewise.
55039         * modules/glob (Depends-on): Likewise.
55040         * modules/grantpt (Depends-on): Likewise.
55041         * modules/iconv_open (Depends-on): Likewise.
55042         * modules/iconv_open-utf (Depends-on): Likewise.
55043         * modules/inet_ntop (Depends-on): Likewise.
55044         * modules/inet_pton (Depends-on): Likewise.
55045         * modules/ioctl (Depends-on): Likewise.
55046         * modules/isapipe (Depends-on): Likewise.
55047         * modules/isfinite (Depends-on): Likewise.
55048         * modules/isinf (Depends-on): Likewise.
55049         * modules/lchown (Depends-on): Likewise.
55050         * modules/ldexpl (Depends-on): Likewise.
55051         * modules/link (Depends-on): Likewise.
55052         * modules/linkat (Depends-on): Likewise.
55053         * modules/listen (Depends-on): Likewise.
55054         * modules/logl (Depends-on): Likewise.
55055         * modules/lstat (Depends-on): Likewise.
55056         * modules/mbrlen (Depends-on): Likewise.
55057         * modules/mbrtowc (Depends-on): Likewise.
55058         * modules/mbsinit (Depends-on): Likewise.
55059         * modules/mbsnrtowcs (Depends-on): Likewise.
55060         * modules/mbsrtowcs (Depends-on): Likewise.
55061         * modules/mbtowc (Depends-on): Likewise.
55062         * modules/memcmp (Depends-on): Likewise.
55063         * modules/mkdir (Depends-on): Likewise.
55064         * modules/mkdtemp (Depends-on): Likewise.
55065         * modules/mkfifo (Depends-on): Likewise.
55066         * modules/mkfifoat (Depends-on): Likewise.
55067         * modules/mknod (Depends-on): Likewise.
55068         * modules/mkostemp (Depends-on): Likewise.
55069         * modules/mkostemps (Depends-on): Likewise.
55070         * modules/mkstemp (Depends-on): Likewise.
55071         * modules/mkstemps (Depends-on): Likewise.
55072         * modules/mktime (Depends-on): Likewise.
55073         * modules/nanosleep (Depends-on): Likewise.
55074         * modules/open (Depends-on): Likewise.
55075         * modules/openat (Depends-on): Likewise.
55076         * modules/perror (Depends-on): Likewise.
55077         * modules/poll (Depends-on): Likewise.
55078         * modules/popen (Depends-on): Likewise.
55079         * modules/posix_spawn (Depends-on): Likewise.
55080         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
55081         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55082         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55083         * modules/posix_spawnp (Depends-on): Likewise.
55084         * modules/pread (Depends-on): Likewise.
55085         * modules/printf-posix (Depends-on): Likewise.
55086         * modules/ptsname (Depends-on): Likewise.
55087         * modules/putenv (Depends-on): Likewise.
55088         * modules/pwrite (Depends-on): Likewise.
55089         * modules/readline (Depends-on): Likewise.
55090         * modules/readlink (Depends-on): Likewise.
55091         * modules/readlinkat (Depends-on): Likewise.
55092         * modules/recv (Depends-on): Likewise.
55093         * modules/recvfrom (Depends-on): Likewise.
55094         * modules/regex (Depends-on): Likewise.
55095         * modules/remove (Depends-on): Likewise.
55096         * modules/rename (Depends-on): Likewise.
55097         * modules/renameat (Depends-on): Likewise.
55098         * modules/rmdir (Depends-on): Likewise.
55099         * modules/round (Depends-on): Likewise.
55100         * modules/roundf (Depends-on): Likewise.
55101         * modules/roundl (Depends-on): Likewise.
55102         * modules/rpmatch (Depends-on): Likewise.
55103         * modules/select (Depends-on): Likewise.
55104         * modules/send (Depends-on): Likewise.
55105         * modules/sendto (Depends-on): Likewise.
55106         * modules/setenv (Depends-on): Likewise.
55107         * modules/setlocale (Depends-on): Likewise.
55108         * modules/setsockopt (Depends-on): Likewise.
55109         * modules/shutdown (Depends-on): Likewise.
55110         * modules/sigaction (Depends-on): Likewise.
55111         * modules/signbit (Depends-on): Likewise.
55112         * modules/sigprocmask (Depends-on): Likewise.
55113         * modules/sinl (Depends-on): Likewise.
55114         * modules/sleep (Depends-on): Likewise.
55115         * modules/snprintf (Depends-on): Likewise.
55116         * modules/snprintf-posix (Depends-on): Likewise.
55117         * modules/socket (Depends-on): Likewise.
55118         * modules/sprintf-posix (Depends-on): Likewise.
55119         * modules/sqrtl (Depends-on): Likewise.
55120         * modules/stat (Depends-on): Likewise.
55121         * modules/strchrnul (Depends-on): Likewise.
55122         * modules/strdup-posix (Depends-on): Likewise.
55123         * modules/strerror (Depends-on): Likewise.
55124         * modules/strerror_r-posix (Depends-on): Likewise.
55125         * modules/strndup (Depends-on): Likewise.
55126         * modules/strnlen (Depends-on): Likewise.
55127         * modules/strptime (Depends-on): Likewise.
55128         * modules/strsep (Depends-on): Likewise.
55129         * modules/strsignal (Depends-on): Likewise.
55130         * modules/strstr-simple (Depends-on): Likewise.
55131         * modules/strtod (Depends-on): Likewise.
55132         * modules/strtoimax (Depends-on): Likewise.
55133         * modules/strtok_r (Depends-on): Likewise.
55134         * modules/strtoumax (Depends-on): Likewise.
55135         * modules/symlink (Depends-on): Likewise.
55136         * modules/symlinkat (Depends-on): Likewise.
55137         * modules/tanl (Depends-on): Likewise.
55138         * modules/tcgetsid (Depends-on): Likewise.
55139         * modules/tmpfile (Depends-on): Likewise.
55140         * modules/trunc (Depends-on): Likewise.
55141         * modules/truncf (Depends-on): Likewise.
55142         * modules/truncl (Depends-on): Likewise.
55143         * modules/uname (Depends-on): Likewise.
55144         * modules/unlink (Depends-on): Likewise.
55145         * modules/unlockpt (Depends-on): Likewise.
55146         * modules/unsetenv (Depends-on): Likewise.
55147         * modules/usleep (Depends-on): Likewise.
55148         * modules/utimensat (Depends-on): Likewise.
55149         * modules/vasprintf (Depends-on): Likewise.
55150         * modules/vdprintf (Depends-on): Likewise.
55151         * modules/vdprintf-posix (Depends-on): Likewise.
55152         * modules/vfprintf-posix (Depends-on): Likewise.
55153         * modules/vprintf-posix (Depends-on): Likewise.
55154         * modules/vsnprintf (Depends-on): Likewise.
55155         * modules/vsnprintf-posix (Depends-on): Likewise.
55156         * modules/vsprintf-posix (Depends-on): Likewise.
55157         * modules/wcrtomb (Depends-on): Likewise.
55158         * modules/wcscasecmp (Depends-on): Likewise.
55159         * modules/wcscspn (Depends-on): Likewise.
55160         * modules/wcsdup (Depends-on): Likewise.
55161         * modules/wcsncasecmp (Depends-on): Likewise.
55162         * modules/wcsnrtombs (Depends-on): Likewise.
55163         * modules/wcspbrk (Depends-on): Likewise.
55164         * modules/wcsrtombs (Depends-on): Likewise.
55165         * modules/wcsspn (Depends-on): Likewise.
55166         * modules/wcsstr (Depends-on): Likewise.
55167         * modules/wcstok (Depends-on): Likewise.
55168         * modules/wcswidth (Depends-on): Likewise.
55169         * modules/wctob (Depends-on): Likewise.
55170         * modules/wctomb (Depends-on): Likewise.
55171         * modules/wctype (Depends-on): Likewise.
55172         * modules/wcwidth (Depends-on): Likewise.
55173         * modules/write (Depends-on): Likewise.
55175 2011-05-03  Bruno Haible  <bruno@clisp.org>
55177         Support for conditional dependencies.
55178         * doc/gnulib.texi (Module description): Document the syntax of
55179         conditional dependencies.
55180         * gnulib-tool: New option --conditional-dependencies.
55181         (func_usage): Document it.
55182         (cond_dependencies): New variable.
55183         (func_get_automake_snippet_conditional,
55184         func_get_automake_snippet_unconditional): New functions, extracted from
55185         func_get_automake_snippet.
55186         (func_get_automake_snippet): Use them.
55187         (sed_first_32_chars): New variable.
55188         (func_module_shellfunc_name): New function.
55189         (func_module_shellvar_name): New function.
55190         (func_module_conditional_name): New function.
55191         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
55192         func_cond_module_condition): New functions.
55193         (func_modules_transitive_closure): Add support for conditional
55194         dependencies.
55195         (func_emit_lib_Makefile_am): For a conditional module, enclose the
55196         conditional automake snippet in an automake conditional.
55197         (func_emit_autoconf_snippets): Emit shell functions that contain the
55198         code for conditional modules.
55199         (func_import, func_create_testdir): Update specification.
55201 2011-05-03  Eric Blake  <eblake@redhat.com>
55203         test-getaddrinfo: report error information
55204         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
55206 2011-05-03  Jim Meyering  <meyering@redhat.com>
55208         bootstrap: avoid build failure when $GZIP is set
55209         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
55210         program name.  If defined at all, it is supposed to list gzip options.
55211         Reported by Alan Curry in http://debbugs.gnu.org/8609
55213 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
55215         readme-release: new module with release instructions
55216         * modules/readme-release: New module.
55217         * top/README-release: New file, from coreutils, grep, diffutils.
55218         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55220 2011-05-02  Eric Blake  <eblake@redhat.com>
55222         fflush: also replace fclose when fixing fflush
55223         * modules/fflush (Depends-on): Add fclose.
55224         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
55225         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
55226         memstreams with no backing fd.
55227         * doc/posix-functions/fclose.texi (fclose): Document the use of
55228         fflush module to fix the bug.
55229         * tests/test-fclose.c (main): Relax test when fclose is used in
55230         isolation.
55232         fclose: add some tests
55233         * modules/fclose-tests: New test module.
55234         * tests/test-fclose.c: New file.
55235         * doc/posix-functions/fclose.texi (fclose): Document the bug.
55237         fclose: reduced dependencies
55238         * modules/fclose (Depends-on): Switch from fflush/fseeko to
55239         simpler lseek.
55240         * lib/fclose.c (rpl_fclose): Likewise.
55241         Reported by Simon Josefsson.
55243         exit: drop remaining clients
55244         * modules/argmatch (Depends-on): Replace exit with stdlib.
55245         * modules/copy-file (Depends-on): Likewise.
55246         * modules/execute (Depends-on): Likewise.
55247         * modules/exitfail (Depends-on): Likewise.
55248         * modules/obstack (Depends-on): Likewise.
55249         * modules/pagealign_alloc (Depends-on): Likewise.
55250         * modules/pipe-filter-gi (Depends-on): Likewise.
55251         * modules/pipe-filter-ii (Depends-on): Likewise.
55252         * modules/savewd (Depends-on): Likewise.
55253         * modules/spawn-pipe (Depends-on): Likewise.
55254         * modules/wait-process (Depends-on): Likewise.
55255         * modules/xsetenv (Depends-on): Likewise.
55256         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
55257         * modules/git-merge-changelog (Depends-on): Likewise.
55258         * modules/long-options (Depends-on): Likewise.
55259         * modules/pt_chown (Depends-on): Likewise.
55260         * modules/sysexits (Depends-on): Likewise.
55262         freading: relax license from LGPLv3+ to LGPLv2+
55263         * modules/freading (License): Relax LGPL version.
55265 2011-05-02  Bruno Haible  <bruno@clisp.org>
55267         fchdir: Remove unused dependencies.
55268         * modules/fchdir (Depends-on): Remove include_next.
55270 2011-05-02  Bruno Haible  <bruno@clisp.org>
55272         gnulib-tool: Refactor.
55273         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
55274         from func_emit_autoconf_snippets.
55275         (func_emit_autoconf_snippets): Use it.
55277 2011-05-02  Simon Josefsson  <simon@josefsson.org>
55279         * NEWS: Document removal of 'exit'.
55280         * modules/exit: Remove file.
55282 2011-05-01  Bruno Haible  <bruno@clisp.org>
55284         Update DEPENDENCIES.
55285         * DEPENDENCIES (gettext): Recommend the newest release.
55286         Reported by Simon Josefsson.
55288 2011-05-01  Bruno Haible  <bruno@clisp.org>
55290         gnulib-tool: Reduce code duplication.
55291         * gnulib-tool (func_emit_autoconf_snippets): New function.
55292         (func_import, func_create_testdir): Use it.
55294 2011-04-30  Eric Blake  <eblake@redhat.com>
55296         fclose: don't fail on non-seekable input stream
55297         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
55298         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
55299         since fflush is allowed to fail in that case.
55301 2011-04-30  Bruno Haible  <bruno@clisp.org>
55303         dup3: cleanup
55304         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
55306 2011-04-30  Bruno Haible  <bruno@clisp.org>
55308         netdb: Make it work in C++ mode.
55309         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
55310         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
55311         module.
55312         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
55313         gl_MODULE_INDICATOR_FOR_TESTS.
55314         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
55315         * modules/netdb-c++-tests: New file.
55316         * tests/test-netdb-c++.cc: New file.
55318 2011-04-30  Bruno Haible  <bruno@clisp.org>
55320         New modules 'vfscanf', 'vscanf'.
55321         * modules/vfscanf: New file.
55322         * modules/vscanf: New file.
55323         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
55324         here.
55325         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
55326         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
55328 2011-04-30  Bruno Haible  <bruno@clisp.org>
55330         passfd: Add comments.
55331         * lib/passfd.c: Add comments about platforms.
55333 2011-04-30  Bruno Haible  <bruno@clisp.org>
55335         sys_uio: Make <sys/uio.h> self-contained.
55336         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
55337         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
55339 2011-04-30  Bruno Haible  <bruno@clisp.org>
55341         sys_socket: Ensure 'struct iovec' definition.
55342         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
55343         <sys/socket.h>.
55344         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
55346 2011-04-30  Bruno Haible  <bruno@clisp.org>
55348         sys_uio: Protect definition of 'struct iovec'.
55349         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
55350         it as a C struct.
55352 2011-04-30  Bruno Haible  <bruno@clisp.org>
55354         manywarnings: fix indentation
55355         * m4/manywarnings.m4: Indent by 2 spaces consistently.
55357 2011-04-30  Pádraig Brady  <P@draigBrady.com>
55359         manywarnings: add -Wno-missing-field-initializers if needed.
55360         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
55361         option if it's needed to allow initialization with { 0, }
55363 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
55365         announce-gen: cosmetic improvement
55366         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
55368 2011-04-29  Jim Meyering  <meyering@redhat.com>
55370         vc-list-files: indent with spaces, not TABs
55371         * build-aux/vc-list-files: Convert leading TABs to spaces,
55372         to match the style of most other files in gnulib.
55374         announce-gen: indent with spaces, not TABs
55375         * build-aux/announce-gen: Convert all TABs to spaces, to match
55376         the style of most other files in gnulib.
55378 2011-04-29  Eric Blake  <eblake@redhat.com>
55380         quotearg: avoid uninitialized variable use
55381         * lib/quotearg.c (quoting_options_from_style): Initialize
55382         remaining fields, and ensure that custom styles are only used via
55383         quoting_options rather than quoting_style.
55385 2011-04-29  Jim Meyering  <meyering@redhat.com>
55387         maint.mk: remove unused VC-tag variable
55388         * top/maint.mk (VC-tag): Remove unused variable.
55390 2011-04-29  Bruno Haible  <bruno@clisp.org>
55392         netdb: fix gai_strerror replacements
55393         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
55394         * modules/netdb: Substitute it.
55396 2011-04-29  Jim Meyering  <meyering@redhat.com>
55398         test-getcwd.c: avoid new set-but-not-used warning
55399         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
55400         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
55401         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
55402         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
55404         test-hash.c: avoid a new shadowing warning
55405         * tests/test-hash.c (main): Don't shadow "dup".
55407 2011-04-28  Eric Blake  <eblake@redhat.com>
55409         getaddrinfo: fix gai_strerror signature
55410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
55411         and work around mingw with UNICODE defined.
55412         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
55413         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
55414         * modules/netdb (Makefile.am): Substitute it.
55415         * lib/netdb.in.h (gai_strerror): Declare replacement.
55416         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
55417         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
55418         the fix.
55420         getsockopt: avoid compiler warning
55421         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
55422         Reported by Matthias Bolte.
55424         tests: drop unused link dependency
55425         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
55426         * modules/dirent-safer-tests (Makefile.am): Likewise.
55427         * modules/fdopendir-tests (Makefile.am): Likewise.
55428         * modules/mkfifoat-tests (Makefile.am): Likewise.
55429         * modules/openat-safer-tests (Makefile.am): Likewise.
55430         * modules/openat-tests (Makefile.am): Likewise.
55431         * modules/readlinkat-tests (Makefile.am): Likewise.
55432         * modules/symlinkat-tests (Makefile.am): Likewise.
55433         * modules/linkat-tests (Makefile.am): Likewise.
55434         (Depends-on): Switch to filenamecat-lgpl.
55435         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
55436         LIBINTL.
55437         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
55438         * tests/test-linkat.c (main): Don't require xalloc.
55440         hash, mgetgroups: drop xalloc dependency
55441         * lib/hash.c (includes): Adjust includes.
55442         * lib/mgetgroups.c (includes): Likewise.
55443         (xgetgroups): Move...
55444         * lib/xgetgroups.c: ...to new file.
55445         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
55446         * modules/xgetgroups: New file, split from...
55447         * modules/mgetgroups: ...here.
55448         (Depends-on): Add xalloc-oversized.
55449         * modules/hash (Depends-on): Likewise.
55450         * modules/hash-tests (Depends-on): Drop xalloc.
55451         (test_hash_LDADD): Drop unused library.
55452         * tests/test-hash.c (main): Break xalloc dependency.
55453         (includes): Drop unused include.
55455         xalloc-oversized: new module
55456         * modules/xalloc-oversized: New module.
55457         * modules/xalloc (Depends-on): Add it.
55458         * lib/xalloc.h (xalloc_oversized): Move...
55459         * lib/xalloc-oversized.h: ...into new file.
55461         utimecmp: drop dependency on xmalloc
55462         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
55463         due to memory pressure.
55464         * modules/utimecmp (Depends-on): Drop xalloc.
55466 2011-04-27  Eric Blake  <eblake@redhat.com>
55468         getcwd: fix mingw bugs
55469         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
55470         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
55471         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
55473 2011-04-27  Bruno Haible  <bruno@clisp.org>
55475         mkstemps: Ensure declaration on MacOS X 10.5.
55476         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
55477         * doc/glibc-functions/mkstemps.texi: Document header file problem on
55478         MacOS X.
55480 2011-04-27  Bruno Haible  <bruno@clisp.org>
55482         mkstemp: More documentation.
55483         * doc/posix-functions/mkstemp.texi: Document header file problem on
55484         MacOS X.
55486 2011-04-27  Bruno Haible  <bruno@clisp.org>
55488         mkstemp: Tweak configure message when cross-compiling.
55489         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
55490         result as a guess.
55492 2011-04-27  Bruno Haible  <bruno@clisp.org>
55494         clean-temp: Clarify what it does.
55495         * lib/clean-temp.h: Add more comments.
55496         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
55497         module.
55498         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
55499         * doc/glibc-functions/mkstemps.texi: Likewise.
55500         * doc/glibc-functions/mkostemps.texi: Likewise.
55502 2011-04-27  Eric Blake  <eblake@redhat.com>
55504         fchdir: avoid extra chdir and fix test
55505         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
55506         getcwd-lgpl.
55507         * lib/fchdir.c (get_name): Any absolute name will do; it does not
55508         have to be canonical.
55509         (canonicalize_file_name): Drop unused macro.
55510         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
55512         filenamecat-lgpl: fix licence
55513         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
55514         when it was first created.
55516         linkat, renameat: add missing dependency
55517         * modules/linkat (Depends-on): Require getcwd-lgpl.
55518         * modules/renameat (Depends-on): Likewise.
55520         tests: reduce dependencies
55521         * tests/test-linkat.c (main): Use lighter-weight getcwd.
55522         * tests/test-renameat.c (main): Likewise.
55523         * modules/linkat-tests (Depends-on): Relax dependency.
55524         * modules/renameat-tests (Depends-on): Likewise.
55525         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
55526         dependency explicit.
55528         save-cwd: reduce default dependency
55529         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
55530         * lib/save-cwd.c: Update comments.
55531         * NEWS: Document the semantic change.
55533         getcwd: enhance tests
55534         * tests/test-getcwd-lgpl.c: New file, taken from...
55535         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
55536         repeat long path stress tests from m4 probe.
55537         * modules/getcwd-lgpl-tests: New module.
55538         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
55539         * m4/getcwd-abort-bug.m4: Update comment.
55540         * m4/getcwd-path-max.m4: Likewise.
55542         getcwd-lgpl: new module
55543         * modules/getcwd-lgpl: New module.
55544         * lib/getcwd-lgpl.c: New file.
55545         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55546         * MODULES.html.sh (lacking POSIX:2008): Likewise.
55547         * modules/getcwd (configure.ac): Set C witness.
55548         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
55550         getcwd: tweak comments
55551         * m4/getcwd-abort-bug.m4: Fix comments.
55552         * m4/getcwd-path-max.m4: Likewise.
55553         * m4/getcwd.m4: Likewise.
55555 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55556         and Eric Blake  <eblake@redhat.com>
55558         mkstemp: replace if system version uses wrong permissions
55559         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
55560         read/write mode bits set in file created by mkstemp.
55561         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
55563 2011-04-27  Eric Blake  <eblake@redhat.com>
55565         passfd: avoid compiler warning
55566         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
55567         Reported by Laine Stump.
55569 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
55571         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
55572         required by the NetBSD (and perhaps other 4.4BSD derived) join.
55574 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55575         and Eric Blake  <eblake@redhat.com>
55577         mkstemp: mention clean-temp module
55578         * lib/mkstemp.c: Add comment.
55579         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
55581 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
55583         inttypes: also provide default values for 32-bit tests
55584         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
55585         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
55587 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55589         strtoumax: remove dependency on strtoimax
55590         This is like the strtoull change of yesterday.
55591         * modules/strtoumax (Files): Add lib/strtoimax.c.
55592         (Depends-on): Remove strtoimax and add verify.
55594         inttypes-incomplete: new module
55595         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
55596         all but the PRI* and SCN* parts of gl_INTTYPES_H.
55597         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
55598         of gl_INTTYPES_H.
55599         (gl_INTTYPES_H): Rewrite in terms of these new macros.
55600         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
55601         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
55602         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
55603         * modules/strtoumax, modules/xstrtol (Depends-on):
55604         Depend on inttypes-incomplete, not inttypes.
55605         * modules/inttypes-incomplete: New module, containing the contents
55606         of the old modules/inttypes module, except that the Files: section
55607         omits m4/inttypes-pri.m4, and the configure.ac section invokes
55608         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
55609         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
55610         (Depends-on): Depend only on inttypes-incomplete.
55611         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
55613         inttypes: omit now-redundant strtoimax and strtoumax work
55614         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
55615         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
55617         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
55618         This supports apps that need pointers to strtoimax and strtoumax,
55619         and ports to HP-UX 11.00 64.bit, which has macros that expand to
55620         nonexistent functions.  See
55621         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
55622         et seq.
55623         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
55624         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
55625         a macro.
55626         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55628 2011-04-25  Simon Josefsson  <simon@josefsson.org>
55630         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
55632 2011-04-25  Bruno Haible  <bruno@clisp.org>
55634         strtol, strtoul: Mark modules as obsolete.
55635         * modules/strtol (Status, Notice): New sections.
55636         * modules/strtoul (Status, Notice): New sections.
55638 2011-04-25  Bruno Haible  <bruno@clisp.org>
55640         strtod: Remove check for strtod, unless supporting old platforms.
55641         * modules/strtod-obsolete: New file.
55642         * m4/strtod-obsolete.m4: New file.
55643         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
55644         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
55645         * modules/strtod (Depends-on): Add strtod-obsolete.
55646         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
55648 2011-04-25  Bruno Haible  <bruno@clisp.org>
55650         strcase: Make module obsolete.
55651         * modules/strcase (Status, Notice): New sections.
55653 2011-04-25  Bruno Haible  <bruno@clisp.org>
55655         dup2: Remove check for dup2, unless supporting old obsolete platforms.
55656         * modules/dup2-obsolete: New file.
55657         * m4/dup2-obsolete.m4: New file.
55658         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
55659         gl_FUNC_DUP2_OBSOLETE is not also defined.
55660         * modules/dup2 (Depends-on): Add dup2-obsolete.
55661         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
55663 2011-04-25  Bruno Haible  <bruno@clisp.org>
55665         strnlen: Avoid memchr related link error on old obsolete platforms.
55666         * modules/memchr-obsolete: New file.
55667         * m4/memchr-obsolete.m4: New file.
55668         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
55669         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
55670         * modules/memchr (Depends-on): Add memchr-obsolete.
55671         * modules/strnlen (Depends-on): Likewise.
55672         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
55674 2011-04-25  Jim Meyering  <meyering@redhat.com>
55676         maint.mk: makefile_at_at_check extend and clean up
55677         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
55678         in addition to */Makefile.am.
55679         Exempt legitimate uses of @VAR@ notation, e.g.,
55680         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
55681         Remove obsolete coreutils-specific comment.
55682         Prompted by discussion here:
55683         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
55685 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55687         strtoul: remove dependency on strtol
55688         This is so that 'configure' need not check for strtol merely because
55689         the application needs strtoul.
55690         * modules/strtoul (Files): Add lib/strtol.c.
55691         (Depends-on): Remove strtol.
55693         strtoull: remove dependency on strtoul
55694         This is like the strtoll change.
55695         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
55696         (Depends-on): Remove strtoul.
55698         strtoll: remove dependency on strtol
55699         This is so that 'configure' need not check for strtol merely because
55700         the application needs strtoll.
55701         * modules/strtoll (Files): Add lib/strtol.c.
55702         (Depends-on): Remove strtol.
55704 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55706         inttypes: Move some configure check to module 'imaxdiv'.
55707         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
55708         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
55709         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
55711 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55713         inttypes: Move some configure check to module 'imaxabs'.
55714         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
55715         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
55716         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
55718 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55720         inttypes: Remove configure tests that are not needed since 2009-12-31.
55721         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
55722         gl_cv_header_working_inttypes_h.
55724 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55726         * modules/strnlen (Depends-on): Remove memchr.
55727         The strnlen implementation doesn't need the memchr module's fixes; see
55728         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
55730         strtol: remove dependency on wchar
55731         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
55732         * modules/strtol (Depends-on): Remove wchar.
55734 2011-04-21  Eric Blake  <eblake@redhat.com>
55736         passfd: fix test regression on Linux
55737         * modules/passfd-tests (configure.ac): Correct socketpair check.
55739         passfd: speed up configure and drop unused code
55740         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
55741         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
55742         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
55743         Instead of probing at configure for unix_scm_rights_bsd44_way,
55744         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
55745         check to a struct member probe.
55746         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
55747         (sendfd, recvfd): Update preprocessor checks.
55748         * modules/passfd (Files): Reflect rename, and drop unused file.
55749         (Depends-on): Drop unused dependency.
55751         passfd: allow compilation on mingw
55752         * modules/sys_socket (Depends-on): Add sys_uio.
55753         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
55754         iovec and a minimal struct msghdr.
55755         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
55756         * tests/test-sys_socket.c (main): Enhance test.
55757         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
55758         guaranteed to provide what we need.
55759         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
55760         * modules/passfd-tests (Depends-on): Add sys_wait.
55761         * tests/test-passfd.c (main): Skip test on mingw, for now.
55762         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
55763         partial 'struct msghdr' implementation.
55765         sys_uio: new module
55766         * modules/sys_uio: New module.
55767         * modules/sys_uio-tests: Likewise.
55768         * lib/sys_uio.in.h: New file.
55769         * m4/sys_uio_h.m4: Likewise.
55770         * tests/test-sys_uio.c: Likewise.
55771         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
55772         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
55774 2011-04-20  Jim Meyering  <meyering@redhat.com>
55776         useless-if-before-free: avoid false-positive
55777         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
55778         disjunct so that it too requires a terminating ";".  Without that,
55779         this script would identify as useless one statement from gcc that
55780         was not:
55781           if (aligned_ptr)
55782             free (((void **) aligned_ptr) [-1]);
55784 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
55786         doc: update users.txt.
55787         * users.txt: Add barcode.
55789 2011-04-19  Bruno Haible  <bruno@clisp.org>
55791         ioctl: Remove link dependency on native Windows.
55792         * lib/fd-hook.h: Renamed from lib/close-hook.h.
55793         (gl_close_fn, gl_ioctl_fn): New types.
55794         (struct fd_hook): Renamed from struct close_hook. Change type of
55795         private_close_fn field. Add private_ioctl_fn field.
55796         (close_hook_fn): Add parameter for primary close method.
55797         (execute_close_hooks, execute_all_close_hooks): Likewise.
55798         (ioctl_hook_fn): New type.
55799         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
55800         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55801         argument.
55802         (unregister_fd_hook): Renamed from unregister_close_hook.
55803         * lib/fd-hook.c: Renamed from lib/close-hook.c.
55804         Don't include <unistd.h>.
55805         (close): Remove undef.
55806         (anchor): Update.
55807         (execute_close_hooks): Add argument for primary close method.
55808         (execute_all_close_hooks): Likewise.
55809         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
55810         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55811         argument. Allow each argument to be NULL.
55812         (unregister_fd_hook): Renamed from unregister_close_hook.
55813         * lib/close.c (rpl_close): Pass 'close' function pointer to
55814         execute_all_close_hooks.
55815         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
55816         (primary_ioctl): New function.
55817         (ioctl): Don't call ioctlsocket here. Instead, call
55818         execute_all_ioctl_hooks.
55819         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
55820         close method.
55821         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
55822         (fd_sockets_hook): Renamed from close_sockets_hook.
55823         (gl_sockets_startup, gl_sockets_cleanup): Update.
55824         * modules/fd-hook: Renamed from modules/close-hook. Update.
55825         * modules/close (Depends-on): Add fd-hook, remove close-hook.
55826         * modules/sockets (Depends-on): Likewise.
55827         * modules/ioctl (Depends-on): Add fd-hook.
55828         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
55829         GNULIB_SOCKET.
55831 2011-04-19  Bruno Haible  <bruno@clisp.org>
55833         Move the support of O_NONBLOCK in open() to the 'open' module.
55834         * modules/nonblocking (Depends-on): Remove 'open'.
55835         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
55836         gl_cv_have_open_O_NONBLOCK.
55837         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
55838         O_NONBLOCK support.
55839         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
55841 2011-04-17  Bruno Haible  <bruno@clisp.org>
55843         pipe2: Simplify code.
55844         * lib/pipe2.c (pipe2): Reduce code duplication.
55846 2011-04-17  Bruno Haible  <bruno@clisp.org>
55848         nonblocking: Add comment.
55849         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
55851 2011-04-17  Bruno Haible  <bruno@clisp.org>
55853         nonblocking: Add tests for sockets.
55854         * tests/test-nonblocking-socket.sh: New file.
55855         * tests/test-nonblocking-socket-main.c: New file.
55856         * tests/test-nonblocking-socket-child.c: New file.
55857         * tests/test-nonblocking-socket.h: New file.
55858         * tests/socket-server.h: New file.
55859         * tests/socket-client.h: New file.
55860         * modules/nonblocking-socket-tests: New file.
55861         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
55863 2011-04-17  Bruno Haible  <bruno@clisp.org>
55865         nonblocking: Add tests for pipes.
55866         * tests/test-nonblocking-pipe.sh: New file.
55867         * tests/test-nonblocking-pipe-main.c: New file.
55868         * tests/test-nonblocking-pipe-child.c: New file.
55869         * tests/test-nonblocking-pipe.h: New file.
55870         * tests/test-nonblocking-writer.h: New file.
55871         * tests/test-nonblocking-reader.h: New file.
55872         * tests/test-nonblocking-misc.h: New file.
55873         * modules/nonblocking-pipe-tests: New file.
55874         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
55876 2011-04-16  Bruno Haible  <bruno@clisp.org>
55878         gettext: Clarify the needed programmer actions.
55879         * modules/gettext (Notice): New field.
55880         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55882 2011-04-16  Bruno Haible  <bruno@clisp.org>
55884         strchrnul: Tweak last commit.
55885         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
55886         bug.
55887         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
55888         as in _GL_FUNCDECL_SYS.
55889         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
55890         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
55892 2011-04-15  Eric Blake  <eblake@redhat.com>
55894         strchrnul: work around cygwin bug
55895         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
55896         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
55897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
55898         * modules/string (Makefile.am): Substitute it.
55899         * lib/string.in.h (strchrnul): Use it.
55901 2011-04-15  Bruno Haible  <bruno@clisp.org>
55903         Don't require lib/stdio-write.c when only module 'stdio' is used.
55904         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
55905         invocation.
55906         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
55908 2011-04-14  Bruno Haible  <bruno@clisp.org>
55910         Support non-blocking pipe I/O in read() on native Windows.
55911         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
55912         (read): New declaration.
55913         * lib/read.c: New file.
55914         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
55915         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
55916         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
55917         vscanf): New declarations.
55918         * lib/stdio-read.c: New file.
55919         * m4/read.m4: New file.
55920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
55921         REPLACE_READ.
55922         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
55923         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55924         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
55925         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
55926         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
55927         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55928         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
55929         * modules/read: New file.
55930         * modules/nonblocking (Files): Add lib/stdio-read.c.
55931         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
55932         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
55933         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55934         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
55935         * modules/pread (Depends-on): Add read.
55936         * modules/safe-read (Depends-on): Likewise.
55937         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
55938         gets, scanf, vfscanf, vscanf): Verify signatures.
55939         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
55940         problem with non-blocking pipes.
55941         * doc/posix-functions/fgetc.texi: Likewise.
55942         * doc/posix-functions/fgets.texi: Likewise.
55943         * doc/posix-functions/fread.texi: Likewise.
55944         * doc/posix-functions/fscanf.texi: Likewise.
55945         * doc/posix-functions/getc.texi: Likewise.
55946         * doc/posix-functions/getchar.texi: Likewise.
55947         * doc/posix-functions/gets.texi: Likewise.
55948         * doc/posix-functions/scanf.texi: Likewise.
55949         * doc/posix-functions/vfscanf.texi: Likewise.
55950         * doc/posix-functions/vscanf.texi: Likewise.
55952 2011-04-14  Bruno Haible  <bruno@clisp.org>
55954         Support non-blocking pipe I/O in write() on native Windows.
55955         * lib/write.c (rpl_write): Split a write request that failed merely
55956         because the byte count was larger than the pipe buffer's size.
55957         * doc/posix-functions/write.texi: Mention the problem with large byte
55958         counts.
55960 2011-04-14  Bruno Haible  <bruno@clisp.org>
55962         wchar: Ensure that wchar_t gets defined on uClibc.
55963         * lib/wchar.in.h: On uClibc, include <stddef.h>.
55964         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
55966 2011-04-13  Bruno Haible  <bruno@clisp.org>
55968         safe-write, full-read: Avoid unnecessary compilation units.
55969         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
55970         (Depends-on): Remove safe-read. Add ssize_t.
55971         * modules/full-read (Files): Add lib/full-write.c.
55972         (Depends-on): Add full-write.
55974 2011-04-13  Bruno Haible  <bruno@clisp.org>
55976         Support non-blocking pipe I/O and SIGPIPE in pwrite().
55977         * modules/pwrite (Depends-on): Add 'write'.
55979 2011-04-13  Bruno Haible  <bruno@clisp.org>
55981         Support non-blocking pipe I/O in write() on native Windows.
55982         * lib/unistd.in.h (write): Enable replacement also if
55983         GNULIB_UNISTD_H_NONBLOCKING is 1.
55984         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
55985         (rpl_write): When failing to write on a non-blocking pipe, change
55986         errno from ENOSPC to EAGAIN.
55987         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
55988         putchar, puts, vfprintf, vprintf): Enable replacement also if
55989         GNULIB_STDIO_H_NONBLOCKING is 1.
55990         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
55991         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
55992         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
55993         CALL_WITH_SIGPIPE_EMULATION.
55994         (CALL_WITH_SIGPIPE_EMULATION): Use them.
55995         * m4/nonblocking.m4: New file.
55996         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
55997         for non-blocking I/O support.
55998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55999         GNULIB_UNISTD_H_NONBLOCKING.
56000         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
56001         required for non-blocking I/O support.
56002         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
56003         * modules/nonblocking (Files): Add m4/nonblocking.m4,
56004         lib/stdio-write.c, m4/asm-underscore.m4.
56005         (Depends-on): Add stdio, unistd.
56006         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
56007         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
56008         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
56009         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
56010         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
56011         problem with non-blocking pipes.
56012         * doc/posix-functions/fputc.texi: Likewise.
56013         * doc/posix-functions/fputs.texi: Likewise.
56014         * doc/posix-functions/fwrite.texi: Likewise.
56015         * doc/posix-functions/printf.texi: Likewise.
56016         * doc/posix-functions/putc.texi: Likewise.
56017         * doc/posix-functions/putchar.texi: Likewise.
56018         * doc/posix-functions/puts.texi: Likewise.
56019         * doc/posix-functions/vfprintf.texi: Likewise.
56020         * doc/posix-functions/vprintf.texi: Likewise.
56021         * doc/posix-functions/write.texi: Likewise.
56023 2011-04-10  Jim Meyering  <meyering@redhat.com>
56025         maint.mk: prohibit doubled words
56026         Detect them also when they're separated by a newline.
56027         There are 3 ways to customize it:
56028           - disable the test on a per file basis, as usual with rules using
56029             $(VC_LIST_EXCEPT)
56030           - replace the default doubled-word-selecting regexp (affects all files)
56031           - ignore a particular file-vs-doubled-word match
56032         I nearly used that last one to ignore the "is is" match in
56033         coreutils' NEWS file, since the text was "ls -is is ..."
56034         To do that, I would have added this line to cfg.mk:
56035           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
56036         but it would have ignored any "is is" match in NEWS.
56037         Low probability, but still...
56038         Instead, I changed the text, slightly:
56039           -  ls -is is now consistent with ls -lis in ignoring values returned
56040           +  "ls -is" is now consistent with ls -lis in ignoring values returned
56041         * top/maint.mk (prohibit_double_word_RE_): Provide default.
56042         (prohibit_doubled_word_): Define.
56043         (sc_prohibit_doubled_word): New rule.
56044         (sc_prohibit_the_the): Remove.  Subsumed by the above.
56046 2011-04-10  Jim Meyering  <meyering@redhat.com>
56048         maint: fix doubled-word typo in comment
56049         * m4/gethostname.m4: s/is is/it is/
56050         * m4/getdomainname.m4: Likewise.
56052 2011-04-10  Jim Meyering  <meyering@redhat.com>
56054         maint: remove doubled word: s/it it/it/
56055         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
56057 2011-04-10  Jim Meyering  <meyering@redhat.com>
56059         maint.mk: remove useless semicolon and backslash
56060         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
56061         semicolon and backslash.
56063 2011-04-10  Bruno Haible  <bruno@clisp.org>
56065         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
56066         * modules/stdint-tests (Depends-on): Add wchar.
56068 2011-04-10  Jim Meyering  <meyering@redhat.com>
56070         maint: remove doubled words in comments, e.g., s/a a/a/
56071         * lib/strptime.c (day_of_the_week): s/the the/the/
56072         * tests/test-chown.h (test_chown): s/a a/a/
56074         test-chown.h: correct a cast
56075         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
56076         when the destination is a stat.st_gid.
56078 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
56080         getaddrinfo: Fix test for sa_len member.
56081         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
56082         include <sys/types.h> before <sys/socket.h>.
56084 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56086         maint: change "can not" to "cannot"
56087         * doc/posix-functions/iconv.texi (iconv): This one crossed line
56088         boundaries.
56090 2011-04-09  Jim Meyering  <meyering@redhat.com>
56092         maint: change "a a" to "a"
56093         * tests/test-lchown.h (test_lchown): s/a a/a/
56095         maint.mk: prohibit \<the the\>
56096         * top/maint.mk (sc_prohibit_the_the): New rule.
56098         maint: fix "the the" in comment
56099         * lib/count-one-bits.h: s/the the/the/
56101         maint: change "can not" to "cannot"
56102         But do not change the occurrences in maintain.texi or in
56103         build-aux/po/Makefile.in.in, which I presume comes from gettext.
56104         * doc/gnulib-tool.texi: s/can not/cannot/
56105         * doc/posix-functions/accept.texi (accept): Likewise.
56106         * doc/posix-functions/socket.texi (socket): Likewise.
56107         * lib/mbrtowc.c: Likewise.
56109         maint.mk: prohibit use of "can not"
56110         * top/maint.mk (sc_prohibit_can_not): New rule.
56111         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
56113 2011-04-09  Bruno Haible  <bruno@clisp.org>
56115         careadlinkat: Guard against misuse of careadlinkatcwd.
56116         * lib/careadlinkat.c: Include <stdlib.h>.
56117         (careadlinkatcwd): Check that the fd argument is as expected.
56119 2011-04-09  Bruno Haible  <bruno@clisp.org>
56121         careadlinkat: Use common coding style.
56122         * lib/careadlinkat.c: Move gnulib includes after system includes.
56124 2011-04-09  Bruno Haible  <bruno@clisp.org>
56126         careadlinkat: Clarify specification.
56127         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
56128         (careadlinkatcwd): Add comment.
56129         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
56131 2011-04-09  Bruno Haible  <bruno@clisp.org>
56133         areadlinkat: Avoid link error on many platforms.
56134         * modules/areadlinkat (Depends-on): Add areadlink.
56136 2011-04-09  Bruno Haible  <bruno@clisp.org>
56138         allocator, careadlinkat: Fix double-inclusion guard.
56139         * lib/allocator.h: Fix double-inclusion guard.
56140         * lib/careadlinkat.h: Likewise.
56142 2011-04-09  Bruno Haible  <bruno@clisp.org>
56144         relocatable-prog-wrapper: Update after module 'areadlink' changed.
56145         * lib/relocwrapper.c: Update dependencies hierarchy.
56146         * build-aux/install-reloc: Update list of files to be compiled.
56147         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
56148         lib/allocator.[hc].
56150 2011-04-08  Eric Blake  <eblake@redhat.com>
56152         strftime: silence gnulib-tool warning
56153         * modules/strftime-tests (Depends-on): Drop automatic dependency.
56155 2011-04-08  Bruno Haible  <bruno@clisp.org>
56157         verify: Fix syntax error with GCC 4.6 in C++ mode.
56158         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
56159         (HAVE_STATIC_ASSERT): New macro.
56160         (verify_true, verify): Use 'static_assert' if it is supported and
56161         '_Static_assert' is not supported.
56163 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56165         allocator: New module.
56166         * modules/allocator, lib/allocator.c: New files.
56167         * lib/allocator.h (stdlib_allocator): New decl.
56168         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
56169         Remove.  Do not include <stdlib.h>.
56170         (careadlinkat): Use stdlib_allocator instead of rolling our own.
56171         * modules/careadlinkat (Files): Remove lib/allocator.h.
56172         (Depends-on): Add allocator.
56174         stdlib: let modules use system malloc, realloc
56175         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
56176         if !_GL_USE_STDLIB_ALLOC.
56177         (malloc, realloc): Limit this change to a smaller scope.
56179         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
56180         (malloc, realloc): Don't #undef; no longer needed.
56181         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56182         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56183         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56184         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56185         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56186         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56187         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56188         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56190         careadlinkat: rename members to avoid problem
56191         * lib/allocator.h (struct allocator): Rename members from
56192         malloc/realloc to allocate/reallocate, to avoid problems if malloc
56193         and realloc are #define'd.  Reported by Eric Blake in
56194         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
56195         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
56197 2011-04-08  Eric Blake  <eblake@redhat.com>
56199         nonblocking: reduce dependency
56200         * tests/test-nonblocking.c: Only test sockets when in use.
56201         * modules/nonblocking-tests (Depends-on): Drop socket.
56202         (Makefile.am): Link even if sockets are not present.
56203         * modules/pipe2-tests (Makefile.am): Likewise.
56204         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
56206         pipe2: fix O_NONBLOCK support on mingw
56207         * modules/pipe2 (Depends-on): Add nonblocking.
56208         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
56209         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
56210         * tests/test-nonblocking.c (main): Likewise.
56211         * modules/pipe2-tests (Makefile.am): Avoid link failure.
56213         fcntl-h: fix O_ACCMODE on cygwin
56214         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
56215         * lib/fcntl.in.h (O_ACCMODE): Fix it.
56217         pipe-filter: drop O_NONBLOCK workarounds
56218         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
56219         * modules/pipe-filter-ii (Depends-on): Likewise.
56220         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
56222         nonblocking: provide O_NONBLOCK for mingw
56223         * modules/nonblocking (Depends-on): Add open.
56224         (configure.ac): Set new witness macro.
56225         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
56226         * modules/fcntl-h (Makefile.am): Substitute it.
56227         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
56228         nonblocking module is in use.
56229         * lib/nonblocking.c: Adjust portability test.
56230         * lib/open.c (open): Don't let native open see gnulib flag.
56231         * tests/test-fcntl-h.c (main): Enhance test.
56232         * tests/test-open.h (test_open): Likewise.
56233         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
56235         careadlinkat: fix compilation error on mingw
56236         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
56237         within struct allocator.
56239 2011-04-06  Eric Blake  <eblake@redhat.com>
56241         binary-io: relicense under LGPLv2+
56242         * modules/binary-io (License): Relax to LGPLv2+.
56243         Requested for libvirt, and required by pipe2.
56245 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
56247         verify: use _Static_assert if available
56248         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
56249         (verify_true, verify): Use it if available.  This generates better
56250         diagnostics with GCC 4.6.0 and later.
56252 2011-04-05  Bruno Haible  <bruno@clisp.org>
56254         Remove leftover generated .h files after config.status changed.
56256         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
56257         GL_GENERATE_ALLOCA_H.
56258         * modules/alloca-opt (Makefile.am): Remove alloca.h if
56259         GL_GENERATE_ALLOCA_H evaluates to false.
56261         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
56262         GL_GENERATE_ARGZ_H.
56263         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
56264         evaluates to false.
56266         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
56267         GL_GENERATE_BYTESWAP_H.
56268         * modules/byteswap (Makefile.am): Remove byteswap.h if
56269         GL_GENERATE_BYTESWAP_H evaluates to false.
56271         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
56272         GL_GENERATE_ERRNO_H.
56273         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
56274         evaluates to false.
56276         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
56277         GL_GENERATE_FLOAT_H.
56278         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
56279         evaluates to false.
56281         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
56282         GL_GENERATE_FNMATCH_H.
56283         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
56284         GL_GENERATE_FNMATCH_H evaluates to false.
56286         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
56287         GL_GENERATE_GLOB_H.
56288         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
56289         evaluates to false.
56291         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
56292         automake conditional GL_GENERATE_ICONV_H.
56293         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
56294         evaluates to false.
56296         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
56297         GL_GENERATE_NETINET_IN_H.
56298         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
56299         GL_GENERATE_NETINET_IN_H evaluates to false.
56301         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
56302         conditional GL_GENERATE_PTHREAD_H.
56303         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
56304         * modules/pthread (Makefile.am): Remove pthread.h if
56305         GL_GENERATE_PTHREAD_H evaluates to false.
56307         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
56308         GL_GENERATE_SCHED_H.
56309         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
56310         evaluates to false.
56312         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
56313         conditional GL_GENERATE_SELINUX_CONTEXT_H.
56314         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
56315         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
56317         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
56318         GL_GENERATE_STDARG_H.
56319         * modules/stdarg (Makefile.am): Remove stdarg.h if
56320         GL_GENERATE_STDARG_H evaluates to false.
56322         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
56323         GL_GENERATE_STDBOOL_H.
56324         * modules/stdbool (Makefile.am): Remove stdbool.h if
56325         GL_GENERATE_STDBOOL_H evaluates to false.
56327         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
56328         conditional GL_GENERATE_STDDEF_H.
56329         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
56330         * modules/stddef (Makefile.am): Remove stddef.h if
56331         GL_GENERATE_STDDEF_H evaluates to false.
56333         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
56334         GL_GENERATE_STDINT_H.
56335         * modules/stdint (Makefile.am): Remove stdint.h if
56336         GL_GENERATE_STDINT_H evaluates to false.
56338         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
56339         GL_GENERATE_SYSEXITS_H.
56340         * modules/sysexits (Makefile.am): Remove sysexits.h if
56341         GL_GENERATE_SYSEXITS_H evaluates to false.
56343         Reported by Karl Berry and Ralf Wildenhues.
56345 2011-04-05  Bruno Haible  <bruno@clisp.org>
56347         Ensure to rebuild generated .h files when config.status has changed.
56348         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
56349         config.status.
56350         * modules/ctype (Makefile.am): Likewise.
56351         * modules/dirent (Makefile.am): Likewise.
56352         * modules/errno (Makefile.am): Likewise.
56353         * modules/fcntl-h (Makefile.am): Likewise.
56354         * modules/float (Makefile.am): Likewise.
56355         * modules/getopt-posix (Makefile.am): Likewise.
56356         * modules/glob (Makefile.am): Likewise.
56357         * modules/iconv-h (Makefile.am): Likewise.
56358         * modules/inttypes (Makefile.am): Likewise.
56359         * modules/langinfo (Makefile.am): Likewise.
56360         * modules/locale (Makefile.am): Likewise.
56361         * modules/math (Makefile.am): Likewise.
56362         * modules/netdb (Makefile.am): Likewise.
56363         * modules/netinet_in (Makefile.am): Likewise.
56364         * modules/poll-h (Makefile.am): Likewise.
56365         * modules/pthread (Makefile.am): Likewise.
56366         * modules/pty (Makefile.am): Likewise.
56367         * modules/sched (Makefile.am): Likewise.
56368         * modules/search (Makefile.am): Likewise.
56369         * modules/selinux-h (Makefile.am): Likewise.
56370         * modules/signal (Makefile.am): Likewise.
56371         * modules/spawn (Makefile.am): Likewise.
56372         * modules/stdarg (Makefile.am): Likewise.
56373         * modules/stdbool (Makefile.am): Likewise.
56374         * modules/stddef (Makefile.am): Likewise.
56375         * modules/stdint (Makefile.am): Likewise.
56376         * modules/stdio (Makefile.am): Likewise.
56377         * modules/stdlib (Makefile.am): Likewise.
56378         * modules/string (Makefile.am): Likewise.
56379         * modules/strings (Makefile.am): Likewise.
56380         * modules/sys_file (Makefile.am): Likewise.
56381         * modules/sys_ioctl (Makefile.am): Likewise.
56382         * modules/sys_select (Makefile.am): Likewise.
56383         * modules/sys_socket (Makefile.am): Likewise.
56384         * modules/sys_stat (Makefile.am): Likewise.
56385         * modules/sys_time (Makefile.am): Likewise.
56386         * modules/sys_times (Makefile.am): Likewise.
56387         * modules/sys_utsname (Makefile.am): Likewise.
56388         * modules/sys_wait (Makefile.am): Likewise.
56389         * modules/sysexits (Makefile.am): Likewise.
56390         * modules/termios (Makefile.am): Likewise.
56391         * modules/time (Makefile.am): Likewise.
56392         * modules/unistd (Makefile.am): Likewise.
56393         * modules/wchar (Makefile.am): Likewise.
56394         * modules/wctype-h (Makefile.am): Likewise.
56395         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
56397 2011-04-05  Bruno Haible  <bruno@clisp.org>
56399         pipe2: Relicense under LGPLv2+.
56400         * modules/pipe2 (License): Change to LGPLv2+.
56401         Requested by Eric Blake, for libvirt.
56403 2011-04-05  Bruce Korb  <bkorb@gnu.org>
56405         bootstrap: compute gnulib_extra_files after updating build_aux
56406         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
56407         change build_aux or also supply gnulib_extra_files.  Handle correctly.
56409 2011-04-05  Eric Blake  <eblake@redhat.com>
56411         bootstrap: preserve git whitelist item sorting
56412         * build-aux/bootstrap (sort_patterns): New function.
56413         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
56415 2011-04-05  Simon Josefsson  <simon@josefsson.org>
56417         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
56418         sc_space_tab check.
56420 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
56422         areadlink, areadlinkat: rewrite in terms of careadlinkat
56423         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
56424         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
56425         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
56426         (malloc, realloc): Remove #undefs.
56427         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
56428         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
56429         readlink, ssize_t, stdint, unistd.
56430         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
56431         areadlink, stdint.
56433         careadlinkat: new module
56434         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
56435         * modules/careadlinkat: New files, written by me with
56436         a review and feedback from Ben Pfaff in
56437         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
56439 2011-04-01  Bruno Haible  <bruno@clisp.org>
56441         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
56442         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
56443         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
56444         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
56445         Reported by Bruce Korb <bruce.korb@gmail.com>.
56447 2011-04-01  Bruno Haible  <bruno@clisp.org>
56449         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
56450         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
56451         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
56452         * modules/wcpcpy (Depends-on): Add extensions.
56453         * modules/wcpncpy (Depends-on): Likewise.
56454         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
56455         systems.
56456         * doc/posix-functions/wcpncpy.texi: Likewise.
56457         * doc/posix-functions/wcwidth.texi: Likewise.
56459 2011-03-31  Eric Blake  <eblake@redhat.com>
56461         nonblocking: fix mingw test failures
56462         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
56463         non-blocking flag on regular file.
56464         (get_nonblocking_flag): Set errno on invalid fd.
56465         * tests/test-nonblocking.c (main): Avoid test failure on
56466         directories if fchdir is not active.
56467         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
56469 2011-03-31  Bruno Haible  <bruno@clisp.org>
56471         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
56472         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
56473         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
56474         Reported by Simon Josefsson <simon@josefsson.org>.
56476 2011-03-31  Bruno Haible  <bruno@clisp.org>
56477         and Eric Blake  <eblake@redhat.com>
56479         nonblocking: new module
56480         * modules/nonblocking: New module.
56481         * modules/nonblocking-tests: Likewise.
56482         * lib/nonblocking.h: New file.
56483         * lib/nonblocking.c: Likewise.
56484         * tests/test-nonblocking.c: New test.
56485         * lib/ioctl.c (ioctl) [mingw]: Update comment.
56487 2011-03-30  Bruno Haible  <bruno@clisp.org>
56489         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
56490         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
56491         instead of 'printf' format for GCC >= 4.4.
56492         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
56493         (fprintf, printf, vfprintf, vprintf): Declare with
56494         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
56495         the system's vfprintf() function.
56496         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
56498 2011-03-30  Eric Blake  <eblake@redhat.com>
56500         passfd: fix scoping bug
56501         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
56502         before sendmsg/recvmsg.
56504         passfd: standardize coding conventions
56505         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
56506         can be learned at compile time.
56507         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
56508         ifdefs.
56509         (sendfd, recvfd): Follow gnulib code conventions.
56511         passfd: fix incorrect sendmsg arguments
56512         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
56513         incorrect msg_controllen value.
56514         * modules/passfd-tests (Depends-on): Check for alarm.
56515         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
56516         Reported by Bastien ROUCARIES.
56518 2011-03-30  Bruno Haible  <bruno@clisp.org>
56520         c-strcasestr: Relicense under LGPLv2+.
56521         * modules/c-strcasestr (License): Change to LGPLv2+.
56522         Requested by Eric Blake, for libvirt.
56524 2011-03-30  Simon Josefsson  <simon@josefsson.org>
56526         * users.txt: Add libidn2.  Fix libtasn1 link.
56528 2011-03-30  Jim Meyering  <meyering@redhat.com>
56530         tests: readlink* ("",... fails with EINVAL on newer kernels
56531         readlink and readlinkat have typically failed with ENOENT for
56532         the invalid, empty file name,  "".  However, with the advent
56533         of linux-2.6.39, they fail with EINVAL.
56534         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
56535         when operating on the empty file name.
56536         * tests/test-readlink.h (test_readlink): Likewise.
56538 2011-03-29  Bruno Haible  <bruno@clisp.org>
56540         Relicense some modules under LGPLv2+, for libidn2.
56541         * modules/array-mergesort (License): Change to LGPLv2+.
56542         * modules/c-strcaseeq (License): Likewise.
56543         * modules/striconveh (License): Likewise.
56544         * modules/striconveha (License): Likewise.
56545         * modules/uniconv/base (License): Likewise.
56546         * modules/uniconv/u8-conv-from-enc (License): Likewise.
56547         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
56548         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
56549         * modules/unictype/base (License): Likewise.
56550         * modules/unictype/bidiclass-of (License): Likewise.
56551         * modules/unictype/category-M (License): Likewise.
56552         * modules/unictype/category-none (License): Likewise.
56553         * modules/unictype/category-of (License): Likewise.
56554         * modules/unictype/category-test (License): Likewise.
56555         * modules/unictype/category-test-withtable (License): Likewise.
56556         * modules/unictype/combining-class (License): Likewise.
56557         * modules/unictype/joiningtype-of (License): Likewise.
56558         * modules/unictype/scripts (License): Likewise.
56559         * modules/uninorm/base (License): Likewise.
56560         * modules/uninorm/canonical-decomposition (License): Likewise.
56561         * modules/uninorm/composition (License): Likewise.
56562         * modules/uninorm/decompose-internal (License): Likewise.
56563         * modules/uninorm/decomposition-table (License): Likewise.
56564         * modules/uninorm/nfc (License): Likewise.
56565         * modules/uninorm/nfd (License): Likewise.
56566         * modules/uninorm/u32-normalize (License): Likewise.
56567         * modules/unistr/base (License): Likewise.
56568         * modules/unistr/u32-cpy (License): Likewise.
56569         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
56570         * modules/unistr/u32-to-u8 (License): Likewise.
56571         * modules/unistr/u32-uctomb (License): Likewise.
56572         * modules/unistr/u8-check (License): Likewise.
56573         * modules/unistr/u8-mblen (License): Likewise.
56574         * modules/unistr/u8-mbtouc (License): Likewise.
56575         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
56576         * modules/unistr/u8-mbtoucr (License): Likewise.
56577         * modules/unistr/u8-prev (License): Likewise.
56578         * modules/unistr/u8-strlen (License): Likewise.
56579         * modules/unistr/u8-to-u32 (License): Likewise.
56580         * modules/unistr/u8-uctomb (License): Likewise.
56581         * modules/unitypes (License): Likewise.
56582         Requested by Simon Josefsson.
56584 2011-03-29  Simon Josefsson  <simon@josefsson.org>
56586         lib-symbol-visibility: Add a notice.
56587         * modules/lib-symbol-visibility (Notice): New field.
56589 2011-03-29  Bruno Haible  <bruno@clisp.org>
56591         getaddrinfo: Doc fix.
56592         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
56593         section "fixed in Gnulib".
56595 2011-03-28  Simon Josefsson  <simon@josefsson.org>
56597         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
56598         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
56600 2011-03-26  Bruno Haible  <bruno@clisp.org>
56602         unictype/property-byname: Reduce the number of load-time relocations.
56603         * lib/unictype/pr_byname.c: Include <stdlib.h>.
56604         (UC_PROPERTY_INDEX_*): New enumeration values.
56605         (uc_property_byname): Convert an index from the lookup table to an
56606         uc_property_t.
56607         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
56608         values.
56610 2011-03-26  Bruno Haible  <bruno@clisp.org>
56612         unictype/property-byname: Allow omitted word separators and aliases.
56613         * lib/unictype/pr_byname.gperf: Add property names without word
56614         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
56615         for 'space'.
56617 2011-03-26  Bruno Haible  <bruno@clisp.org>
56619         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
56620         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
56621         also hyphens to space.
56622         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
56623         without spaces.
56624         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
56626 2011-03-26  Bruno Haible  <bruno@clisp.org>
56628         unictype/joiningtype-byname: Recognize long names as well.
56629         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
56630         a long name.
56631         * lib/unictype/joiningtype_byname.c: Include <string.h>,
56632         unictype/joiningtype_byname.h.
56633         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
56634         * lib/unictype/joiningtype_byname.gperf: New file.
56635         * modules/unictype/joiningtype-byname (Files): Add
56636         lib/unictype/joiningtype_byname.gperf.
56637         (Depends-on): Add gperf.
56638         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
56639         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
56640         long names.
56642         Tests for module 'unictype/joiningtype-longname'.
56643         * modules/unictype/joiningtype-longname-tests: New file.
56644         * tests/unictype/test-joiningtype_longname.c: New file.
56646         New module 'unictype/joiningtype-longname'.
56647         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
56648         * lib/unictype/joiningtype_longname.c: New file.
56649         * modules/unictype/joiningtype-longname: New file.
56650         * modules/unictype/joiningtype-all (Depends-on): Add
56651         unictype/joiningtype-longname.
56653 2011-03-26  Bruno Haible  <bruno@clisp.org>
56655         unictype/bidiclass-byname: Recognize long names as well.
56656         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
56657         name.
56658         * lib/unictype/bidi_byname.c: Include <string.h>,
56659         unictype/bidi_byname.h.
56660         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
56661         * lib/unictype/bidi_byname.gperf: New file.
56662         * modules/unictype/bidiclass-byname (Files): Add
56663         lib/unictype/bidi_byname.gperf.
56664         (Depends-on): Add gperf.
56665         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
56666         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
56667         long names.
56669         Tests for module 'unictype/bidiclass-longname'.
56670         * modules/unictype/bidiclass-longname-tests: New file.
56671         * tests/unictype/test-bidi_longname.c: New file.
56673         New module 'unictype/bidiclass-longname'.
56674         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
56675         * lib/unictype/bidi_longname.c: New file.
56676         * modules/unictype/bidiclass-longname: New file.
56677         * modules/unictype/bidiclass-all (Depends-on): Add
56678         unictype/bidiclass-longname.
56680 2011-03-26  Bruno Haible  <bruno@clisp.org>
56682         unictype/bidi*: Rename modules.
56683         * modules/unictype/bidiclass-all: Renamed from
56684         modules/unictype/bidicategory-all.
56685         * modules/unictype/bidiclass-name: Renamed from
56686         modules/unictype/bidiclass-name.
56687         (Description): Update.
56688         * modules/unictype/bidiclass-name-tests: Renamed from
56689         modules/unictype/bidicategory-name-tests.
56690         * modules/unictype/bidiclass-byname: Renamed from
56691         modules/unictype/bidicategory-byname.
56692         (Description): Update.
56693         * modules/unictype/bidiclass-byname-tests: Renamed from
56694         modules/unictype/bidicategory-byname-tests.
56695         * modules/unictype/bidiclass-of: Renamed from
56696         modules/unictype/bidicategory-of.
56697         (Description): Update.
56698         * modules/unictype/bidiclass-of-tests: Renamed from
56699         modules/unictype/bidicategory-of-tests.
56700         * modules/unictype/bidiclass-test: Renamed from
56701         modules/unictype/bidicategory-test.
56702         (Description): Update.
56703         * modules/unictype/bidiclass-test-tests: Renamed from
56704         modules/unictype/bidicategory-test-tests.
56705         * modules/unictype/bidicategory-all: New file, a simple redirection.
56706         * modules/unictype/bidicategory-name: Likewise.
56707         * modules/unictype/bidicategory-byname: Likewise.
56708         * modules/unictype/bidicategory-of: Likewise.
56709         * modules/unictype/bidicategory-test: Likewise.
56710         * modules/unictype/property-bidi-* (Dependencies): Update.
56711         * lib/unictype/bidi_*.c: Update comment.
56713 2011-03-26  Bruno Haible  <bruno@clisp.org>
56715         unictype/bidi*: Rename functions, part 2.
56716         * modules/unictype/bidicategory-name (configure.ac): Update required
56717         libunistring version.
56718         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
56720 2011-03-25  Bruno Haible  <bruno@clisp.org>
56722         New module 'unictype/combining-class-all'.
56723         * modules/unictype/combining-class-all: New file.
56725         Tests for module 'unictype/combining-class-byname'.
56726         * modules/unictype/combining-class-byname-tests: New file.
56727         * tests/unictype/test-combiningclass_byname.c: New file.
56729         New module 'unictype/combining-class-byname'.
56730         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
56731         * lib/unictype/combiningclass_byname.c: New file.
56732         * lib/unictype/combiningclass_byname.gperf: New file.
56733         * modules/unictype/combining-class-byname: New file.
56735         Tests for module 'unictype/combining-class-longname'.
56736         * modules/unictype/combining-class-longname-tests: New file.
56737         * tests/unictype/test-combiningclass_longname.c: New file.
56739         New module 'unictype/combining-class-longname'.
56740         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
56741         * lib/unictype/combiningclass_longname.c: New file.
56742         * modules/unictype/combining-class-longname: New file.
56744         Tests for module 'unictype/combining-class-name'.
56745         * modules/unictype/combining-class-name-tests: New file.
56746         * tests/unictype/test-combiningclass_name.c: New file.
56748         New module 'unictype/combining-class-name'.
56749         * lib/unictype.in.h (uc_combining_class_name): New declaration.
56750         * lib/unictype/combiningclass_name.c: New file.
56751         * modules/unictype/combining-class-name: New file.
56753 2011-03-25  Bruno Haible  <bruno@clisp.org>
56755         unictype/combining-class: Rename source files.
56756         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
56757         of unictype/combining.h.
56758         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
56759         Update.
56760         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
56761         * modules/unictype/combining-class (Description): Fix.
56762         (Files, Makefile.am): Update.
56763         * tests/unictype/test-combiningclass.c: Renamed from
56764         tests/unictype/test-combining.c.
56765         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
56767 2011-03-25  Bruno Haible  <bruno@clisp.org>
56769         unictype: Update list of canonical combining classes.
56770         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
56772 2011-03-25  Bruno Haible  <bruno@clisp.org>
56774         unictype/category-byname: Recognize long names as well.
56775         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
56776         a long name.
56777         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
56778         unictype/categ_byname.h.
56779         (UC_CATEGORY_INDEX_*): New enumeration values.
56780         (uc_general_category_byname): Use uc_general_category_lookup and
56781         convert from index to value.
56782         * lib/unictype/categ_byname.gperf: New file.
56783         * modules/unictype/category-byname (Files): Add
56784         lib/unictype/categ_byname.gperf.
56785         (Depends-on): Add gperf.
56786         (Makefile.am): Add rule for generating unictype/categ_byname.h.
56787         * tests/unictype/test-categ_byname.c (main): Test the recognition of
56788         long names.
56790         Tests for module 'unictype/category-longname'.
56791         * modules/unictype/category-longname-tests: New file.
56792         * tests/unictype/test-categ_longname.c: New file.
56794         New module 'unictype/category-longname'.
56795         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
56796         * lib/unictype/categ_longname.c: New file.
56797         * modules/unictype/category-longname: New file.
56798         * modules/unictype/category-all (Depends-on): Add it.
56800 2011-03-25  Bruno Haible  <bruno@clisp.org>
56802         Tests for module 'unictype/category-LC'.
56803         * modules/unictype/category-LC-tests: New file.
56804         * tests/unictype/test-categ_LC.c: New file, automatically generated.
56806         New module 'unictype/category-LC'.
56807         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
56808         (UC_CATEGORY_LC): New declaration.
56809         (UC_CASED_LETTER): New macro.
56810         * lib/gen-uni-tables.c (is_category_LC): New function.
56811         (output_categories): Also handle category LC.
56812         (UC_CATEGORY_MASK_LC): New enumeration value.
56813         (general_category_byname): Also handle category LC.
56814         * lib/unictype/categ_LC.c: New file.
56815         * lib/unictype/categ_LC.h: New file, automatically generated.
56816         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
56817         category LC.
56818         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
56819         * modules/unictype/category-LC: New file.
56820         * modules/unictype/category-byname (Depends-on): Add
56821         unictype/category-LC.
56822         * modules/unictype/category-all (Depends-on): Likewise.
56824 2011-03-25  Eric Blake  <eblake@redhat.com>
56826         xmalloc: revert yesterday's regression
56827         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
56828         realloc's underlying behavior (allowing allocation of zero-size
56829         objects, especially if malloc-gnu is also in use).
56831 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
56833         maint.mk: add missing version to VC-tag
56834         * top/maint.mk: git tag was missing actual tag name; add it.
56836         valgrind: do leak checking, and exit with code 1 on error (not 0)
56837         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
56838         to VALGRIND.
56840 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
56842         posix-modules: say what it does.
56843         * posix-modules: Add a line to the --help output saying what it does.
56845 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
56847         xmalloc: Do not leak if underlying realloc is C99 compatible.
56848         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
56849         This avoids a leak on C99-based systems.  See
56850         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
56852 2011-03-24  Eric Blake  <eblake@redhat.com>
56854         realloc: document portability problem
56855         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
56856         passing 0 size to realloc.
56858 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
56860         doc: update users.txt
56861         * users.txt: Add cvsps, tmpwatch
56863 2011-03-23  Matt Rice  <ratmice@gmail.com>
56865         doc: update users.txt
56866         * users.txt: Add gdb.
56868 2011-03-23  Jim Meyering  <meyering@redhat.com>
56870         doc: update users.txt
56871         Looking through matches up to the following URL (there are still
56872         several more pages), I found several projects that use gnulib:
56873         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
56874         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
56875         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
56877 2011-03-22  Bruno Haible  <bruno@clisp.org>
56879         unictype/bidi*: Rename functions.
56880         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
56881         uc_bidi_class, uc_is_bidi_class): New declarations.
56882         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
56883         uc_bidi_category_byname.
56884         (uc_bidi_category_byname): New function.
56885         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
56886         u_bidi_category_name.
56887         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
56888         (uc_bidi_category_name): New function.
56889         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
56890         uc_bidi_category.
56891         (uc_bidi_category): New function.
56892         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
56893         uc_is_bidi_category. Invoke uc_bidi_class.
56894         (uc_is_bidi_category): New function.
56895         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
56896         instead of uc_bidi_category_byname.
56897         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
56898         instead of uc_bidi_category_name.
56899         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
56900         uc_bidi_category.
56901         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
56902         instead of uc_is_bidi_category.
56904 2011-03-21  Bruno Haible  <bruno@clisp.org>
56906         New module 'unictype/joininggroup-all'.
56907         * modules/unictype/joininggroup-all: New file.
56909         Tests for module 'unictype/joininggroup-of'.
56910         * modules/unictype/joininggroup-of-tests: New file.
56911         * tests/unictype/test-joininggroup_of.c: New file.
56912         * tests/unictype/test-joininggroup_of.h: New file, automatically
56913         generated by gen-uni-tables.
56915         New module 'unictype/joininggroup-of'.
56916         * modules/unictype/joininggroup-of: New file.
56917         * lib/unictype/joininggroup_of.c: New file.
56918         * lib/unictype/joininggroup_of.h: New file, automatically generated by
56919         gen-uni-tables.
56921         Tests for module 'unictype/joininggroup-byname'.
56922         * modules/unictype/joininggroup-byname-tests: New file.
56923         * tests/unictype/test-joininggroup_byname.c: New file.
56925         New module 'unictype/joininggroup-byname'.
56926         * modules/unictype/joininggroup-byname: New file.
56927         * lib/unictype/joininggroup_byname.c: New file.
56928         * lib/unictype/joininggroup_byname.gperf: New file.
56930         Tests for module 'unictype/joininggroup-name'.
56931         * modules/unictype/joininggroup-name-tests: New file.
56932         * tests/unictype/test-joininggroup_name.c: New file.
56934         New module 'unictype/joininggroup-name'.
56935         * modules/unictype/joininggroup-name: New file.
56936         * lib/unictype/joininggroup_name.c: New file.
56937         * lib/unictype/joininggroup_name.h: New file.
56939         New module 'unictype/joiningtype-all'.
56940         * modules/unictype/joiningtype-all: New file.
56942         Tests for module 'unictype/joiningtype-of'.
56943         * modules/unictype/joiningtype-of-tests: New file.
56944         * tests/unictype/test-joiningtype_of.c: New file.
56945         * tests/unictype/test-joiningtype_of.h: New file, automatically
56946         generated by gen-uni-tables.
56948         New module 'unictype/joiningtype-of'.
56949         * modules/unictype/joiningtype-of: New file.
56950         * lib/unictype/joiningtype_of.c: New file.
56951         * lib/unictype/joiningtype_of.h: New file, automatically generated by
56952         gen-uni-tables.
56954         Tests for module 'unictype/joiningtype-byname'.
56955         * modules/unictype/joiningtype-byname-tests: New file.
56956         * tests/unictype/test-joiningtype_byname.c: New file.
56958         New module 'unictype/joiningtype-byname'.
56959         * modules/unictype/joiningtype-byname: New file.
56960         * lib/unictype/joiningtype_byname.c: New file.
56962         Tests for module 'unictype/joiningtype-name'.
56963         * modules/unictype/joiningtype-name-tests: New file.
56964         * tests/unictype/test-joiningtype_name.c: New file.
56966         New module 'unictype/joiningtype-name'.
56967         * modules/unictype/joiningtype-name: New file.
56968         * lib/unictype/joiningtype_name.c: New file.
56970         unictype: Add support for Arabic shaping properties.
56971         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
56972         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
56973         declarations.
56974         (UC_JOINING_GROUP_*): New enumeration values.
56975         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
56976         declarations.
56977         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
56978         (unicode_joining_type): New variable.
56979         (UC_JOINING_GROUP_*): New enumeration values.
56980         (unicode_joining_group): New variable.
56981         (fill_arabicshaping, joining_type_as_c_identifier,
56982         output_joining_type_test, output_joining_type,
56983         joining_group_as_c_identifier, output_joining_group_test,
56984         output_joining_group): New functions.
56985         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
56986         fill_arabicshaping and output_joining_type_test, output_joining_type,
56987         output_joining_group_test, output_joining_group.
56988         Reported by Simon Josefsson.
56990 2011-03-21  Jim Meyering  <meyering@redhat.com>
56992         strftime: fix a bug in yesterday's change
56993         * lib/strftime.c (add): Accommodate width's initial value of -1.
56994         Otherwise, nstrftime would copy uninitialized data into
56995         the result buffer.
56997 2011-03-21  Jim Meyering  <meyering@redhat.com>
56999         tests: add strftime-tests module
57000         * tests/test-strftime.c: New file.
57001         * modules/strftime-tests: New module.
57003 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57005         strftime: don't assume a byte count fits in 'int'
57006         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
57007         found this problem by static analysis, using gcc -Wstrict-overflow
57008         (GCC 4.5.2, x86-64).  This reported an optimization that depended
57009         on an integer overflow having undefined behavior, but it turns out
57010         that the argument is a size, which might not fit in 'int' anyway,
57012 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57014         stdio: don't require ignore_value around fwrite
57016         This patch works around libc bug 11959
57017         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
57018         Without this patch, applications must often write
57019         ignore_value (fwrite (...)) even though the ignore_value is
57020         not helpful here.  It's common to write many objects, using
57021         fwrite/printf/etc., and then use ferror to detect output error.
57023         I considered making this patch optional, but decided against it,
57024         because libc is obviously being inconsistent here: there is no
57025         reason libc should insist that user code must inspect fwrite
57026         return's value without also insisting that it inspect printf's,
57027         putchar's, etc.  If user code wants to have a strict style where
57028         all these functions' values are checked (so that ferror need not
57029         be checked), we could add support for that style in a new gnulib
57030         module, but in the meantime it's better to be consistent and to
57031         support common usage.
57033         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
57034         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
57035         that we are compiling in checking mode, and if not C++, and
57036         if not already wrapping fwrite for some other reason.
57037         (fwrite): #define to rpl_fwrite if the latter is defined.
57039 2011-03-20  Bruno Haible  <bruno@clisp.org>
57041         verror: Fix compilation error introduced on 2011-02-13.
57042         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
57043         instead of __attribute__.
57044         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57046 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57047             Bruno Haible  <bruno@clisp.org>
57049         socklen: do not depend on sys_socket
57050         While trying to modify Emacs to use gnulib's socklen module,
57051         I discovered a circular dependency: socklen depends on sys_socket
57052         and vice versa.  Emacs can use socklen, but it does not need
57053         sys_socket because it has its own substitute for sys/socket.h.
57054         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
57055         gl_TYPE_SOCKLEN_T.
57056         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
57057         gl_PREREQ_SYS_H_SOCKET.
57058         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
57059         gl_PREREQ_SYS_H_SOCKET.
57060         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
57061         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
57062         * modules/socklen (Depends-on): Do not depend on sys_socket.
57063         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
57065 2011-03-20  Jim Meyering  <meyering@redhat.com>
57067         maint.mk: sort file names *after* new transformation
57068         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
57069         prefix would have led to an unwarranted failure in GNU parted.
57070         Sort after that transformation.
57072 2011-03-19  Jim Meyering  <meyering@redhat.com>
57074         maint.mk: fix po-file syntax-check rule
57075         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
57076         Patch by Bruno Haible.
57078 2011-03-19  Bruno Haible  <bruno@clisp.org>
57080         socklen: Update comment.
57081         * m4/socklen.m4: Update comment about platforms.
57083 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57084             Bruno Haible  <bruno@clisp.org>
57086         inet_ntop, inet_pton: Simplify.
57087         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
57088         documented to provide socklen_t and we already depend on sys_socket.
57089         * modules/inet_pton (Depends-on): Likewise.
57090         * lib/arpa_inet.in.h: Adjust comment.
57092 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57093             Bruno Haible  <bruno@clisp.org>
57095         netdb: Simplify.
57096         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
57097         documented to provide socklen_t and we already depend on sys_socket.
57098         * lib/netdb.in.h: Adjust comment.
57100 2011-03-19  Bruno Haible  <bruno@clisp.org>
57102         sys_socket, netdb: Document problem with socklen_t.
57103         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
57104         platforms.
57105         * doc/posix-headers/netdb.texi: Likewise.
57107 2011-03-18  Eric Blake  <eblake@redhat.com>
57109         maint.mk: let po check work in VPATH build
57110         * top/maint.mk (po_file): Allow cfg.mk override.
57111         (sc_po_check): Allow VPATH use.
57112         Reported by Jiri Denemark.
57114 2011-03-16  Jim Meyering  <meyering@redhat.com>
57116         maint.mk: allow fine-grained syntax-check exclusion via Make variables
57117         Before, you would have had to create one .x-sc_ file per rule in order
57118         to exempt offending files.  Now, you may instead use a Make variable --
57119         usually defined in cfg.mk -- whose name identifies the affected rule.
57120         * top/maint.mk (_sc_excl): Define.
57121         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
57122         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
57124 2011-03-13  Bruno Haible  <bruno@clisp.org>
57126         ignore-value tests: Avoid warnings.
57127         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
57128         empty for gcc < 3.4.
57130 2011-03-13  Bruno Haible  <bruno@clisp.org>
57132         passfd: Fix link error on Solaris.
57133         * modules/passfd (Description): Correct.
57134         (Depends-on): Add socketlib.
57135         (Link): New section.
57136         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
57138 2011-03-13  Bruno Haible  <bruno@clisp.org>
57140         passfd: Fix link error on AIX 5.2.
57141         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
57143 2011-03-13  Bruno Haible  <bruno@clisp.org>
57145         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
57146         * lib/sys_socket.in.h: Include <stddef.h>.
57147         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
57148         CMSG_FIRSTHDR. Remove unused variable.
57150 2011-03-13  Bruno Haible  <bruno@clisp.org>
57152         passfd: Fix compilation error on OpenBSD.
57153         * lib/passfd.c: Include <sys/uio.h>.
57155 2011-03-13  Bruno Haible  <bruno@clisp.org>
57157         passfd test: Fix warnings.
57158         * tests/test-passfd.c: Include <sys/wait.h>.
57159         (main): Fix typo.
57161 2011-03-13  Bruno Haible  <bruno@clisp.org>
57163         passfd module, part 4, tweaks.
57164         * tests/test-passfd.c: Reorder includes.
57165         (main): Fix perror and printf calls.
57167 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57169         passfd module, part 4.
57170         * modules/passfd-tests: New file.
57171         * tests/test-passfd.c: New file.
57173 2011-03-13  Jim Meyering  <meyering@redhat.com>
57175         Makefile: rely on GNU make; derive syntax-check rule names
57176         Rather than requiring that each sc_ rule be listed as a dependent
57177         of "check", use features of GNU make to derive the list.
57178         * Makefile (syntax-check-rules): Define.
57179         (check): Depend on the new variable, not the hard-coded list.
57181 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
57182             Bruno Haible  <bruno@clisp.org>
57184         passfd module, part 3.
57185         * lib/passfd.h (recvfd): Add a flags argument.
57186         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
57187         (recvfd): Add a flags argument.
57188         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
57189         exists.
57190         * modules/passfd (Depends-on): Add cloexec.
57191         Suggested by Eric Blake.
57193 2011-03-13  Bruno Haible  <bruno@clisp.org>
57195         passfd module, part 2, tweaks.
57196         * modules/passfd (Files): Reorder.
57197         (Depends-on): Remove errno.
57198         (Include): Remove <sys/socket.h>, <sys/un.h>.
57199         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
57200         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
57201         specification header. Include <sys/socket.h> always. Don't include
57202         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
57203         (sendfd): Clarify that it sets errno when it fails.
57204         (recvfd): Fix specification.
57206 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57208         passfd module, part 2.
57209         * modules/passfd: New file.
57210         * lib/passfd.h: New file.
57211         * lib/passfd.c: New file.
57213 2011-03-12  Bruno Haible  <bruno@clisp.org>
57215         wcswidth, mbswidth: Avoid integer overflow.
57216         * lib/wcswidth.c: Include <limits.h>.
57217         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
57218         * lib/mbswidth.c: Include <limits.h>.
57219         (mbsnwidth): Avoid 'int' overflow.
57220         Reported by Jim Meyering.
57222 2011-03-12  Bruno Haible  <bruno@clisp.org>
57224         futimens, utimensat: Avoid endless recursion on Solaris 10.
57225         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
57226         Solaris.
57227         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
57228         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
57230 2011-03-11  Jim Meyering  <meyering@redhat.com>
57232         maint.mk: relax a regexp to accommodate other formatting styles
57233         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
57234         between "ngettext" and the following "(".
57236 2011-03-11  Pádraig Brady  <P@draigBrady.com>
57238         maint.mk: suppress a false positive warning
57239         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
57240         diagnostics are marked with ngettext.
57242 2011-03-10  Eric Blake  <eblake@redhat.com>
57244         wchar: add explicit dependencies, for Tru64
57245         * modules/mbmemcasecoll (Depends-on): Add wchar.
57246         * modules/mbtowc (Depends-on): Likewise.
57247         * modules/vasnprintf (Depends-on): Likewise.
57248         * modules/unistdio/u-printf-args (Depends-on): Likewise.
57249         * modules/wctomb (Depends-on): Likewise.
57250         Reported by Peter O'Gorman.
57252 2011-03-08  Bruno Haible  <bruno@clisp.org>
57254         passfd module, part 1, tweaks.
57255         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
57256         Improve indentation. Improve AC_MSG_CHECKING messages.
57257         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
57258         gl_SOCKET_FAMILIES.
57260 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57262         passfd module, part 1.
57263         * m4/afunix.m4: New file.
57264         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
57265         sockets.
57267 2011-03-08  Bruno Haible  <bruno@clisp.org>
57269         regex-quote: New API.
57270         * lib/regex-quote.h: Include <stdbool.h>.
57271         (struct regex_quote_spec): New type.
57272         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57273         New declarations.
57274         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57275         'const struct regex_quote_spec *' argument.
57276         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
57277         (pcre_special): New constant.
57278         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57279         New functions.
57280         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57281         'const struct regex_quote_spec *' argument.
57282         * modules/regex-quote (Depends-on): Add stdbool.
57283         * tests/test-regex-quote.c (check): Update for new API. Add test for
57284         anchored results.
57285         * NEWS: Mention the API change.
57286         Reported by Reuben Thomas and Eric Blake.
57288 2011-03-06  Bruno Haible  <bruno@clisp.org>
57290         regex-quote: Fix creation of POSIX extended regular expressions.
57291         * lib/regex-quote.c (ere_special): Add grouping and alternation
57292         operators.
57294 2011-03-05  Bruno Haible  <bruno@clisp.org>
57296         doc: Improve doc regarding autopoint vs. gnulib.
57297         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
57298         disable autopoint while running autoreconf.
57299         Suggested by Ralf Wildenhues.
57301 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57303         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
57304         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
57306 2011-03-03  Bruce Korb  <bkorb@gnu.org>
57308         parse-duration: remove xalloc.h dependency
57309         * lib/parse-duration.c (parse_period): handle NULL return from
57310         strdup instead of calling xstrdup().
57311         * modules/parse-duration: remove "xalloc" dependency
57313 2011-03-03  Matthew Booth  <mbooth@redhat.com>
57315         bootstrap: honor m4_base when running aclocal
57316         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
57318 2011-03-02  Jim Meyering  <meyering@redhat.com>
57320         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
57321         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
57322         on request from Matt Booth.
57324 2011-03-01  Eric Blake  <eblake@redhat.com>
57326         test-link: work on Hurd
57327         * tests/test-link.h (test_link): Hurd rejects linking directories
57328         with EISDIR instead of the POSIX-mandated EPERM.
57330 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
57332         stdio: simplify by moving files to printf-posix, sigpipe
57333         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
57334         since this symbol is needed only if printf is replaced.
57335         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
57336         Require gl_ASM_SYMBOL_PREFIX.
57337         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
57338         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
57339         (Depends-on): Add 'raise'.
57340         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
57341         * modules/stdio (Files): Remove lib/stdio-write.c,
57342         m4/asm-underscore.m4.
57343         (Depends-on): Remove 'raise'.
57345         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
57346         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
57347         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
57348         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
57350 2011-02-28  Bruno Haible  <bruno@clisp.org>
57352         localcharset: Assume ANSI C behaviour of free().
57353         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
57354         calling free().
57355         Suggested by Simon Josefsson <simon@josefsson.org>.
57357 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
57358             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
57359             Bruno Haible  <bruno@clisp.org>  (tiny change)
57361         On Cygwin, use /proc file system instead of win32 API.
57362         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
57363         Win32 file names.
57364         (DllMain): Simplify by removing Cygwin specific code.
57365         (find_shared_library_fullname): Use Linux specific implementation also
57366         for Cygwin.
57367         (get_shared_library_fullname): Update accordingly.
57368         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
57369         Win32 file names.
57370         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
57371         Cygwin specific code.
57373 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
57374             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
57376         Fix OpenMP flag detection for various Fortran compilers.
57377         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
57378         OpenMP-conditional compilation construct, to force compile
57379         failure with missing OpenMP flag.
57380         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
57382 2011-02-25  Eric Blake  <eblake@redhat.com>
57384         strstr: expand test coverage
57385         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
57386         compilation.
57387         * tests/test-memmem.c (main): Duplicate tests.
57388         * tests/test-strcasestr.c (main): Likewise.
57389         * tests/test-c-strcasestr.c (main): Likewise.
57391 2011-02-25  Jim Meyering  <meyering@redhat.com>
57393         maint.mk: detect missing-NL-at-EOF, too
57394         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
57395         it also detects when a file lacks a newline at EOF.
57396         (require_exactly_one_NL_at_EOF_): Renamed from
57397         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
57398         since people may well have .x-sc_... file names tied to the
57399         existing name.  Suggested by Eric Blake.
57401 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57403         dirname: move m4/dos.m4 functionality into lib/dosname.h
57405         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
57406         extracts symbols from it, puts them into config.h; but it's much
57407         easier to use the symbols directly.  filename.h already does this,
57408         but it disagrees with dos.m4 in some respects.  This patch
57409         introduces a different include file dosname.h that packages up
57410         dos.m4, and then later we can work on merging filename.h and
57411         dosname.h.  Applications that need only the easy-to-configure
57412         symbols should consider including dosname.h rather than dirname.h.
57413         * NEWS: Mention incompatible changes.
57414         * m4/dos.m4: Remove.
57415         * lib/dosname.h, modules/dosname: New files.
57416         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
57417         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
57418         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
57419         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
57420         Include dosname.h, not dirname.h.
57421         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
57422         Include dosname.h, for definitions of symbols like ISSLASH
57423         that used to be in config.h.
57424         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
57425         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57426         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57427         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57428         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
57429         * modules/rmdir (Files): Likewise.
57430         * modules/stat (Files): Likewise.
57431         * modules/unlink (Files): Likewise.
57432         * modules/dirname-lgpl (Depends-on): Add dosname.
57433         * modules/lstat (Depends-on): Likewise.
57434         * modules/openat (Depends-on): Likewise.
57435         * modules/rmdir (Depends-on): Likewise.
57436         * modules/savewd (Depends-on): Likewise.
57437         * modules/stat (Depends-on): Likewise.
57438         * modules/unlink (Depends-on): Likewise.
57439         * modules/openat (Depends-on): Remove dirname-lgpl.
57440         * modules/savewd (Depends-on): Likewise.
57441         * tests/test-dirname.c: Do not use removed symbols like
57442         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
57443         the remaining symbols, e.g., ISSLASH ('\\').
57445 2011-02-25  Eric Blake  <eblake@redhat.com>
57447         strstr: revert patches that introduced bug and pessimization
57448         * lib/str-two-way.h: Add another reference.
57449         (two_way_short_needle, two_way_long_needle): Revert changes from
57450         2011-02-24; they pessimize search speed.
57451         (critical_factorization): Partially revert changes from
57452         2010-06-22; they violate the requirement that the left half of the
57453         needle be smaller than the period of the needle.
57455 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57457         filenamecat: remove unnecessary dependency on dirname-lgpl
57458         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
57459         is no direct dependency, just an indirect one via filenamecat-lgpl.
57461         remove: remove unnecessary use of m4/dos.m4
57462         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
57463         * modules/remove (FILES): Remove m4/dos.m4.
57465         * lib/openat-proc.c: Don't include dirname.h; not needed.
57467         backupfile: remove unnecessary use of m4/dos.m4
57468         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
57469         of its symbols are used by the backupfile code.  backupfile.c does
57470         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
57471         for the rare case of programs that want all their backup file
57472         names to live within 8+3 limits, and dos.m4 doesn't address that.
57473         * modules/backupfile (Files): Remove m4/dos.m4.
57475 2011-02-24  Jim Meyering  <meyering@redhat.com>
57477         strstr: fix a bug whereby strstr would mistakenly return NULL
57478         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
57479         in period calculation.
57480         (two_way_long_needle): Likewise.
57481         The original problem was reported by Mike Stump in
57482         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
57483         Ralf Wildenhues provided the short needle and haystack.
57484         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
57485         Add a more involved test to trigger the bug in two_way_long_needle.
57487 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57489         gnulib-tool: remove use of bold display in help screen
57490         * gnulib-tool (func_usage): Do not use bold display anymore in the
57491         help screen.  That was just meant to be a temporary emphasis for a
57492         backward-incompatible change.
57494 2011-02-23  Bruno Haible  <bruno@clisp.org>
57496         Fix misindentation of preprocessor directives.
57497         * lib/argp-namefrob.h: Reindent preprocessor directives.
57498         * lib/getopt_int.h (struct _getopt_data): Likewise.
57499         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
57500         * lib/vasnprintf.c (decode_long_double): Likewise.
57501         * tests/test-argmatch.c: Insert blank lines, for clarity.
57502         * tests/test-exclude.c: Likewise.
57504 2011-02-22  Bruno Haible  <bruno@clisp.org>
57506         ioctl: Fix for MacOS X in 64-bit mode.
57507         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
57508         value.
57509         Suggested by Eric Blake.
57510         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
57512 2011-02-22  Jim Meyering  <meyering@redhat.com>
57514         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
57515         * Makefile (sc_cpp_indent_check): Don't limit the check to files
57516         in lib/.
57518 2011-02-22  Eric Blake  <eblake@redhat.com>
57520         maint: avoid any CDPATH issue
57521         * Makefile (sc_cpp_indent_check): Anchor cd argument.
57523         maint: adjust cpp indentation for my modules, as well
57524         * Makefile (sc_cpp_indent_check): Add my name.
57525         * lib/fbufmode.c: Filter through cppi.
57526         * lib/fpurge.c: Likewise.
57527         * lib/freadable.c: Likewise.
57528         * lib/freading.c: Likewise.
57529         * lib/fwritable.c: Likewise.
57530         * lib/fwriting.c: Likewise.
57531         * lib/sigaction.c: Likewise.
57533 2011-02-22  Jim Meyering  <meyering@redhat.com>
57535         maint: adjust cpp indentation to reflect nesting depth
57536         I.e., in a block of code that begins with an unnested "#if",
57537         put one space between the "#" in column 1 and following token.
57538         For example,
57539         -#include <sys/vfs.h>
57540         +# include <sys/vfs.h>
57541         Do this only in .c files that are part of a module I maintain.
57542         * lib/linkat.c: Filter through cppi.
57543         * lib/nanosleep.c: Likewise.
57544         * lib/openat.c: Likewise.
57545         * lib/openat-die.c: Likewise.
57546         * lib/dup3.c: Likewise.
57547         * lib/fchownat.c: Likewise.
57548         * lib/flock.c: Likewise.
57549         * lib/fsync.c: Likewise.
57550         * lib/fts.c: Likewise.
57551         * lib/getpass.c: Likewise.
57552         * lib/gettimeofday.c: Likewise.
57553         * lib/userspec.c: Likewise.
57554         * Makefile (sc_cpp_indent_check): New rule, to check this.
57556 2011-02-22  Bruno Haible  <bruno@clisp.org>
57558         New module 'wctomb'.
57559         * lib/stdlib.in.h (wctomb): New declaration.
57560         * lib/wctomb.c: New file.
57561         * lib/wctomb-impl.h: New file.
57562         * m4/wctomb.m4: New file.
57563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
57564         REPLACE_WCTOMB.
57565         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
57566         REPLACE_WCTOMB.
57567         * modules/wctomb: New file.
57568         * tests/test-stdlib-c++.cc: Test signature of wctomb.
57569         * doc/posix-functions/wctomb.texi: Mention the new module.
57570         * modules/wctob (Depends-on): Add wctomb.
57572 2011-02-22  Bruno Haible  <bruno@clisp.org>
57574         New module 'mbtowc'.
57575         * lib/stdlib.in.h (mbtowc): New declaration.
57576         * lib/mbtowc.c: New file.
57577         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
57578         * m4/mbtowc.m4: New file.
57579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
57580         REPLACE_MBTOWC.
57581         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
57582         REPLACE_MBTOWC.
57583         * modules/mbtowc: New file.
57584         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
57585         * doc/posix-functions/mbtowc.texi: Mention the new module.
57586         * modules/btowc (Depends-on): Add mbtowc.
57588 2011-02-22  Bruno Haible  <bruno@clisp.org>
57590         wcrtomb: Add more tests for native Windows platforms.
57591         * tests/test-wcrtomb-w32-1.sh: New file.
57592         * tests/test-wcrtomb-w32-2.sh: New file.
57593         * tests/test-wcrtomb-w32-3.sh: New file.
57594         * tests/test-wcrtomb-w32-4.sh: New file.
57595         * tests/test-wcrtomb-w32-5.sh: New file.
57596         * tests/test-wcrtomb-w32.c: New file.
57597         * modules/wcrtomb-tests (Files): Add them.
57598         (Makefile.am): Arrange to run these tests.
57599         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
57600         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
57602 2011-02-20  Bruno Haible  <bruno@clisp.org>
57604         wcrtomb: Enhance test.
57605         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
57607 2011-02-20  Bruno Haible  <bruno@clisp.org>
57609         mbrtowc: Tiny optimization.
57610         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
57612 2011-02-20  Jim Meyering  <meyering@redhat.com>
57614         test-exclude.c: remove unmatched #endif
57615         * tests/test-exclude.c: Remove stray #endif, left over from
57616         the change of a week ago.
57618 2011-02-19  Jim Meyering  <meyering@redhat.com>
57620         git-version-gen: skip "-dirty" check when appropriate
57621         * build-aux/git-version-gen: Don't run any git commands when the
57622         version string comes from .tarball-version.  Prior to this, we
57623         would run git update-index --refresh even from a just-unpacked
57624         tarball directory, and that could affect a .git/ directory in a
57625         parent of the build directory.  Reported by Mike Frysinger.
57627 2011-02-19  Bruno Haible  <bruno@clisp.org>
57629         unictype/property-byname: Reduce the size of the 'data' segment.
57630         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
57632 2011-02-19  Bruno Haible  <bruno@clisp.org>
57634         unictype/scripts: Reduce the size of the 'data' segment.
57635         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
57636         '%pic'.
57637         * lib/unictype/scripts_byname.gperf: Regenerated.
57639 2011-02-19  Bruno Haible  <bruno@clisp.org>
57641         stdint: Update documentation.
57642         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
57644 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
57646         stdint: omit redundant check for wchar.h
57647         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
57648         always tests whether wchar.h exists, so remove the now-redundant test.
57650 2011-02-18  Bruno Haible  <bruno@clisp.org>
57652         stdint: Cut dependency to module 'wchar'.
57653         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
57654         include the necessary prerequisites.
57655         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
57656         * modules/stdint (Depends-on): Remove wchar.
57657         (Makefile.am): Substitute HAVE_WCHAR_H.
57658         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
57660 2011-02-18  Eric Blake  <eblake@redhat.com>
57662         longlong: skip, rather than fail, on cross-compilation
57663         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
57664         when cross-compiling; regression from 2011-02-16.
57666 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57668         * NEWS: Mention 2011-02-08 change to stdlib.
57670 2011-02-17  Bruno Haible  <bruno@clisp.org>
57672         getloadavg: Add comments about platforms.
57673         * m4/getloadavg.m4: Add comment.
57674         * lib/getloadavg.c: Likewise.
57676 2011-02-17  Bruno Haible  <bruno@clisp.org>
57678         getloadavg: Fix link error on Solaris 2.6.
57679         * modules/getloadavg (Link): New section.
57680         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
57681         linking test-getloadavg.
57682         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
57683         getloadavg.
57685 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57687         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
57688         It was 'int', but this doesn't match the IRIX 6.5 manual.
57689         Suggested by Bruno Haible in
57690         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
57692 2011-02-17  Bruno Haible  <bruno@clisp.org>
57694         havelib: Fix comments.
57695         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
57696         change.
57698 2011-02-17  Bruno Haible  <bruno@clisp.org>
57700         havelib: Update config.rpath.
57701         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
57703 2011-02-17  Bruno Haible  <bruno@clisp.org>
57705         getloadavg test: Add some plausibility checks.
57706         * tests/test-getloadavg.c (check_avg): Print a warning when the value
57707         is improbable.
57709 2011-02-16  Eric Blake  <eblake@redhat.com>
57711         maintainer-makefile: make syntax-check a no-op from tarballs
57712         * top/maint.mk (no-vc-detected): New rule.
57713         (local-checks-available): Use it to avoid hanging if someone tries
57714         'make syntax-check' from a tarball.  Also append to any non-syntax
57715         checks already defined in cfg.mk.
57717 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
57719         longlong: tune, particularly for common case of c99
57721         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
57722         or running anything if c99, or if unsigned long long int does not
57723         work.  In either case, we know the answer without further tests.
57724         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
57725         it at most once, and use its results for both long long int and
57726         unsigned long long int.  This is more likely to be efficient in
57727         the common case where the program wants to check for both long
57728         long int and unsigned long long int.
57729         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
57730         since the answer is already known.
57732 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
57734         getloadavg: set errno
57735         * lib/getloadavg.c: Set errno when returning -1.  If no other
57736         error number looks appropriate, set it to ENOSYS if the getloadavg
57737         looks like it can't possibly ever work, ENOTSUP otherwise.
57738         Suggested by Bruno Haible in
57739         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
57741         getloadavg: trim unused parts and speed up 'configure'
57742         * NEWS: Document this.
57743         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
57744         always compiled if getloadavg is absent.
57745         Move test code to ...
57746         * tests/test-getloadavg.c: New file, containing previous
57747         contents of test from lib/getloadavg.c.  It also contains
57748         suggestions by Bruno Haible in
57749         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
57750         * modules/getloadavg-tests: New file.
57751         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
57752         Do tests in the same order as they're needed for getloadavg.c.
57753         Omit setgid-related tests that generate symbols KMEM_GROUP,
57754         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
57755         Do only the tests that are needed to see whether the system has
57756         getloadavg, moving the other tests into ...
57757         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
57758         NLIST_NAME_UNION; nobody should be using it.  Do not define
57759         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
57760         relevant, as the user of this module shouldn't care how getloadavg
57761         is implemented.
57763         getloadavg: omit unused var
57764         * lib/getloadavg.c (getloadavg): Omit unused local variable.
57766 2011-02-15  Jim Meyering  <meyering@redhat.com>
57768         doc: update users.txt
57769         * users.txt: Update iwhd's URL.
57771 2011-02-13  Bruno Haible  <bruno@clisp.org>
57773         Consistent macro naming for macros that use GCC __attribute__.
57774         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
57775         _ATTRIBUTE_NONNULL_.
57776         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
57777         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
57778         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
57779         ATTRIBUTE_DEPRECATED.
57780         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
57781         ATTRIBUTE_NORETURN.
57782         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57783         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57784         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57785         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57786         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
57787         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
57788         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
57789         ATTRIBUTE_SENTINEL.
57790         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
57791         ATTRIBUTE_RETURN_CHECK.
57792         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
57793         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
57794         ATTRIBUTE_NORETURN.
57795         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
57796         Reported by Paul Eggert.
57798 2011-02-13  Bruno Haible  <bruno@clisp.org>
57800         Don't interfere with a program's definition of __attribute__.
57801         * lib/argp.h (__attribute__): Remove definition.
57802         (_GL_ATTRIBUTE_FORMAT): New macro.
57803         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
57804         * lib/argp-fmtstream.h (__attribute__): Remove definition.
57805         (_GL_ATTRIBUTE_FORMAT): New macro.
57806         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
57807         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
57808         GCC 3 or newer.
57809         * lib/error.h (__attribute__): Remove definition.
57810         (_GL_ATTRIBUTE_FORMAT): New macro.
57811         (error, error_at_line): Use it.
57812         * lib/hash.h (__attribute__): Remove definition.
57813         (ATTRIBUTE_WUR): Update definition. Define always.
57814         * lib/openat.h (__attribute__): Remove definition.
57815         (ATTRIBUTE_NORETURN): Update definition. Define always.
57816         * lib/sigpipe-die.h (__attribute__): Remove definition.
57817         (ATTRIBUTE_NORETURN): Update definition. Define always.
57818         * lib/vasnprintf.h (__attribute__): Remove definition.
57819         (_GL_ATTRIBUTE_FORMAT): New macro.
57820         (asnprintf, vasnprintf): Use it.
57821         * lib/xalloc.h (__attribute__): Remove definition.
57822         (ATTRIBUTE_NORETURN): Update definition. Define always.
57823         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
57824         * lib/xmemdup0.h (__attribute__): Remove definition.
57825         (ATTRIBUTE_NORETURN): Update definition. Define always.
57826         * lib/xprintf.h (__attribute__): Remove definition.
57827         (_GL_ATTRIBUTE_FORMAT): New macro.
57828         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
57829         * lib/xstrtol.h (__attribute__): Remove definition.
57830         (ATTRIBUTE_NORETURN): Update definition. Define always.
57831         * lib/xvasprintf.h (__attribute__): Remove definition.
57832         (_GL_ATTRIBUTE_FORMAT): New macro.
57833         (xasprintf, xvasprintf): Use it.
57834         * tests/test-argmatch.c (__attribute__): Remove definition.
57835         (ATTRIBUTE_NORETURN): Update definition. Define always.
57836         * tests/test-exclude.c (__attribute__): Remove definition.
57837         (ATTRIBUTE_NORETURN): Update definition. Define always.
57838         Reported by Paul Eggert.
57840 2011-02-13  Bruno Haible  <bruno@clisp.org>
57842         mbrtowc: Add more tests for native Windows platforms.
57843         * tests/test-mbrtowc-w32-1.sh: New file.
57844         * tests/test-mbrtowc-w32-2.sh: New file.
57845         * tests/test-mbrtowc-w32-3.sh: New file.
57846         * tests/test-mbrtowc-w32-4.sh: New file.
57847         * tests/test-mbrtowc-w32-5.sh: New file.
57848         * tests/test-mbrtowc-w32.c: New file.
57849         * modules/mbrtowc-tests (Files): Add them.
57850         (Makefile.am): Arrange to run these tests.
57851         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
57852         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
57854 2011-02-13  Bruno Haible  <bruno@clisp.org>
57856         mbrtowc: Work around native Windows bug.
57857         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
57858         guess when no suitable locale for testing was found.
57859         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
57861 2011-02-13  Bruno Haible  <bruno@clisp.org>
57863         mbsinit: Work around mingw bug.
57864         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
57865         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
57866         Windows.
57867         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
57869 2011-02-13  Bruno Haible  <bruno@clisp.org>
57871         mbsinit: Don't crash for a NULL argument.
57872         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
57873         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
57875 2011-02-13  Bruno Haible  <bruno@clisp.org>
57877         Don't interfere with a program's definition of __attribute__.
57878         * lib/stdio.in.h (__attribute__): Remove definition.
57879         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
57880         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
57881         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
57882         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
57883         * lib/string.in.h (__attribute__): Remove definition.
57884         Reported by Paul Eggert.
57886 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57888         stdlib: don't get in the way of non-GCC __attribute__
57889         See thread starting at
57890         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
57891         Revert previous stdlib change, installing the following instead:
57892         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
57893         to get in the way of a non-GCC compiler that supports __attribute__.
57894         (_GL_ATTRIBUTE_RETURN): New macro.
57895         (_Exit): Use it instead of __attribute__.
57897 2011-02-12  Bruno Haible  <bruno@clisp.org>
57899         quotearg test: Avoid test failure on mingw.
57900         * tests/test-quotearg.sh: Convert the locale identifier from native
57901         Windows syntax to Unix syntax.
57903 2011-02-12  Bruno Haible  <bruno@clisp.org>
57905         setlocale: Prefer gnulib's override over libintl's override.
57906         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
57907         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
57908         GNULIB_defined_setlocale is set.
57910 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57912         stdlib: support non-GCC __attribute__
57914         Fix a serious and tricky problem encountered when attempting to
57915         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
57916         5.5, but it crashed due to memory corruption on Solaris 10 with
57917         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
57918         bits that are otherwise zero.  This tagging is optional inside
57919         Emacs but is preferred and is used when __attribute__ ((__aligned
57920         (8))) works, as it does with both recent-enough GCC and with Sun C
57921         5.11.  However, Sun C 5.11 is not GCC and does not #define
57922         __GNUC__ and __GNUC_MINOR__.
57924         When I added the getloadavg module to Emacs, it brought in
57925         stdlib.in.h, which contained this fragment:
57927            #ifndef __attribute__
57928            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
57929            #  define __attribute__(Spec)   /* empty */
57930            # endif
57931            #endif
57933         When files that include <stdlib.h> were compiled with Sun C 5.11,
57934         the above code disabled __attribute__ ((__aligned (8))), which
57935         caused variables to not be properly aligned, which eventually led
57936         to the pointer corruption mentioned above.  (This was a bit hard
57937         to diagnose, unfortunately.)
57939         Several "#define __attribute__(X) /* empty */" code snippets need
57940         to be eradicated from Gnulib to work with non-GCC compilers that
57941         support __attribute__.  The Autoconf way to do this is to test for
57942         each kind of attribute that we want support for, and selectively
57943         enable that in source code.
57945         Fix this problem just for stdlib.h, by adding a test for the
57946         __noreturn__ attribute, and change stdlib.in.h to use that test
57947         when needed.  This technique can be easily generalized to the
57948         other *.in.h files and attributes, and a similar technique can be
57949         used for *.h and *.c files.  This patch is enough to solve the
57950         problem for Emacs + getloadavg, and I thought I'd publish it for
57951         feedback before undertaking further, similar fixes in other
57952         modules.
57954         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
57955         because it's not needed for stdlib.h.  It merely substitutes the
57956         value directly into stdlib.h.  We may well need to #define it, or
57957         similar symbols, for other modules, but it's nice to also have an
57958         option to not #define it for applications like Emacs that do not
57959         need it.
57961         * lib/stdlib.in.h (__attribute__): Do not #define.
57962         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
57963         be defined only if the _Exit module is also used.
57964         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
57965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
57966         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
57967         platforms.
57968         * modules/_Exit (Files): Add m4/attribute.m4.
57969         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
57970         * m4/attribute.m4: New file.
57972 2011-02-12  Bruno Haible  <bruno@clisp.org>
57974         wcsrtombs: Work around bug on native Windows.
57975         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
57976         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
57977         instead of len.
57978         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
57980 2011-02-12  Bruno Haible  <bruno@clisp.org>
57982         mbsrtowcs: Work around bug on native Windows.
57983         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
57984         against mingw bug.
57985         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
57987 2011-02-12  Bruno Haible  <bruno@clisp.org>
57989         Avoid setlocale bugs in tests.
57990         * modules/btowc (Dependencies): Add setlocale.
57991         * modules/c-strcase (Dependencies): Likewise.
57992         * modules/mbmemcasecmp (Dependencies): Likewise.
57993         * modules/mbmemcasecoll (Dependencies): Likewise.
57994         * modules/mbrtowc (Dependencies): Likewise.
57995         * modules/mbscasecmp (Dependencies): Likewise.
57996         * modules/mbscasestr (Dependencies): Likewise.
57997         * modules/mbschr (Dependencies): Likewise.
57998         * modules/mbscspn (Dependencies): Likewise.
57999         * modules/mbsinit (Dependencies): Likewise.
58000         * modules/mbsncasecmp (Dependencies): Likewise.
58001         * modules/mbsnrtowcs (Dependencies): Likewise.
58002         * modules/mbspbrk (Dependencies): Likewise.
58003         * modules/mbspcasecmp (Dependencies): Likewise.
58004         * modules/mbsrchr (Dependencies): Likewise.
58005         * modules/mbsrtowcs (Dependencies): Likewise.
58006         * modules/mbsspn (Dependencies): Likewise.
58007         * modules/mbsstr (Dependencies): Likewise.
58008         * modules/nl_langinfo (Dependencies): Likewise.
58009         * modules/quotearg (Dependencies): Likewise.
58010         * modules/unicase/locale-language (Dependencies): Likewise.
58011         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
58012         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
58013         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
58014         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
58015         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
58016         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
58017         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
58018         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
58019         * modules/vasnprintf-posix (Dependencies): Likewise.
58020         * modules/wcrtomb (Dependencies): Likewise.
58021         * modules/wcsnrtombs (Dependencies): Likewise.
58022         * modules/wcsrtombs (Dependencies): Likewise.
58024 2011-02-12  Bruno Haible  <bruno@clisp.org>
58026         setlocale: Workaround native Windows bug.
58027         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
58028         succeeds but sets LC_CTYPE to "C", report a failure.
58029         * tests/test-setlocale2.sh: New file.
58030         * tests/test-setlocale2.c: New file.
58031         * modules/setlocale-tests (Files): Add the new files.
58032         (Makefile.am): Enable test-setlocale2.sh test.
58033         * doc/posix-functions/setlocale.texi: Mention workaround.
58035 2011-02-11  Bruno Haible  <bruno@clisp.org>
58037         Tests for module 'setlocale'.
58038         * modules/setlocale-tests: New file.
58039         * tests/test-setlocale1.sh: New file.
58040         * tests/test-setlocale1.c: New file.
58042         New module 'setlocale'.
58043         * lib/locale.in.h (setlocale): New declaration.
58044         * lib/setlocale.c: New file, based on
58045         gettext/gettext-runtime/intl/setlocale.c.
58046         * m4/setlocale.m4: New file.
58047         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
58048         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
58049         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
58050         REPLACE_SETLOCALE.
58051         * modules/setlocale: New file.
58052         * tests/test-locale-c++.cc: Test the declaration of setlocale.
58053         * doc/posix-functions/setlocale.texi: Mention the new module.
58055 2011-02-11  Bruno Haible  <bruno@clisp.org>
58057         Prepare for locale dependent tests on mingw.
58058         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
58059         because it has the wrong locale encoding.
58060         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
58061         French_France.1252 instead of "fr".
58062         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
58063         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
58064         because it has the wrong locale encoding.
58065         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
58066         native Windows, try Turkish_Turkey.65001.
58067         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
58068         Chinese_China.54936.
58070         Prepare for locale dependent tests on mingw.
58071         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
58072         differently.
58073         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
58074         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
58075         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58076         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58078 2011-02-11  Eric Blake  <eblake@redhat.com>
58080         strptime: avoid compiler warnings
58081         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
58082         compiler warnings about dead code.
58083         Reported by Daniel P. Berrange.
58085 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
58087         doc: update users.txt
58088         * users.txt: Add rcs.
58090 2011-02-10  John W. Eaton  <jwe@gnu.org>
58092         doc: update users.txt
58093         * users.txt: Add octave.
58095 2011-02-10  Jim Meyering  <meyering@redhat.com>
58097         doc: update users.txt
58098         * users.txt: Add iwhd.
58100 2011-02-09  Bruno Haible  <bruno@clisp.org>
58102         gnulib-tool: Make copyright notice adjustment more robust.
58103         * gnulib-tool (func_import): In sed_transform_main_lib_file,
58104         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
58105         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
58106         License".
58107         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
58109 2011-02-06  Bruno Haible  <bruno@clisp.org>
58111         New module 'towctrans'.
58112         * modules/towctrans: New file.
58113         * lib/wctype.in.h (towctrans): New declaration.
58114         * lib/towctrans.c: New file.
58115         * lib/towctrans-impl.h: New file.
58116         * m4/towctrans.m4: New file.
58117         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
58118         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
58119         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
58120         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
58121         * doc/posix-functions/towctrans.texi: Mention the new module.
58123 2011-02-06  Bruno Haible  <bruno@clisp.org>
58125         New module 'wctrans'.
58126         * modules/wctrans: New file.
58127         * lib/wctype.in.h (wctrans): New declaration.
58128         * lib/wctrans.c: New file.
58129         * lib/wctrans-impl.h: New file.
58130         * m4/wctrans.m4: New file.
58131         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
58132         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
58133         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
58134         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
58135         * doc/posix-functions/wctrans.texi: Mention the new module.
58137 2011-02-06  Bruno Haible  <bruno@clisp.org>
58139         New module 'iswctype'.
58140         * modules/iswctype: New file.
58141         * lib/wctype.in.h (iswctype): New declaration.
58142         * lib/iswctype.c: New file.
58143         * lib/iswctype-impl.h: New file.
58144         * m4/iswctype.m4: New file.
58145         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
58146         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
58147         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
58148         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
58149         * doc/posix-functions/iswctype.texi: Mention the new module and the
58150         HP-UX 11.00 problem.
58152 2011-02-06  Bruno Haible  <bruno@clisp.org>
58154         New module 'wctype'.
58155         * modules/wctype: Change to represent the wctype() substitute.
58156         * lib/wctype.in.h (wctype): New declaration.
58157         * lib/wctype.c: New file.
58158         * lib/wctype-impl.h: New file.
58159         * m4/wctype.m4: New file.
58160         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
58161         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
58162         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
58163         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
58164         * doc/posix-functions/wctype.texi: Mention the new module and the
58165         HP-UX 11.00 problem.
58167 2011-02-06  Bruno Haible  <bruno@clisp.org>
58169         wctype-h: Ensure wctype_t and wctrans_t are defined.
58170         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
58171         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58172         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58173         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
58174         HAVE_WCTRANS_T.
58175         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
58177 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
58179         flock: fix license typo
58181         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
58182         omitted.
58184 2011-02-08  Bruno Haible  <bruno@clisp.org>
58186         Split large sed scripts, for HP-UX sed.
58187         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
58188         to avoid HP-UX limit of 99 commands, in the near future.
58189         * modules/stdlib (Makefile.am): Likewise.
58190         * modules/unistd (Makefile.am): Likewise.
58191         * modules/wchar (Makefile.am): Likewise.
58192         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58193         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
58194         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
58196 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58197             Bruno Haible  <bruno@clisp.org>
58199         stdlib: improve random_r modularization
58200         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
58201         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
58202         you also need the random_r module to get this material right.
58203         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
58204         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
58205         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
58207 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58209         stdlib: don't depend on stdint
58210         * lib/stdlib.in.h: Don't include <stdint.h> merely because
58211         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
58212         be independent of whether stdint.h is needed.
58213         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
58214         here, instead of ...
58215         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
58216         struct random_data should be using the random_r module, not just
58217         the stdlib module (which wouldn't make sense: what package needs
58218         just struct random_data without also needing random_r?).
58219         * modules/stdlib (Depends-on): Remove stdint.
58221         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
58222         See the thread rooted at
58223         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
58224         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
58225         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
58226         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
58227         __VMS)); previously it was always included (via fcntl--.h).
58228         (getloadavg): Do not use c_strtod.  Instead, approximate it by
58229         hand; this is good enough for load averages.  Also, do not use
58230         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
58231         flags directly if available and don't bother otherwise.  (Packages
58232         that need the extra reliability should use the modules that define
58233         these flags on older platforms that lack them.)
58234         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
58235         fcntl-safer.
58237 2011-02-08  Jim Meyering  <meyering@redhat.com>
58239         di-set.h, ino-map.h: add multiple-inclusion guard
58240         Technically, the guard is required only for ino-map.h, due to its
58241         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
58242         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
58243         * lib/ino-map.h: Likewise.
58245 2011-02-06  Bruno Haible  <bruno@clisp.org>
58247         iswblank: Ensure declaration on glibc systems.
58248         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
58249         * modules/iswblank (Dependencies): Add 'extensions'.
58250         * doc/posix-functions/iswblank.texi: Document the glibc problem.
58252 2011-02-06  Bruno Haible  <bruno@clisp.org>
58254         New module 'iswblank'.
58255         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
58256         * modules/iswblank: New file.
58257         * modules/wctype-h (Files): Remove lib/iswblank.c.
58258         (Makefile.am): Substitute GNULIB_ISWBLANK.
58259         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
58260         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
58261         (gl_WCTYPE_H_DEFAULTS): New macro.
58262         (gl_WCTYPE_H): Require it. Remove iswblank related code.
58263         * modules/iswblank-tests: New file.
58264         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
58265         * tests/test-wctype-h.c (main): Remove iswblank tests.
58266         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
58267         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
58268         of 'wctype-h'.
58269         * NEWS: Mention the change.
58270         * modules/mbchar (Depends-on): Add iswblank.
58272 2011-02-08  Bruno Haible  <bruno@clisp.org>
58274         di-set tests: Refactor.
58275         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
58276         unnecessary includes.
58277         (ASSERT): Remove macro.
58278         (main): Make C90 compliant by avoiding variable declaration after
58279         statement.
58280         * modules/di-set-tests (Files): Add tests/macros.h.
58282 2011-02-08  Bruno Haible  <bruno@clisp.org>
58284         ino-map tests: Refactor.
58285         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
58286         unnecessary includes.
58287         (ASSERT): Remove macro.
58288         (main): Make C90 compliant by avoiding variable declaration after
58289         statement.
58290         * modules/ino-map-tests (Files): Add tests/macros.h.
58292 2011-02-08  Jim Meyering  <meyering@redhat.com>
58294         di-set: add "const" to a cast
58295         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
58296         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
58298 2011-02-06  Bruno Haible  <bruno@clisp.org>
58300         Rename module 'wctype' to 'wctype-h'.
58301         * modules/wctype-h: Renamed from modules/wctype.
58302         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
58303         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
58304         (Files, Depends-on, Makefile.am): Update.
58305         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
58306         (Files, Makefile.am): Update.
58307         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
58308         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
58309         * doc/posix-headers/wctype.texi: Update.
58310         * doc/posix-functions/iswalnum.texi: Update.
58311         * doc/posix-functions/iswalpha.texi: Update.
58312         * doc/posix-functions/iswblank.texi: Update.
58313         * doc/posix-functions/iswcntrl.texi: Update.
58314         * doc/posix-functions/iswdigit.texi: Update.
58315         * doc/posix-functions/iswgraph.texi: Update.
58316         * doc/posix-functions/iswlower.texi: Update.
58317         * doc/posix-functions/iswprint.texi: Update.
58318         * doc/posix-functions/iswpunct.texi: Update.
58319         * doc/posix-functions/iswspace.texi: Update.
58320         * doc/posix-functions/iswupper.texi: Update.
58321         * doc/posix-functions/iswxdigit.texi: Update.
58322         * doc/posix-functions/towlower.texi: Update.
58323         * doc/posix-functions/towupper.texi: Update.
58324         * NEWS: Mention the change.
58325         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
58326         * modules/mbchar (Dependencies): Likewise.
58327         * modules/mbswidth (Dependencies): Likewise.
58328         * modules/quotearg (Dependencies): Likewise.
58329         * modules/regex (Dependencies): Likewise.
58330         * modules/wcscasecmp (Dependencies): Likewise.
58331         * modules/wcsncasecmp (Dependencies): Likewise.
58332         * modules/wcwidth (Dependencies): Likewise.
58334 2011-02-06  Bruno Haible  <bruno@clisp.org>
58336         New module 'wcswidth'.
58337         * modules/wcswidth: New file.
58338         * lib/wchar.in.h (wcswidth): New declaration.
58339         * lib/wcswidth.c: New file.
58340         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
58341         * m4/wcswidth.m4: New file.
58342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
58343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
58344         REPLACE_WCSWIDTH.
58345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
58346         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
58347         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
58348         * doc/posix-functions/wcswidth.texi: Mention the new module.
58350 2011-02-06  Bruno Haible  <bruno@clisp.org>
58352         New module 'wcstok'.
58353         * modules/wcstok: New file.
58354         * lib/wchar.in.h (wcstok): New declaration.
58355         * lib/wcstok.c: New file.
58356         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
58357         * m4/wcstok.m4: New file.
58358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
58359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
58360         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
58361         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
58362         * doc/posix-functions/wcstok.texi: Mention the new module.
58364 2011-02-06  Bruno Haible  <bruno@clisp.org>
58366         New module 'wcsstr'.
58367         * modules/wcsstr: New file.
58368         * lib/wchar.in.h (wcsstr): New declaration.
58369         * lib/wcsstr.c: New file.
58370         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
58371         * m4/wcsstr.m4: New file.
58372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
58373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
58374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
58375         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
58376         * doc/posix-functions/wcsstr.texi: Mention the new module.
58378 2011-02-06  Bruno Haible  <bruno@clisp.org>
58380         New module 'wcspbrk'.
58381         * modules/wcspbrk: New file.
58382         * lib/wchar.in.h (wcspbrk): New declaration.
58383         * lib/wcspbrk.c: New file.
58384         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
58385         * m4/wcspbrk.m4: New file.
58386         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
58387         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
58388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
58389         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
58390         * doc/posix-functions/wcspbrk.texi: Mention the new module.
58392 2011-02-06  Bruno Haible  <bruno@clisp.org>
58394         New module 'wcsspn'.
58395         * modules/wcsspn: New file.
58396         * lib/wchar.in.h (wcsspn): New declaration.
58397         * lib/wcsspn.c: New file.
58398         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
58399         * m4/wcsspn.m4: New file.
58400         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
58401         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
58402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
58403         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
58404         * doc/posix-functions/wcsspn.texi: Mention the new module.
58406 2011-02-06  Bruno Haible  <bruno@clisp.org>
58408         New module 'wcscspn'.
58409         * modules/wcscspn: New file.
58410         * lib/wchar.in.h (wcscspn): New declaration.
58411         * lib/wcscspn.c: New file.
58412         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
58413         * m4/wcscspn.m4: New file.
58414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
58415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
58416         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
58417         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
58418         * doc/posix-functions/wcscspn.texi: Mention the new module.
58420 2011-02-06  Bruno Haible  <bruno@clisp.org>
58422         New module 'wcsrchr'.
58423         * modules/wcsrchr: New file.
58424         * lib/wchar.in.h (wcsrchr): New declaration.
58425         * lib/wcsrchr.c: New file.
58426         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
58427         * m4/wcsrchr.m4: New file.
58428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
58429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
58430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
58431         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
58432         * doc/posix-functions/wcsrchr.texi: Mention the new module.
58434 2011-02-06  Bruno Haible  <bruno@clisp.org>
58436         New module 'wcschr'.
58437         * modules/wcschr: New file.
58438         * lib/wchar.in.h (wcschr): New declaration.
58439         * lib/wcschr.c: New file.
58440         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
58441         * m4/wcschr.m4: New file.
58442         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
58443         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
58444         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
58445         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
58446         * doc/posix-functions/wcschr.texi: Mention the new module.
58448 2011-02-06  Bruno Haible  <bruno@clisp.org>
58450         New module 'wcsdup'.
58451         * modules/wcsdup: New file.
58452         * lib/wchar.in.h (wcsdup): New declaration.
58453         * lib/wcsdup.c: New file.
58454         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
58455         * m4/wcsdup.m4: New file.
58456         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
58457         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
58458         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
58459         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
58460         * doc/posix-functions/wcsdup.texi: Mention the new module.
58462 2011-02-06  Bruno Haible  <bruno@clisp.org>
58464         New module 'wcsxfrm'.
58465         * modules/wcsxfrm: New file.
58466         * lib/wchar.in.h (wcsxfrm): New declaration.
58467         * lib/wcsxfrm.c: New file.
58468         * lib/wcsxfrm-impl.h: New file.
58469         * m4/wcsxfrm.m4: New file.
58470         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
58471         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
58472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
58473         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
58474         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
58476 2011-02-06  Bruno Haible  <bruno@clisp.org>
58478         New module 'wcscoll'.
58479         * modules/wcscoll: New file.
58480         * lib/wchar.in.h (wcscoll): New declaration.
58481         * lib/wcscoll.c: New file.
58482         * lib/wcscoll-impl.h: New file.
58483         * m4/wcscoll.m4: New file.
58484         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
58485         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
58486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
58487         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
58488         * doc/posix-functions/wcscoll.texi: Mention the new module.
58490 2011-02-06  Bruno Haible  <bruno@clisp.org>
58492         New module 'wcsncasecmp'.
58493         * modules/wcsncasecmp: New file.
58494         * lib/wchar.in.h (wcsncasecmp): New declaration.
58495         * lib/wcsncasecmp.c: New file.
58496         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
58497         * m4/wcsncasecmp.m4: New file.
58498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
58499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
58500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
58501         HAVE_WCSNCASECMP.
58502         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
58503         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
58505 2011-02-06  Bruno Haible  <bruno@clisp.org>
58507         New module 'wcscasecmp'.
58508         * modules/wcscasecmp: New file.
58509         * lib/wchar.in.h (wcscasecmp): New declaration.
58510         * lib/wcscasecmp.c: New file.
58511         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
58512         * m4/wcscasecmp.m4: New file.
58513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
58514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
58515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
58516         HAVE_WCSCASECMP.
58517         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
58518         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
58520 2011-02-05  Bruno Haible  <bruno@clisp.org>
58522         New module 'wcsncmp'.
58523         * modules/wcsncmp: New file.
58524         * lib/wchar.in.h (wcsncmp): New declaration.
58525         * lib/wcsncmp.c: New file.
58526         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
58527         * m4/wcsncmp.m4: New file.
58528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
58529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
58530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
58531         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
58532         * doc/posix-functions/wcsncmp.texi: Mention the new module.
58534 2011-02-05  Bruno Haible  <bruno@clisp.org>
58536         New module 'wcscmp'.
58537         * modules/wcscmp: New file.
58538         * lib/wchar.in.h (wcscmp): New declaration.
58539         * lib/wcscmp.c: New file.
58540         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
58541         * m4/wcscmp.m4: New file.
58542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
58543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
58544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
58545         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
58546         * doc/posix-functions/wcscmp.texi: Mention the new module.
58548 2011-02-05  Bruno Haible  <bruno@clisp.org>
58550         New module 'wcsncat'.
58551         * modules/wcsncat: New file.
58552         * lib/wchar.in.h (wcsncat): New declaration.
58553         * lib/wcsncat.c: New file.
58554         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
58555         * m4/wcsncat.m4: New file.
58556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
58557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
58558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
58559         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
58560         * doc/posix-functions/wcsncat.texi: Mention the new module.
58562 2011-02-05  Bruno Haible  <bruno@clisp.org>
58564         New module 'wcscat'.
58565         * modules/wcscat: New file.
58566         * lib/wchar.in.h (wcscat): New declaration.
58567         * lib/wcscat.c: New file.
58568         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
58569         * m4/wcscat.m4: New file.
58570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
58571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
58572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
58573         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
58574         * doc/posix-functions/wcscat.texi: Mention the new module.
58576 2011-02-05  Bruno Haible  <bruno@clisp.org>
58578         New module 'wcpncpy'.
58579         * modules/wcpncpy: New file.
58580         * lib/wchar.in.h (wcpncpy): New declaration.
58581         * lib/wcpncpy.c: New file.
58582         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
58583         * m4/wcpncpy.m4: New file.
58584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
58585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
58586         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
58587         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
58588         * doc/posix-functions/wcpncpy.texi: Mention the new module.
58590 2011-02-05  Bruno Haible  <bruno@clisp.org>
58592         New module 'wcsncpy'.
58593         * modules/wcsncpy: New file.
58594         * lib/wchar.in.h (wcsncpy): New declaration.
58595         * lib/wcsncpy.c: New file.
58596         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
58597         * m4/wcsncpy.m4: New file.
58598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
58599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
58600         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
58601         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
58602         * doc/posix-functions/wcsncpy.texi: Mention the new module.
58604 2011-02-05  Bruno Haible  <bruno@clisp.org>
58606         New module 'wcpcpy'.
58607         * modules/wcpcpy: New file.
58608         * lib/wchar.in.h (wcpcpy): New declaration.
58609         * lib/wcpcpy.c: New file.
58610         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
58611         * m4/wcpcpy.m4: New file.
58612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
58613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
58614         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
58615         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
58616         * doc/posix-functions/wcpcpy.texi: Mention the new module.
58618 2011-02-05  Bruno Haible  <bruno@clisp.org>
58620         New module 'wcscpy'.
58621         * modules/wcscpy: New file.
58622         * lib/wchar.in.h (wcscpy): New declaration.
58623         * lib/wcscpy.c: New file.
58624         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
58625         * m4/wcscpy.m4: New file.
58626         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
58627         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
58628         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
58629         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
58630         * doc/posix-functions/wcscpy.texi: Mention the new module.
58632 2011-02-05  Bruno Haible  <bruno@clisp.org>
58634         New module 'wcsnlen'.
58635         * modules/wcsnlen: New file.
58636         * lib/wchar.in.h (wcsnlen): New declaration.
58637         * lib/wcsnlen.c: New file.
58638         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
58639         * m4/wcsnlen.m4: New file.
58640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
58641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
58642         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
58643         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
58644         * doc/posix-functions/wcsnlen.texi: Mention the new module.
58646 2011-02-05  Bruno Haible  <bruno@clisp.org>
58648         New module 'wcslen'.
58649         * modules/wcslen: New file.
58650         * lib/wchar.in.h (wcslen): New declaration.
58651         * lib/wcslen.c: New file.
58652         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
58653         * m4/wcslen.m4: New file.
58654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
58655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
58656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
58657         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
58658         * doc/posix-functions/wcslen.texi: Mention the new module.
58660 2011-02-05  Bruno Haible  <bruno@clisp.org>
58662         New module 'wmemset'.
58663         * modules/wmemset: New file.
58664         * lib/wchar.in.h (wmemset): New declaration.
58665         * lib/wmemset.c: New file.
58666         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
58667         * m4/wmemset.m4: New file.
58668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
58669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
58670         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
58671         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
58672         * doc/posix-functions/wmemset.texi: Mention the new module.
58674 2011-02-05  Bruno Haible  <bruno@clisp.org>
58676         New module 'wmemmove'.
58677         * modules/wmemmove: New file.
58678         * lib/wchar.in.h (wmemmove): New declaration.
58679         * lib/wmemmove.c: New file.
58680         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
58681         * m4/wmemmove.m4: New file.
58682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
58683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
58684         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
58685         HAVE_WMEMMOVE.
58686         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
58687         * doc/posix-functions/wmemmove.texi: Mention the new module.
58689 2011-02-05  Bruno Haible  <bruno@clisp.org>
58691         New module 'wmemcpy'.
58692         * modules/wmemcpy: New file.
58693         * lib/wchar.in.h (wmemcpy): New declaration.
58694         * lib/wmemcpy.c: New file.
58695         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
58696         * m4/wmemcpy.m4: New file.
58697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
58698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
58699         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
58700         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
58701         * doc/posix-functions/wmemcpy.texi: Mention the new module.
58703 2011-02-05  Bruno Haible  <bruno@clisp.org>
58705         New module 'wmemcmp'.
58706         * modules/wmemcmp: New file.
58707         * lib/wchar.in.h (wmemcmp): New declaration.
58708         * lib/wmemcmp.c: New file.
58709         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
58710         * m4/wmemcmp.m4: New file.
58711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
58712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
58713         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
58714         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
58715         * doc/posix-functions/wmemcmp.texi: Mention the new module.
58717 2011-02-07  Jim Meyering  <meyering@redhat.com>
58719         di-set, ino-map: new modules, from coreutils
58720         * lib/di-set.c: New file.
58721         * lib/di-set.h: Likewise.
58722         * lib/ino-map.c: Likewise.
58723         * lib/ino-map.h: Likewise.
58724         * modules/di-set: Likewise.
58725         * modules/di-set-tests: Likewise.
58726         * modules/ino-map: Likewise.
58727         * modules/ino-map-tests: Likewise.
58728         * tests/test-di-set.c: Likewise.
58729         * tests/test-ino-map.c: Likewise.
58731 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
58733         getloadavg: merge minor changes from Emacs
58735         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
58736         (getloadavg): Use memset, not bzero.
58738         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
58739         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
58740         clash (bug#86).
58742 2010-11-14  Bruno Haible  <bruno@clisp.org>
58744         Allow multiple gnulib generated replacements to coexist.
58745         * lib/getopt.in.h (struct option): Avoid identical redefinition.
58746         * lib/inttypes.in.h (imaxdiv_t): Likewise.
58747         * lib/langinfo.in.h (nl_item): Likewise.
58748         * lib/math.in.h (_NaN, NAN): Likewise.
58749         * lib/netdb.in.h (struct addrinfo): Likewise.
58750         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
58751         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
58752         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
58753         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
58754         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
58755         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
58756         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
58757         pthread_mutexattr_init, pthread_mutexattr_settype,
58758         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
58759         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
58760         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
58761         pthread_spin_trylock, pthread_spin_unlock): Likewise.
58762         * lib/sched.in.h (struct sched_param): Likewise.
58763         * lib/se-selinux.in.h (security_class_t, security_context_t,
58764         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
58765         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
58766         lsetfilecon, fsetfilecon, security_check_context,
58767         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
58768         Likewise.
58769         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
58770         Likewise.
58771         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
58772         _gl_function_taking_int_returning_void_t, union sigval,
58773         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
58774         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
58775         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
58776         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
58777         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
58778         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
58779         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
58780         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
58781         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
58782         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
58783         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
58784         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
58785         socklen_t, rpl_fd_isset): Likewise.
58786         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
58787         * lib/sys_time.in.h (struct timeval): Likewise.
58788         * lib/sys_times.in.h (struct tms): Likewise.
58789         * lib/sys_utsname.in.h (struct utsname):
58790         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
58791         * lib/unistd.in.h (getpagesize): Likewise.
58792         * lib/wchar.in.h (mbstate_t): Likewise.
58793         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58794         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
58795         towlower, towupper): Likewise.
58796         Reported by Sam Steingold <sds@gnu.org>.
58798 2011-02-05  Eric Blake  <eblake@redhat.com>
58800         unsetenv: work around Haiku issues
58801         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
58802         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
58804 2010-12-30  Bruce Korb  <bkorb@gnu.org>
58806         libposix: avoid calling error() within libposix
58807         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
58808         is defined.
58810 2011-02-05  Eric Blake  <eblake@redhat.com>
58812         strerror_r-posix: port to cygwin
58813         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
58814         implementation.
58815         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
58816         * tests/test-strerror_r.c (main): Fix test.
58817         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
58818         issue.
58820 2011-02-05  Bruno Haible  <bruno@clisp.org>
58822         New module 'wmemchr'.
58823         * modules/wmemchr: New file.
58824         * lib/wchar.in.h (wmemchr): New declaration.
58825         * lib/wmemchr.c: New file.
58826         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
58827         * m4/wmemchr.m4: New file.
58828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
58829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
58830         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
58831         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
58832         * doc/posix-functions/wmemchr.texi: Mention the new module.
58834 2011-02-04  Eric Blake  <eblake@redhat.com>
58836         fdopendir: detect FreeBSD bug
58837         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
58838         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
58840 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58842         stdbool: do not define HAVE_STDBOOL_H
58843         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
58844         AC_HEADER_STDBOOL.  All uses changed.  Do not define
58845         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
58846         imported from the latest Autoconf git.  It was motivated by Emacs,
58847         which uses gnulib but does not need HAVE_STDBOOL_H.
58849 2011-02-04  Bruno Haible  <bruno@clisp.org>
58851         wcsnrtombs: Prepare for new module wwcsnrtombs.
58852         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
58853         * lib/wcsnrtombs.c: Include it.
58854         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
58856         wcsrtombs: Prepare for new module wwcsrtombs.
58857         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
58858         * lib/wcsrtombs.c: Include it.
58859         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
58861         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
58862         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
58863         * lib/mbsnrtowcs.c: Include it.
58864         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
58866         mbsrtowcs: Prepare for new module mbsrtowwcs.
58867         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
58868         * lib/mbsrtowcs.c: Include it.
58869         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
58871 2011-02-04  Bruno Haible  <bruno@clisp.org>
58873         vasnprintf: Reduce use of malloc for small format strings.
58874         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
58875         (arguments): Add room for the first 7 arguments.
58876         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
58877         (char_directives, u8_directives, u16_directives, u32_directives): Add
58878         room for the first 7 directives.
58879         * lib/printf-parse.c: Include <string.h>.
58880         (PRINTF_PARSE): Change memory handling code so that it uses the first
58881         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
58882         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
58883         Reported by Pádraig Brady <P@draigbrady.com>.
58885 2011-01-31  Eric Blake  <eblake@redhat.com>
58887         dup2: work around Haiku bug
58888         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
58889         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
58890         * doc/posix-functions/dup2.texi (dup2): Document the bug.
58891         * tests/test-dup2.c (main): Enhance test.
58893 2011-01-31  Simon Josefsson  <simon@josefsson.org>
58895         doc: off_t is not available in eglibc 2.11.2 stdio.h.
58896         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
58897         declared by eglibc 2.11.2.
58898         * lib/stdio.in.h: Likewise.
58900 2011-01-31  Eric Blake  <eblake@redhat.com>
58902         ignore-value: add missing test dependency
58903         * tests/test-ignore-value.c: Revert previous change; stdio.h
58904         provides off_t.
58905         * modules/ignore-value-tests (Depends-on): Add missing dependency.
58907 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
58909         mktime: clarify long_int width checking
58910         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
58911         the top level, to make it clearer that the assumption about
58912         long_int width is being checked.  See
58913         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
58915 2011-01-30  Simon Josefsson  <simon@josefsson.org>
58917         ignore-value: Fix self-test.
58918         * tests/test-ignore-value.c: Include sys/types.h for off_t.
58920 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58922         TYPE_MAXIMUM: avoid theoretically undefined behavior
58923         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
58924         negative number, which the C Standard says has undefined behavior.
58925         In practice this is not a problem, but might as well do it by the book.
58926         Reported by Rich Felker and Eric Blake; see
58927         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
58928         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
58929         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58931         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
58932         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58933         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
58935         mktime: #undef mktime before #defining it
58936         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
58938         mktime: systematically normalize tm_isdst comparisons
58939         * lib/mktime.c (isdst_differ): New function.
58940         (__mktime_internal): Use it systematically for all isdst comparisons.
58941         This completes the fix for libc BZ #6723, and removes the need for
58942         normalizing tm_isdst.  See
58943         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
58944         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
58946         mktime: fix some integer overflow issues and sidestep the rest
58948         This was prompted by a bug report by Benjamin Lindner for MinGW
58949         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
58950         His bug is due to signed integer overflow (0 - INT_MIN), and I
58951         I scanned through mktime.c looking for other integer overflow
58952         problems, fixing all the bugs I found.
58954         Although the C Standard says the resulting code is still not safe
58955         in the presence of integer overflow, in practice it should be good
58956         enough for all real-world two's-complement implementations, except
58957         for debugging environments that deliberately trap on integer
58958         overflow (e.g., gcc -ftrapv).
58960         * lib/mktime.c (WRAPV): New macro.
58961         (SHR): Also check that long_int and time_t shift right in the
58962         usual way, before using the fast-but-unportable method.
58963         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
58964         used.  The code already assumed two's complement, so there's
58965         no need to test for alternatives.  All uses removed.
58966         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
58967         the C standard.  Problem reported by Rich Felker in
58968         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
58969         (twos_complement_arithmetic): Also check long_int and time_t.
58970         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
58971         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
58972         (__mktime_internal): Avoid integer overflow with unary subtraction
58973         in two instances where -1 - X is an adequate replacement for -X,
58974         since the calculations are approximate.
58976 2011-01-29  Eric Blake  <eblake@redhat.com>
58978         mktime: avoid infinite loop
58979         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
58980         type; behavior is still undefined but portable to all known targets.
58981         Reported by Rich Felker.
58983 2011-01-29  Simon Josefsson  <simon@josefsson.org>
58985         rename, unlink, same-inode: Relicense.
58986         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
58987         * modules/unlink (License): Likewise.
58988         * modules/same-inode (License): Likewise.
58990 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58992         mktime: avoid problems on NetBSD 5 / i386
58993         * lib/mktime.c (long_int): New type.  This works around a problem
58994         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
58995         but time_t is 64 bits, and where I expect the existing code is
58996         wrong in some cases.
58997         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
58998         (ydhms_diff): Bring back the compile-time check for wide-enough
58999         year and yday.
59001         mktime: fix misspelling in comment
59002         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
59003         This merges all recent glibc changes of importance.
59005 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59007         move-if-change: cope with concurrent mv of identical file.
59008         * build-aux/move-if-change (CMPPROG): Accept environment
59009         variable as an override for `cmp'.
59010         (usage): Document CMPPROG.
59011         Adjust comparison to drop stdout.  Cope with failure of mv if
59012         the target file exists and is identical to the source, for
59013         parallel builds.
59014         Report from H.J. Lu against binutils in PR binutils/12283.
59016 2011-01-28  Bruce Korb  <bkorb@gnu.org>
59018         * users.txt: Mention sharutils.
59020 2011-01-28  Simon Josefsson  <simon@josefsson.org>
59022         * users.txt: Mention OATH Toolkit.
59024 2011-01-27  Bruno Haible  <bruno@clisp.org>
59026         Prepare for supporting FreeBSD 10.
59027         * build-aux/config.libpath: Remove handling of freebsd1*.
59029 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
59031         Prepare for supporting FreeBSD 10.
59032         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
59033         match FreeBSD 10.0.
59035 2011-01-27  Bruno Haible  <bruno@clisp.org>
59037         vma-iter, get-rusage-as: Add OpenBSD support.
59038         * modules/vma-iter (configure.ac): Test for mquery.
59039         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
59040         * lib/vma-iter.c: Include <sys/mman.h>.
59041         (vma_iterate): Add an implementation based on mquery().
59042         * lib/resource-ext.h (get_rusage_as): Update comments.
59043         * lib/get-rusage-as.c: Likewise.
59044         * lib/get-rusage-data.c: Likewise.
59046 2011-01-26  Karl Berry  <karl@gnu.org>
59048         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
59049         variables to make it easier to override the makeinfo program used.
59051 2011-01-26  Eric Blake  <eblake@redhat.com>
59053         fcntl: work around Haiku F_DUPFD bugs
59054         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
59055         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
59056         cloexec bit on duplication.
59057         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
59059 2011-01-26  Bruno Haible  <bruno@clisp.org>
59061         Enable memory leak tests on AIX.
59062         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
59063         * tests/test-fprintf-posix3.c (main): Likewise.
59065 2011-01-26  Bruno Haible  <bruno@clisp.org>
59067         Tests for module 'get-rusage-data'.
59068         * modules/get-rusage-data-tests: New file.
59069         * tests/test-get-rusage-data.c: New file.
59071         New module 'get-rusage-data'.
59072         * lib/resource-ext.h (get_rusage_data): New declaration.
59073         * lib/get-rusage-data.c: New file.
59074         * modules/get-rusage-data: New file.
59076 2011-01-25  Bruno Haible  <bruno@clisp.org>
59078         get-rusage-as: Allow for easier testing.
59079         * lib/resource-ext.h (get_rusage_as): Add comment.
59080         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
59081         (main): New function for interactive testing.
59083 2011-01-25  Bruno Haible  <bruno@clisp.org>
59085         vma-iter: Treat Haiku like BeOS.
59086         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
59087         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
59089 2011-01-25  Eric Blake  <eblake@redhat.com>
59091         c-stack: fix regression on cygwin when libsigsegv is present
59092         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
59094 2011-01-24  Bruno Haible  <bruno@clisp.org>
59096         vma-iter: Avoid empty intervals.
59097         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
59098         on an empty interval.
59100 2011-01-24  Jim Meyering  <meyering@redhat.com>
59102         u64: remove unnecessary #include
59103         * lib/u64.h: Don't include <stddef.h>.  It was not used.
59105 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59107         Allow the user to avoid the HAVE_RAW_DECL_* macros.
59108         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
59110 2011-01-23  Bruno Haible  <bruno@clisp.org>
59112         New module 'vma-iter'.
59113         * lib/vma-iter.h: New file.
59114         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
59115         * modules/vma-iter: New file.
59116         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
59117         for get_rusage_as_via_iterator.
59118         (vma_iterate_callback): New function.
59119         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
59120         * modules/get-rusage-as (Depends-on): Add vma-iter.
59122 2011-01-23  Bruno Haible  <bruno@clisp.org>
59124         uninorm: Tweak includes.
59125         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
59126         Reported by Jim Meyering.
59128 2011-01-23  Bruno Haible  <bruno@clisp.org>
59130         get-rusage-as: Improve on NetBSD.
59131         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
59132         /proc, like on FreeBSD.
59134 2011-01-23  Jim Meyering  <meyering@redhat.com>
59136         xreadlink.h: remove unnecessary #include
59137         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
59139         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
59140         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
59142 2011-01-23  Bruno Haible  <bruno@clisp.org>
59144         get-rusage-as: Fix bug.
59145         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
59146         original limit when aborting the first loop.
59148 2011-01-23  Bruno Haible  <bruno@clisp.org>
59150         wctype: Ensure valid C syntax.
59151         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59152         unconditionally, instead of gl_NEXT_HEADERS conditionally.
59154 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59156         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
59157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
59158         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
59159         as they are needed only for configure's test case.
59160         This removes two unnecessary symbols from config.h.
59162         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
59163         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
59164         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
59165         AC_CHECK_HEADERS_ONCE on a header that we also invoke
59166         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
59167         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
59168         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
59169         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
59170         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59171         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59172         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
59173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59174         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59175         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
59176         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
59177         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59178         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59179         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59181 2011-01-21  Eric Blake  <eblake@redhat.com>
59183         maintainer-makefile: work with older git for submodule check
59184         * top/maint.mk (public-submodule-commit): Rewrite to avoid
59185         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
59186         Reported by Matthias Bolte.
59188         bootstrap: minor portability fixes
59189         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
59190         (usage): Omit leading capital and trailing . on help phrases, per
59191         GNU Coding Standards.
59192         (check_versions, top level): Prefix messages with script name.
59194 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
59196         bootstrap: support --no-git option
59197         * build-aux/bootstrap: Add --no-git option, to be used when
59198         --gnulib-srcdir points to the exact desired checkout.
59200 2011-01-21  Eric Blake  <eblake@redhat.com>
59202         strerror_r-posix: work with glibc 2.13
59203         * lib/strerror_r.c (strerror_r): Fix return type.
59205 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59206             Bruno Haible  <bruno@clisp.org>
59208         uN_strstr: New unit tests.
59209         * modules/unistr/u8-strstr-tests: New file.
59210         * modules/unistr/u16-strstr-tests: New file.
59211         * modules/unistr/u32-strstr-tests: New file.
59212         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
59213         * tests/unistr/test-u8-strstr.c: New file.
59214         * tests/unistr/test-u16-strstr.c: New file.
59215         * tests/unistr/test-u32-strstr.c: New file.
59217 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59218             Bruno Haible  <bruno@clisp.org>
59220         Make uN_strstr functions O(n) worst-case.
59221         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
59222         16-bit and 32-bit unit cases, use the unibyte algorithm from
59223         lib/mbsstr.c.
59224         * lib/unistr/u8-strstr.c: Include <string.h>.
59225         (UNIT_IS_UINT8_T): New macro.
59226         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
59227         (U_STRLEN, U_STRNLEN): New macros.
59228         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
59229         (U_STRLEN, U_STRNLEN): New macros.
59230         * modules/unistr/u8-strstr (Depends-on): Add strstr.
59231         (configure.ac): Update required libunistring version.
59232         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
59233         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
59234         malloca.
59235         (configure.ac): Update required libunistring version.
59236         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
59237         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
59238         malloca.
59239         (configure.ac): Update required libunistring version.
59241 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59242             Bruno Haible  <bruno@clisp.org>
59244         Prepare for faster uN_strstr functions.
59245         * lib/str-kmp.h: Support definable UNITs.
59246         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
59247         needle_len argument.
59248         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
59249         * lib/mbscasestr.c (mbscasestr): Likewise.
59251 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59253         malloca-tests: make faster by unsetting MALLOC_PERTURB_
59254         * tests/test-malloca.c (main): Unset the environment variable
59255         to greatly speed up the test.
59256         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
59257         * modules/malloca-tests: Depend on unsetenv.
59259 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59261         ignore-value: remove stdint dependency
59262         * lib/ignore-value.h: Remove <stdint.h>
59263         * modules/ignore-value: Remove stdint dependency.
59265 2011-01-21  Jim Meyering  <meyering@redhat.com>
59267         maint.mk: adjust variable name to be consistent with other gl_ vars
59268         * top/maint.mk (gl_public_submodule_commit): Rename the variable
59269         to be lower case.
59271 2011-01-20  Jim Meyering  <meyering@redhat.com>
59273         maint.mk: make "check" depend on public-submodule-commit by default
59274         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
59276 2011-01-20  Bruno Haible  <bruno@clisp.org>
59278         mbfile, mbiter: Complete change from 2008-12-21.
59279         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
59280         * m4/mbiter.m4 (gl_MBITER): Likewise.
59282 2011-01-20  Jim Meyering  <meyering@redhat.com>
59284         init.sh: insert space between each function name and "()"
59285         * tests/init.sh: Make it a little easier to see that a function's
59286         name is "warn_", and not "warn" when looking at the first part of
59287         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
59289 2011-01-20  Jim Meyering  <meyering@redhat.com>
59291         mountlist: clean up code formatting
59292         * lib/mountlist.c (read_file_system_list): Split a long line,
59293         correct bracing style, use NULL in place of "(struct statfs *)0",
59294         don't parenthesize return value, add spaces around "=" and after
59295         ";-in-for-stmt".
59297 2011-01-14  Markus Duft  <mduft@gentoo.org>
59299         mountlist: add support for Interix
59300         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
59301         Apply statvfs to all entries of /dev/fs.
59302         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
59303         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
59305 2011-01-20  Jim Meyering  <meyering@redhat.com>
59307         maint.mk: improve the public-submodule-commit rule
59308         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
59309         to suppress printing of its commands... unless V=1.
59310         Add git submodule's --quiet option to suppress printing of e.g.,
59311         "Entering gnulib" output.
59312         "cd" into $(srcdir) before running git submodule.
59314 2011-01-20  Bruno Haible  <bruno@clisp.org>
59316         include_next: Fix bug introduced on 2011-01-18.
59317         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
59318         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
59319         ac_cv_header_... variable if the second argument is not 'check'.
59320         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
59321         gl_NEXT_HEADERS_INTERNAL.
59323 2011-01-20  Bruno Haible  <bruno@clisp.org>
59325         Allow the user to avoid the GNULIB_TEST_* macros.
59326         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
59327         Suggested by Paul Eggert.
59329 2011-01-14  Jim Meyering  <meyering@redhat.com>
59331         bootstrap: avoid failure when there is no .gitmodules file
59332         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
59333         has been assigned to, even when its value is the empty string.
59334         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
59335         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
59336         Reported by John W. Eaton <jwe@gnu.org>.
59338 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59340         assume <ctype.h>, ..., <time.h> exist
59341         For years gnulib has been assuming the existence of the headers
59342         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
59343         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
59344         them, since they don't appear to be needed.
59345         * README (Portability guidelines): Document this.
59346         * lib/flock.c: Assume <fcntl.h> exists.
59347         * lib/regex_internal.h: Assume <locale.h> exists.
59348         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
59349         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
59350         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
59351         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
59352         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
59353         * m4/regex.m4 (gl_REGEX): Likewise.
59354         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
59355         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
59356         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
59357         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
59358         * tests/test-argp.c: Likewise.
59359         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
59361         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
59362         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
59363         AA_APPLE_UNIVERSAL_BUILD.  See
59364         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
59365         * NEWS: Document this.
59367 2011-01-19  Eric Blake  <eblake@redhat.com>
59369         c-stack: assume stack overflow if SA_SIGINFO unsupported
59370         * lib/c-stack.c (SIGACTION_WORKS): Rename...
59371         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
59372         sigaction will work.
59373         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
59374         behavior match Linux.
59375         * tests/test-c-stack.c (main): Prefer NULL for pointers.
59377         stdbool-tests: accommodate Haiku
59378         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
59380         binary-io: fix O_TEXT on Haiku
59381         * modules/binary-io (Depends-on): Add fcntl-h.
59382         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
59383         than blindly undefining O_TEXT.
59384         Reported by Scott McCreary.
59386 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59388         include_next: do not check for standard headers like stddef.h
59390         I found this problem when modifying Emacs to use gnulib.
59391         I noticed that it added HAVE_STDDEF_H to config.h, even though
59392         gnulib always assumes <stddef.h> exists as per README and this
59393         symbol is unnecessary.
59394         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
59395         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
59396         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
59397         faster for headers like stddef.h that are known to exist.
59398         (gl_CHECK_NEXT_HEADERS): Use it.
59399         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
59400         rather than gl_CHECK_NEXT_HEADERS.
59401         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
59402         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
59404 2011-01-18  Eric Blake  <eblake@redhat.com>
59406         ansi-c++-opt: skip C++ dependency style if C++ is unused
59407         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
59408         tests when we know C++ compilation is not desired.
59409         Reported by Scott McCreary.
59411 2011-01-18  Bruno Haible  <bruno@clisp.org>
59413         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
59414         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
59415         (main): Perform test also when getrlimit and setrlimit don't exist or
59416         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
59417         limiting the address space size using setrlimit, compare the address
59418         space size before and after the test.
59419         * tests/test-dprintf-posix2.c: Likewise.
59420         * tests/test-fprintf-posix3.sh: Update skip messages.
59421         * tests/test-dprintf-posix2.sh: Likewise.
59422         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
59423         * modules/dprintf-posix-tests (Depends-on): Likewise.
59424         Reported by Bruce Korb <bkorb@gnu.org> and
59425         Gary V. Vaughan <gary@gnu.org>.
59427 2011-01-18  Bruno Haible  <bruno@clisp.org>
59429         get-rusage-as: Improvement for Cygwin.
59430         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
59431         areas that are merely reserved.
59433 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59435         strftime: remove dependencies on multibyte modules
59437         strftime depended on mbrlen, mbsinit, and wchar, but these modules
59438         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
59439         only if __osf__ is defined, and I suspect OSF doesn't need these
59440         other modules.  If my guess is wrong, we'll need to come up with a
59441         variant of strftime that doesn't need the multibyte modules.
59443         I discovered this problem when attempting modify Emacs to use the
59444         strftime module.  With the previous gnulib, this caused Emacs to
59445         need 31 new files, ranging from lib/config.charset to
59446         m4/wint_t.m4.  This was overkill and I expect would be offputting
59447         to the Emacs maintainers.  After this change, only 6 new files are
59448         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
59449         stdbool.m4, and tm_gmtoff.m4.
59451         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
59452         Suggested by Bruno Haible in
59453         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
59454         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
59455         and do not check for wchar.h.
59456         * modules/strftime (Files): Remove m4/mbstate_t.m4.
59457         (Depends-on): Remove mbrlen, mbsinit, wchar.
59459 2011-01-18  Bruno Haible  <bruno@clisp.org>
59461         Tests for module 'get-rusage-as'.
59462         * modules/get-rusage-as-tests: New file.
59463         * tests/test-get-rusage-as.c: New file.
59465         New module 'get-rusage-as'.
59466         * modules/get-rusage-as: New file.
59467         * lib/resource-ext.h: New file.
59468         * lib/get-rusage-as.c: New file.
59470 2011-01-17  Eric Blake  <eblake@redhat.com>
59472         sigaction: relax license from LGPLv3+ to LGPLv2+
59473         * modules/sigaction (License): Relax to LGPLv2+.
59475 2011-01-14  Bruno Haible  <bruno@clisp.org>
59477         filemode: Make function declarations usable in C++ mode.
59478         * lib/filemode.h: Enclose function declarations in extern "C" block.
59479         Reported by John W. Eaton <jwe@gnu.org>.
59481 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
59483         save-cwd: no longer include "xgetcwd.h"
59484         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
59485         This avoids a compilation failure in projects that use save-cwd
59486         without also using the xgetcwd module.
59488 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59490         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
59491         This is so that a program like Emacs, which needs only dtoastr,
59492         does not have to bother with distributing and compiling ftoastr
59493         and ldtoastr.
59494         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
59495         * modules/dtoastr, modules/ldtoastr: New files.
59496         * modules/ftoastr: Now works just for 'float'.
59497         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
59498         (Makefile.am): Remove ftoastr.h (not needed and no effect),
59499         dtoastr.c, ldtoastr.c.
59501 2011-01-11  Jim Meyering  <meyering@redhat.com>
59503         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
59504         There is no need to work around the lack of the fchdir function,
59505         since gnulib can now provide a replacement when required.
59506         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
59507         * modules/save-cwd (Depends-on): Add fchdir.
59509 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59511         openat, save-cwd: avoid xmalloc
59513         This removes a direct (but undocumented) dependency of openat on
59514         xalloc, along with an indirect dependency via save-cwd.  It also
59515         removes a dependency of save-cwd on xgetcwd, and thereby
59516         indirectly on xalloc.  This change causes the openat substitute
59517         to fall back on save_cwd when memory is tight, and for save_cwd to
59518         fail instead of dying when memory is tight, but that's good enough.
59519         Problem and initial idea for fix reported by Bastien Roucaries in
59520         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
59522         * lib/openat-proc.c: Include stdlib.h (for malloc), not
59523         xalloc.h (for xmalloc).
59524         (openat_proc_name): Use malloc, not xmalloc.
59525         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
59526         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
59528         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
59529         This avoids heap allocation for file names whose lengths are in
59530         the range 512..1023, with the upper bound increasing to at most
59531         4031 depending on the platform's PATH_MAX.  (We do not want
59532         pathmax.h here as it might supply a non-constant PATH_MAX.)
59533         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
59534         Perhaps they should be moved to malloca.h?
59535         (OPENAT_BUFFER_SIZE): Use them.
59537 2011-01-10  Bruno Haible  <bruno@clisp.org>
59539         doc: Update users.txt.
59540         * users.txt: Add recutils.
59542 2011-01-09  Karl Berry  <karl@gnu.org>
59544         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
59546         * doc/configmake.texi: New file.
59547         * doc/gnulib.texi: Include it.
59548         * modules/configmake: Move documentation from here.
59550 2011-01-09  Bruno Haible  <bruno@clisp.org>
59552         Update to Unicode 6.0.0.
59553         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
59554         (get_lbp): Update for Unicode 6.0.0.
59555         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
59556         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
59557         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
59558         U+11001, U+11038..U+11046. Remove U+06DE.
59559         (uc_width): Fix bounds of planes.
59560         * tests/uniwidth/test-uc_width2.sh: Same updates as in
59561         lib/uniwidth/width.c.
59562         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
59563         trailing whitespace removed.
59564         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
59565         without comments, but with the original copyright notice.
59566         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
59567         * lib/unicase/ignorable.h: Likewise.
59568         * lib/unicase/tocasefold.h: Likewise.
59569         * lib/unicase/tolower.h: Likewise.
59570         * lib/unicase/totitle.h: Likewise.
59571         * lib/unicase/toupper.h: Likewise.
59572         * lib/unictype/bidi_of.h: Likewise.
59573         * lib/unictype/blocks.h: Likewise.
59574         * lib/unictype/categ_C.h: Likewise.
59575         * lib/unictype/categ_Cn.h: Likewise.
59576         * lib/unictype/categ_L.h: Likewise.
59577         * lib/unictype/categ_Ll.h: Likewise.
59578         * lib/unictype/categ_Lm.h: Likewise.
59579         * lib/unictype/categ_Lo.h: Likewise.
59580         * lib/unictype/categ_Lu.h: Likewise.
59581         * lib/unictype/categ_M.h: Likewise.
59582         * lib/unictype/categ_Mc.h: Likewise.
59583         * lib/unictype/categ_Me.h: Likewise.
59584         * lib/unictype/categ_Mn.h: Likewise.
59585         * lib/unictype/categ_N.h: Likewise.
59586         * lib/unictype/categ_Nd.h: Likewise.
59587         * lib/unictype/categ_No.h: Likewise.
59588         * lib/unictype/categ_P.h: Likewise.
59589         * lib/unictype/categ_Po.h: Likewise.
59590         * lib/unictype/categ_S.h: Likewise.
59591         * lib/unictype/categ_Sc.h: Likewise.
59592         * lib/unictype/categ_Sk.h: Likewise.
59593         * lib/unictype/categ_Sm.h: Likewise.
59594         * lib/unictype/categ_So.h: Likewise.
59595         * lib/unictype/categ_of.h: Likewise.
59596         * lib/unictype/combining.h: Likewise.
59597         * lib/unictype/ctype_alnum.h: Likewise.
59598         * lib/unictype/ctype_alpha.h: Likewise.
59599         * lib/unictype/ctype_graph.h: Likewise.
59600         * lib/unictype/ctype_lower.h: Likewise.
59601         * lib/unictype/ctype_print.h: Likewise.
59602         * lib/unictype/ctype_punct.h: Likewise.
59603         * lib/unictype/ctype_upper.h: Likewise.
59604         * lib/unictype/decdigit.h: Likewise.
59605         * lib/unictype/digit.h: Likewise.
59606         * lib/unictype/numeric.h: Likewise.
59607         * lib/unictype/pr_alphabetic.h: Likewise.
59608         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59609         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59610         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59611         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59612         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59613         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59614         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59615         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59616         * lib/unictype/pr_case_ignorable.h: Likewise.
59617         * lib/unictype/pr_cased.h: Likewise.
59618         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
59619         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
59620         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
59621         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
59622         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
59623         * lib/unictype/pr_combining.h: Likewise.
59624         * lib/unictype/pr_composite.h: Likewise.
59625         * lib/unictype/pr_currency_symbol.h: Likewise.
59626         * lib/unictype/pr_decimal_digit.h: Likewise.
59627         * lib/unictype/pr_deprecated.h: Likewise.
59628         * lib/unictype/pr_format_control.h: Likewise.
59629         * lib/unictype/pr_grapheme_base.h: Likewise.
59630         * lib/unictype/pr_grapheme_extend.h: Likewise.
59631         * lib/unictype/pr_grapheme_link.h: Likewise.
59632         * lib/unictype/pr_id_continue.h: Likewise.
59633         * lib/unictype/pr_id_start.h: Likewise.
59634         * lib/unictype/pr_ideographic.h: Likewise.
59635         * lib/unictype/pr_lowercase.h: Likewise.
59636         * lib/unictype/pr_math.h: Likewise.
59637         * lib/unictype/pr_numeric.h: Likewise.
59638         * lib/unictype/pr_other_alphabetic.h: Likewise.
59639         * lib/unictype/pr_other_id_continue.h: Likewise.
59640         * lib/unictype/pr_other_math.h: Likewise.
59641         * lib/unictype/pr_punctuation.h: Likewise.
59642         * lib/unictype/pr_sentence_terminal.h: Likewise.
59643         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59644         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59645         * lib/unictype/pr_unified_ideograph.h: Likewise.
59646         * lib/unictype/pr_uppercase.h: Likewise.
59647         * lib/unictype/pr_xid_continue.h: Likewise.
59648         * lib/unictype/pr_xid_start.h: Likewise.
59649         * lib/unictype/scripts.h: Likewise.
59650         * lib/unictype/scripts_byname.gperf: Likewise.
59651         * lib/unictype/sy_java_ident.h: Likewise.
59652         * lib/unigbrk/gbrkprop.h: Likewise.
59653         * lib/unilbrk/lbrkprop1.h: Likewise.
59654         * lib/unilbrk/lbrkprop2.h: Likewise.
59655         * lib/uninorm/decomposition-table2.h: Likewise.
59656         * lib/uniwbrk/wbrkprop.h: Likewise.
59657         * tests/unicase/test-cased.c: Likewise.
59658         * tests/unicase/test-ignorable.c: Likewise.
59659         * tests/unicase/test-uc_tolower.c: Likewise.
59660         * tests/unicase/test-uc_totitle.c: Likewise.
59661         * tests/unicase/test-uc_toupper.c: Likewise.
59662         * tests/unictype/test-categ_C.c: Likewise.
59663         * tests/unictype/test-categ_Cn.c: Likewise.
59664         * tests/unictype/test-categ_L.c: Likewise.
59665         * tests/unictype/test-categ_Ll.c: Likewise.
59666         * tests/unictype/test-categ_Lm.c: Likewise.
59667         * tests/unictype/test-categ_Lo.c: Likewise.
59668         * tests/unictype/test-categ_Lu.c: Likewise.
59669         * tests/unictype/test-categ_M.c: Likewise.
59670         * tests/unictype/test-categ_Mc.c: Likewise.
59671         * tests/unictype/test-categ_Me.c: Likewise.
59672         * tests/unictype/test-categ_Mn.c: Likewise.
59673         * tests/unictype/test-categ_N.c: Likewise.
59674         * tests/unictype/test-categ_Nd.c: Likewise.
59675         * tests/unictype/test-categ_No.c: Likewise.
59676         * tests/unictype/test-categ_P.c: Likewise.
59677         * tests/unictype/test-categ_Po.c: Likewise.
59678         * tests/unictype/test-categ_S.c: Likewise.
59679         * tests/unictype/test-categ_Sc.c: Likewise.
59680         * tests/unictype/test-categ_Sk.c: Likewise.
59681         * tests/unictype/test-categ_Sm.c: Likewise.
59682         * tests/unictype/test-categ_So.c: Likewise.
59683         * tests/unictype/test-ctype_alnum.c: Likewise.
59684         * tests/unictype/test-ctype_alpha.c: Likewise.
59685         * tests/unictype/test-ctype_graph.c: Likewise.
59686         * tests/unictype/test-ctype_lower.c: Likewise.
59687         * tests/unictype/test-ctype_print.c: Likewise.
59688         * tests/unictype/test-ctype_punct.c: Likewise.
59689         * tests/unictype/test-ctype_upper.c: Likewise.
59690         * tests/unictype/test-decdigit.h: Likewise.
59691         * tests/unictype/test-digit.h: Likewise.
59692         * tests/unictype/test-numeric.h: Likewise.
59693         * tests/unictype/test-pr_alphabetic.c: Likewise.
59694         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59695         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59696         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59697         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59698         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59699         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59700         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59701         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59702         * tests/unictype/test-pr_case_ignorable.c: Likewise.
59703         * tests/unictype/test-pr_cased.c: Likewise.
59704         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
59705         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
59706         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
59707         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
59708         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
59709         * tests/unictype/test-pr_combining.c: Likewise.
59710         * tests/unictype/test-pr_composite.c: Likewise.
59711         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59712         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59713         * tests/unictype/test-pr_deprecated.c: Likewise.
59714         * tests/unictype/test-pr_format_control.c: Likewise.
59715         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59716         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59717         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59718         * tests/unictype/test-pr_id_continue.c: Likewise.
59719         * tests/unictype/test-pr_id_start.c: Likewise.
59720         * tests/unictype/test-pr_ideographic.c: Likewise.
59721         * tests/unictype/test-pr_lowercase.c: Likewise.
59722         * tests/unictype/test-pr_math.c: Likewise.
59723         * tests/unictype/test-pr_numeric.c: Likewise.
59724         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59725         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59726         * tests/unictype/test-pr_other_math.c: Likewise.
59727         * tests/unictype/test-pr_punctuation.c: Likewise.
59728         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59729         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59730         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59731         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59732         * tests/unictype/test-pr_uppercase.c: Likewise.
59733         * tests/unictype/test-pr_xid_continue.c: Likewise.
59734         * tests/unictype/test-pr_xid_start.c: Likewise.
59735         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
59736         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
59737         changes.
59738         * lib/unictype/categ_Cc.h: Likewise.
59739         * lib/unictype/categ_Cf.h: Likewise.
59740         * lib/unictype/categ_Co.h: Likewise.
59741         * lib/unictype/categ_Cs.h: Likewise.
59742         * lib/unictype/categ_Lt.h: Likewise.
59743         * lib/unictype/categ_Nl.h: Likewise.
59744         * lib/unictype/categ_Pc.h: Likewise.
59745         * lib/unictype/categ_Pd.h: Likewise.
59746         * lib/unictype/categ_Pe.h: Likewise.
59747         * lib/unictype/categ_Pf.h: Likewise.
59748         * lib/unictype/categ_Pi.h: Likewise.
59749         * lib/unictype/categ_Ps.h: Likewise.
59750         * lib/unictype/categ_Z.h: Likewise.
59751         * lib/unictype/categ_Zl.h: Likewise.
59752         * lib/unictype/categ_Zp.h: Likewise.
59753         * lib/unictype/categ_Zs.h: Likewise.
59754         * lib/unictype/ctype_blank.h: Likewise.
59755         * lib/unictype/ctype_cntrl.h: Likewise.
59756         * lib/unictype/ctype_digit.h: Likewise.
59757         * lib/unictype/ctype_space.h: Likewise.
59758         * lib/unictype/ctype_xdigit.h: Likewise.
59759         * lib/unictype/mirror.h: Likewise.
59760         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59761         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59762         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59763         * lib/unictype/pr_bidi_control.h: Likewise.
59764         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59765         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59766         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59767         * lib/unictype/pr_bidi_pdf.h: Likewise.
59768         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59769         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59770         * lib/unictype/pr_dash.h: Likewise.
59771         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59772         * lib/unictype/pr_diacritic.h: Likewise.
59773         * lib/unictype/pr_extender.h: Likewise.
59774         * lib/unictype/pr_hex_digit.h: Likewise.
59775         * lib/unictype/pr_hyphen.h: Likewise.
59776         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59777         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59778         * lib/unictype/pr_ignorable_control.h: Likewise.
59779         * lib/unictype/pr_iso_control.h: Likewise.
59780         * lib/unictype/pr_join_control.h: Likewise.
59781         * lib/unictype/pr_left_of_pair.h: Likewise.
59782         * lib/unictype/pr_line_separator.h: Likewise.
59783         * lib/unictype/pr_logical_order_exception.h: Likewise.
59784         * lib/unictype/pr_non_break.h: Likewise.
59785         * lib/unictype/pr_not_a_character.h: Likewise.
59786         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59787         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59788         * lib/unictype/pr_other_id_start.h: Likewise.
59789         * lib/unictype/pr_other_lowercase.h: Likewise.
59790         * lib/unictype/pr_other_uppercase.h: Likewise.
59791         * lib/unictype/pr_paired_punctuation.h: Likewise.
59792         * lib/unictype/pr_paragraph_separator.h: Likewise.
59793         * lib/unictype/pr_pattern_syntax.h: Likewise.
59794         * lib/unictype/pr_pattern_white_space.h: Likewise.
59795         * lib/unictype/pr_private_use.h: Likewise.
59796         * lib/unictype/pr_quotation_mark.h: Likewise.
59797         * lib/unictype/pr_radical.h: Likewise.
59798         * lib/unictype/pr_soft_dotted.h: Likewise.
59799         * lib/unictype/pr_space.h: Likewise.
59800         * lib/unictype/pr_titlecase.h: Likewise.
59801         * lib/unictype/pr_variation_selector.h: Likewise.
59802         * lib/unictype/pr_white_space.h: Likewise.
59803         * lib/unictype/pr_zero_width.h: Likewise.
59804         * lib/unictype/sy_c_ident.h: Likewise.
59805         * lib/unictype/sy_c_whitespace.h: Likewise.
59806         * lib/unictype/sy_java_whitespace.h: Likewise.
59807         * lib/uninorm/composition-table.gperf: Likewise.
59808         * lib/uninorm/decomposition-table1.h: Likewise.
59809         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
59810         LB8.
59811         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59812         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59813         * modules/unictype/*: Bump version number of expected libunistring
59814         version.
59816 2011-01-09  Bruno Haible  <bruno@clisp.org>
59818         Update to Unicode 5.2.0.
59819         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
59820         trailing whitespace removed.
59822 2011-01-09  Bruno Haible  <bruno@clisp.org>
59824         New Unicode character properties, from Unicode 5.2.0.
59825         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
59826         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
59827         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
59828         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
59829         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
59830         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
59831         uc_is_property_cased, uc_is_property_case_ignorable,
59832         uc_is_property_changes_when_lowercased,
59833         uc_is_property_changes_when_uppercased,
59834         uc_is_property_changes_when_titlecased,
59835         uc_is_property_changes_when_casefolded,
59836         uc_is_property_changes_when_casemapped): New declarations.
59837         * lib/unictype/pr_byname.gperf: Add the new properties.
59838         * modules/unictype/property-byname (Depends-on): Depend on the new
59839         properties modules.
59840         * modules/unictype/property-all (Depends-on): Likewise.
59841         * MODULES.html.sh (Unicode string functions): Add
59842         unictype/property-case-ignorable, unictype/property-cased,
59843         unictype/property-changes-when-casefolded,
59844         unictype/property-changes-when-casemapped,
59845         unictype/property-changes-when-lowercased,
59846         unictype/property-changes-when-titlecased,
59847         unictype/property-changes-when-uppercased.
59849         New module 'unictype/property-changes-when-casemapped'.
59850         * modules/unictype/property-changes-when-casemapped: New file.
59851         * lib/unictype/pr_changes_when_casemapped.c: New file.
59852         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
59853         generated by gen-uni-tables.
59854         * modules/unictype/property-changes-when-casemapped-tests: New file.
59855         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
59856         automatically generated by gen-uni-tables.
59858         New module 'unictype/property-changes-when-casefolded'.
59859         * modules/unictype/property-changes-when-casefolded: New file.
59860         * lib/unictype/pr_changes_when_casefolded.c: New file.
59861         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
59862         generated by gen-uni-tables.
59863         * modules/unictype/property-changes-when-casefolded-tests: New file.
59864         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
59865         automatically generated by gen-uni-tables.
59867         New module 'unictype/property-changes-when-titlecased'.
59868         * modules/unictype/property-changes-when-titlecased: New file.
59869         * lib/unictype/pr_changes_when_titlecased.c: New file.
59870         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
59871         generated by gen-uni-tables.
59872         * modules/unictype/property-changes-when-titlecased-tests: New file.
59873         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
59874         automatically generated by gen-uni-tables.
59876         New module 'unictype/property-changes-when-uppercased'.
59877         * modules/unictype/property-changes-when-uppercased: New file.
59878         * lib/unictype/pr_changes_when_uppercased.c: New file.
59879         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
59880         generated by gen-uni-tables.
59881         * modules/unictype/property-changes-when-uppercased-tests: New file.
59882         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
59883         automatically generated by gen-uni-tables.
59885         New module 'unictype/property-changes-when-lowercased'.
59886         * modules/unictype/property-changes-when-lowercased: New file.
59887         * lib/unictype/pr_changes_when_lowercased.c: New file.
59888         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
59889         generated by gen-uni-tables.
59890         * modules/unictype/property-changes-when-lowercased-tests: New file.
59891         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
59892         automatically generated by gen-uni-tables.
59894         New module 'unictype/property-case-ignorable'.
59895         * modules/unictype/property-case-ignorable: New file.
59896         * lib/unictype/pr_case_ignorable.c: New file.
59897         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
59898         by gen-uni-tables.
59899         * modules/unictype/property-case-ignorable-tests: New file.
59900         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
59901         generated by gen-uni-tables.
59903         New module 'unictype/property-cased'.
59904         * modules/unictype/property-cased: New file.
59905         * lib/unictype/pr_cased.c: New file.
59906         * lib/unictype/pr_cased.h: New file, automatically generated by
59907         gen-uni-tables.
59908         * modules/unictype/property-cased-tests: New file.
59909         * tests/unictype/test-pr_cased.c: New file, automatically generated by
59910         gen-uni-tables.
59912 2011-01-09  Bruno Haible  <bruno@clisp.org>
59914         Update to Unicode 5.2.0.
59915         * lib/gen-uni-tables.c (output_predicate, output_category,
59916         output_combclass, output_bidi_category, output_decimal_digit_test,
59917         output_decimal_digit, output_digit_test, output_digit,
59918         output_numeric_test, output_numeric, output_mirror, output_scripts,
59919         output_scripts_byname, output_blocks, output_ident_category): Fix
59920         comment header.
59921         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
59922         get_wbp.
59923         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
59924         items.
59925         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
59926         Changes_When_Lowercased, Changes_When_Uppercased,
59927         Changes_When_Titlecased, Changes_When_Casefolded,
59928         Changes_When_Casemapped.
59929         (is_property_alphabetic, is_property_default_ignorable_code_point):
59930         Update for Unicode 5.2.0.
59931         (is_property_cased, is_property_case_ignorable,
59932         is_property_changes_when_lowercased,
59933         is_property_changes_when_uppercased,
59934         is_property_changes_when_titlecased,
59935         is_property_changes_when_casefolded,
59936         is_property_changes_when_casemapped): New functions.
59937         (output_properties): Output also the properties cased, case_ignorable,
59938         changes_when_lowercased, changes_when_uppercased,
59939         changes_when_titlecased, changes_when_casefolded,
59940         changes_when_casemapped.
59941         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
59942         Unicode TR#11 revision 17 -> 19.
59943         (LBP_CP): New enumeration value.
59944         (LBP_*): Adjust values accordingly.
59945         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
59946         TR#14 revision 22 -> 24.
59947         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
59948         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
59949         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
59950         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
59951         is_WBP_MIDLETTER.
59952         (output_composition_tables): Allow for 24 bits instead of 16 bits in
59953         the code1 and code2 of each composition rule.
59954         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
59955         * lib/unicase/ignorable.h: Likewise.
59956         * lib/unicase/tocasefold.h: Likewise.
59957         * lib/unicase/tolower.h: Likewise.
59958         * lib/unicase/totitle.h: Likewise.
59959         * lib/unicase/toupper.h: Likewise.
59960         * lib/unictype/bidi_of.h: Likewise.
59961         * lib/unictype/blocks.h: Likewise.
59962         * lib/unictype/categ_C.h: Likewise.
59963         * lib/unictype/categ_Cf.h: Likewise.
59964         * lib/unictype/categ_Cn.h: Likewise.
59965         * lib/unictype/categ_L.h: Likewise.
59966         * lib/unictype/categ_Ll.h: Likewise.
59967         * lib/unictype/categ_Lm.h: Likewise.
59968         * lib/unictype/categ_Lo.h: Likewise.
59969         * lib/unictype/categ_Lu.h: Likewise.
59970         * lib/unictype/categ_M.h: Likewise.
59971         * lib/unictype/categ_Mc.h: Likewise.
59972         * lib/unictype/categ_Mn.h: Likewise.
59973         * lib/unictype/categ_N.h: Likewise.
59974         * lib/unictype/categ_Nd.h: Likewise.
59975         * lib/unictype/categ_Nl.h: Likewise.
59976         * lib/unictype/categ_No.h: Likewise.
59977         * lib/unictype/categ_P.h: Likewise.
59978         * lib/unictype/categ_Pd.h: Likewise.
59979         * lib/unictype/categ_Po.h: Likewise.
59980         * lib/unictype/categ_S.h: Likewise.
59981         * lib/unictype/categ_Sc.h: Likewise.
59982         * lib/unictype/categ_So.h: Likewise.
59983         * lib/unictype/categ_of.h: Likewise.
59984         * lib/unictype/combining.h: Likewise.
59985         * lib/unictype/ctype_alnum.h: Likewise.
59986         * lib/unictype/ctype_alpha.h: Likewise.
59987         * lib/unictype/ctype_graph.h: Likewise.
59988         * lib/unictype/ctype_lower.h: Likewise.
59989         * lib/unictype/ctype_print.h: Likewise.
59990         * lib/unictype/ctype_punct.h: Likewise.
59991         * lib/unictype/ctype_upper.h: Likewise.
59992         * lib/unictype/decdigit.h: Likewise.
59993         * lib/unictype/digit.h: Likewise.
59994         * lib/unictype/numeric.h: Likewise.
59995         * lib/unictype/pr_alphabetic.h: Likewise.
59996         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59997         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59998         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59999         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60000         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60001         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60002         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60003         * lib/unictype/pr_combining.h: Likewise.
60004         * lib/unictype/pr_composite.h: Likewise.
60005         * lib/unictype/pr_currency_symbol.h: Likewise.
60006         * lib/unictype/pr_dash.h: Likewise.
60007         * lib/unictype/pr_decimal_digit.h: Likewise.
60008         * lib/unictype/pr_deprecated.h: Likewise.
60009         * lib/unictype/pr_diacritic.h: Likewise.
60010         * lib/unictype/pr_extender.h: Likewise.
60011         * lib/unictype/pr_grapheme_base.h: Likewise.
60012         * lib/unictype/pr_grapheme_extend.h: Likewise.
60013         * lib/unictype/pr_grapheme_link.h: Likewise.
60014         * lib/unictype/pr_id_continue.h: Likewise.
60015         * lib/unictype/pr_id_start.h: Likewise.
60016         * lib/unictype/pr_ideographic.h: Likewise.
60017         * lib/unictype/pr_ignorable_control.h: Likewise.
60018         * lib/unictype/pr_logical_order_exception.h: Likewise.
60019         * lib/unictype/pr_lowercase.h: Likewise.
60020         * lib/unictype/pr_numeric.h: Likewise.
60021         * lib/unictype/pr_other_alphabetic.h: Likewise.
60022         * lib/unictype/pr_punctuation.h: Likewise.
60023         * lib/unictype/pr_sentence_terminal.h: Likewise.
60024         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60025         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60026         * lib/unictype/pr_unified_ideograph.h: Likewise.
60027         * lib/unictype/pr_uppercase.h: Likewise.
60028         * lib/unictype/pr_xid_continue.h: Likewise.
60029         * lib/unictype/pr_xid_start.h: Likewise.
60030         * lib/unictype/pr_zero_width.h: Likewise.
60031         * lib/unictype/scripts.h: Likewise.
60032         * lib/unictype/scripts_byname.gperf: Likewise.
60033         * lib/unictype/sy_java_ident.h: Likewise.
60034         * lib/unigbrk/gbrkprop.h: Likewise.
60035         * lib/unilbrk/lbrkprop1.h: Likewise.
60036         * lib/unilbrk/lbrkprop2.h: Likewise.
60037         * lib/unilbrk/lbrktables.h: Likewise.
60038         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
60039         LBP_CP. Implement rule LB30.
60040         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
60041         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
60042         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
60043         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
60044         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
60045         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
60046         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
60047         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
60048         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
60049         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
60050         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
60051         bits instead of 16 bits in the code1 and code2 of each composition
60052         rule.
60053         (uc_composition): Update for Unicode 5.2.0.
60054         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
60055         * lib/uninorm/decomposition-table2.h: Likewise.
60056         * lib/uniwbrk/wbrkprop.h: Likewise.
60057         * tests/unicase/test-cased.c: Likewise.
60058         * tests/unicase/test-ignorable.c: Likewise.
60059         * tests/unicase/test-uc_tolower.c: Likewise.
60060         * tests/unicase/test-uc_totitle.c: Likewise.
60061         * tests/unicase/test-uc_toupper.c: Likewise.
60062         * tests/unictype/test-categ_C.c: Likewise.
60063         * tests/unictype/test-categ_Cf.c: Likewise.
60064         * tests/unictype/test-categ_Cn.c: Likewise.
60065         * tests/unictype/test-categ_L.c: Likewise.
60066         * tests/unictype/test-categ_Ll.c: Likewise.
60067         * tests/unictype/test-categ_Lm.c: Likewise.
60068         * tests/unictype/test-categ_Lo.c: Likewise.
60069         * tests/unictype/test-categ_Lu.c: Likewise.
60070         * tests/unictype/test-categ_M.c: Likewise.
60071         * tests/unictype/test-categ_Mc.c: Likewise.
60072         * tests/unictype/test-categ_Mn.c: Likewise.
60073         * tests/unictype/test-categ_N.c: Likewise.
60074         * tests/unictype/test-categ_Nd.c: Likewise.
60075         * tests/unictype/test-categ_Nl.c: Likewise.
60076         * tests/unictype/test-categ_No.c: Likewise.
60077         * tests/unictype/test-categ_P.c: Likewise.
60078         * tests/unictype/test-categ_Pd.c: Likewise.
60079         * tests/unictype/test-categ_Po.c: Likewise.
60080         * tests/unictype/test-categ_S.c: Likewise.
60081         * tests/unictype/test-categ_Sc.c: Likewise.
60082         * tests/unictype/test-categ_So.c: Likewise.
60083         * tests/unictype/test-ctype_alnum.c: Likewise.
60084         * tests/unictype/test-ctype_alpha.c: Likewise.
60085         * tests/unictype/test-ctype_graph.c: Likewise.
60086         * tests/unictype/test-ctype_lower.c: Likewise.
60087         * tests/unictype/test-ctype_print.c: Likewise.
60088         * tests/unictype/test-ctype_punct.c: Likewise.
60089         * tests/unictype/test-ctype_upper.c: Likewise.
60090         * tests/unictype/test-decdigit.h: Likewise.
60091         * tests/unictype/test-digit.h: Likewise.
60092         * tests/unictype/test-numeric.h: Likewise.
60093         * tests/unictype/test-pr_alphabetic.c: Likewise.
60094         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60095         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60096         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60097         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60098         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60099         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60100         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60101         * tests/unictype/test-pr_combining.c: Likewise.
60102         * tests/unictype/test-pr_composite.c: Likewise.
60103         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60104         * tests/unictype/test-pr_dash.c: Likewise.
60105         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60106         * tests/unictype/test-pr_deprecated.c: Likewise.
60107         * tests/unictype/test-pr_diacritic.c: Likewise.
60108         * tests/unictype/test-pr_extender.c: Likewise.
60109         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60110         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60111         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60112         * tests/unictype/test-pr_id_continue.c: Likewise.
60113         * tests/unictype/test-pr_id_start.c: Likewise.
60114         * tests/unictype/test-pr_ideographic.c: Likewise.
60115         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60116         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60117         * tests/unictype/test-pr_lowercase.c: Likewise.
60118         * tests/unictype/test-pr_numeric.c: Likewise.
60119         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60120         * tests/unictype/test-pr_punctuation.c: Likewise.
60121         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60122         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60123         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60124         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60125         * tests/unictype/test-pr_uppercase.c: Likewise.
60126         * tests/unictype/test-pr_xid_continue.c: Likewise.
60127         * tests/unictype/test-pr_xid_start.c: Likewise.
60128         * tests/unictype/test-pr_zero_width.c: Likewise.
60129         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60130         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
60131         changed behaviour: line breaking is now disallowed between a letter
60132         or '=' and '('.
60133         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60134         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60135         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60136         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
60137         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60138         lib/uniwidth/width.c.
60139         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
60140         without comments, but with the original copyright notice.
60141         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60142         changes.
60143         * lib/unictype/categ_Cc.h: Likewise.
60144         * lib/unictype/categ_Co.h: Likewise.
60145         * lib/unictype/categ_Cs.h: Likewise.
60146         * lib/unictype/categ_Lt.h: Likewise.
60147         * lib/unictype/categ_Me.h: Likewise.
60148         * lib/unictype/categ_Pc.h: Likewise.
60149         * lib/unictype/categ_Pe.h: Likewise.
60150         * lib/unictype/categ_Pf.h: Likewise.
60151         * lib/unictype/categ_Pi.h: Likewise.
60152         * lib/unictype/categ_Ps.h: Likewise.
60153         * lib/unictype/categ_Sk.h: Likewise.
60154         * lib/unictype/categ_Sm.h: Likewise.
60155         * lib/unictype/categ_Z.h: Likewise.
60156         * lib/unictype/categ_Zl.h: Likewise.
60157         * lib/unictype/categ_Zp.h: Likewise.
60158         * lib/unictype/categ_Zs.h: Likewise.
60159         * lib/unictype/ctype_blank.h: Likewise.
60160         * lib/unictype/ctype_cntrl.h: Likewise.
60161         * lib/unictype/ctype_digit.h: Likewise.
60162         * lib/unictype/ctype_space.h: Likewise.
60163         * lib/unictype/ctype_xdigit.h: Likewise.
60164         * lib/unictype/mirror.h: Likewise.
60165         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60166         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60167         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60168         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60169         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60170         * lib/unictype/pr_bidi_control.h: Likewise.
60171         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60172         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60173         * lib/unictype/pr_bidi_pdf.h: Likewise.
60174         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60175         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60176         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60177         * lib/unictype/pr_format_control.h: Likewise.
60178         * lib/unictype/pr_hex_digit.h: Likewise.
60179         * lib/unictype/pr_hyphen.h: Likewise.
60180         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60181         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60182         * lib/unictype/pr_iso_control.h: Likewise.
60183         * lib/unictype/pr_join_control.h: Likewise.
60184         * lib/unictype/pr_left_of_pair.h: Likewise.
60185         * lib/unictype/pr_line_separator.h: Likewise.
60186         * lib/unictype/pr_math.h: Likewise.
60187         * lib/unictype/pr_non_break.h: Likewise.
60188         * lib/unictype/pr_not_a_character.h: Likewise.
60189         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60190         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60191         * lib/unictype/pr_other_id_continue.h: Likewise.
60192         * lib/unictype/pr_other_id_start.h: Likewise.
60193         * lib/unictype/pr_other_lowercase.h: Likewise.
60194         * lib/unictype/pr_other_math.h: Likewise.
60195         * lib/unictype/pr_other_uppercase.h: Likewise.
60196         * lib/unictype/pr_paired_punctuation.h: Likewise.
60197         * lib/unictype/pr_paragraph_separator.h: Likewise.
60198         * lib/unictype/pr_pattern_syntax.h: Likewise.
60199         * lib/unictype/pr_pattern_white_space.h: Likewise.
60200         * lib/unictype/pr_private_use.h: Likewise.
60201         * lib/unictype/pr_quotation_mark.h: Likewise.
60202         * lib/unictype/pr_radical.h: Likewise.
60203         * lib/unictype/pr_soft_dotted.h: Likewise.
60204         * lib/unictype/pr_space.h: Likewise.
60205         * lib/unictype/pr_titlecase.h: Likewise.
60206         * lib/unictype/pr_variation_selector.h: Likewise.
60207         * lib/unictype/pr_white_space.h: Likewise.
60208         * lib/unictype/sy_c_ident.h: Likewise.
60209         * lib/unictype/sy_c_whitespace.h: Likewise.
60210         * lib/unictype/sy_java_whitespace.h: Likewise.
60211         * modules/uni*/*: Bump version number of expected libunistring version.
60212         Reported by Simon Josefsson.
60214 2011-01-09  Karl Heuer  <kwzh@gnu.org>
60216         useless-if-before-free: fix typo in --help and make the internal,
60217         automatic version date update process work once again.
60218         --help output contained a NUL character instead of the
60219         backslash-zero that was intended.  Also, the "must lie within
60220         the first 8 lines" line is on line 9, and hence not getting
60221         automatically updated.
60222         * build-aux/useless-if-before-free: Fix the former by adding a
60223         backslash, and the latter by condensing the three lines of what-it-does
60224         to a single line, leaving one line of slack for the future.
60226 2011-01-09  Bruno Haible  <bruno@clisp.org>
60228         uniwidth/width: Fix width of U+1D173..U+1D17A.
60229         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
60230         symbolic_width, output_width_property_test): New functions.
60231         (main): Invoke output_nonspacing_property, output_width_property_test.
60232         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
60233         U+1D173..U+1D17A.
60234         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
60235         1.
60236         * modules/uniwidth/*: Bump version number of expected libunistring
60237         version.
60238         * modules/unilbrk/*: Likewise.
60240 2011-01-08  Bruno Haible  <bruno@clisp.org>
60242         uninorm tests: Preserve copyright of Unicode data file.
60243         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
60244         Mention modifications.
60246 2011-01-08  Bruno Haible  <bruno@clisp.org>
60248         gen-uni-tables: Prepare for Unicode 5.2.0.
60249         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
60250         (debug_output_lbp, output_lbp): Update.
60252 2011-01-08  Bruno Haible  <bruno@clisp.org>
60254         unilbrk: Clarify gen-uni-tables.c code.
60255         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
60256         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
60257         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
60259 2011-01-07  Bruno Haible  <bruno@clisp.org>
60261         strtod: Restore errno when successfully parsing Infinity or NaN.
60262         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
60263         restore the original errno.
60265 2011-01-07  Bruno Haible  <bruno@clisp.org>
60267         remove test: Avoid failure on HP-UX 11.
60268         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
60270 2011-01-07  Bruno Haible  <bruno@clisp.org>
60272         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
60273         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
60274         error code.
60276 2011-01-07  Pádraig Brady  <P@draigBrady.com>
60278         ignore-value: fixup comments, and add Eric Blake
60279         as an author since he rewrote the macros.
60280         * lib/ignore-value.h (ignore_value):  State that
60281         we now support aggregates.  Also specify exactly
60282         when the GCC warn_unused_result feature was added.
60284 2011-01-06  Eric Blake  <eblake@redhat.com>
60286         ignore-value: support aggregate types
60287         * lib/ignore-value.h (ignore_value): Provide separate gcc
60288         definition.
60289         * modules/ignore-value-tests: New test module.
60290         * tests/test-ignore-value.c: New test.
60292         maint.mk: improve sc_prohibit_strcmp regex
60293         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
60294         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
60295         definition of STRNEQ.
60297         signal: work around Haiku issue with SIGBUS
60298         * lib/siglist.h: Add comment.
60299         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
60300         strsignal's favoring of SIGSEGV.
60301         * tests/test-signal.c (main): Avoid test failure.
60302         * doc/posix-headers/signal.texi (signal.h): Document the issue.
60303         Reported by Scott McCreary.
60305         maint.mk: add pre-release check to ensure submodule commits are public
60306         * top/maint.mk (public-submodule-commit): New rule.
60307         (submodule-checks): New variable.
60308         (alpha beta stable): Depend on the variable.
60310 2011-01-05  Pádraig Brady  <P@draigBrady.com>
60311         and Jim Meyering  <meyering@redhat.com>
60313         ignore-value: make ignore_value more generic; deprecate ignore_ptr
60314         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
60315         (ATTRIBUTE_DEPRECATED): Define.
60316         (_ignore_case): New function.
60317         (ignore_value): New macro, to replace the old function.
60318         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
60319         * modules/ignore-value (Depends-on): Add stdint.
60321 2011-01-04  Eric Blake  <eblake@redhat.com>
60323         doc: regenerate INSTALL
60324         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
60325         @firstparagraphindent support, now that autoconf dropped it.
60326         (INSTALL_PRELUDE): Reinstate old macro.
60327         * doc/install.texi: Resync from autoconf.
60328         * doc/INSTALL: Reflect recent autoconf update.
60329         * doc/INSTALL.ISO: Likewise.
60330         * doc/INSTALL.UTF-8: Likewise.
60331         Reported by Karl Berry.
60333 2011-01-04  Bruce Korb  <address@hidden>
60335         git-version-gen: avoid a sub-shell
60336         * build-aux/git-version-gen: Redirect stderr in `...` via
60337         "exec 2>...", rather than via an added sub-shell.
60339 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
60341         git-version-gen: use (...) rather than sh -c '...'
60342         * build-aux/git-version-gen: Rather than hard-coding a shell's name
60343         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
60345 2011-01-03  Jim Meyering  <meyering@redhat.com>
60347         git-version-gen: convert leading TABs to spaces
60348         * build-aux/git-version-gen: Expand leading TABs.
60350         git-version-gen: handle failed "git rev-list"
60351         * build-aux/git-version-gen: Rather than leaking a "fatal" error
60352         from git and proceeding as if it had succeeded but printed no SHA1
60353         checksums, suppress the diagnostic and handle the failure.
60354         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
60356         git-version-gen: include command name in one more diagnostic
60357         * build-aux/git-version-gen: When the required .tarball-version file
60358         was missing or unreadable, you might see the diagnostic from "cat",
60359         but no trace of the name of the invoking script.  Now, you still see
60360         the diagnostic from cat, but also get one from "git-version-gen: ".
60361         Inspired by a patch from Bruce Korb.
60363         update-copyright: adjust test to match changed code
60364         * tests/test-update-copyright.sh: Change test's expected output
60365         to match new actual output.
60367 2011-01-02  Bruno Haible  <bruno@clisp.org>
60369         getlogin_r: Avoid test failure on HP-UX 11.
60370         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
60371         ERANGE when the second argument is zero.
60372         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
60373         portability problem.
60375 2011-01-02  Bruce Korb  <bkorb@gnu.org>
60377         * build-aux/update-copyright: doc Simon's changes
60379 2011-01-02  Simon Josefsson  <simon@josefsson.org>
60381         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
60382         environment variable.
60384 2011-01-02  Bruno Haible  <bruno@clisp.org>
60386         unigbrk: Avoid gcc warnings.
60387         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
60388         unused variable.
60389         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
60390         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
60391         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
60392         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
60393         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
60394         Change type of first argument to 'const char *'.
60395         (main): Remove unused variable.
60396         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
60397         type of first argument to 'const char *'.
60398         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
60399         Likewise.
60400         (main): Change type of variable 's'.
60401         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
60402         to 'int'.
60404 2011-01-02  Bruno Haible  <bruno@clisp.org>
60406         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
60407         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
60408         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
60409         bug.
60410         * lib/pwrite.c: Undo 2010-12-31 patch.
60411         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
60413 2011-01-02  Bruno Haible  <bruno@clisp.org>
60415         pread: Fix test whether it works.
60416         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
60418 2011-01-02  Bruno Haible  <bruno@clisp.org>
60420         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
60421         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
60422         ends in "6". Don't require a specific month name. Try also the locale
60423         names found on HP-UX 11 and Solaris 7.
60425 2011-01-02  Bruno Haible  <bruno@clisp.org>
60427         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
60428         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
60429         C linkage.
60430         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
60432 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60434         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
60435         for consistency, since the "cluster" term is not used elsewhere.
60436         * lib/unigbrk.in.h: Update name.
60437         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
60438         * lib/unigbrk/u16-grapheme-next.c: Update name.
60439         * lib/unigbrk/u16-grapheme-prev.c: Update name.
60440         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
60441         * lib/unigbrk/u32-grapheme-next.c: Update name.
60442         * lib/unigbrk/u32-grapheme-prev.c: Update name.
60443         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
60444         * lib/unigbrk/u8-grapheme-next.c: Update name.
60445         * lib/unigbrk/u8-grapheme-prev.c: Update name.
60446         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
60447         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
60448         Suggested by Bruno Haible.
60450 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60452         Remove module 'u8-grapheme-len' as too redundant with
60453         'u8-grapheme-next'.
60454         * modules/unigbrk/u8-grapheme-len: Delete file.
60455         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
60456         * lib/unigbrk.in.h: Remove prototype for deleted function.
60457         * lib/unigbrk/u8-grapheme-len.c: Delete file.
60458         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
60460         Remove module 'u16-grapheme-len' as too redundant with
60461         'u16-grapheme-next'.
60462         * modules/unigbrk/u16-grapheme-len: Delete file.
60463         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
60464         * lib/unigbrk.in.h: Remove prototype for deleted function.
60465         * lib/unigbrk/u16-grapheme-len.c: Delete file.
60466         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
60468         Remove module 'u32-grapheme-len' as too redundant with
60469         'u32-grapheme-next'.
60470         * modules/unigbrk/u32-grapheme-len: Delete file.
60471         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
60472         * lib/unigbrk.in.h: Remove prototype for deleted function.
60473         * lib/unigbrk/u32-grapheme-len.c: Delete file.
60474         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
60476         Suggested by Bruno Haible.
60478 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60480         * unigbrk.in.h: Fix typo: "ben" => "been".
60481         Reported by Bruno Haible.
60483 2011-01-01  Jim Meyering  <meyering@redhat.com>
60485         maint: update almost all copyright ranges to include 2011
60486         Run the new "make update-copyright" rule.
60488 2011-01-01  Jim Meyering  <meyering@redhat.com>
60490         maint: update-copyright: exempt doc/INSTALL*
60491         * Makefile (update-copyright): Also exclude doc/INSTALL*,
60492         since they are generated.  Suggested by Bruno Haible.
60494 2011-01-01  Jim Meyering  <meyering@redhat.com>
60496         maint: refine the update-copyright rule
60497         * Makefile (update-copyright): Also exclude any file that includes
60498         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
60499         code that merely generates the comment.
60501 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60503         New module 'u8-grapheme-len'.
60504         * modules/unigbrk/u8-grapheme-len: New file.
60505         * modules/unigbrk/u8-grapheme-len-tests: New file.
60506         * lib/unigbrk.in.h: Add prototype for new function.
60507         * lib/unigbrk/u8-grapheme-len.c: New file.
60508         * tests/unigbrk/test-u8-grapheme-len.c: New file.
60510         New module 'u16-grapheme-len'.
60511         * modules/unigbrk/u16-grapheme-len: New file.
60512         * modules/unigbrk/u16-grapheme-len-tests: New file.
60513         * lib/unigbrk.in.h: Add prototype for new function.
60514         * lib/unigbrk/u16-grapheme-len.c: New file.
60515         * tests/unigbrk/test-u16-grapheme-len.c: New file.
60517         New module 'u32-grapheme-len'.
60518         * modules/unigbrk/u32-grapheme-len: New file.
60519         * modules/unigbrk/u32-grapheme-len-tests: New file.
60520         * lib/unigbrk.in.h: Add prototype for new function.
60521         * lib/unigbrk/u32-grapheme-len.c: New file.
60522         * tests/unigbrk/test-u32-grapheme-len.c: New file.
60524         New module 'u8-grapheme-next'.
60525         * modules/unigbrk/u8-grapheme-next: New file.
60526         * modules/unigbrk/u8-grapheme-next-tests: New file.
60527         * lib/unigbrk.in.h: Add prototype for new function.
60528         * lib/unigbrk/u8-grapheme-next.c: New file.
60529         * tests/unigbrk/test-u8-grapheme-next.c: New file.
60531         New module 'u16-grapheme-next'.
60532         * modules/unigbrk/u16-grapheme-next: New file.
60533         * modules/unigbrk/u16-grapheme-next-tests: New file.
60534         * lib/unigbrk.in.h: Add prototype for new function.
60535         * lib/unigbrk/u16-grapheme-next.c: New file.
60536         * tests/unigbrk/test-u16-grapheme-next.c: New file.
60538         New module 'u32-grapheme-next'.
60539         * modules/unigbrk/u32-grapheme-next: New file.
60540         * modules/unigbrk/u32-grapheme-next-tests: New file.
60541         * lib/unigbrk.in.h: Add prototype for new function.
60542         * lib/unigbrk/u32-grapheme-next.c: New file.
60543         * tests/unigbrk/test-u32-grapheme-next.c: New file.
60545         New module 'u8-grapheme-prev'.
60546         * modules/unigbrk/u8-grapheme-prev: New file.
60547         * modules/unigbrk/u8-grapheme-prev-tests: New file.
60548         * lib/unigbrk.in.h: Add prototype for new function.
60549         * lib/unigbrk/u8-grapheme-prev.c: New file.
60550         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
60552         New module 'u16-grapheme-prev'.
60553         * modules/unigbrk/u16-grapheme-prev: New file.
60554         * modules/unigbrk/u16-grapheme-prev-tests: New file.
60555         * lib/unigbrk.in.h: Add prototype for new function.
60556         * lib/unigbrk/u16-grapheme-prev.c: New file.
60557         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
60559         New module 'u32-grapheme-prev'.
60560         * modules/unigbrk/u32-grapheme-prev: New file.
60561         * modules/unigbrk/u32-grapheme-prev-tests: New file.
60562         * lib/unigbrk.in.h: Add prototype for new function.
60563         * lib/unigbrk/u32-grapheme-prev.c: New file.
60564         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
60566         New module 'u8-grapheme-breaks'.
60567         * modules/unigbrk/u8-grapheme-breaks: New file.
60568         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
60569         * lib/unigbrk.in.h: Add prototype for new function.
60570         * lib/unigbrk/u8-grapheme-breaks.c: New file.
60571         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
60573         New module 'u16-grapheme-breaks'.
60574         * modules/unigbrk/u16-grapheme-breaks: New file.
60575         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
60576         * lib/unigbrk.in.h: Add prototype for new function.
60577         * lib/unigbrk/u16-grapheme-breaks.c: New file.
60578         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
60580         New module 'u32-grapheme-breaks'.
60581         * modules/unigbrk/u32-grapheme-breaks: New file.
60582         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
60583         * lib/unigbrk.in.h: Add prototype for new function.
60584         * lib/unigbrk/u32-grapheme-breaks.c: New file.
60585         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
60587         New module 'ulc-grapheme-breaks'.
60588         * modules/unigbrk/ulc-grapheme-breaks: New file.
60589         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
60590         * m4/locale-ar.m4: New file.
60591         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
60592         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
60593         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
60595 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60597         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
60598         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
60599         modified how this file was generated before I initially submitted
60600         the module, but failed to regenerate it.  This meant that several
60601         of the level2 entries were wrong.
60602         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
60603         Remove the division-by-2 that is folded into the table now that
60604         gbrkprop.h has been regenerated properly.  Now -1 entries are
60605         handled correctly.
60607         New module 'unigbrk/uc-gbrk-prop-tests'.
60608         * modules/unigbrk/uc-gbrk-prop-tests: New file.
60609         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
60610         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
60611         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
60613 2011-01-01  Bruno Haible  <bruno@clisp.org>
60615         Avoid use of hexadecimal escapes.
60616         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
60617         instead of hexadecimal escapes.
60619 2011-01-01  Jim Meyering  <meyering@redhat.com>
60621         maint: new rule to update copyright year ranges
60622         * Makefile (update-copyright): New rule.
60624         maint: indent with TABs in Makefile
60625         * Makefile: Expand leading sequences of spaces to TABs
60627         version-etc: update the copyright year it reports
60628         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
60630 2010-12-31  Bruno Haible  <bruno@clisp.org>
60632         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
60633         * lib/isfinite.c (zerof, zerod, zerol): New variables.
60634         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
60635         zero.
60637 2010-12-31  Bruno Haible  <bruno@clisp.org>
60639         pwrite: Work around HP-UX 11.11 bug.
60640         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
60641         works and set REPLACE_PWRITE if not.
60642         * lib/pwrite.c (pwrite): Add an implementation that uses the system
60643         function.
60644         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
60646 2010-12-31  Bruno Haible  <bruno@clisp.org>
60648         pread: Work around HP-UX 11 bugs.
60649         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
60650         and set REPLACE_PREAD if not.
60651         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
60653 2010-12-31  Eric Blake  <eblake@redhat.com>
60655         nl_langinfo: fix YESEXPR on Irix 6.5
60656         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
60657         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
60658         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
60659         it.
60661 2010-12-31  Bruno Haible  <bruno@clisp.org>
60663         iconv: Document HP-UX 11 bug.
60664         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
60666 2010-12-31  Bruno Haible  <bruno@clisp.org>
60668         ldexpl: Fix link error on HP-UX 11.
60669         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
60670         LDEXPL_LIBM, using $ISNANL_LIBM.
60672 2010-12-31  Eric Blake  <eblake@redhat.com>
60674         ftello: avoid compilation failure with SunStudio c89
60675         * lib/ftello.c (ftello): Use lseek, not llseek.
60677         tests: avoid failing coreutils tests on cygwin
60678         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
60679         (create_exe_shims_): Return 0 when skipping.
60681 2010-12-31  Bruno Haible  <bruno@clisp.org>
60683         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
60684         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
60686 2010-12-31  Bruno Haible  <bruno@clisp.org>
60688         waitpid: Fix link error in C++ mode.
60689         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
60691 2010-12-31  Bruno Haible  <bruno@clisp.org>
60693         isnan: Use GCC built-ins when possible.
60694         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
60695         __builtin_isnan.
60696         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
60697         (isnan): Define using GCC built-ins for GCC >= 4.0.
60699 2010-12-31  Bruno Haible  <bruno@clisp.org>
60701         isnand: Fix mistake.
60702         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
60703         __builtin_isnand.
60705 2010-12-31  Bruno Haible  <bruno@clisp.org>
60707         open: Avoid C++ error on HP-UX 11.
60708         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
60710 2010-12-31  Bruno Haible  <bruno@clisp.org>
60712         time_r: Add missing declarations on HP-UX 11.
60713         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
60714         instead of HAVE_LOCALTIME_R.
60715         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
60716         HAVE_LOCALTIME_R always.
60717         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
60718         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
60719         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
60720         HAVE_LOCALTIME_R.
60721         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
60722         * doc/posix-functions/localtime_r.texi: Likewise.
60724 2010-12-29  Eric Blake  <eblake@redhat.com>
60726         mountlist: tweak previous commit
60727         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
60728         Reported by Paul Eggert.
60730         mountlist: fix local drive detection on cygwin
60731         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
60732         that works for cygwin.
60734 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60736         ftoastr, snprintf: ftoastr + snprintf module
60737         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
60738         since the snprintf module now should be good enough here.
60739         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
60740         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
60741         and gl_MODULE_INDICATOR([snprintf]), but the former enables
60742         GNULIB_SNPRINTF only for the test directory, and the latter
60743         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
60744         seems to suffice by itself.
60746 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60748         alloca: one step towards thread-safety
60749         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
60750         need for a static variable.  All callers changed.  This does not
60751         make the alloca replacement thread-safe, but it's one step.
60753         tests: minor indenting change
60754         * tests/init.sh: Sync from coreutils housekeeping patch
60755         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
60756         to keep lines within 80 columns.
60758 2010-12-28  Jim Meyering  <meyering@redhat.com>
60760         regex: don't infloop on persistent failing calloc
60761         * lib/regexec.c (build_trtable): Return failure indication upon
60762         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
60763         In glibc, this was fixed for version 2.13:
60764         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
60766 2010-12-28  Bruno Haible  <bruno@clisp.org>
60767             Paul Eggert <eggert@cs.ucla.edu>
60769         linkat: Make implementation robust against system behaviour variations.
60770         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
60771         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
60772         way, and to -2 if it needs a generic runtime test.
60773         * lib/linkat.c (solaris_optimized_link_immediate,
60774         solaris_optimized_link_follow): New functions.
60775         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
60776         (check_same_link): Use it.
60778 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
60780         New module 'unigbrk/base'.
60781         * modules/unigbrk/base: New file.
60782         * lib/unigbrk.in.h: New file.
60784         New module 'unigbrk/uc-gbrk-prop'.
60785         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
60786         * modules/unigbrk/uc-gbrk-prop: New file.
60787         * lib/unigbrk/gbrkprop.h: New file.
60788         * lib/unigbrk/uc-gbrk-prop.c: New file.
60790         New module 'unigbrk/uc-is-grapheme-break'.
60791         * modules/unigbrk/uc-is-grapheme-break: New file.
60792         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
60793         * lib/unigbrk/uc-is-grapheme-break.c: New file.
60794         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
60795         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
60796         * tests/unigbrk/GraphemeBreakTest.txt: New file.
60798         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
60800 2010-12-27  Bruno Haible  <bruno@clisp.org>
60802         linkat test: Avoid failure on Solaris 11 2010-11.
60803         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
60805 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60807         utimens: work around glibc rounding bug on more platforms
60808         * lib/utimens.c (fdutimens): Work around rounding bug even if
60809         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
60810         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
60812 2010-12-27  Bruno Haible  <bruno@clisp.org>
60814         select tests: Improve comments.
60815         * tests/test-select.c (do_select): Add comments.
60817 2010-12-27  Bruno Haible  <bruno@clisp.org>
60819         select tests: Safer way of handling timeout.
60820         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
60821         at every invocation.
60823 2010-12-27  Bruno Haible  <bruno@clisp.org>
60825         select tests: Use 'bool' where appropriate.
60826         * tests/test-select.c (connect_to_socket): Change argument type to
60827         'bool'.
60829 2010-12-27  Bruno Haible  <bruno@clisp.org>
60831         select tests: Use existing modules.
60832         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
60833         (configure.ac): Don't test for unistd.h.
60834         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
60835         declared in <unistd.h>.
60837 2010-12-27  Bruno Haible  <bruno@clisp.org>
60839         mbrtowc: Work around a Solaris 7 bug.
60840         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
60841         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
60842         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
60843         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
60844         MBRTOWC_NULL_ARG1_BUG.
60845         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
60846         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
60847         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
60848         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
60850 2010-12-27  Jim Meyering  <meyering@redhat.com>
60852         read-file.c: tweak syntax
60853         * lib/read-file.c (fread_file): Remove space after "*" in function
60854         definitions.
60856 2010-12-27  Bruno Haible  <bruno@clisp.org>
60858         times test: Avoid gcc warnings on OSF/1.
60859         * tests/test-times.c (main): Cast printf arguments from clock_t to
60860         'long int'.
60862 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60864         utimens: work around glibc rounding bug on older Linux kernels
60865         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
60866         on Linux with a glibc whose utimes might not work, then work
60867         around a longstanding glibc bug involving rounding rather than
60868         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
60869         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
60871 2010-12-26  Bruno Haible  <bruno@clisp.org>
60873         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
60874         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
60875         _GL_CXXALIAS_SYS.
60876         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60878 2010-12-26  Bruno Haible  <bruno@clisp.org>
60880         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
60881         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
60882         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
60883         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
60884         looking for the declaration.
60885         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60886         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
60887         problem.
60888         * doc/posix-functions/inet_pton.texi: Likewise.
60890 2010-12-26  Bruno Haible  <bruno@clisp.org>
60892         arpa_inet: Use the common idioms with C++ support.
60893         * lib/arpa_inet.in.h: Include c++defs.h.
60894         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
60895         support.
60896         * modules/arpa_inet (Depends-on): Add c++defs.
60897         (Makefile.am): Substitute the contents of c++defs.h.
60898         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
60899         * modules/arpa_inet-c++-tests: New file.
60900         * tests/test-arpa_inet-c++.cc: New file.
60902 2010-12-25  Bruno Haible  <bruno@clisp.org>
60904         Fix more C++ link errors on Solaris 8.
60905         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
60906         $(LIB_EACCESS).
60907         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
60908         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
60909         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
60910         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
60911         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
60913 2010-12-25  Bruno Haible  <bruno@clisp.org>
60915         printf-posix: Fix link error when a non-GCC compiler is used.
60916         * lib/stdio.in.h (printf): When not using GCC, override printf
60917         correctly.
60918         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60920 2010-12-25  Bruno Haible  <bruno@clisp.org>
60922         strerror_r-posix: Update doc.
60923         * doc/posix-functions/strerror_r.texi: Update doc about the return
60924         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
60926 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60928         utimens: simplify the logic of the previous change
60929         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
60930         This should not affect whether the test succeeds or fails.
60932         utimens: configure better on hosts with NFS clock skew
60933         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
60934         uses the clock of the local host.  It might use the clock of the
60935         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
60936         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
60938 2010-12-25  Bruno Haible  <bruno@clisp.org>
60940         ptsname test: Avoid failure on Solaris.
60941         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
60942         open a pseudo-terminal; don't use BSD-style ptys.
60943         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
60945 2010-12-25  Bruno Haible  <bruno@clisp.org>
60947         ptsname: Avoid ERANGE failure on some systems.
60948         * lib/ptsname.c (buffer): Increase size.
60950 2010-12-25  Bruno Haible  <bruno@clisp.org>
60952         rename, renameat: Avoid test failures at NFS mounted locations.
60953         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
60954         so that subsequent mkdir calls succeed.
60956 2010-12-25  Bruno Haible  <bruno@clisp.org>
60958         iswblank: Fix C++ link error on Solaris 8.
60959         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
60960         _GL_FUNCDECL_SYS.
60962 2010-12-25  Bruno Haible  <bruno@clisp.org>
60964         unistd: Fix C++ link error on Solaris 8.
60965         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
60967 2010-12-25  Bruno Haible  <bruno@clisp.org>
60969         readlink doc: Mention an old glibc bug.
60970         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
60972 2010-12-25  Bruno Haible  <bruno@clisp.org>
60974         fcntl-h: Fix for use of C++ on glibc systems.
60975         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60976         also on glibc systems in C++ mode.
60977         Reported by Gary V. Vaughan <gary@gnu.org>.
60979 2010-12-25  Bruno Haible  <bruno@clisp.org>
60981         roundl-ieee: Make it work on OSF/1 5.1 with cc.
60982         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
60984 2010-12-25  Bruno Haible  <bruno@clisp.org>
60986         truncl-ieee: Make it work on OSF/1 5.1 with cc.
60987         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
60988         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
60989         test whether truncl works according to ISO C 99 with IEC 60559.
60990         * m4/truncl-ieee.m4: New file.
60991         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
60992         m4/signbit.m4.
60993         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
60995 2010-12-25  Bruno Haible  <bruno@clisp.org>
60997         ceill-ieee: Make it work on OSF/1 5.1 with cc.
60998         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
60999         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
61000         test whether ceill works according to ISO C 99 with IEC 60559.
61001         * m4/ceill-ieee.m4: New file.
61002         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
61003         m4/signbit.m4.
61004         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
61006 2010-12-25  Bruno Haible  <bruno@clisp.org>
61008         Ensure all prerequisites of <wchar.h> are included.
61009         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
61010         before <wchar.h>.
61011         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61012         gl_MBRLEN_NUL_RETVAL): Likewise.
61013         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61014         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
61015         AC_FUNC_MBRTOWC): Likewise.
61016         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61017         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61018         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61019         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61020         Likewise.
61021         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61022         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
61023         (gl_WCHAR_H): Improve comments.
61024         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61026 2010-12-25  Bruno Haible  <bruno@clisp.org>
61028         strtok_r: Fix C syntax error in autoconf macro.
61029         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
61030         characters in test program.
61032 2010-12-24  Bruno Haible  <bruno@clisp.org>
61034         ceil, trunc, round: Fix gcc warnings.
61035         * lib/ceil.c (MIN): Undefine before redefining.
61036         * lib/trunc.c (MIN): Likewise.
61037         * lib/round.c (MIN): Likewise.
61038         Include <math.h> first.
61040 2010-12-24  Bruno Haible  <bruno@clisp.org>
61042         select tests: Avoid failures on OSF/1 5.1.
61043         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
61044         failure of closing the last socket; it may fail with ECONNRESET.
61046 2010-12-24  Eric Blake  <eblake@redhat.com>
61048         stdint: avoid HP-UX 10.20 preprocessor bug
61049         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
61050         than #if.
61051         * tests/test-floor2.c (main): Likewise.
61052         Reported by Peter O'Gorman.
61054         pipe: make obsoletion transition easier
61055         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
61056         * modules/pipe (Files): Include revived file.
61057         (Include): Drop reference, to mirror getdate's behavior.
61059 2010-12-24  Bruno Haible  <bruno@clisp.org>
61061         sys_socket: Hide mismatch of declarations on NonStop Kernel.
61062         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
61063         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
61064         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61066 2010-12-24  Bruno Haible  <bruno@clisp.org>
61068         gethostname: Ensure declaration on NonStop Kernel.
61069         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
61070         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61072 2010-12-24  Bruno Haible  <bruno@clisp.org>
61074         sys_select: Ensure all necessary types on NonStop Kernel.
61075         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
61076         include <sys/time.h>.
61077         * doc/posix-headers/sys_select.texi: Mention that it's missing on
61078         NonStop Kernel.
61079         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61081 2010-12-24  Bruno Haible  <bruno@clisp.org>
61083         sys_select: Remove unneeded include.
61084         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
61085         have <sys/select.h>.
61087 2010-12-24  Bruno Haible  <bruno@clisp.org>
61089         gethostname: Provide a fallback for HOST_NAME_MAX.
61090         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
61091         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
61092         instead.
61093         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61095 2010-12-24  Bruno Haible  <bruno@clisp.org>
61097         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
61098         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
61099         (SA_RESTART): Likewise.
61100         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61102 2010-12-24  Bruno Haible  <bruno@clisp.org>
61104         signal: Define NSIG.
61105         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
61106         * tests/test-signal.c (nsig): New variable.
61107         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61109 2010-12-24  Bruno Haible  <bruno@clisp.org>
61111         rename, renameat: Avoid test failures on OSF/1 5.1.
61112         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
61113         alternative error codes.
61114         * tests/test-renameat.c (main): Likewise.
61116 2010-12-24  Bruno Haible  <bruno@clisp.org>
61118         *printf: Detect large precisions bug on Solaris 10/SPARC.
61119         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
61120         by Paul Eggert.
61121         * tests/test-snprintf-posix.h (test_function): Add this test code here
61122         too.
61123         * tests/test-sprintf-posix.h (test_function): Likewise.
61124         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61125         * tests/test-vasprintf-posix.c (test_function): Likewise.
61126         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
61127         around by gnulib.
61128         * doc/posix-functions/printf.texi: Likewise.
61129         * doc/posix-functions/snprintf.texi: Likewise.
61130         * doc/posix-functions/sprintf.texi: Likewise.
61131         * doc/posix-functions/vfprintf.texi: Likewise.
61132         * doc/posix-functions/vprintf.texi: Likewise.
61133         * doc/posix-functions/vsnprintf.texi: Likewise.
61134         * doc/posix-functions/vsprintf.texi: Likewise.
61135         * doc/posix-functions/dprintf.texi: Undo last commit.
61136         * doc/posix-functions/vdprintf.texi: Likewise.
61138 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61140         tests: port test-fdutimensat.c to Solaris 8
61141         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
61142         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
61143         On Solaris 8, it fails with errno == ENOSYS, because there is no
61144         futimens (so it can't use the fd), and there is no lutimens (so it
61145         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
61147         vsnprintf: make more consistent with snprintf; doc fixes
61149         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
61150         the byte count return problem was promoted from the snprintf-posix
61151         to the snprintf module.
61152         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61153         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
61154         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
61155         * tests/test-snprintf.c (main): Check the byte count returned.
61156         * tests/test-vsnprintf.c (main): Likewise.
61158 2010-12-23  Eric Blake  <eblake@redhat.com>
61160         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
61161         * modules/sigpipe (License): Relax license.
61163 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61165         doc: document Solaris printf bug with large float precisions
61166         * doc/posix-functions/dprintf.texi (dprintf):
61167         * doc/posix-functions/fprintf.texi (fprintf):
61168         * doc/posix-functions/printf.texi (printf):
61169         * doc/posix-functions/snprintf.texi (snprintf):
61170         * doc/posix-functions/sprintf.texi (sprintf):
61171         * doc/posix-functions/vdprintf.texi (vdprintf):
61172         * doc/posix-functions/vfprintf.texi (vfprintf):
61173         * doc/posix-functions/vprintf.texi (vprintf):
61174         * doc/posix-functions/vsnprintf.texi (vsnprintf):
61175         * doc/posix-functions/vsprintf.texi (vsprintf):
61176         Mention that these functions mishandle large floating point
61177         precisions on Solaris 10.  The same bug is also present in Solaris
61178         8, and I assume earlier.  This causes "cd gnulib-tests; make
61179         check" to fail on Solaris 8 (and I assume, later) when building
61180         the latest coreutils, in test-vasprintf-posix's call to
61181         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
61182         the wide flavors (e.g., wprintf) so this patch just updates the
61183         documentation for the narrow ones.
61185         test-posixtm.c: add two tests
61186         * tests/test-posixtm.c: Add two tests, to highlight the
61187         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
61188         around this bug; this is merely to document it.
61190 2010-12-22  Bruno Haible  <bruno@clisp.org>
61192         getlogin_r: Work around portability problem on OSF/1.
61193         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
61194         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
61195         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
61196         test for a truncated result.
61197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
61198         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
61199         * modules/getlogin_r (Depends-on): Add memchr.
61200         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
61202 2010-12-22  Bruno Haible  <bruno@clisp.org>
61204         ptsname: Avoid test failure on OSF/1 5.1.
61205         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
61206         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
61207         (same_slave): New function.
61208         (main): Use it to compare ptsname's result with the expected file name.
61210 2010-12-22  Bruno Haible  <bruno@clisp.org>
61212         Port extended stdio modules to HP NonStop Kernel.
61213         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
61214         macros.
61215         * lib/fbufmode.c: Update comments.
61216         * lib/fflush.c: Likewise.
61217         * lib/fpurge.c: Likewise.
61218         * lib/freadable.c: Likewise.
61219         * lib/freadahead.c: Likewise.
61220         * lib/freading.c: Likewise.
61221         * lib/freadptr.c: Likewise.
61222         * lib/freadseek.c: Likewise.
61223         * lib/fseeko.c: Likewise.
61224         * lib/fseterr.c: Likewise.
61225         * lib/fwritable.c: Likewise.
61226         * lib/fwriting.c: Likewise.
61227         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61229 2010-12-22  Bruno Haible  <bruno@clisp.org>
61231         ttyname_r: Work around bug on OSF/1 5.1.
61232         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
61233         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
61234         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
61235         present.
61236         * lib/ttyname_r.c (ttyname_r): Update comments.
61238 2010-12-22  Bruno Haible  <bruno@clisp.org>
61240         round: Implement result sign according to IEEE 754.
61241         * lib/round.c (MIN, MINUS_ZERO): New macros.
61242         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
61243         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
61244         * tests/test-round-ieee.c (main): Likewise.
61245         * tests/test-roundl-ieee.c (main): Likewise.
61247         trunc: Implement result sign according to IEEE 754.
61248         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
61249         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
61250         * tests/test-trunc2.c: Include minus-zero.h.
61251         (MINUS_ZERO): New macro.
61252         (trunc_reference): Keep in sync with lib/trunc.c.
61253         * tests/test-truncf2.c: Include minus-zero.h.
61254         (MINUS_ZERO): New macro.
61255         (truncf_reference): Keep in sync with lib/trunc.c.
61256         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
61257         * tests/test-trunc-ieee.c (main): Likewise.
61258         * tests/test-truncl-ieee.c (main): Likewise.
61260         ceil: Implement result sign according to IEEE 754.
61261         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
61262         (FUNC): Return -0.0 for -1 < x < 0.
61263         * tests/test-ceil2.c: Include minus-zero.h.
61264         (MINUS_ZERO): New macro.
61265         (ceil_reference): Keep in sync with lib/ceil.c.
61266         * tests/test-ceilf2.c: Include minus-zero.h.
61267         (MINUS_ZERO): New macro.
61268         (ceilf_reference): Keep in sync with lib/ceil.c.
61269         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
61270         * tests/test-ceil-ieee.c (main): Likewise.
61271         * tests/test-ceill-ieee.c (main): Likewise.
61273         floor: Implement result sign according to IEEE 754.
61274         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
61275         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
61276         * tests/test-floorf2.c (floorf_reference): Likewise.
61277         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
61278         * tests/test-floor-ieee.c (main): Likewise.
61279         * tests/test-floorl-ieee.c (main): Likewise.
61281 2010-12-22  Bruno Haible  <bruno@clisp.org>
61283         getaddrinfo: Update doc.
61284         * doc/posix-functions/gai_strerror.texi: Return type is also different
61285         on AIX and HP-UX.
61287 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61289         getaddrinfo, inet_ntop: Update doc for Solaris.
61290         * doc/posix-functions/gai_strerror.texi: Return type is also an
61291         issue on Solaris 9 and earlier.
61292         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
61293         on Solaris 10 and earlier.
61295 2010-12-21  Bruno Haible  <bruno@clisp.org>
61297         New module 'roundl-ieee'.
61298         * modules/roundl-ieee: New file.
61299         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
61300         test whether roundl works according to ISO C 99 with IEC 60559.
61301         * m4/roundl-ieee.m4: New file.
61302         * modules/roundl-ieee-tests: New file.
61303         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
61304         * tests/test-roundl.c (main): Remove signbit tests.
61305         * modules/roundl-tests (Depends-on): Remove signbit.
61306         * doc/posix-functions/roundl.texi: Mention the new module.
61308 2010-12-21  Bruno Haible  <bruno@clisp.org>
61310         New module 'truncl-ieee'.
61311         * modules/truncl-ieee: New file.
61312         * modules/truncl-ieee-tests: New file.
61313         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
61314         * tests/test-truncl.c (main): Remove signbit tests.
61315         * modules/truncl-tests (Depends-on): Remove signbit.
61316         * doc/posix-functions/truncl.texi: Mention the new module.
61318 2010-12-21  Bruno Haible  <bruno@clisp.org>
61320         New module 'ceill-ieee'.
61321         * modules/ceill-ieee: New file.
61322         * modules/ceill-ieee-tests: New file.
61323         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
61324         * tests/test-ceill.c (main): Remove signbit tests.
61325         * modules/ceill-tests (Depends-on): Remove signbit.
61326         * doc/posix-functions/ceill.texi: Mention the new module.
61328 2010-12-21  Bruno Haible  <bruno@clisp.org>
61330         New module 'floorl-ieee'.
61331         * modules/floorl-ieee: New file.
61332         * modules/floorl-ieee-tests: New file.
61333         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
61334         * tests/test-floorl.c (main): Remove signbit tests.
61335         * modules/floorl-tests (Depends-on): Remove signbit.
61336         * doc/posix-functions/floorl.texi: Mention the new module.
61338 2010-12-21  Bruno Haible  <bruno@clisp.org>
61340         New module 'round-ieee'.
61341         * modules/round-ieee: New file.
61342         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
61343         whether round works according to ISO C 99 with IEC 60559.
61344         * m4/round-ieee.m4: New file.
61345         * modules/round-ieee-tests: New file.
61346         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
61347         * tests/test-round1.c (main): Remove signbit tests.
61348         * modules/round-tests (Depends-on): Remove 'signbit'.
61349         * doc/posix-functions/round.texi: Mention the new module.
61351 2010-12-21  Bruno Haible  <bruno@clisp.org>
61353         New module 'trunc-ieee'.
61354         * modules/trunc-ieee: New file.
61355         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
61356         whether trunc works according to ISO C 99 with IEC 60559.
61357         * m4/trunc-ieee.m4: New file.
61358         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
61359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
61360         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
61361         * modules/trunc-ieee-tests: New file.
61362         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
61363         * tests/test-trunc1.c (main): Remove signbit tests.
61364         * modules/trunc-tests (Depends-on): Remove 'signbit'.
61365         * doc/posix-functions/trunc.texi: Mention the new module.
61367 2010-12-21  Bruno Haible  <bruno@clisp.org>
61369         New module 'ceil-ieee'.
61370         * modules/ceil-ieee: New file.
61371         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
61372         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
61373         ISO C 99 with IEC 60559.
61374         * m4/ceil-ieee.m4: New file.
61375         * modules/ceil (Files): Add lib/ceil.c.
61376         (Depends-on): Add 'float'.
61377         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61378         * lib/math.in.h (ceil): New declaration.
61379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
61380         REPLACE_CEIL.
61381         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
61382         * modules/ceil-ieee-tests: New file.
61383         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
61384         * tests/test-math-c++.cc: Check the signature of 'ceil'.
61385         * doc/posix-functions/ceil.texi: Mention the new module.
61387 2010-12-21  Bruno Haible  <bruno@clisp.org>
61389         New module 'floor-ieee'.
61390         * modules/floor-ieee: New file.
61391         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
61392         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
61393         ISO C 99 with IEC 60559.
61394         * m4/floor-ieee.m4: New file.
61395         * modules/floor (Files): Add lib/floor.c.
61396         (Depends-on): Add 'float'.
61397         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61398         * lib/math.in.h (floor): New declaration.
61399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
61400         REPLACE_FLOOR.
61401         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
61402         * modules/floor-ieee-tests: New file.
61403         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
61404         * tests/test-math-c++.cc: Check the signature of 'floor'.
61405         * doc/posix-functions/floor.texi: Mention the new module.
61407 2010-12-21  Bruno Haible  <bruno@clisp.org>
61409         New module 'roundf-ieee'.
61410         * modules/roundf-ieee: New file.
61411         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
61412         test whether roundf works according to ISO C 99 with IEC 60559.
61413         * m4/roundf-ieee.m4: New file.
61414         * modules/roundf-ieee-tests: New file.
61415         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
61416         * tests/test-roundf1.c (main): Remove signbit tests.
61417         * modules/roundf-tests (Depends-on): Remove 'signbit'.
61418         * doc/posix-functions/roundf.texi: Mention the new module.
61420 2010-12-21  Bruno Haible  <bruno@clisp.org>
61422         New module 'truncf-ieee'.
61423         * modules/truncf-ieee: New file.
61424         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
61425         test whether truncf works according to ISO C 99 with IEC 60559.
61426         * m4/truncf-ieee.m4: New file.
61427         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
61428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
61429         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
61430         * modules/truncf-ieee-tests: New file.
61431         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
61432         * tests/test-truncf1.c (main): Remove signbit tests.
61433         * modules/truncf-tests (Depends-on): Remove 'signbit'.
61434         * doc/posix-functions/truncf.texi: Mention the new module.
61436 2010-12-21  Bruno Haible  <bruno@clisp.org>
61438         New module 'ceilf-ieee'.
61439         * modules/ceilf-ieee: New file.
61440         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
61441         test whether ceilf works according to ISO C 99 with IEC 60559.
61442         * m4/ceilf-ieee.m4: New file.
61443         * modules/ceilf-ieee-tests: New file.
61444         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
61445         * tests/test-ceilf1.c (main): Remove signbit tests.
61446         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
61447         * doc/posix-functions/ceilf.texi: Mention the new module.
61449 2010-12-21  Bruno Haible  <bruno@clisp.org>
61451         New module 'floorf-ieee'.
61452         * modules/floorf-ieee: New file.
61453         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
61454         test whether floorf works according to ISO C 99 with IEC 60559.
61455         * m4/floorf-ieee.m4: New file.
61456         * modules/floorf-ieee-tests: New file.
61457         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
61458         * tests/test-floorf1.c (main): Remove signbit tests.
61459         * modules/floorf-tests (Depends-on): Remove 'signbit'.
61460         * doc/posix-functions/floorf.texi: Mention the new module.
61462 2010-12-21  Bruno Haible  <bruno@clisp.org>
61464         Support for minus zero in autoconf macros.
61465         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
61466         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
61467         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
61468         * tests/minus-zero.h: Update comments.
61470 2010-12-21  Bruno Haible  <bruno@clisp.org>
61472         Tests for module 'ceil'.
61473         * modules/ceil-tests: New file.
61474         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
61475         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
61477 2010-12-21  Bruno Haible  <bruno@clisp.org>
61479         Tests for module 'floor'.
61480         * modules/floor-tests: New file.
61481         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
61482         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
61484 2010-12-21  Bruno Haible  <bruno@clisp.org>
61486         math: Fix indentation.
61487         * lib/math.in.h (floorf): Fix indentation.
61489 2010-12-21  Bruno Haible  <bruno@clisp.org>
61491         Fix cross-compilation guesses on Solaris.
61492         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
61493         not match "solaris2.10".
61494         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61495         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
61496         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
61498 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61500         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
61501         This fixes a problem observed with the latest coreutils snapshot
61502         that caused a test to fail on Solaris 8.  src/csplit.c's call
61503         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
61504         earlier, instead of returning the number of bytes that would have
61505         been generated; this causes csplit to incorrectly report memory
61506         exhaustion.
61507         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
61508         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
61509         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
61510         comments to match.
61511         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
61512         Fix typo in matching older versions of Solaris: "solaris2.10"
61513         is matched by the shell pattern "solaris2.[0-9]*".  This matters
61514         only for guessing while cross-compiling.
61515         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
61517 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
61519         ftoastr: fix comment again
61520         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61521         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
61522         Also, simplify example a bit by using flags = 0.
61524 2010-12-20  Bruno Haible  <bruno@clisp.org>
61526         round*, trunc*: Update documentation regarding glibc.
61527         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
61528         * doc/posix-functions/round.texi: Likewise.
61529         * doc/posix-functions/roundl.texi: Likewise.
61530         * doc/posix-functions/truncf.texi: Likewise.
61531         * doc/posix-functions/trunc.texi: Likewise.
61532         * doc/posix-functions/truncl.texi: Likewise.
61534 2010-12-20  Bruno Haible  <bruno@clisp.org>
61536         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
61537         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
61538         * doc/posix-functions/round.texi: Likewise.
61539         * doc/posix-functions/roundl.texi: Likewise.
61541 2010-12-20  Bruno Haible  <bruno@clisp.org>
61543         ttyname_r: Add missing declaration on HP-UX 11.
61544         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
61545         HAVE_TTYNAME_R.
61546         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
61547         declared. Set HAVE_TTYNAME_R always.
61548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61549         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
61550         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
61551         HAVE_TTYNAME_R.
61552         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
61554 2010-12-20  Bruno Haible  <bruno@clisp.org>
61556         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
61557         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
61558         * doc/posix-functions/getlogin_r.texi: Likewise.
61559         * tests/test-getlogin.c: Include <errno.h>.
61560         (main): Avoid test failure on HP-UX 11.11.
61561         * tests/test-getlogin_r.c (main): Likewise.
61563 2010-12-20  Bruno Haible  <bruno@clisp.org>
61565         getlogin_r: Add missing declaration on HP-UX 11.
61566         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
61567         declared also when it exists as a function.
61568         * doc/posix-functions/getlogin_r.texi: Document this workaround.
61570 2010-12-20  Bruno Haible  <bruno@clisp.org>
61572         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
61573         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
61574         through wcrtomb.
61576 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61578         ftoastr: fix comment
61579         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61580         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
61582 2010-12-19  Bruno Haible  <bruno@clisp.org>
61584         isnan: Ensure it is a macro.
61585         * lib/math.in.h (isnan): Define as a macro if not already a macro.
61586         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
61587         Solaris.
61589 2010-12-19  Bruno Haible  <bruno@clisp.org>
61591         ldexpl test: Fix link error on OSF/1 5.1.
61592         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
61594 2010-12-19  Bruno Haible  <bruno@clisp.org>
61596         wctype: Make it work in C++ mode on OSF/1 5.1.
61597         * lib/wctype.in.h (iswblank): Declare but not define here.
61598         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
61599         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
61600         * modules/wctype (Files): Add lib/iswblank.c.
61602 2010-12-19  Bruno Haible  <bruno@clisp.org>
61604         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
61605         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
61606         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
61608 2010-12-19  Bruno Haible  <bruno@clisp.org>
61610         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
61611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
61612         _POSIX_PII_SOCKET.
61613         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
61614         * doc/posix-functions/recvfrom.texi: Likewise.
61615         * doc/posix-functions/send.texi: Likewise.
61616         * doc/posix-functions/sendto.texi: Likewise.
61618 2010-12-19  Bruno Haible  <bruno@clisp.org>
61620         tcgetsid: Add missing declaration on OSF/1 5.1.
61621         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
61622         HAVE_TCGETSID.
61623         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
61624         Don't set HAVE_TCGETSID.
61625         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
61626         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
61627         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
61628         HAVE_TCGETSID.
61629         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
61631 2010-12-19  Bruno Haible  <bruno@clisp.org>
61633         stdio: Fix problem with popen() declaration on OSF/1 5.1.
61634         * lib/stdio.in.h: During the include_next statement, let recursive
61635         includes of this file include only the system header file.
61637 2010-12-19  Bruno Haible  <bruno@clisp.org>
61639         iconv_open: Fix regression from 2010-12-04.
61640         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
61641         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
61643 2010-12-19  Bruno Haible  <bruno@clisp.org>
61645         stdbool test: Avoid a gcc warning.
61646         * tests/test-stdbool.c (main): Fail if e1 is false.
61647         Reported by Jim Meyering.
61649 2010-12-19  Jim Meyering  <meyering@redhat.com>
61651         setenv: restore to working order
61652         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
61653         mistakenly removed.
61654         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
61655         HAVE_SETENV.
61656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
61657         HAVE_SETENV.
61659 2010-12-19  Bruno Haible  <bruno@clisp.org>
61661         Document some different function declarations on OSF/1 5.1.
61662         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
61663         * doc/posix-functions/inet_ntop.texi: Likewise.
61664         * doc/posix-functions/gethostname.texi: Likewise.
61665         * lib/unistd.in.h (gethostname): Update comment.
61667 2010-12-19  Bruno Haible  <bruno@clisp.org>
61669         doc: Mention vasprintf-posix module.
61670         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
61671         the 'vasprintf-posix' module.
61672         * doc/glibc-functions/vasprintf.texi: Likewise.
61674 2010-12-19  Bruno Haible  <bruno@clisp.org>
61676         unsetenv: Add missing declaration on OSF/1 5.1.
61677         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
61678         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
61679         Don't set HAVE_UNSETENV. In the test program, set _BSD.
61680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
61681         not HAVE_UNSETENV.
61682         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
61683         HAVE_UNSETENV.
61684         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
61686 2010-12-19  Bruno Haible  <bruno@clisp.org>
61688         setenv: Add missing declaration on OSF/1 5.1.
61689         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
61690         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
61691         declared. Don't set HAVE_SETENV.
61692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
61693         not HAVE_SETENV.
61694         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
61695         HAVE_SETENV.
61696         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
61698 2010-12-19  Bruno Haible  <bruno@clisp.org>
61700         nl_langinfo tests: Avoid gcc warning.
61701         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
61703 2010-12-19  Bruno Haible  <bruno@clisp.org>
61705         mknod: Avoid error in C++ mode on OSF/1 with GCC.
61706         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
61707         _GL_CXXALIAS_SYS.
61709 2010-12-19  Bruno Haible  <bruno@clisp.org>
61711         stdbool: Relax test.
61712         * tests/test-stdbool.c (e): Don't require that casts from a variable's
61713         address to 'bool' work in static initializer, for compilers other than
61714         GCC.
61716 2010-12-19  Bruno Haible  <bruno@clisp.org>
61718         ftello: Add missing declaration on OSF/1 5.1.
61719         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
61720         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
61721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
61722         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
61723         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
61725 2010-12-19  Bruno Haible  <bruno@clisp.org>
61727         fseeko: Add missing declaration on OSF/1 5.1.
61728         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
61729         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
61730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
61731         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
61732         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
61734 2010-12-19  Bruno Haible  <bruno@clisp.org>
61736         fchdir: Add missing declaration on OSF/1 5.1.
61737         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
61738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
61739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
61740         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
61741         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
61743 2010-12-19  Bruno Haible  <bruno@clisp.org>
61745         relocatable-prog-wrapper: Separate from relocatable-prog.
61746         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
61747         uninstall-relocwrapper rule here.
61748         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
61749         Reported by Ian Beckwith <ianb@erislabs.net>.
61751 2010-12-19  Bruno Haible  <bruno@clisp.org>
61753         unistr/u8-mbsnlen: Add missing dependency.
61754         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
61755         Reported by Ian Beckwith <ianb@erislabs.net>.
61757 2010-12-19  Bruno Haible  <bruno@clisp.org>
61759         iconv: Make it possible again to use this module without 'iconv-h'.
61760         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
61761         if it is not defined.
61762         Reported by Ian Beckwith <ianb@erislabs.net>.
61764 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61766         acl: port to Solaris 8 when copying from tmpfs to ufs
61767         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
61768         error number.  Problem observed on Solaris 8 with latest
61769         coreutils, with "mv A B", where A is on a tmpfs file system and B
61770         is on a ufs file system.  This caused coreutils' mv/part-symlink
61771         test to fail.
61773         tests: set fail=0 at start
61774         * tests/init.sh (setup_): Move fail=0 initialization here ...
61775         (mktempd_): ... from here, so that tests can rely on fail being
61776         set to 0 initially.  This fixes a problem in coreutils; see:
61777         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
61779 2010-12-18  Bruno Haible  <bruno@clisp.org>
61781         memmem-simple: Stylistic changes.
61782         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
61783         Fix preprocessor directive indentation.
61785 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61787         memmem, memmem-simple: reorganize and expand empty needle check
61788         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
61789         functional checks to memmem-simple so that one has a fully functional
61790         memmem by using just this module.
61791         Restrict the performance only check to the memmem module.
61792         Also expand the empty needle check to ensure the correct
61793         pointer is returned, not just a non NULL pointer.
61794         * doc/glibc-functions/memmem.texi: Rearrange the portability
61795         documentation to correlate with the rearranged checks.
61796         Clarify exactly how the memmem and memmem-simple modules
61797         relate to each other.
61799 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61800             Bruno Haible  <bruno@clisp.org>
61802         Improve cross-compilation guesses for uClibc.
61803         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
61804         that uClibc does not have the glibc bug.
61805         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
61806         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
61808 2010-12-14  Eric Blake  <eblake@redhat.com>
61810         configmake: provide fallbacks for oldest supported autotools
61811         * m4/configmake.m4: New file.
61812         * modules/configmake (Files): Ship it.
61813         (configure.ac): Use it to guarantee fallbacks.
61815 2010-12-13  Pádraig Brady  <P@draigBrady.com>
61817         read-file: Improve handling of large files
61818         * lib/read-file.c (fread_file): Minimize realloc()s
61819         for regular files, and better manage sizes around SIZE_MAX.
61821 2010-12-13  Eric Blake  <eblake@redhat.com>
61823         cloexec, fcntl: relax license
61824         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
61825         consent from all contributors.
61826         * modules/fcntl (License): Likewise.
61828 2010-12-10  Bruno Haible  <bruno@clisp.org>
61830         Tests for module 'pipe-posix'.
61831         * modules/pipe-posix-tests: New file.
61832         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
61834 2010-12-10  Bruno Haible  <bruno@clisp.org>
61836         pipe-posix: Make it work in C++ mode.
61837         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
61838         (pipe): Use common idiom, not a macro definition.
61839         * lib/pipe.c: New file.
61840         * m4/pipe.m4: New file.
61841         * modules/pipe-posix (Description): Enhance.
61842         (Files): Add lib/pipe.c, m4/pipe.m4.
61843         (configure.ac): Invoke gl_FUNC_PIPE.
61844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
61845         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
61846         * tests/test-unistd-c++.cc: Check the signature of pipe.
61848 2010-12-10  Bruno Haible  <bruno@clisp.org>
61850         Rename module 'pipe' to 'spawn-pipe'.
61851         * modules/spawn-pipe: New file, renamed from modules/pipe.
61852         (Files, configure.ac, Makefile.am): Update.
61853         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
61854         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
61855         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
61856         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
61857         "spawn-pipe.h" instead of "pipe.h".
61858         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
61859         to gl_SPAWN_PIPE.
61860         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
61861         (Files, Makefile.am): Update.
61862         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
61863         Update.
61864         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
61865         Include "spawn-pipe.h" instead of "pipe.h".
61866         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
61867         * lib/javacomp.c: Likewise.
61868         * lib/javaversion.c: Likewise.
61869         * lib/pipe-filter-gi.c: Likewise.
61870         * lib/pipe-filter-ii.c: Likewise.
61871         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
61872         * modules/javacomp (Depends-on): Likewise.
61873         * modules/javaversion (Depends-on): Likewise.
61874         * modules/pipe-filter-gi (Depends-on): Likewise.
61875         * modules/pipe-filter-ii (Depends-on): Likewise.
61876         * MODULES.html.sh (Executing programs): Update.
61877         * NEWS: Mention the change.
61879 2010-12-10  Eric Blake  <eblake@redhat.com>
61881         pipe-posix: new module
61882         * modules/pipe-posix: New file.
61883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
61884         (gl_UNISTD_H): Check for declaration.
61885         * modules/unistd (Makefile.am): Substitute it.
61886         * lib/unistd.in.h (pipe): Provide it for mingw.
61887         * doc/posix-functions/pipe.texi (pipe): Update documentation.
61888         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
61890 2010-12-07  Bruno Haible  <bruno@clisp.org>
61892         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
61893         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
61894         u8_strcmp_gnu.
61895         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
61897 2010-12-06  Bruno Haible  <bruno@clisp.org>
61899         Update internal documentation.
61900         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
61902 2010-12-04  Bruno Haible  <bruno@clisp.org>
61904         Put more information about failed tests into the test return codes.
61905         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
61906         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
61907         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61909         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
61910         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61911         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61912         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61913         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
61914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61915         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
61916         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61917         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
61918         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61919         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
61920         returns a bit mask.
61921         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
61922         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
61923         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
61924         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
61925         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
61926         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61927         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61929         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61930         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61931         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
61932         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61933         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61934         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61935         * m4/link.m4 (gl_FUNC_LINK): Likewise.
61936         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61937         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
61938         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
61939         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61940         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
61941         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61942         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
61943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
61944         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61945         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61946         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
61947         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
61948         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61949         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61950         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
61951         gl_PRINTF_PRECISION): Likewise.
61952         * m4/regex.m4 (gl_REGEX): Likewise.
61953         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
61954         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
61955         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
61956         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61957         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61958         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61959         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
61960         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
61961         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61962         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61963         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
61964         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
61965         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61966         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61967         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61968         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
61969         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
61970         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61972         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
61973         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
61974         enumerated value.
61975         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
61977 2010-12-04  Bruno Haible  <bruno@clisp.org>
61979         Update for Solaris 11 2010-11.
61980         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
61981         Express, released in November 2010.
61983 2010-12-04  Bruno Haible  <bruno@clisp.org>
61985         nproc: Relax license.
61986         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
61987         and Paul Eggert.
61988         Requested by Ludovic Courtès <ludo@gnu.org>.
61990 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
61992         utimecmp: fine-grained src to nearby coarse-grained dest
61994         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
61995         and the source is on a file system with higher-resolution time
61996         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
61997         not work, and the time stamps are close together, the algorithm to
61998         determine the exact resolution from the read-back mtime was buggy:
61999         it had a "!=" where it should have had an "==".  This bug has been
62000         in the code ever since it was introduced to gnulib.
62001         Problem reported by Dan Jacobson in
62002         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
62004 2010-11-30  Bruno Haible  <bruno@clisp.org>
62006         strerror_r-posix: Fix autoconf test.
62007         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
62009 2010-11-28  Bruno Haible  <bruno@clisp.org>
62010             Paul Eggert  <eggert@cs.ucla.edu>
62012         Tests for module 'getdomainname'.
62013         * modules/getdomainname-tests: New file.
62014         * tests/test-getdomainname.c: New file, based on
62015         tests/test-gethostname.c.
62017 2010-11-28  Bruno Haible  <bruno@clisp.org>
62018             Paul Eggert  <eggert@cs.ucla.edu>
62020         getdomainname: Use the system function when possible.
62021         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
62022         (getdomainname): Replace if needed. Provide the declaration if it is
62023         missing. Don't use _GL_CXXALIAS_SYS_CAST.
62024         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
62025         (getdomainname): When the system has getdomainname, call the system
62026         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
62027         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
62028         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
62029         found in libnsl. Look for the declaration also in <netdb.h>. Replace
62030         the function if its second argument is of type 'int' or if it is found
62031         in libnsl.
62032         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
62033         <sys/systeminfo.h> and sysinfo().
62034         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
62035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62036         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
62037         HAVE_GETDOMAINNAME.
62038         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
62039         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
62040         * doc/glibc-functions/getdomainname.texi: Document the problems with
62041         the getdomainname declaration.
62043 2010-11-28  Bruno Haible  <bruno@clisp.org>
62045         sys_socket: Ensure ss_family field on AIX.
62046         * lib/sys_socket.in.h (ss_family): New macro definition.
62047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
62048         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
62049         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62050         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62051         * modules/sys_socket (Makefile.am): Substitute
62052         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62053         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
62055 2010-11-27  Bruno Haible  <bruno@clisp.org>
62057         readline: Improve configure output.
62058         * m4/readline.m4 (gl_FUNC_READLINE): Make the
62059         "checking for readline..." result understandable.
62061 2010-11-27  Bruno Haible  <bruno@clisp.org>
62063         *printf-posix: Detect a bug on Solaris 10/x86.
62064         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
62065         for floating-point output.
62066         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
62067         directive.
62068         * tests/test-snprintf-posix.h (test_function): Likewise.
62069         * tests/test-sprintf-posix.h (test_function): Likewise.
62070         * tests/test-vasprintf-posix.c (test_function): Likewise.
62071         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
62072         * doc/posix-functions/printf.texi: Likewise.
62073         * doc/posix-functions/snprintf.texi: Likewise.
62074         * doc/posix-functions/sprintf.texi: Likewise.
62075         * doc/posix-functions/vfprintf.texi: Likewise.
62076         * doc/posix-functions/vprintf.texi: Likewise.
62077         * doc/posix-functions/vsnprintf.texi: Likewise.
62078         * doc/posix-functions/vsprintf.texi: Likewise.
62079         * doc/glibc-functions/obstack_printf.texi: Likewise.
62080         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62082 2010-11-27  Bruno Haible  <bruno@clisp.org>
62084         Fix link error when module libunistring-optional is in use.
62085         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
62086         * modules/striconveha-tests (Makefile.am): Likewise.
62088 2010-11-27  Bruno Haible  <bruno@clisp.org>
62090         regex: Mention link dependencies.
62091         * modules/regex (Link): New section.
62092         * modules/rpmatch (Link): Likewise.
62093         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
62095 2010-11-27  Bruno Haible  <bruno@clisp.org>
62097         ftoastr: Fix compilation error on Solaris.
62098         * lib/ftoastr.c: Include <config.h>.
62100 2010-11-27  Bruno Haible  <bruno@clisp.org>
62102         getloadavg: Update documentation.
62103         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
62105 2010-11-27  Bruno Haible  <bruno@clisp.org>
62107         sys_socket: Fix test whether the functions are declared.
62108         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
62109         not <sys/select.h>.
62111 2010-11-27  Bruno Haible  <bruno@clisp.org>
62113         getpass: Make sure to get system declaration on some platforms.
62114         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
62115         gl_USE_SYSTEM_EXTENSIONS.
62116         * modules/getpass (Depends-on): Add extensions.
62118 2010-11-26  Bruno Haible  <bruno@clisp.org>
62120         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
62121         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
62122         'iconv' module is present.
62123         (ICONV_CONST): New macro.
62124         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
62125         ICONV_CONST.
62126         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
62127         set ICONV_CONST.
62128         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
62129         here.
62130         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
62131         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
62132         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
62133         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
62134         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
62135         present.
62137 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62139         ftoastr: comment fix
62140         * lib/ftoastr.c: "little" -> "little or no" in comment
62142 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
62144         stdint: port to GCC 4.3 + OSX + Octave
62145         On this platform, stdint.h is buggy and defines int64_t to long
62146         long int.  The replacement defined it to long int, causing
62147         problems with C++ style name mangling.  Instead, trust the system
62148         definition if INT64_MAX is defined, and likewise for the unsigned
62149         variant.   Problem reported by Jarno Rajahalme in
62150         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
62151         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
62152         and don't mess with int64_t and INT64_MAX in this case.
62153         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
62155 2010-11-24  Bruno Haible  <bruno@clisp.org>
62157         doc: Corrections regarding MacOS X 10.4 and 10.5.
62158         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
62159         MacOS X.
62160         Reported by Simon Josefsson.
62162 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
62164         Uninstall ".bin" files installed by relocwrapper.
62165         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
62166         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
62167         unless it is already there.
62169 2010-11-21  Bruno Haible  <bruno@clisp.org>
62171         Update for NetBSD 5.0.
62172         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62173         NetBSD; the test fails on NetBSD 5.0.
62174         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62175         about NetBSD.
62177 2010-11-21  Bruno Haible  <bruno@clisp.org>
62179         Update for HP-UX 11.23 and HP-UX 11.31.
62180         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
62181         HP-UX.
62183 2010-11-21  Bruno Haible  <bruno@clisp.org>
62185         Update for MacOS X 10.5.
62186         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62187         MacOS X; the test fails on MacOS X 10.5.8.
62188         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62189         about MacOS X.
62191 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
62193         bootstrap: add bootstrap_sync option.
62194         See discussion at
62195         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
62196         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
62197         * build-aux/bootstrap: Accept --bootstrap-sync to update
62198         bootstrap if it is not identical to the local gnulib's
62199         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
62200         enable this by default.  Accept --no-bootstrap-sync to disable
62201         it.
62203 2010-11-20  Bruno Haible  <bruno@clisp.org>
62205         Ensure that <features.h> is included before __GLIBC__ is tested.
62206         * lib/printf-parse.h: Include <features.h>.
62207         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
62208         Reported by Mike Frysinger <vapier@gentoo.org>.
62210         Ensure that <features.h> is included before __GLIBC__ is tested.
62211         * lib/wchar.in.h: Include <features.h>.
62212         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
62213         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
62214         Reported by Mike Frysinger <vapier@gentoo.org>.
62216         Ensure that <features.h> is included before __GLIBC__ is tested.
62217         * lib/arpa_inet.in.h: Include <features.h>.
62218         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
62219         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
62220         Reported by Mike Frysinger <vapier@gentoo.org>.
62222         Ensure that <features.h> is included before __GLIBC__ is tested.
62223         * build-aux/link-warning.h: Include <features.h>.
62224         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
62225         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
62226         Reported by Mike Frysinger <vapier@gentoo.org>.
62228         Ensure that <features.h> is included before __GLIBC__ is tested.
62229         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
62230         Reported by Mike Frysinger <vapier@gentoo.org>.
62232 2010-11-20  Bruno Haible  <bruno@clisp.org>
62234         memmem: Fix autoconf test.
62235         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
62237 2010-11-20  Bruno Haible  <bruno@clisp.org>
62239         Port to uClibc.
62240         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
62241         * lib/fcntl.in.h: Likewise.
62242         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
62243         * lib/mbrtowc.c (mbrtowc): Likewise.
62244         * lib/relocatable.c (find_shared_library_fullname): Likewise.
62245         * lib/strerror_r.c: Likewise.
62246         * lib/unistr/u8-strnlen.c: Likewise.
62247         * lib/vasnprintf.c (decimal_point_char): Likewise.
62248         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62249         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62250         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62251         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62252         * tests/test-sigaction.c (handler, main): Likewise.
62253         * lib/freading.h: Treat uClibc like a non-glibc platform.
62254         * lib/freading.c: Likewise.
62255         * lib/gettext.h: Likewise.
62256         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
62257         Likewise.
62258         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
62259         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62260         * lib/propername.c (proper_name_utf8): Likewise.
62261         * lib/spawn.in.h: Likewise.
62262         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
62263         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
62264         mem_cd_iconveh_internal): Likewise.
62265         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
62266         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62267         strstr, strcasestr): Likewise.
62268         * lib/unicodeio.c (unicode_to_mb): Likewise.
62269         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
62270         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
62271         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
62272         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
62273         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
62274         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
62275         * lib/unistr/u8-stpncpy.c: Likewise.
62276         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62277         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
62278         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62279         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62280         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62281         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
62282         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
62283         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
62284         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
62285         Likewise.
62286         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62287         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62288         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62290         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62291         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62292         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62293         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
62294         * tests/test-getopt.h (OPTIND_MIN): Likewise.
62295         * tests/test-striconveha.c (main): Likewise.
62296         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62297         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
62298         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
62299         * doc/posix-functions/getline.texi: Likewise.
62300         Reported by Mike Frysinger <vapier@gentoo.org>.
62302 2010-11-20  Bruno Haible  <bruno@clisp.org>
62304         nproc: Fix condition.
62305         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
62306         HAVE_PTHREAD_AFFINITY_NP.
62308 2010-11-20  Bruno Haible  <bruno@clisp.org>
62310         Fix a comment.
62311         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
62313 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62315         ftoastr: don't assume snprintf
62316         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
62317         Implement a subset of snprintf here, by using sprintf safely.
62318         * modules/ftoastr (Depends-on): Remove snprintf.
62320 2010-11-19  Jim Meyering  <meyering@redhat.com>
62322         test-rename.h: fix compilation failure
62323         * tests/test-rename.h (test_rename): Add omitted "}".
62325 2010-11-17  Jim Meyering  <meyering@redhat.com>
62327         maint.mk: add a URL discussing the no-@acronym policy
62328         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
62330 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
62332         ftoastr: depend on snprintf, improve comments
62333         * lib/ftoastr.c: Also mention Loitsch's draft.
62334         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
62335         needed in the current implementation, but it might simplify
62336         speeding up the code later.
62337         * modules/ftoastr: Depend on snprintf; this improves portability.
62338         Suggested by Bruno Haible in the same email.
62340         ftoastr: port to hosts lacking strtof and strtold
62341         Problem reported by Bruno Haible in
62342         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
62343         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
62344         environment and strtold (and presumably strtof) are not available.
62345         * modules/ftoastr (Files): Add m4/c-strtod.m4.
62346         (configure.ac): Require gl_C99_STRTOLD.
62348 2010-11-18  Bruno Haible  <bruno@clisp.org>
62350         c-strtold: Avoid link error on AIX 7.
62351         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
62352         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
62353         (gl_C_STRTOLD): Test whether strtold_l exists.
62354         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62356 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62358         intprops: new macro INT_BITS_STRLEN_BOUND
62359         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
62360         ftoastr.h.  This exposes an internal of intprops.h that was formerly
62361         not exposed.  Also, it uses a slightly tighter bound than before;
62362         though this makes no practical difference, we might as well be as
62363         tight as we easily can.
62365         ftoastr: new module, for lossless conversion of floats to short strings
62366         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
62367         * modules/ftoastr: New files.
62369 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62371         bootstrap: port to Solaris sed
62372         * build-aux/bootstrap (get_version): Port to Solaris sed.
62373         See Ralf Wildenhues's note in
62374         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
62376 2010-11-14  Jim Meyering  <meyering@redhat.com>
62378         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
62379         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
62380         and move definition closer to sole use.
62382 2010-11-13  Jim Meyering  <meyering@redhat.com>
62384         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
62385         Now we require at least autoconf-2.59, which means the work-around
62386         is no longer needed.
62387         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
62388         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62389         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62390         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62391         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62393 2010-11-13  Bruno Haible  <bruno@clisp.org>
62395         rename, renameat: Avoid test failures at NFS mounted locations.
62396         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
62397         functions.
62398         (test_rename): Use assert_nonexistent.
62399         * tests/test-rename.c: Include <dirent.h>.
62400         * tests/test-renameat.c: Likewise.
62401         Reported by Gary V. Vaughan <gary@gnu.org>.
62403         rename, renameat: Document Linux bug with NFS
62404         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
62405         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
62406         * doc/posix-functions/renameat.texi: Likewise.
62407         Suggested by Eric Blake.
62409 2010-11-13  Bruno Haible  <bruno@clisp.org>
62411         rename test: Add comments.
62412         * tests/test-rename.h (test_rename): Add structure and comments.
62414 2010-11-13  Eric Blake  <eblake@redhat.com>
62416         maintainer-makefile: cover a few more files
62417         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
62418         scripts generated within C files, for libvirt.
62420 2010-11-13  Bruno Haible  <bruno@clisp.org>
62422         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
62423         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
62424         character, return the number of bytes that belong together, not always
62425         1.
62426         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
62427         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
62428         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
62429         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
62430         number of bytes of an invalid character.
62431         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
62432         (main): Invoke it.
62433         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
62434         results.
62435         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
62436         malformed byte sequences.
62437         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
62438         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
62439         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
62440         Reported by Ben Pfaff and Paolo Bonzini.
62442 2010-11-13  Bruno Haible  <bruno@clisp.org>
62444         openat: Work around glibc bug with fchownat() and empty file names.
62445         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
62446         (gl_FUNC_FCHOWNAT): Invoke it.
62447         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
62448         * doc/posix-functions/fchownat.texi: Document the glibc bug.
62449         Reported by Gary V. Vaughan <gary@gnu.org>.
62451 2010-11-13  Bruno Haible  <bruno@clisp.org>
62453         openat: Ensure autoconf macro ordering.
62454         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
62455         gl_USE_SYSTEM_EXTENSIONS.
62456         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
62458 2010-11-13  Bruno Haible  <bruno@clisp.org>
62460         Update comments.
62461         * lib/unistr/u8-check.c: Update file name in comments.
62462         * lib/unistr/u8-mblen.c: Likewise.
62463         * lib/unistr/u8-prev.c: Likewise.
62464         * lib/unistr/u8-strmblen.c: Likewise.
62465         * lib/unistr/u8-strmbtouc.c: Likewise.
62467 2010-11-13  Jim Meyering  <meyering@redhat.com>
62469         tests: avoid test failure on Solaris 10 due to lack of PATH export
62470         * tests/test-update-copyright.sh: Don't forget to export PATH.
62472         init.sh: ensure that IFS is defined, just in case...
62473         * tests/init.sh (setup_): Ensure that IFS is defined,
62474         so that saving and restoring it works as expected.  This
62475         appears to be useful at least for an old version of dash
62476         from a long time ago (RH 6).  See here for details:
62477         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
62479         maint.mk: tighten "test a == b" check
62480         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
62481         test to files that contain something like #!/bin/sh.
62482         Without this, coreutils would get two false positives in
62483         the comments of C source files.
62485 2010-11-12  Eric Blake  <eblake@redhat.com>
62487         bootstrap: fix typo in previous attempt
62488         * build-aux/bootstrap (buildreq): Correct the grouping.
62489         Reported by Paul Eggert.
62491         maintainer-makefile: prohibit test x == x
62492         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
62493         Based on a report by Matthias Bolte.
62495         bootstrap: allow FreeBSD gzip
62496         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
62497         which has no '.' and goes to stderr.
62498         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
62499         Reported by Matthias Bolte.
62501         maintainer-makefile: check for i18n setup
62502         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
62503         will likely work.
62505 2010-11-12  Bruno Haible  <bruno@clisp.org>
62507         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
62508         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
62509         * lib/nanosleep.c (nanosleep): Likewise.
62511 2010-11-11  Bruno Haible  <bruno@clisp.org>
62513         fcntl-h: Fix for use of C++ on glibc systems.
62514         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62515         also on glibc systems in C++ mode.
62516         Reported by Gary V. Vaughan <gary@gnu.org>.
62518 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62520         mknod: avoid false failure with dash
62521         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
62523 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62525         unlink: Fix "is it should" typo in diagnostic.
62526         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
62527         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
62529 2010-11-11  Bruno Haible  <bruno@clisp.org>
62531         Tests for module 'strerror_r-posix'.
62532         * modules/strerror_r-posix-tests: New file.
62533         * tests/test-strerror_r.c: New file.
62534         * tests/test-string-c++.cc: Check the signature of strerror_r.
62536         New module 'strerror_r-posix'.
62537         * lib/string.in.h (strerror_r): New declaration.
62538         * lib/strerror_r.c: New file.
62539         * m4/strerror_r.m4: New file.
62540         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
62541         of strerror_r.
62542         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
62543         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62544         * modules/strerror_r-posix: New file.
62545         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
62546         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62547         * doc/posix-functions/strerror_r.texi: Mention the new module and the
62548         portability problems.
62550 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
62552         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
62553         line is also considered for output. Quoted function name in shell
62554         command, so temporary files for functions like MyClass::operator()
62555         are removed correctly without errors.
62557 2010-11-09  Bruno Haible  <bruno@clisp.org>
62559         * doc/posix-functions/strerror.texi: List more failing platforms.
62561         * doc/posix-functions/strerror.texi: Add a comment.
62563 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62565         fdopendir: fix bug on MacOS X when low on file descriptors
62567         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
62568         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
62569         All callers changed.
62570         (fdopendir): Invoke save_cwd at the top level, not after using
62571         multiple dup() calls to use up file descriptors.  Then retry
62572         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
62573         less than the maximum number of open file descriptors, because
62574         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
62575         on Mac OS X 10.6.4 for tar 1.24
62576         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
62577         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
62578         and for tar 1.25
62579         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
62581 2010-11-07  Bruno Haible  <bruno@clisp.org>
62583         vasnprintf: Support I flag on glibc systems.
62584         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
62585         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
62586         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
62587         snprintf function.
62588         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
62589         glibc systems.
62590         * tests/test-vasnprintf-posix3.c: New file.
62591         * modules/vasnprintf-posix-tests (Files): Add it.
62592         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
62594 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62596         [html] Fix copy/paste bug: Use unique name for compiler warnings.
62597         * MODULES.html.sh: For compiler warnings, use name
62598         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
62600 2010-11-05  Eric Blake  <eblake@redhat.com>
62602         ceil, floor: avoid spurious failure with icc
62603         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
62604         [denormals-as-zero] when optimizing without -mieee-fp option.
62605         * tests/test-floorf2.c (floorf_reference): Likewise.
62606         * tests/test-ceilf1.c (dummy): New function.
62607         (main): Use it to outsmart icc's optimization.
62608         * tests/test-floorf1.c (dummy, main): Likewise.
62610         tests: require working signbit
62611         * modules/ceilf-tests (Depends-on): Add signbit.
62612         * modules/ceill-tests (Depends-on): Likewise.
62613         * modules/floorf-tests (Depends-on): Likewise.
62614         * modules/floorl-tests (Depends-on): Likewise.
62615         * modules/round-tests (Depends-on): Likewise.
62616         * modules/roundf-tests (Depends-on): Likewise.
62617         * modules/roundl-tests (Depends-on): Likewise.
62618         * modules/trunc-tests (Depends-on): Likewise.
62619         * modules/truncf-tests (Depends-on): Likewise.
62620         * modules/truncl-tests (Depends-on): Likewise.
62622         strtod: work around icc bug
62623         * lib/strtod.c (minus_zero): Define to working value.
62624         (strtod): Use it to avoid icc bug.
62626         copysign: enhance tests
62627         * modules/copysign-tests (Files): Add minus-zero.h.
62628         * tests/test-copysign.c (main): Also test zeros.
62630 2010-11-04  Eric Blake  <eblake@redhat.com>
62632         ceil, floor, round, trunc: enhance tests of -0
62633         * tests/test-ceilf1.c (main): Ensure correct sign of result.
62634         * tests/test-ceill.c (main): Likewise.
62635         * tests/test-floorf1.c (main): Likewise.
62636         * tests/test-floorl.c (main): Likewise.
62637         * tests/test-round1.c (main): Likewise.
62638         * tests/test-roundf1.c (main): Likewise.
62639         * tests/test-roundl.c (main): Likewise.
62640         * tests/test-trunc1.c (main): Likewise.
62641         * tests/test-truncf1.c (main): Likewise.
62642         * tests/test-truncl.c (main): Likewise.
62644 2010-11-04  Eric Blake  <eblake@redhat.com>
62646         frexp, tests: work around ICC bug with -zero
62647         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
62648         works with more compilers.
62649         * tests/minus-zero.h: New file.
62650         * modules/ceilf-tests (Files): Include it.
62651         * modules/ceill-tests (Files): Likewise.
62652         * modules/floorf-tests (Files): Likewise.
62653         * modules/floorl-tests (Files): Likewise.
62654         * modules/frexp-nolibm-tests (Files): Likewise.
62655         * modules/frexp-tests (Files): Likewise.
62656         * modules/frexpl-nolibm-tests (Files): Likewise.
62657         * modules/frexpl-tests (Files): Likewise.
62658         * modules/isnan-tests (Files): Likewise.
62659         * modules/isnand-nolibm-tests (Files): Likewise.
62660         * modules/isnand-tests (Files): Likewise.
62661         * modules/isnanf-nolibm-tests (Files): Likewise.
62662         * modules/isnanf-tests (Files): Likewise.
62663         * modules/isnanl-nolibm-tests (Files): Likewise.
62664         * modules/isnanl-tests (Files): Likewise.
62665         * modules/round-tests (Files): Likewise.
62666         * modules/roundf-tests (Files): Likewise.
62667         * modules/roundl-tests (Files): Likewise.
62668         * modules/ldexpl-tests (Files): Likewise.
62669         * modules/signbit-tests (Files): Likewise.
62670         * modules/snprintf-posix-tests (Files): Likewise.
62671         * modules/sprintf-posix-tests (Files): Likewise.
62672         * modules/strtod-tests (Files): Likewise.
62673         * modules/trunc-tests (Files): Likewise.
62674         * modules/truncf-tests (Files): Likewise.
62675         * modules/truncl-tests (Files): Likewise.
62676         * modules/vsnprintf-posix-tests (Files): Likewise.
62677         * modules/vsprintf-posix-tests (Files): Likewise.
62678         * modules/vasnprintf-posix-tests (Files): Likewise.
62679         * modules/vasprintf-posix-tests (Files): Likewise.
62680         * tests/test-ceilf1.c (main): Use it.
62681         * tests/test-ceill.c (main): Likewise.
62682         * tests/test-floorf1.c (main): Likewise.
62683         * tests/test-floorl.c (main): Likewise.
62684         * tests/test-frexp.c (main): Likewise.
62685         * tests/test-frexpl.c (main): Likewise.
62686         * tests/test-isnan.c (main): Likewise.
62687         * tests/test-isnand.h (main): Likewise.
62688         * tests/test-isnanf.h (main): Likewise.
62689         * tests/test-isnanl.h (main): Likewise.
62690         * tests/test-ldexpl.c (main): Likewise.
62691         * tests/test-round.c (main): Likewise.
62692         * tests/test-roundf.c (main): Likewise.
62693         * tests/test-roundl.c (main): Likewise.
62694         * tests/test-signbit.c (test_signbitf, test_signbitd)
62695         (test_signbitl): Likewise.
62696         * tests/test-snprintf-posix.h (test_function): Likewise.
62697         * tests/test-sprintf-posix.h (test_function): Likewise.
62698         * tests/test-strtod.c (main): Likewise.
62699         * tests/test-trunc1.c (main): Likewise.
62700         * tests/test-truncf1.c (main): Likewise.
62701         * tests/test-truncl.c (main): Likewise.
62703         isnanl: work around icc bug
62704         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
62706 2010-11-03  Eric Blake  <eblake@redhat.com>
62708         tests: fix compiler warnings
62709         * tests/test-getopt.h (test_getopt): Fix condition.
62710         * tests/test-getopt_long.h (test_getopt_long): Likewise.
62711         * tests/test-pipe2.c (main): Likewise.
62712         * tests/test-quotearg-simple.c (main): Avoid icc warning.
62714         utimens: fix broken m4 test
62715         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
62717 2010-10-28  Bruno Haible  <bruno@clisp.org>
62719         posix_spawn*, getdtablesize: Relax license.
62720         * modules/posix_spawn (License): Change to LGPLv2+.
62721         * modules/posix_spawnp (License): Likewise.
62722         * modules/posix_spawn-internal (License): Likewise.
62723         * modules/posix_spawnattr_init (License): Likewise.
62724         * modules/posix_spawnattr_getflags (License): Likewise.
62725         * modules/posix_spawnattr_setflags (License): Likewise.
62726         * modules/posix_spawnattr_getpgroup (License): Likewise.
62727         * modules/posix_spawnattr_setpgroup (License): Likewise.
62728         * modules/posix_spawnattr_getschedparam (License): Likewise.
62729         * modules/posix_spawnattr_setschedparam (License): Likewise.
62730         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
62731         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
62732         * modules/posix_spawnattr_getsigdefault (License): Likewise.
62733         * modules/posix_spawnattr_setsigdefault (License): Likewise.
62734         * modules/posix_spawnattr_getsigmask (License): Likewise.
62735         * modules/posix_spawnattr_setsigmask (License): Likewise.
62736         * modules/posix_spawnattr_destroy (License): Likewise.
62737         * modules/posix_spawn_file_actions_init (License): Likewise.
62738         * modules/posix_spawn_file_actions_addclose (License): Likewise.
62739         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
62740         * modules/posix_spawn_file_actions_addopen (License): Likewise.
62741         * modules/posix_spawn_file_actions_destroy (License): Likewise.
62742         * modules/getdtablesize (License): Likewise.
62743         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
62745 2010-10-26  Bruno Haible  <bruno@clisp.org>
62747         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
62748         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
62749         Cygwin and mingw.
62750         Suggested by Eric Blake.
62752 2010-10-26  Bruno Haible  <bruno@clisp.org>
62754         stdio: Work around compilation error due to renameat() on Solaris 10.
62755         * lib/stdio.in.h: Include <unistd.h> on Solaris.
62756         * lib/renameat.c: Don't include <unistd.h> here.
62757         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
62758         Reported by Paul Eggert and Eric Blake.
62760 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62762         renameat: port to Solaris 10, which declares renameat in unistd.h
62764         * lib/renameat.c: Include unistd.h before stdio.h, because
62765         Solaris 10 declares renameat in unistd.h.  Problem encountered
62766         when building GNU tar 1.24 on Solaris 10.
62768 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62770         fdopendir: fix C89 compilation
62771         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
62772         compilers.
62774 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
62776         inttostr: simplify by removing unnecessary redundancy
62777         * lib/anytostr.c: Don't include verify.h.
62778         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
62779         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
62780         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
62781         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
62782         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
62783         Likewise.
62784         * modules/inttostr (Depends-on): Remove 'verify'.
62786 2010-10-23  Bruno Haible  <bruno@clisp.org>
62788         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
62789         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
62790         Reported by Eric Blake.
62792 2010-10-23  Bruno Haible  <bruno@clisp.org>
62794         Tests: Fix LOCALE_JA on MirBSD 10.
62795         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
62796         to an UTF-8 locale.
62797         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
62798         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62799         Reported by Eric Blake.
62801 2010-10-21  Bruno Haible  <bruno@clisp.org>
62803         nl_langinfo test: Avoid test failure on NetBSD 5.
62804         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
62805         Reported by Eric Blake.
62807 2010-10-21  Eric Blake  <eblake@redhat.com>
62809         c-stack: work around libsigsegv 2.8 bug
62810         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
62811         overflow on at least PowerPC64.
62813 2010-10-17  Bruno Haible  <bruno@clisp.org>
62815         userspec: Drop redundant file.
62816         * modules/userspec (Files): Remove lib/inttostr.h.
62818 2010-10-17  Bruno Haible  <bruno@clisp.org>
62820         nl_langinfo tests: Silence some warnings.
62821         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
62822         Reported by Jim Meyering.
62824 2010-10-17  Bruno Haible  <bruno@clisp.org>
62826         Make use of GCC's attribute __alloc_size__.
62827         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
62828         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
62829         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
62830         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
62831         __alloc_size__.
62832         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
62833         Suggested by Jim Meyering.
62835 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
62837         bootstrap: anchor .gitignore entries.
62838         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
62839         with...
62840         (insert_vc_ignore): ... this new function, which prepends `/' to
62841         all .gitignore entries before passing them to
62842         insert_sorted_if_absent.
62844 2010-10-16  Bruno Haible  <bruno@clisp.org>
62846         nextafter: Fix configure check.
62847         * modules/nextafter (configure.ac): Correct expected prototype.
62849 2010-10-16  Bruno Haible  <bruno@clisp.org>
62851         termios: Update documentation.
62852         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
62854 2010-10-16  Bruno Haible  <bruno@clisp.org>
62856         tests: Make them compile with TinyCC.
62857         * tests/test-strstr.c (main): Remove parentheses around array
62858         initializer.
62860 2010-10-15  Eric Blake  <eblake@redhat.com>
62862         ignore-value: make header idempotent
62863         * lib/ignore-value.h: Add double-inclusion guards.
62864         Reported by Stefan Berger.
62866 2010-10-15  Jim Meyering  <meyering@redhat.com>
62868         GNUmakefile: handle "stable" target, not "major"
62869         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
62870         lists in maint.mk and announce-gen.  Without this, "make stable"
62871         would fail to ensure that $(VERSION) is up to date.
62873 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
62875         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
62876         & co.
62878 2010-10-14  Bruno Haible  <bruno@clisp.org>
62880         vasnprintf: Don't set errno to 0.
62881         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
62882         block that sets it to 0.
62883         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
62885 2010-10-14  Bruno Haible  <bruno@clisp.org>
62887         socketlib: Fix.
62888         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
62889         gl_PREREQ_SYS_H_WINSOCK2.
62890         Reported by Ian Beckwith <ianb@erislabs.net>.
62892 2010-10-13  Jim Meyering  <meyering@redhat.com>
62894         test-select-stdin.c: avoid warn_unused_result warnings
62895         * tests/test-select-stdin.c: Include "macros.h".
62896         ASSERT that read and fflush succeed.
62898 2010-10-13  Jim Meyering  <meyering@redhat.com>
62900         git-version-gen: do require git-VC'd files in cwd
62901         * build-aux/git-version-gen: Reject a git version string
62902         if there are no commits associated with the current directory.
62903         This avoids an unlikely false-positive (unrelated dir whose parent
62904         repository also contains a tag matching v*), as pointed out
62905         by Giuseppe Scrivano in
62906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
62908 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62910         argv-iter: omit nonconforming declaration
62911         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
62912         enum arg_iter_err declaration, which doesn't conform to C99.
62913         Solaris 10 cc warns about this.
62915 2010-10-13  Eric Blake  <eblake@redhat.com>
62917         termios: fix compilation on mingw
62918         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
62919         (gl_TERMIOS_H): Adjust it on mingw.
62920         * modules/termios (Makefile.am): Substitute new key.
62921         * lib/termios.in.h (includes): Make include_next conditional.
62922         * doc/posix-headers/termios.texi (termios.h): Update
62923         documentation.
62924         Reported by Daniel P. Berrange.
62926 2010-10-13  Jim Meyering  <meyering@redhat.com>
62928         git-version-gen: don't require that .git/ be in the current dir
62929         * build-aux/git-version-gen: Adjust this script so that it works
62930         when run from any working directory beneath the top-level .git/-
62931         containing directory.  Inspired by a patch from Giuseppe Scrivano,
62932         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
62934         test-select: avoid warn_unused_result warnings
62935         * tests/test-select.c: Include "macros.h".
62936         ASSERT that each call to read, write, and pipe succeeds.
62937         While not technically required, also check each "close".
62938         * modules/select-tests (Files): Add tests/macros.h.
62940         test-symlinkat: remove declaration of unused local
62941         * tests/test-symlinkat.c (main): Remove unused local, "buf".
62943         test-inttostr: avoid shadowing warnings
62944         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
62945         and use malloc rather than the stack for the same reason as
62946         mentioned in the comment justifying the other allocation.
62948 2010-10-11  Bruno Haible  <bruno@clisp.org>
62950         stdlib: Allow multiple gnulib generated replacements to coexist.
62951         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
62952         Reported by Sam Steingold <sds@gnu.org>.
62954 2010-10-11  Jim Meyering  <meyering@redhat.com>
62956         fix a documentation typo
62957         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
62959 2010-10-11  Eric Blake  <eblake@redhat.com>
62961         futimens: work around Solaris 11 bug
62962         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
62963         * tests/test-futimens.h (test_futimens): Enhance, rather than
62964         weaken test.
62965         * doc/posix-functions/futimens.texi (futimens): Document the bug.
62967 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62969         Indentation.
62970         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
62971         higher-level operators more to the left.
62973 2010-10-11  Jim Meyering  <meyering@redhat.com>
62975         test-futimens: avoid unwarranted test failure on Solaris 5.11
62976         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
62977         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
62978         because it tries to dereference the NULL name argument.
62980 2010-10-11  Bruno Haible  <bruno@clisp.org>
62982         Indentation.
62983         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
62984         indentation.
62986 2010-10-11  Jim Meyering  <meyering@redhat.com>
62988         spawn.in.h: make indentation consistent with parentheses
62989         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
62990         Make indentation consistent with parentheses.
62992 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
62994         Fix mismatched parens in previous commit
62995         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
62996         parens.
62998 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63000         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
63002         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
63003         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
63004         * lib/malloca.c: Include "verify.h".
63005         (verify1): Remove, replacing with a verify call.
63006         * lib/relocwrapper.c (verify1): Likewise.
63007         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
63008         Likewise.
63009         * modules/malloca (Depends-on): Add 'verify'.
63010         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
63011         * modules/vasnprintf (Depends-on): Add 'verify'.
63012         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63013         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63014         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63015         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63016         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63017         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63018         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63020         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
63022         Formerly the style was sometimes 2*X - 1, because the C standard
63023         was wrongly thought to disallow ?: in integral constant expressions.
63024         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
63025         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
63026         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
63027         * lib/stdint.in.h (_verify_intmax_size): Likewise.
63028         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
63029         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
63030         verify that time_t cannot be floating.
63032 2010-10-08  Eric Blake  <eblake@redhat.com>
63034         time: enforce recent POSIX ruling that time_t is integral
63035         * lib/time.in.h (__time_t_must_be_integral): Detect any
63036         problematic systems, allowing the rest of gnulib to assume POSIX.
63038 2010-10-08  Jim Meyering  <meyering@redhat.com>
63040         fdopendir: fix a bug on systems lacking openat and /proc support
63041         OpenBSD 4.7 is one such system.  The most noticeable effect was
63042         failure of any application making nontrivial use of fts: rm, du,
63043         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
63044           ./rm: traversal failed: `a': Bad file descriptor
63045         Debugging that, you see that even though FD 6 was closed just
63046         prior to the opendir call in fd_clone_opendir, its resulting
63047         dir->dd_fd was 8, rather than the expected value of 6:
63049         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
63050         93                close (fd);
63051         (gdb) n
63052         94                dir = fd_clone_opendir (dupfd);
63053         (gdb) n
63054         95                saved_errno = errno;
63055         (gdb) p dir->dd_fd
63056         $11 = 8
63058         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
63059         The problem is that on OpenBSD, fd_clone_opendir has to resort
63060         to using the old-style save/restore CWD mechanism, due to its
63061         lack of openat/proc support, and *that* would steal the FD (6)
63062         that opendir was supposed to use.
63064         The fix is to squirrel away the desired FD so that save_cwd uses a
63065         different one, and then free the dest FD right before calling opendir.
63066         That guarantees opendir will use the required file descriptor.
63068         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
63070 2010-10-08  Bruno Haible  <bruno@clisp.org>
63072         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
63073         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
63075 2010-10-08  Bruno Haible  <bruno@clisp.org>
63077         nanosleep: Make replacement POSIX compliant.
63078         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
63079         is out of range.
63080         Reported by Jim Meyering.
63082 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63084         bootstrap: add hook for altering gnulib.mk, for Bison
63085         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
63086         the Bison bootstrapping process can rewrite file names and variables
63087         in this file before later parts of 'bootstrap' use the file.
63088         Bison wants to include lib/gnulib.mk from the top-level makefile,
63089         so it needs the file names in this file to be relative to the top
63090         level, not relative to lib; plus it needs variable names to be
63091         rewritten.
63092         (slurp): Use the new function.
63094         bootstrap: reformat for readability
63095         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
63097 2010-10-08  Eric Blake  <eblake@redhat.com>
63099         docs: update cygwin progress
63100         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
63101         1.7.7.
63102         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
63103         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
63104         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
63105         * doc/posix-functions/carg.texi (carg): Likewise.
63106         * doc/posix-functions/cargf.texi (cargf): Likewise.
63107         * doc/posix-functions/casin.texi (casin): Likewise.
63108         * doc/posix-functions/casinf.texi (casinf): Likewise.
63109         * doc/posix-functions/casinh.texi (casinh): Likewise.
63110         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
63111         * doc/posix-functions/catan.texi (catan): Likewise.
63112         * doc/posix-functions/catanf.texi (catanf): Likewise.
63113         * doc/posix-functions/catanh.texi (catanh): Likewise.
63114         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
63115         * doc/posix-functions/ccos.texi (ccos): Likewise.
63116         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
63117         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
63118         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
63119         * doc/posix-functions/cexp.texi (cexp): Likewise.
63120         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
63121         * doc/posix-functions/cimag.texi (cimag): Likewise.
63122         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
63123         * doc/posix-functions/clog.texi (clog): Likewise.
63124         * doc/posix-functions/clogf.texi (clogf): Likewise.
63125         * doc/posix-functions/conj.texi (conj): Likewise.
63126         * doc/posix-functions/conjf.texi (conjf): Likewise.
63127         * doc/posix-functions/cpow.texi (cpow): Likewise.
63128         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
63129         * doc/posix-functions/cproj.texi (cproj): Likewise.
63130         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
63131         * doc/posix-functions/creal.texi (creal): Likewise.
63132         * doc/posix-functions/crealf.texi (crealf): Likewise.
63133         * doc/posix-functions/csin.texi (csin): Likewise.
63134         * doc/posix-functions/csinf.texi (csinf): Likewise.
63135         * doc/posix-functions/csinh.texi (csinh): Likewise.
63136         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
63137         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
63138         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
63139         * doc/posix-functions/ctan.texi (ctan): Likewise.
63140         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
63141         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
63142         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
63143         * doc/posix-headers/complex.texi (complex.h): Likewise.
63145 2010-10-07  Jim Meyering  <meyering@redhat.com>
63147         parse-datetime: avoid compilation failure on OpenBSD 4.7
63148         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
63149         This works around a compilation failure on OpenBSD 4.7:
63150         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
63152 2010-10-07  Eric Blake  <eblake@redhat.com>
63154         docs: update cygwin progress
63155         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
63156         1.7.6.
63157         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
63158         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
63159         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
63160         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
63161         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
63162         Likewise.
63163         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
63164         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
63165         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
63166         Likewise.
63167         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
63168         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
63169         Likewise.
63170         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
63171         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
63172         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
63173         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
63174         Likewise.
63175         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
63176         Likewise.
63177         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
63179         docs: update parse-datetime history
63180         * doc/parse-datetime.texi (Authors of parse_datetime): Better
63181         documentation of this function's history and alternatives.
63183         cygwin: use more robust version check
63184         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
63185         exclude an eventual cygwin 1.9.1.
63186         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63188         (gl_FUNC_STRCASESTR): Likewise.
63189         Reported by Bruno Haible.
63191 2010-10-06  Bruno Haible  <bruno@clisp.org>
63193         string, sys_select: Avoid #including large headers unless necessary.
63194         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
63195         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
63196         OSF/1, BeOS, Haiku.
63197         Reported by Jim Meyering.
63199 2010-10-05  Eric Blake  <eblake@redhat.com>
63201         memmem, strstr, strcasestr: fix bug with long periodic needle
63202         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
63203         periodic needle having false positive.
63204         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
63205         and cygwin 1.7.7.
63206         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
63207         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63208         (gl_FUNC_STRCASESTR): Likewise.
63209         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63210         * tests/test-memmem.c (main): Expose the bug.
63211         * tests/test-strcasestr.c (main): Likewise.
63212         * tests/test-strstr.c (main): Likewise.
63213         * tests/test-c-strcasestr.c (main): Likewise.
63214         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
63215         * doc/posix-functions/strstr.texi (strstr): Likewise.
63216         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63217         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
63219 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63221         parse-datetime: do some more renaming
63222         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
63223         parse_datetime, not get_date.  Mention the renaming.
63224         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
63225         in comments.
63226         * m4/bison.m4: Likewise.
63228 2010-10-05  Eric Blake  <eblake@redhat.com>
63230         parse-datetime: better name than get_date
63231         * NEWS: Reword the deprecation notice.
63232         * modules/get_date: Rename to modules/parse-datetime.
63233         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
63234         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
63235         * lib/get_date.y: Rename to lib/parse-datetime.y.
63236         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
63237         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
63238         * doc/getdate.texi: Provide fallback wrapper.
63239         * lib/getdate.h: Move guts, and wrap...
63240         * lib/parse-datetime.h: ...new file.
63241         * lib/parse-datetime.y (get_date): Rename...
63242         (parse_datetime): ...to this.
63243         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
63244         (gl_PARSE_DATETIME): ...to this.
63245         * doc/posix-functions/getdate.texi (get_date): Provide fallback
63246         documentation.
63247         * modules/getdate (Files): Provide fallback docs and header.
63248         (Notice, Depends-on): Update references.
63249         * tests/test-parse-datetime.c: Likewise.
63250         * DEPENDENCIES: Likewise.
63251         * MODULES.html.sh (Date and time <time.h>): Likewise.
63252         * doc/parse-datetime.texi (Date input formats)
63253         (Authors of parse_datetime): Likewise.
63254         * modules/parse-datetime (Files, configure.ac, Makefile.am)
63255         (Include): Likewise.
63256         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
63257         * gnulib-tool: Likewise.
63258         * m4/bison.m4 (gl_BISON): Likewise.
63259         Suggested by Bruno Haible.
63261 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63263         more ports to Solaris tr, which needs [] around ranges
63264         * gnulib-tool: Solaris tr needs [] around ranges.
63265         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63266         * tests/test-pipe-filter-gi1.c (main): Likewise.
63267         * tests/test-pipe-filter-ii1.c (main): Likewise.
63269 2010-10-05  Eric Blake  <eblake@redhat.com>
63271         bootstrap: fix Solaris regression
63272         * build-aux/bootstrap (check_versions): Solaris tr still needs []
63273         around ranges.
63274         Reported by Pádraig Brady.
63276         bootstrap: work with pkg-config
63277         * build-aux/bootstrap (check_versions): Also transliterate - in
63278         prerequisite name.
63279         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
63280         prerequisites that were already found, to avoid confusion.
63281         Reported by Justin Clift.
63283         faccessat: remove unused wrappers
63284         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
63285         presence of these wrappers dragged in -lgen on Solaris.
63286         Reported by Clemens Brogi; fix suggested by Paul Eggert.
63288 2010-10-05  Jim Meyering  <meyering@redhat.com>
63290         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
63291         * Makefile (sc_pragma_columns): New syntax-check rule.
63293 2010-10-04  Bruno Haible  <bruno@clisp.org>
63295         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
63296         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
63297         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
63298         Reported by Bruce Korb and Eric Blake.
63300 2010-10-04  Bruno Haible  <bruno@clisp.org>
63302         threadlib: Make option --with-libpth-prefix work.
63303         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
63304         use $LIBPTH, not just -lpth.
63306 2010-10-04  Bruno Haible  <bruno@clisp.org>
63308         Avoid line length limitation from HP NonStop system header files.
63309         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
63310         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
63311         * lib/ctype.in.h: Likewise.
63312         * lib/dirent.in.h: Likewise.
63313         * lib/errno.in.h: Likewise.
63314         * lib/fcntl.in.h: Likewise.
63315         * lib/float.in.h: Likewise.
63316         * lib/getopt.in.h: Likewise.
63317         * lib/iconv.in.h: Likewise.
63318         * lib/inttypes.in.h: Likewise.
63319         * lib/langinfo.in.h: Likewise.
63320         * lib/locale.in.h: Likewise.
63321         * lib/math.in.h: Likewise.
63322         * lib/netdb.in.h: Likewise.
63323         * lib/netinet_in.in.h: Likewise.
63324         * lib/poll.in.h: Likewise.
63325         * lib/pthread.in.h: Likewise.
63326         * lib/pty.in.h: Likewise.
63327         * lib/sched.in.h: Likewise.
63328         * lib/se-selinux.in.h: Likewise.
63329         * lib/search.in.h: Likewise.
63330         * lib/signal.in.h: Likewise.
63331         * lib/spawn.in.h: Likewise.
63332         * lib/stdarg.in.h: Likewise.
63333         * lib/stddef.in.h: Likewise.
63334         * lib/stdint.in.h: Likewise.
63335         * lib/stdio.in.h: Likewise.
63336         * lib/stdlib.in.h: Likewise.
63337         * lib/string.in.h: Likewise.
63338         * lib/strings.in.h: Likewise.
63339         * lib/sys_file.in.h: Likewise.
63340         * lib/sys_ioctl.in.h: Likewise.
63341         * lib/sys_select.in.h: Likewise.
63342         * lib/sys_socket.in.h: Likewise.
63343         * lib/sys_stat.in.h: Likewise.
63344         * lib/sys_time.in.h: Likewise.
63345         * lib/sys_times.in.h: Likewise.
63346         * lib/sys_utsname.in.h: Likewise.
63347         * lib/sys_wait.in.h: Likewise.
63348         * lib/sysexits.in.h: Likewise.
63349         * lib/termios.in.h: Likewise.
63350         * lib/time.in.h: Likewise.
63351         * lib/unistd.in.h: Likewise.
63352         * lib/wchar.in.h: Likewise.
63353         * lib/wctype.in.h: Likewise.
63354         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
63355         * modules/ctype (Makefile.am): Likewise.
63356         * modules/dirent (Makefile.am): Likewise.
63357         * modules/errno (Makefile.am): Likewise.
63358         * modules/fcntl-h (Makefile.am): Likewise.
63359         * modules/float (Makefile.am): Likewise.
63360         * modules/getopt-posix (Makefile.am): Likewise.
63361         * modules/iconv-h (Makefile.am): Likewise.
63362         * modules/inttypes (Makefile.am): Likewise.
63363         * modules/langinfo (Makefile.am): Likewise.
63364         * modules/locale (Makefile.am): Likewise.
63365         * modules/math (Makefile.am): Likewise.
63366         * modules/netdb (Makefile.am): Likewise.
63367         * modules/netinet_in (Makefile.am): Likewise.
63368         * modules/poll-h (Makefile.am): Likewise.
63369         * modules/pthread (Makefile.am): Likewise.
63370         * modules/pty (Makefile.am): Likewise.
63371         * modules/sched (Makefile.am): Likewise.
63372         * modules/search (Makefile.am): Likewise.
63373         * modules/selinux-h (Makefile.am): Likewise.
63374         * modules/signal (Makefile.am): Likewise.
63375         * modules/spawn (Makefile.am): Likewise.
63376         * modules/stdarg (Makefile.am): Likewise.
63377         * modules/stddef (Makefile.am): Likewise.
63378         * modules/stdint (Makefile.am): Likewise.
63379         * modules/stdio (Makefile.am): Likewise.
63380         * modules/stdlib (Makefile.am): Likewise.
63381         * modules/string (Makefile.am): Likewise.
63382         * modules/strings (Makefile.am): Likewise.
63383         * modules/sys_file (Makefile.am): Likewise.
63384         * modules/sys_ioctl (Makefile.am): Likewise.
63385         * modules/sys_select (Makefile.am): Likewise.
63386         * modules/sys_socket (Makefile.am): Likewise.
63387         * modules/sys_stat (Makefile.am): Likewise.
63388         * modules/sys_time (Makefile.am): Likewise.
63389         * modules/sys_times (Makefile.am): Likewise.
63390         * modules/sys_utsname (Makefile.am): Likewise.
63391         * modules/sys_wait (Makefile.am): Likewise.
63392         * modules/sysexits (Makefile.am): Likewise.
63393         * modules/termios (Makefile.am): Likewise.
63394         * modules/time (Makefile.am): Likewise.
63395         * modules/unistd (Makefile.am): Likewise.
63396         * modules/wchar (Makefile.am): Likewise.
63397         * modules/wctype (Makefile.am): Likewise.
63399 2010-10-04  Bruno Haible  <bruno@clisp.org>
63401         read-file tests: Avoid a test failure on NonStop Kernel.
63402         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
63403         a regular file.
63404         Reported by Joachim Schmitz <schmitz@hp.com>.
63406 2010-10-03  Bruno Haible  <bruno@clisp.org>
63408         gnulib-tool: Fixes for --create-testdir with --libtool.
63409         * gnulib-tool (func_get_automake_snippet): Don't augment
63410         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
63411         an executable.
63412         (func_create_testdir): Handle module 'alloca' like func_import.
63413         Reported by Bruce Korb <bruce.korb@gmail.com>.
63415 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63417         Avoid some lines longer than 80 characters.
63418         * lib/stdint.in.h: Break long comment lines.
63419         * lib/math.in.h: Likewise.
63420         (_GL_NUM_UINT_WORDS): New macro, for readability.
63421         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
63422         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
63423         * lib/stdlib.in.h: Likewise.
63424         * lib/spawn.in.h: Likewise.
63425         * lib/sys_socket.in.h: Update an URL.
63426         * lib/sys_stat.in.h: Break long line.
63428 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
63430         Improve pmccabe2html.
63431         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
63432         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
63433         when the sources change. Remove the line in the HTML about "Used
63434         ranges" (which implied that there might be other unused ranges),
63435         rename "Resume" to "Summary" (easier to understand for more users).
63436         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
63437         styles, and some unnecessary blank lines.
63439 2010-10-03  Bruno Haible  <bruno@clisp.org>
63440             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
63442         acl: Add support for ACLs on NonStop Kernel.
63443         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
63444         Check whether the function aclsort() exists.
63445         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
63446         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
63447         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63448         (acl_nontrivial [HAVE_ACLSORT]: New function.
63449         (file_has_acl): Implement for NonStop Kernel.
63450         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63451         (qset_acl): Implement for NonStop Kernel.
63452         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
63453         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63454         (main): Implement for NonStop Kernel.
63455         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
63456         Kernel. Handle this flavor.
63457         * tests/test-set-mode-acl.sh: Likewise.
63458         * tests/test-copy-acl.sh: Likewise.
63459         * tests/test-copy-file.sh: Likewise.
63461 2010-10-03  Bruno Haible  <bruno@clisp.org>
63463         Info about ACLs on NonStop Kernel.
63464         * doc/acl-resources.txt: Add info about NonStop Kernel.
63465         References by Joachim Schmitz <schmitz@hp.com>.
63467 2010-10-02  Bruno Haible  <bruno@clisp.org>
63469         Define missing EDQUOT on NonStop Kernel.
63470         * lib/errno.in.h (EDQUOT): Assign a value if missing.
63471         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
63472         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
63473         missing.
63474         * doc/posix-headers/errno.texi: Mention the NSK bug.
63475         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
63476         Reported by Joachim Schmitz <schmitz@hp.com>.
63478 2010-10-02  Bruno Haible  <bruno@clisp.org>
63480         Update doc for POSIX:2008.
63481         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
63482         Update URL of POSIX specification.
63484 2010-10-02  Bruno Haible  <bruno@clisp.org>
63486         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
63487         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
63488         from gnulib, not from Automake.
63490 2010-10-02  Bruno Haible  <bruno@clisp.org>
63492         New module 'system-posix'.
63493         * modules/system-posix: New file.
63494         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
63495         module is present.
63496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63497         GNULIB_SYSTEM_POSIX.
63498         * modules/stdlib (Depends-on): Remove sys_wait.
63499         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
63500         * doc/posix-functions/system.texi: Mention the new module.
63501         * doc/posix-headers/stdlib.texi: Likewise.
63502         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
63503         define test_sys_wait_macros to a no-op.
63504         Reported by Sam Steingold <sds@gnu.org>.
63506 2010-09-30  Bruno Haible  <bruno@clisp.org>
63508         More renaming from 'getdate' to 'get_date'.
63509         * doc/get_date.texi: Renamed from doc/getdate.texi.
63510         * modules/get_date (Files): Update.
63511         * MODULES.html.sh (Date and time <time.h>): Update.
63512         * DEPENDENCIES: Update.
63513         * gnulib-tool: Update comment.
63514         * m4/bison.m4 (gl_BISON): Likewise.
63515         * m4/get_date.m4 (gl_GET_DATE): Likewise.
63517 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
63519         bootstrap: support ACLOCAL_FLAGS during aclocal
63520         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
63521         can add additional -I dir for third-party .m4 files.
63523 2010-09-30  Eric Blake  <eblake@redhat.com>
63525         bootstrap: use glibtoolize on MacOS
63526         * build-aux/bootstrap (check_versions): Convert libtool into
63527         libtoolize.
63528         (tool search): Move libtool check earlier, and look for
63529         glibtoolize for MacOS.
63530         (gnulib_tool_options): Auto-add --libtool when appropriate.
63531         Reported by Justin Clift.
63533         poll: fix typo that broke test on MacOS
63534         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
63535         Reported by Justin Clift.
63537         getdate: rename to get_date
63538         Note: getdate.h is not renamed, to minimize client impact.
63539         * modules/getdate: Mark obsolete.  Move old contents...
63540         * modules/get_date: ...to new module name.
63541         * modules/getdate-tests: Move...
63542         * modules/get_date-tests: ...here.
63543         * m4/getdate.m4: Move...
63544         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
63545         * lib/getdate.y: Move...
63546         * lib/get_date.y: ...here.
63547         * tests/test-getdate.c: Move...
63548         * tests/test-get_date.c: ...here.
63549         * doc/posix-functions/getdate.texi (getdate): Update name.
63550         * NEWS: Mention the change.
63552 2010-09-29  Bruno Haible  <bruno@clisp.org>
63554         Separate the module 'waitpid' from the module 'sys_wait'.
63555         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
63556         present.
63557         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
63558         gl_MODULE_INDICATOR_FOR_TESTS.
63559         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
63560         * modules/sys_wait (Depends-on): Remove waitpid.
63561         (Makefile.am): Substitute GNULIB_WAITPID.
63562         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
63563         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
63564         signature only if the 'waitpid' module is present.
63565         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
63566         * NEWS: Mention the change.
63567         * modules/grantpt (Depends-on): Add waitpid.
63568         * modules/wait-process (Depends-on): Likewise.
63570 2010-09-29  Bruno Haible  <bruno@clisp.org>
63572         More tests for module 'sys_wait'.
63573         * modules/sys_wait-c++-tests: New file.
63574         * tests/test-sys_wait-c++.cc: New file.
63575         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
63576         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63578 2010-09-29  Bruno Haible  <bruno@clisp.org>
63580         New module 'waitpid'.
63581         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
63582         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
63583         Don't include <process.h>.
63584         (waitpid): Declare only, using modern idiom.
63585         * m4/waitpid.m4: New file.
63586         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
63587         * modules/waitpid: New file.
63588         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
63589         (Makefile.am): Update.
63590         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63592 2010-09-28  Bruno Haible  <bruno@clisp.org>
63594         poll: Assume ANSI C.
63595         * lib/poll.c (poll): Use an ANSI C declaration.
63597 2010-09-28  Bruno Haible  <bruno@clisp.org>
63599         poll-h: Create poll.h on all platforms.
63600         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
63601         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
63602         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
63603         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
63604         (gl_REPLACE_POLL_H): Don't set POLL_H.
63605         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
63606         * modules/poll-h (Depends-on): Add include_next.
63607         (Makefile.am): Create poll.h unconditionally. Substitute also
63608         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
63610 2010-09-28  Bruno Haible  <bruno@clisp.org>
63612         Tests for module 'poll-h'.
63613         * modules/poll-h-c++-tests: New file.
63614         * tests/test-poll-h-c++.cc: New file.
63616         Tests for module 'poll-h'.
63617         * modules/poll-h-tests: New file.
63618         * tests/test-poll-h.c: New file.
63620 2010-09-28  Bruno Haible  <bruno@clisp.org>
63622         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
63623         * modules/poll-h (Depends-on): Add 'extensions'.
63625 2010-09-28  Bruno Haible  <bruno@clisp.org>
63627         New module 'poll-h'.
63628         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
63629         (poll): Use modern idiom.
63630         * modules/poll-h: New file.
63631         * modules/poll (Files): Remove lib/poll.in.h.
63632         (Depends-on): Add poll-h.
63633         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
63634         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
63635         * m4/poll_h.m4: New file.
63636         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
63637         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
63638         and invoke gl_REPLACE_POLL_H.
63639         * lib/poll.c: Use common idiom.
63640         * tests/test-poll.c: Likewise.
63641         * doc/posix-headers/poll.texi: Mention the poll-h module.
63642         Suggested by Eric Blake.
63644 2010-09-26  Bruno Haible  <bruno@clisp.org>
63646         sys_wait: Implement WSTOPSIG.
63647         * lib/sys_wait.in.h (WSTOPSIG): New macro.
63648         Reported by Simon Josefsson.
63650 2010-09-26  Simon Josefsson  <simon@josefsson.org>
63652         stdlib, sys_wait: Avoid compilation error on mingw.
63653         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
63655 2010-09-26  Bruno Haible  <bruno@clisp.org>
63657         stdlib tests: Avoid code duplication.
63658         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
63659         * modules/sys_wait-tests (Files): Likewise.
63660         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
63661         * tests/test-stdlib.c: Include test-sys_wait.h.
63662         (main): Invoke test_sys_wait_macros.
63663         * tests/test-sys_wait.c: Include test-sys_wait.h.
63664         (main): Invoke test_sys_wait_macros.
63666 2010-09-25  Simon Josefsson  <simon@josefsson.org>
63668         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
63669         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
63670         sure Windows sockets are working before calling getaddrinfo.
63671         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
63672         * doc/gnulib.texi (Windows sockets): Fix typo.
63674 2010-09-25  Bruno Haible  <bruno@clisp.org>
63676         Tests for module 'regex-quote'.
63677         * modules/regex-quote-tests: New file.
63678         * tests/test-regex-quote.c: New file.
63680         New module 'regex-quote'.
63681         * lib/regex-quote.h: New file.
63682         * lib/regex-quote.c: New file.
63683         * modules/regex-quote: New file.
63684         Suggested by Reuben Thomas <rrt@sc3d.org>.
63686 2010-09-24  Bruno Haible  <bruno@clisp.org>
63688         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
63689         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
63691 2010-09-23  Bruno Haible  <bruno@clisp.org>
63693         setenv: Relax license.
63694         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
63695         Blake.
63696         Requested by Eric Blake.
63698 2010-09-22  Bruno Haible  <bruno@clisp.org>
63700         termios: Relax license.
63701         * modules/termios (License): Change to LGPLv2+.
63702         Requested by Eric Blake.
63704 2010-09-22  Bruno Haible  <bruno@clisp.org>
63706         threadlib: Allow the package to change the default to 'no'.
63707         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
63708         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
63709         Reported by Paul Eggert.
63711 2010-09-22  Pádraig Brady  <P@draigbrady.com>
63712             Bruno Haible  <bruno@clisp.org>
63714         Fix endless loop in mbmemcasecoll.
63715         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
63716         byte.
63717         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
63719 2010-09-22  Bruno Haible  <bruno@clisp.org>
63721         Tests for module 'memcoll'.
63722         * modules/memcoll-tests: New file.
63723         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
63725         memcoll, xmemcoll: Clarify size vs. length.
63726         * modules/memcoll.c (memcoll0): Clarify specification.
63727         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
63728         passed to collate_error.
63730 2010-09-22  Bruno Haible  <bruno@clisp.org>
63732         Tests for module 'memcasecmp'.
63733         * modules/memcasecmp-tests: New file.
63734         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
63736 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63738         * lib/pthread.in.h: Add split double-inclusion guard, and include
63739         system <pthread.h> if there is one.  Use @@-style as in other
63740         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
63741         pthread.h doesn't.
63742         (pthread_mutexattr_destroy, pthread_mutexattr_init):
63743         (pthread_mutexattr_settype, pthread_mutex_trylock):
63744         New static inline functions, if there's no system <pthread.h>.
63745         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
63746         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
63747         Approximate with mutexes if the system lacks spinlocks, as in
63748         MacOS.
63749         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
63750         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
63751         @@-style.  Check for spinlocks separately.
63752         (gl_PTHREAD_DEFAULTS): New macro.
63753         * modules/pthread: Redo to use a more typical style for in.h files.
63755 2010-09-21  Eric Blake  <eblake@redhat.com>
63757         net_if: enhance tests
63758         * tests/test-net_if.c (main): Move signature checks earlier.
63759         Print failures to stderr.
63760         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
63761         Document the bug that we do not yet fix.
63763 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63765         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
63766         about gnulib, not GSS.
63768 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63770         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
63771         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
63772         for Emacs.
63773         * build-aux/pmccabe2html: Make Makefile.am example code more
63774         cut-and-paste friendly.
63776 2010-09-21  Simon Josefsson  <simon@josefsson.org>
63778         * tests/test-net_if.c: New file.
63779         * modules/net_if-tests: New file.
63781 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63783         pthread: add pthread_spin_destroy
63784         * lib/pthread.in.h (pthread_spin_destroy): New function.
63786 2010-09-19  Bruno Haible  <bruno@clisp.org>
63788         gnulib-tool: Fix --help output.
63789         * gnulib-tool (func_usage): Fix help message.
63790         Reported by Reuben Thomas <rrt@sc3d.org>.
63792 2010-09-18  Jim Meyering  <meyering@redhat.com>
63794         maint.mk: avoid unexpanded \n in two diagnostics
63795         * top/maint.mk (sc_prohibit_always_true_header_tests):
63796         Don't use a literal \n in a halt=... assignment.  It would not be
63797         expanded, and the two \n bytes would appear in the diagnostic output
63798         rather than the desired newline.  Use halt=$$(printf ... instead.
63799         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
63801 2010-09-18  Bruno Haible  <bruno@clisp.org>
63803         netinet_in: Doc tweak.
63804         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
63805         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63807 2010-09-18  Jim Meyering  <meyering@redhat.com>
63809         init.sh: correct an outdated comment
63810         * tests/init.sh (create_exe_shims_):  s/function/alias/
63812         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
63813         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
63814         a file named "*.exe" is removed between the glob expansion and the
63815         processing of that oddly named file.
63817 2010-09-17  Eric Blake  <eblake@redhat.com>
63819         mirbsd: add some more support
63820         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
63821         in BSD family.
63822         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
63823         devices as OpenBSD.
63824         * m4/host-os.m4 (mirbsd): Add MirBSD.
63826         tests: fix unportable assumption on sys/wait.h
63827         * tests/test-sys_wait.c (main): Relax test.
63828         * tests/test-stdlib.c (main): Likewise.
63830         init.sh: accommodate directory with no .exes
63831         * tests/init.sh: Accomodate directory containing only scripts.
63833         tests: avoid compiler warning
63834         * tests/test-stdlib.c (main): Use the variable.
63836         fdutimens, fdutimensat: update signature, again
63837         * lib/utimens.h (gl_futimens): Delete, and move signature...
63838         (fdutimens): ...here.
63839         (fdutimensat): Rearrange signature.
63840         (lutimensat): Rename variable for clarity.
63841         * lib/fdutimensat.c (fdutimensat): Update signature.
63842         * lib/utimens.c (fdutimens): Likewise.
63843         (gl_futimens): Delete.
63844         (utimens, lutimens): Update callers.
63845         * lib/futimens.c (futimens): Likewise.
63846         * tests/test-fdutimensat.c: Likewise.
63847         * tests/test-utimens.c: Likewise.
63848         * tests/test-futimens.h: Update comment.
63849         * NEWS: Mention this.
63850         Suggested by Paul Eggert.
63852 2010-09-17  Bruno Haible  <bruno@clisp.org>
63854         Take over the maintenance of some older macros from Autoconf.
63855         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
63856         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
63857         GNU Autoconf.
63858         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
63859         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
63861 2010-09-17  Eric Blake  <eblake@redhat.com>
63863         fdutimensat: drop atflag validation
63864         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
63865         with valid fd, to close a race scenario where futimens is
63866         unsupported and FILE was replaced by a symlink.
63867         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
63868         accordingly.
63869         Suggested by Paul Eggert.
63871 2010-09-16  Bruno Haible  <bruno@clisp.org>
63873         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
63874         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
63876 2010-09-16  Bruno Haible  <bruno@clisp.org>
63878         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
63879         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
63880         login_tty exists.
63881         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63883 2010-09-16  Bruno Haible  <bruno@clisp.org>
63885         login_tty: Make the replacement code work on BSD systems.
63886         * lib/login_tty.c: Include <sys/ioctl.h>.
63887         (login_tty): Use ioctl TIOCSCTTY when available.
63888         * modules/login_tty (Depends-on): Add sys_ioctl.
63889         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63891 2010-09-16  Bruno Haible  <bruno@clisp.org>
63893         login_tty: Stricter unit test.
63894         * modules/login_tty-tests (Depends-on): Add tcgetsid.
63895         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
63896         and tcgetsid() after login_tty.
63897         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63899 2010-09-16  Bruno Haible  <bruno@clisp.org>
63901         New module 'tcgetsid'.
63902         * lib/tcgetsid.c: New file.
63903         * m4/tcgetsid.m4: New file.
63904         * modules/tcgetsid: New file.
63905         * modules/termios (Depends-on): Add c++defs, warn-on-use.
63906         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
63907         GNULIB_TCGETSID, HAVE_TCGETSID.
63908         * lib/termios.in.h: Include <sys/types.h>.
63909         (tcgetsid): New declaration.
63910         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
63911         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
63912         * doc/posix-functions/tcgetsid.texi: Mention the new module.
63913         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
63915 2010-09-16  Bruno Haible  <bruno@clisp.org>
63917         Tests for module 'termios'.
63918         * modules/termios-c++-tests: New file.
63919         * modules/termios-tests: New file.
63920         * tests/test-termios-c++.cc: New file.
63921         * tests/test-termios.c: New file.
63923         New module 'termios'.
63924         * modules/termios: New file.
63925         * lib/termios.in.h: New file.
63926         * m4/termios_h.m4: New file.
63927         * doc/posix-headers/termios.texi: Mention the new module.
63929 2010-09-16  Eric Blake  <eblake@redhat.com>
63931         fdutimensat: add an atflag parameter
63932         * lib/fdutimensat.c (fdutimensat): Add new parameter.
63933         * lib/utimens.h (fdutimensat): Update prototype.
63934         * tests/test-fdutimensat.c: Adjust test to match.
63935         * NEWS: Document the change.
63936         Suggested by Paul Eggert.
63938 2010-09-16  Bruno Haible  <bruno@clisp.org>
63940         Fix typos in comments.
63941         * lib/striconveh.h: Fix typo in comment.
63942         * lib/login_tty.c (login_tty): Likewise.
63944 2010-09-15  Bruno Haible  <bruno@clisp.org>
63946         stdlib: clarify MirBSD WEXITSTATUS bug
63947         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
63948         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63950 2010-09-15  Eric Blake  <eblake@redhat.com>
63952         stdlib: work around MirBSD WEXITSTATUS bug
63953         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
63954         * modules/stdlib (Depends-on): Add sys_wait.
63955         * tests/test-sys_wait.c (main): Enhance test.
63956         * tests/test-stdlib.c (main): Likewise.
63957         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
63959         docs: mention MacOS issue with WEXITSTATUS(constant)
63960         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
63961         issue.
63962         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63964         strnlen: add tests
63965         * modules/strnlen-tests: New file.
63966         * tests/test-strnlen.c: Likewise.
63968 2010-09-14  Bruno Haible  <bruno@clisp.org>
63970         unistr/base: Avoid link errors when module 'libunistring' is also used.
63971         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
63972         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
63973         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
63974         Declare also when HAVE_LIBUNISTRING is set.
63975         Reported by Pádraig Brady <P@draigbrady.com>.
63977 2010-09-14  Eric Blake  <eblake@redhat.com>
63979         test-rawmemchr: make more robust
63980         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
63981         (Depends-on, configure.ac): Add needed prerequisites to use it.
63982         * modules/memchr-tests (Files, Depends-on, configure.ac):
63983         Likewise, to avoid implicit reliance on memchr module prereqs.
63984         * tests/test-memchr.c (main): Ensure proper masking.
63985         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
63986         reads.
63988         memchr: detect glibc Alpha bug
63989         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
63990         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
63991         Alpha.
63992         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
63993         * tests/test-memchr.c (main): Enhance test.
63994         Reported by Nelson H. F. Beebe.
63996 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
63998         fts, getcwd, glob: audit for dirfd returning -1
63999         * lib/fts.c (opendir): Remove #define; no longer used.
64000         (opendirat): New arg PDIR_FD.  All callers changed.
64001         (fts_build, _opendir2): Use new opendirat to avoid the need for
64002         dirfd, or for checking whether dirfd returns a negative value.
64003         Don't use opendir; always use openat followed by fdopendir.
64004         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
64005         it.
64006         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
64007         returns -1 here.
64008         * modules/fts (Depends-on): Remove dirfd.
64009         * modules/getcwd (Depends-on): Likewise.
64011 2010-09-13  Eric Blake  <eblake@redhat.com>
64013         float: fix broken MirBSD header
64014         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
64015         * doc/posix-headers/float.texi (float.h): Document it.
64017 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64019         fts: use O_NOFOLLOW to avoid race condition when opening a directory
64020         * lib/fts.c (opendirat): New arg extra_flags.
64021         (__opendir2): Use it to avoid following symlinks when opening
64022         a directory, if symlinks are not supposed to be followed.  See
64023         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
64025         fdopendir: preserve argument fd before returning
64026         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
64027         (fdopendir_with_dup, fd_clone_opendir): New static functions.
64028         (fdopendir): Use them, arranging for FD to be open to the same
64029         directory that it was when it started.  (It might be temporarily
64030         closed while fdopendir is running, so this not thread- or
64031         signal-safe.)  Be careful to do the right thing even when file
64032         descriptors are scarce and dup fails with errno == EMFILE.  See
64033         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
64035 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
64037         regex: Pass the system regex if its only problem is 32-bit regoff_t.
64038         * NEWS: Document change.
64039         * m4/regex.m4: Disable test for regoff_t size.
64041 2010-09-13  Jim Meyering  <meyering@redhat.com>
64043         fts: don't operate on an invalid file descriptor after failed dup
64044         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
64045         negative file descriptor.
64047 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64049         savedir: add streamsavedir, deprecate fdsavedir
64050         * NEWS: Mention deprecation of fdsavedir.
64051         * lib/savedir.c (streamsavedir): New extern function, whose name
64052         ends in "savedir" to be consistent with the others.  This differs
64053         from savedirstream in that it doesn't close its argument.  The
64054         next version of GNU tar will use this instead of fdsavedir, to
64055         avoid some race conditions and conserve file descriptors.
64056         (savedirstream): Reimplement as a wrapper around streamsavedir.
64057         (fdsavedir): Add a comment deprecating this function.  As far as
64058         I know, only GNU tar used it, and GNU tar doesn't need it any more.
64059         * lib/savedir.h (streamsavedir): New decl.
64060         (fdsavedir): Add a comment deprecating this.
64062 2010-09-10  Bruno Haible  <bruno@clisp.org>
64064         langinfo: Fix last commit.
64065         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
64066         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
64067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64069 2010-09-10  Bruno Haible  <bruno@clisp.org>
64071         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
64072         * lib/progreloc.c (O_EXEC): Define fallback.
64074 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
64076         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
64077         * NEWS: Document recent changes to fcntl-h.
64078         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
64079         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
64080         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
64081         Similarly for O_SEARCH; this last was already true, but not documented.
64082         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
64083         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
64084         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
64085         Likewise.
64086         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
64087         is zero, not whether it is defined.
64088         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
64089         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
64090         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
64092 2010-09-10  Bruno Haible  <bruno@clisp.org>
64094         langinfo, nl_langinfo: Fix for IRIX 5.3.
64095         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
64096         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
64097         HAVE_LANGINFO_YESEXPR.
64098         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
64099         HAVE_LANGINFO_YESEXPR.
64100         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
64101         HAVE_LANGINFO_T_FMT_AMPM is 0.
64102         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
64103         HAVE_LANGINFO_YESEXPR is 0.
64104         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
64105         NOEXPR.
64106         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
64107         * doc/posix-functions/nl_langinfo.texi: Likewise.
64108         Reported by Eric Blake.
64110 2010-09-10  Bruno Haible  <bruno@clisp.org>
64112         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
64113         * doc/glibc-functions/login_tty.texi: Mention the include file problem
64114         on FreeBSD 8.0 and OpenBSD 4.6.
64115         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
64116         * m4/pty_h.m4 (gl_PTY_H): Likewise.
64117         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
64118         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
64119         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
64120         ac_includes_default.
64121         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64123 2010-09-09  Eric Blake  <eblake@redhat.com>
64125         strsignal: work around NetBSD bug
64126         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
64127         * lib/string.in.h (includes): Likewise.
64128         * doc/posix-functions/strsignal.texi (strsignal): Document the
64129         bug.
64130         Reported by Nelson H. F. Beebe.
64132         gnulib-tool: work with NetBSD /bin/sh
64133         * gnulib-tool (func_cache_var, func_cache_lookup_module)
64134         (func_get_description, func_get_comment, func_get_status)
64135         (func_get_notice, func_get_applicability, func_get_filelist)
64136         (func_get_dependencies, func_get_autoconf_early_snippet)
64137         (func_get_autoconf_snippet, func_get_automake_snippet)
64138         (func_get_include_directive, func_get_link_directive)
64139         (func_get_license, func_get_maintainer, func_import): Avoid
64140         shell syntax errors from parsing syntax extensions.
64142 2010-09-09  Bruno Haible  <bruno@clisp.org>
64144         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64145         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
64146         a reliable way to determine whether the 'alias' command works.
64148 2010-09-08  Jim Meyering  <meyering@redhat.com>
64150         init.sh: penalize a set-x-impaired shell; don't disqualify it
64151         * tests/init.sh: Too many shells corrupt application stderr when
64152         you set -x, so we can't afford to disqualify them, since at least
64153         on Irix-6.5, that would disqualify all bourne shells.
64154         Instead, use a two-pass approach.
64155         On the first pass, try to find a shell that meets the stricter
64156         condition that set -x does not corrupt stderr.
64157         If no shell meets the stricter condition, retest each candidate
64158         shell, but without that extra condition.  Finally, when
64159         VERBOSE=yes is requested and set -x might cause trouble, simply
64160         issue a warning and refrain from enabling debug output.
64162 2010-09-08  Eric Blake  <eblake@redhat.com>
64164         unsetenv: fix OpenBSD bug
64165         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
64166         * doc/posix-functions/unsetenv.texi (unsetenv): Update
64167         documentation.
64168         Reported by Jim Meyering.
64170         strtod: work around IRIX 6.5 bug
64171         * lib/strtod.c (strtod): Reparse number on shorter string if
64172         exponent parse was invalid.
64173         * tests/test-strtod.c (main): Add check for "0x1p 2".
64174         Reported by Tom G. Christensen.
64176         getopt: optimize previous patch
64177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
64178         empty variable.  Speed up awk script.
64179         Reported by Paolo Bonzini.
64181 2010-09-08  Jim Meyering  <meyering@redhat.com>
64183         test.sh: disqualify shells for which set -x corrupts stderr
64184         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
64185         and OpenBSD 4.7.  They make it so with "set -x", environment settings
64186         appear in stderr output.  For example, this command:
64187             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
64188         prints "P=1" on those two systems:
64190 2010-09-08  Bruno Haible  <bruno@clisp.org>
64192         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64193         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
64194         commands, because some shells ignore redirections when there is an
64195         error in the command lookup.
64196         Reported by Eric Blake.
64198 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
64200         * lib/regex.h: Fix a mention of `regex_compile' (should be
64201         `re_compile_pattern').
64202         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
64203         (re_set_registers): Correct name of parameter in comment.
64205         * doc/regex.texi: Add documentation for missing syntax flags.
64206         Remove commented-out documentation of defunct syntax option
64207         RE_NO_EMPTY_ALTS.
64208         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
64209         Add documentation of re_set_registers.
64210         Document trick to re-use a pattern buffer by setting fastmap manually.
64211         Update documentation of struct re_pattern_buffer per public members.
64212         Uncomment documentation of equivalence class operators and
64213         collating symbol operators, since they are now implemented,
64214         Explain leftmost-longest matching in relation to alternatives.
64215         Tidy documentation of substring matching.
64216         Remove POSIX documentation, which is done better in
64217         glibc, and refer the reader there. Keep BSD API documentation, as
64218         that is not readily available elsewhere.
64220 2010-09-07  Eric Blake  <eblake@redhat.com>
64222         getopt: handle POSIXLY_CORRECT set but not exported
64223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
64224         export state of POSIXLY_CORRECT, due to bash set -o posix.
64225         Reported by Dustin J. Mitchell.
64227 2010-09-05  Bruno Haible  <bruno@clisp.org>
64229         gnulib-tool: Highlight the changed options.
64230         * gnulib-tool (func_usage): Display the --import, --add-import,
64231         --remove-import explanations in bold font.
64233 2010-09-06  Karl Berry  <karl@gnu.org>
64235         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
64237 2010-09-05  Bruno Haible  <bruno@clisp.org>
64239         uniwidth/width: Update comment.
64240         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
64241         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
64243 2010-09-05  Bruno Haible  <bruno@clisp.org>
64245         isinf, isnan: Relax license.
64246         * modules/isinf (License): Change from GPL to LGPL, with consent from
64247         Ben Pfaff.
64248         * modules/isnan (License): Likewise.
64249         Requested by Ludovic Courtès.
64251 2010-09-04  Bruno Haible  <bruno@clisp.org>
64253         gnulib-tool: Help migration from --import to --add-import or --update.
64254         * gnulib-tool: Emit a verbose error message when --import is used
64255         without any module name.
64257 2010-09-04  Bruno Haible  <bruno@clisp.org>
64259         Update doc about gnulib-tool.
64260         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
64261         'gnulib-tool --update' in more detail.
64262         Reported by Eric Blake.
64264 2010-09-04  Bruno Haible  <bruno@clisp.org>
64266         gnulib-tool: Change --import. New options --add/remove-import.
64267         * gnulib-tool: New options --add-import, --remove-import.
64268         (func_usage): Document them.
64269         (have_associative): Define always.
64270         (func_import): In import mode, don't merge the specified settings with
64271         the cached settings. Implement remove-import mode.
64272         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
64273         Explain when to use them versus --import.
64274         (Simple update): Use --add-import instead of --import.
64275         * NEWS: Mention the change.
64277 2010-09-04  Bruno Haible  <bruno@clisp.org>
64279         * doc/gnulib-tool.texi (Initial import): Update paragraph about
64280         separate gnulib.mk.
64282 2010-09-04  Bruno Haible  <bruno@clisp.org>
64284         gnulib-tool: Don't talk about CVS any more.
64285         * gnulib-tool (func_usage, func_import): Write "version control"
64286         instead of CVS.
64288 2010-09-04  Jim Meyering  <meyering@redhat.com>
64290         maint.mk: avoid obscure sc_copyright_check failure in coreutils
64291         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
64292         false positives (whose names may be ill-chosen) when searching
64293         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
64294         would cause a false-positive.
64296         avoid coreutils "make distcheck" failure
64297         Coreutils tests with an absolute build directory name that contains
64298         a space.  Not quoting this directory name caused a failure.
64299         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
64300         * tests/test-vc-list-files-cvs.sh: Likewise.
64302 2010-09-04  Bruno Haible  <bruno@clisp.org>
64304         gnulib-tool: Avoid error when run in a package without Makefile.am.
64305         * gnulib-tool: When collecting the m4dirs in a package that does not
64306         have a Makefile.am, eliminate those directories that contain no
64307         gnulib-cache.m4. Fix expression that counts these directories.
64309 2010-09-04  Bruno Haible  <bruno@clisp.org>
64311         update-copyright test: Improve output when perl is missing or too old.
64312         * tests/test-update-copyright.sh: Move test of Perl version down after
64313         the test whether Perl exists. Provide an explanation relating Perl's
64314         error message to Automake's SKIP: message.
64316 2010-09-04  Bruno Haible  <bruno@clisp.org>
64318         Don't augment PATH in TESTS_ENVIRONMENT.
64319         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
64320         set abs_aux_dir instead of augmenting PATH.
64321         * modules/vc-list-files-tests (Makefile.am): Likewise.
64322         * tests/test-update-copyright.sh: Augment PATH here.
64323         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
64324         path_prepend_.
64325         * tests/test-vc-list-files-git.sh: Likewise.
64327 2010-09-04  Jim Meyering  <meyering@redhat.com>
64329         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
64330         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
64332 2010-09-04  Bruno Haible  <bruno@clisp.org>
64334         strdup: Fix compilation error in C++ mode.
64335         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
64336         the macro.
64338 2010-09-04  Bruno Haible  <bruno@clisp.org>
64340         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
64341         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
64342         macro into a function.
64343         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64345 2010-09-04  Bruno Haible  <bruno@clisp.org>
64347         Set PATH_SEPARATOR the same way autoconf does.
64348         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
64349         the value of PATH_SEPARATOR the same way autoconf-generated configure
64350         scripts do.
64351         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
64352         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64354 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64356         Set PATH_SEPARATOR the same way autoconf does.
64357         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
64358         the same way autoconf-generated configure scripts do.
64359         * posix-modules: Likewise.
64361 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64363         hash: fix safe_hasher const typo
64364         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
64365         const; otherwise, there is a type error later.
64367 2010-09-02  Jim Meyering  <meyering@redhat.com>
64369         test-update-copyright.sh: require perl 5.8.0
64370         * tests/test-update-copyright.sh: Require 5.8.0,
64371         which Tom G. Christensen has confirmed is adequate,
64372         while 5.6.1 is not.
64374 2010-09-02  Eric Blake  <eblake@redhat.com>
64376         tests: init.sh improvements for re-exec'ing with zsh
64377         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
64378         -vx through shell re-exec.
64379         Reported by Tom G. Christensen.
64381         wctype: fix typo in previous commit
64382         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
64383         Reported by Ludovic Courtès.
64385 2010-09-02  Jim Meyering  <meyering@redhat.com>
64387         test-update-copyright.sh: skip test if Perl is too old
64388         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
64389         Reported by Tom G. Christensen.
64391 2010-09-02  Bruno Haible  <bruno@clisp.org>
64393         wctype: Avoid compilation error on IRIX 6.5.30.
64394         * lib/wctype.in.h (iswblank): Declare with a replacement if
64395         REPLACE_ISWBLANK is set.
64396         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
64397         declared. Set REPLACE_ISWBLANK.
64398         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
64399         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
64400         * doc/posix-headers/wctype.texi: Likewise.
64401         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64403 2010-09-01  Bruno Haible  <bruno@clisp.org>
64405         New module 'socketlib'.
64406         * modules/socketlib: New file.
64407         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
64408         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
64409         * modules/sockets (Depends-on): Add socketlib.
64410         Suggested by Sam Steingold <sds@gnu.org>.
64412 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64414         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
64416         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
64417         when one needs search access to a directory but not read access.
64418         On systems where it is available, it works in some cases where
64419         O_RDONLY does not, namely on directories that are searchable but
64420         not readable, and which need only to be searchable.  If O_SEARCH
64421         is not available, fall back to the traditional method of using
64422         O_RDONLY.
64424         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
64425         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
64426         when opening a directory that needs only to be searchable.
64427         * lib/chdir-safer.c (chdir_no_follow): Likewise.
64428         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
64429         * lib/openat-proc.c (openat_proc_name): Likewise.
64430         * lib/openat.c (openat_needs_fchdir): Likewise.
64431         * lib/save-cwd.c (save_cwd): Likewise.
64432         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
64434 2010-08-28  Bruno Haible  <bruno@clisp.org>
64436         New module 'host-cpu-c-abi'.
64437         * modules/host-cpu-c-abi: New file.
64438         * m4/host-cpu-c-abi.m4: New file, based on part of
64439         clisp/src/m4/general.m4.
64440         Requested by Sam Steingold <sds@gnu.org>.
64442 2010-08-31  Eric Blake  <eblake@redhat.com>
64443         and Jim Meyering  <meyering@redhat.com>
64445         hash: factor, and guard against misbehaving hasher function
64446         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
64447         of table->hasher's return value.  Also protect against a hash value
64448         so large that adding it to table->bucket results in a NULL pointer.
64449         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
64450         Use it in place of open-coded check-and-abort.
64452 2010-08-30  Bruno Haible  <bruno@clisp.org>
64454         hash: silence spurious clang warning
64455         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
64456         Reported by Eric Blake.
64458 2010-08-30  Eric Blake  <eblake@redhat.com>
64460         strstr, memmem, strcasestr: avoid leaked shell message
64461         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
64462         FreeBSD.
64463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64464         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64466         tests: silence clang warning
64467         * tests/test-malloca.c (do_allocation): Avoid dead store.
64469 2010-08-29  Bruno Haible  <bruno@clisp.org>
64471         gettext: Fix recent mistake.
64472         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
64474 2010-08-29  Bruno Haible  <bruno@clisp.org>
64476         selinux-h: Offer a --without-selinux option.
64477         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
64478         --without-selinux was specified, skip all tests and define
64479         HAVE_SELINUX_SELINUX_H to 0.
64480         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
64481         set LIB_SELINUX to empty.
64482         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
64483         gl_LIBSELINUX. If --without-selinux was specified, replace
64484         selinux/context.h.
64485         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
64487 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64488             Bruno Haible  <bruno@clisp.org>
64490         Make the module 'realloc-gnu' work again on AIX and OSF/1.
64491         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
64492         of HAVE_REALLOC.
64493         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
64494         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
64495         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
64496         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64498 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64499             Bruno Haible  <bruno@clisp.org>
64501         Make the module 'calloc-gnu' work again on AIX and OSF/1.
64502         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
64503         HAVE_CALLOC.
64504         * lib/xmalloc.c: Update accordingly.
64505         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
64506         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
64507         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
64509 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64510             Bruno Haible  <bruno@clisp.org>
64512         Make the module 'malloc-gnu' work again on AIX and OSF/1.
64513         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
64514         HAVE_MALLOC.
64515         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
64516         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
64517         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64519 2010-08-29  Bruno Haible  <bruno@clisp.org>
64521         Update modules list.
64522         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64523         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
64524         (String handling <string.h>): Add astrxfrm.
64525         (File system functions): Add readlinkat.
64527 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64529         Tests for module 'realloc-gnu'.
64530         * modules/realloc-gnu-tests: New file.
64531         * tests/test-realloc-gnu.c: New file.
64533         Tests for module 'calloc-gnu'.
64534         * modules/calloc-gnu-tests: New file.
64535         * tests/test-calloc-gnu.c: New file.
64537         Tests for module 'malloc-gnu'.
64538         * modules/malloc-gnu-tests: New file.
64539         * tests/test-malloc-gnu.c: New file.
64541 2010-08-28  Bruno Haible  <bruno@clisp.org>
64543         Rename module 'realloc' -> 'realloc-gnu'.
64544         * modules/realloc-gnu: New file, copied from modules/realloc.
64545         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
64546         obsolete.
64547         * modules/mgetgroups (Depends-on): Update.
64548         * doc/posix-functions/realloc.texi: Update.
64549         * NEWS: Mention the change.
64551         Rename module 'calloc' -> 'calloc-gnu'.
64552         * modules/calloc-gnu: New file, copied from modules/calloc.
64553         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
64554         obsolete.
64555         * doc/posix-functions/calloc.texi: Update.
64556         * NEWS: Mention the change.
64558         Rename module 'malloc' -> 'malloc-gnu'.
64559         * modules/malloc-gnu: New file, copied from modules/malloc.
64560         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
64561         obsolete.
64562         * modules/argp (Depends-on): Update.
64563         * modules/regex (Depends-on): Update.
64564         * doc/posix-functions/malloc.texi: Update.
64565         * NEWS: Mention the change.
64567 2010-08-28  Eric Blake  <eblake@redhat.com>
64569         pread, pwrite: add missing dependency
64570         * modules/pread (Depends-on): Add extensions.
64571         * modules/pwrite (Depends-on): Likewise.
64573 2010-08-28  Bruno Haible  <bruno@clisp.org>
64575         unistr/u*-strchr: Fix tests dependencies.
64576         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
64577         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
64578         Reported by Ian Beckwith <ianb@erislabs.net>.
64580 2010-08-28  Bruno Haible  <bruno@clisp.org>
64582         read-file: Don't occupy too much unused memory.
64583         * lib/read-file.c (fread_file): Shrink the buffer at the end.
64585 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
64586             Eric Blake  <eblake@redhat.com>
64587             Bruno Haible  <bruno@clisp.org>
64589         read-file: Avoid memory reallocations with regular files.
64590         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
64591         (fread_file): With regular files, use the remaining length as the
64592         initial buffer size.  Check against overflow.
64593         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
64594         sys_stat.
64596 2010-08-28  Bruno Haible  <bruno@clisp.org>
64598         ftello: Relax license.
64599         * modules/ftello (License): Relax to LGPLv2+.
64600         Reported by Eric Blake.
64602 2010-08-28  Bruno Haible  <bruno@clisp.org>
64604         Avoid relocwrapper link errors due to gnulib replacement functions.
64605         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
64606         function.
64607         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64609 2010-08-28  Bruno Haible  <bruno@clisp.org>
64611         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
64612         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
64613         defined.
64614         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
64615         Suggested by Eric Blake.
64617 2010-08-28  Bruno Haible  <bruno@clisp.org>
64619         sys_socket, netdb: Ensure socklen_t gets defined.
64620         * modules/sys_socket (Depends-on): Add socklen.
64621         * modules/netdb (Depends-on): Likewise.
64622         * modules/getaddrinfo (Depends-on): Remove socklen.
64623         * modules/getsockopt (Depends-on): Likewise.
64624         * modules/setsockopt (Depends-on): Likewise.
64625         * tests/test-sys_socket.c: Check that socklen_t is defined.
64626         * tests/test-netdb.c: Likewise.
64627         * m4/socklen.m4: Update comments.
64628         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64630 2010-08-27  Eric Blake  <eblake@redhat.com>
64632         login_tty: add missing dependency
64633         * modules/login_tty (Depends-on): Add pty.
64635 2010-08-26  Eric Blake  <eblake@redhat.com>
64637         lib-symbol-versions: fix m4 quoting
64638         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
64639         format for AC_LINK_IFELSE.
64641         glob: fix compile test
64642         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
64644         btowc: fix missing file
64645         * modules/btowc (Files): Also ship locale-fr.m4.
64647         lseek: fix link test
64648         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
64649         AC_LINK_IFELSE.
64651         include_next: silence autoconf 2.68 warning
64652         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
64653         AC_COMPILE_IFELSE as special.
64654         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
64655         autoconf < 2.68.
64657         acl: fix compilation test
64658         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
64659         AC_COMPILE_IFELSE.
64661 2010-08-26  Bruno Haible  <bruno@clisp.org>
64663         Modernize AC_TRY_RUN invocations.
64664         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
64665         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64666         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
64667         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
64668         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
64669         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
64670         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
64671         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64672         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64673         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64674         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
64675         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
64676         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
64677         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
64678         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
64679         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
64680         gl_MBRLEN_NUL_RETVAL): Likewise.
64681         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
64682         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
64683         Likewise.
64684         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
64685         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
64686         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
64687         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
64688         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
64689         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
64690         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
64691         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
64692         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
64693         Likewise.
64694         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
64695         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
64696         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64697         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64699         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
64700         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
64701         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
64702         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
64703         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64705 2010-08-26  Bruno Haible  <bruno@clisp.org>
64707         Modernize AC_TRY_LINK invocations.
64708         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
64709         AC_TRY_LINK.
64710         * m4/argp.m4 (gl_ARGP): Likewise.
64711         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
64712         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
64713         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64714         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64715         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64716         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
64717         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
64718         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
64719         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64720         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
64721         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64722         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
64723         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
64724         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64725         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64726         * m4/hostent.m4 (gl_HOSTENT): Likewise.
64727         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64728         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
64729         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
64730         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
64731         Likewise.
64732         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
64733         Likewise.
64734         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
64735         Likewise.
64736         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
64737         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
64738         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
64739         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
64740         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
64741         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
64742         * m4/servent.m4 (gl_SERVENT): Likewise.
64743         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
64744         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
64745         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
64746         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
64747         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64748         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
64749         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
64750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64751         * modules/tsearch-tests (configure.ac): Likewise.
64753 2010-08-26  Bruno Haible  <bruno@clisp.org>
64755         Modernize AC_TRY_COMPILE invocations.
64756         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
64757         AC_TRY_COMPILE.
64758         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
64759         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
64760         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
64761         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64762         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
64763         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64764         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64765         * m4/lock.m4 (gl_LOCK): Likewise.
64766         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
64767         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64768         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
64769         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
64770         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
64771         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
64772         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
64773         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
64774         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
64775         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
64776         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
64777         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64778         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
64779         extraneous semicolon.
64781 2010-08-26  Jim Meyering  <meyering@redhat.com>
64783         stat-time: relax license LGPL
64784         * modules/stat-time (License): Change from GPL to LGPL,
64785         with consent from all contributors, for use in libguile.
64786         Requested by Ludovic Courtès.
64788 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
64790         poll: return immediately on POLLHUP.
64791         * lib/poll.c (poll): Always set timeout before wait_timeout is
64792         computed.
64794 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64796         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
64797         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
64798         rmdir ("dir/.//"), unlinkat.
64800 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64802         stdbool: avoid spurious failure with modern xlc
64803         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64805 2010-08-24  Bruno Haible  <bruno@clisp.org>
64807         getloadavg: simplify code
64808         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
64809         gl_have_func. Update comments.
64811 2010-08-24  Eric Blake  <eblake@redhat.com>
64813         getloadavg: don't define SVR4 on cygwin
64814         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
64815         only define SVR4 when -lkvm is required.
64816         Reported by Yaakov Selkowitz.
64818 2010-08-24  Bruno Haible  <bruno@clisp.org>
64820         priv-set: fix comment
64821         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
64823 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64825         priv-set: fix comments
64826         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
64827         to match code, as suggested by David Bartley in:
64828         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
64830 2010-08-23  Eric Blake  <eblake@redhat.com>
64832         stdbool: avoid rejecting clang
64833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64834         * tests/test-stdbool.c: Enable more tests if using the system
64835         <stdbool.h> instead of the gnulib replacement.
64836         (main): Move xlc bug test to a runtime test for all compilers.
64837         Reported by Anders Kaseorg.
64839         argz: fix shell quoting issue
64840         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
64841         Reported by Charles Wilson.
64843 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
64844             Erik Faye-Lund <kusmabite@gmail.com>
64846         poll, select: handle ERROR_BROKEN_PIPE.
64847         * lib/poll.c (win32_compute_revents): Return POLLHUP when
64848         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64849         * lib/select.c (win32_compute_revents): Do not mark a pipe
64850         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64852 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
64854         fts: allow compilation with C++
64855         * lib/fts_.h: Specify extern "C" linkage with C++.
64857 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64859         Fix gnulib-tool sed script de-commentation for AIX sed.
64860         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
64861         sed.
64863 2010-08-17  Eric Blake  <eblake@redhat.com>
64865         test-stddef: test for (some) offsetof bugs
64866         * tests/test-stddef.c: Enhance test to ensure correct type of
64867         offsetof.
64868         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
64869         that we are not fixing at this time.
64871 2010-08-15  Bruno Haible  <bruno@clisp.org>
64873         stpncpy: Allow stpncpy to be defined as a macro.
64874         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
64875         if it's already correctly declared.
64876         * lib/string.in.h (stpncpy): Undefine before redefining.
64877         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
64879 2010-08-14  Bruno Haible  <bruno@clisp.org>
64881         Rename module 'memxfrm' to 'amemxfrm'.
64882         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
64883         (amemxfrm): Renamed from memxfrm.
64884         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
64885         (amemxfrm): Renamed from memxfrm.
64886         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
64887         * NEWS: Mention the change.
64888         * MODULES.html.sh (String handling <string.h>): Update.
64889         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
64890         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
64891         * lib/unicase/u16-casexfrm.c: Likewise.
64892         * lib/unicase/u32-casexfrm.c: Likewise.
64893         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
64894         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
64895         * lib/uninorm/u16-normxfrm.c: Likewise.
64896         * lib/uninorm/u32-normxfrm.c: Likewise.
64897         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
64898         memxfrm.
64899         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
64900         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
64901         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
64902         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
64903         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
64904         Suggested by Paul Eggert.
64906 2010-08-14  Bruno Haible  <bruno@clisp.org>
64908         Tests for module 'astrxfrm'.
64909         * modules/astrxfrm-tests: New file.
64910         * tests/test-astrxfrm.c: New file.
64912         New module 'astrxfrm'.
64913         * lib/astrxfrm.h: New file.
64914         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
64915         * modules/astrxfrm: New file.
64917 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
64919         regex: Tweak doc.
64920         * doc/regex.texi (Overview): Don't mention regex.c.
64921         (GNU Regular Expression Compiling): Likewise.
64922         (Match-end-of-line Operator): Mention 'not_eol'.
64924 2010-08-14  Brian Gough  <bjg@gnu.org>
64925             Bruno Haible  <bruno@clisp.org>
64927         git-merge-changelog: add doc relating to use with bzr and hg.
64928         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
64930 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
64932         pthread: fix pthread.h creation for srcdir != builddir
64933         * modules/pthread (Makefile.am): Fix the rule to work also in a
64934         non-srcdir build.
64936 2010-08-13  Karl Berry  <karl@gnu.org>
64938         * doc/regex.texi (Predefined Syntaxes): @smallexample.
64939         * doc/posix-*/*: force line break before @url of POSIX
64940         specifications.
64941         Suggested by Werner Lemberg.
64943 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64945         strtod: fix const diagnostic
64946         * lib/strtod.c (strtod): Don't assign const char * to char *,
64947         as this elicits a warning from GCC when warnings are enabled.
64949 2010-08-10  Pádraig Brady  <P@draigbrady.com>
64950         and Eric Blake  <eblake@redhat.com>
64952         copy-acl: ignore ENOTSUP on HP-UX
64953         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
64954         so that it is available for HP-UX.
64955         * lib/copy-acl.c (qcopy_acl): Use it.
64956         Reported by Patrick M. Callahan.
64958 2010-08-10  Eric Blake  <eblake@redhat.com>
64960         open, chown: relax license
64961         * modules/open (License): Change to LGPLv2+, with consent by all
64962         authors, for use in augeas.
64963         * modules/chown (License): Likewise.
64964         * modules/lchown (Likewise): Likewise.
64965         Requested by Adam Stokes.
64967 2010-08-09  Karl Berry  <karl@gnu.org>
64969         * build-aux/ar-lib: new file, import from Automake.
64970         * config/srclist.txt: autocheck for updates.
64972 2010-08-09  Eric Blake  <eblake@redhat.com>
64974         readlinkat: adjust client modules
64975         * modules/areadlinkat (Depends-on): Use readlinkat, not
64976         symlinkat.
64977         * modules/areadlinkat-with-size (Depends-on): Likewise.
64979         mknod: be more vocal about danger of running tests as root
64980         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
64981         root, since that is just asking for problems.
64982         Suggested by Bruno Haible, based on a report by Rainer Tammer.
64984         readlinkat: split into its own module
64985         * modules/symlinkat: Split readlinkat...
64986         * modules/readlinkat: ...into separate module.
64987         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
64988         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
64989         * lib/symlinkat.c (readlinkat): Move...
64990         * lib/readlinkat.c: ...into new file.
64991         * modules/symlinkat-tests: Split readlinkat test...
64992         * modules/readlinkat-tests: ...into separate module.
64993         * tests/test-symlinkat.c: Split...
64994         * tests/test-readlinkat.c: ...into new file.
64995         * NEWS: Document the split.
64996         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64997         * lib/unistd.in.h (readlinkat): Likewise.
64998         Suggested by Bruno Haible.
65000 2010-08-08  Bruno Haible  <bruno@clisp.org>
65002         memxfrm: Speed up.
65003         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
65004         that usually only one call to strxfrm is necessary for each string
65005         part.
65006         Reported by Paul Eggert <eggert@cs.ucla.edu>.
65008 2010-08-07  Karl Berry  <karl@gnu.org>
65010         * doc/posix-headers/limits.texi,
65011         * doc/posix-functions/malloc.texi,
65012         * doc/posix-functions/strsignal.texi: missing @item.
65013         * doc/ld-version-script.texi: spurious leading i.
65014         * doc/regex.texi (Interval Operators): no commas inside @var.
65016 2010-08-01  Bruno Haible  <bruno@clisp.org>
65018         Integrate the regex documentation.
65019         * doc/gnulib.texi: Define 'cn' index.
65020         (Regular expressions): New a chapter that includes regex.texi and
65021         regexprops-generic.texi.
65022         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
65023         syntax.
65025         Whitespace cleanup.
65026         * doc/regex.texi: Remove trailing spaces.
65028         Add regex documentation.
65029         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
65030         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
65031         Written by Kathy A. Hargreaves and Karl Berry.
65033 2010-08-01  Bruno Haible  <bruno@clisp.org>
65035         link: Update documentation.
65036         * doc/posix-functions/link.texi: Update regarding Solaris.
65038 2010-07-31  Bruno Haible  <bruno@clisp.org>
65040         Update modules list.
65041         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
65042         (String handling <string.h>): Add memcmp2, memxfrm.
65043         (Container data structures): Add xlist, xsublist, xoset.
65044         (Core language properties): Add alignof, unused-parameter.
65045         (Process control, Numeric conversion functions <stdlib.h>): Renamed
65046         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
65047         (Unibyte characters <ctype.h>): New section.
65048         (String handling <string.h>): New section.
65049         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
65050         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
65051         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
65052         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
65053         tan, tanh, tanl, y0, y1, yn.
65054         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
65055         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
65056         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
65057         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
65058         unlockpt, vdprintf, vdprintf-posix.
65059         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
65060         (File system functions): Add concat-filename, sys_file, sys_ioctl,
65061         xconcat-filename.
65062         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
65063         getdtablesize, pipe2, pipe2-safer.
65064         (Security): New section.
65065         (Networking functions): Add accept4.
65066         (Signal handling): Add sigpipe.
65067         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
65068         mbmemcasecoll.
65069         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
65070         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
65071         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
65072         pipe-filter-ii.
65073         (Misc): Add argp-version-etc, login_tty, parse-duration.
65075 2010-07-31  Bruno Haible  <bruno@clisp.org>
65077         Improve doc in MODULES.html.
65078         * modules/linkat (Description): Add the word "function".
65079         * modules/mkfifo (Description): Likewise.
65080         * modules/mknod (Description): Likewise.
65081         * modules/remove (Description): Likewise.
65082         * modules/renameat (Description): Likewise.
65083         * modules/stat (Description): Likewise.
65084         * modules/symlink (Description): Likewise.
65085         * modules/unlink (Description): Likewise.
65087 2010-07-31  Bruno Haible  <bruno@clisp.org>
65089         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
65090         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
65091         option --enable/disable-c++ instead of --enable/disable-cxx.
65092         * NEWS: Mention the change.
65094 2010-07-31  Bruno Haible  <bruno@clisp.org>
65096         readlink, areadlink: Relax test a bit.
65097         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
65098         alternative to ENOTDIR.
65099         * tests/test-areadlink.h (test_areadlink): Likewise.
65100         Reported by Rainer Tammer.
65102 2010-07-31  Bruno Haible  <bruno@clisp.org>
65104         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
65105         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
65106         character, perform the search using U_STRCHR.
65107         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
65108         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
65109         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
65110         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
65111         Suggested by Paolo Bonzini.
65113 2010-07-31  Bruno Haible  <bruno@clisp.org>
65115         unistr/u*-strstr: Fix dependencies.
65116         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
65117         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
65118         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
65120 2010-07-31  Bruno Haible  <bruno@clisp.org>
65122         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
65123         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
65124         the beginning of the loop.
65125         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
65126         cases in 'switch' statement.
65128         unistr/u8-strchr: Fix several bugs.
65129         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
65130         the string. When not found, return NULL, not a pointer near the end.
65132         More tests for unistr/u8-strchr.
65133         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
65134         that the function does not read past the first occurrence of the byte
65135         being searched.
65136         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
65137         * tests/unistr/test-u16-strchr.c (main): New function.
65138         * tests/unistr/test-u32-strchr.c (main): New function.
65140 2010-07-31  Bruno Haible  <bruno@clisp.org>
65142         posix-modules: Ignore backup files of documentation files.
65143         * posix-modules: grep only through files named *.texi.
65145 2010-07-31  Bruno Haible  <bruno@clisp.org>
65147         symlinkat: Fix documentation.
65148         * doc/posix-functions/readlinkat.texi: Fix module name.
65150 2010-07-31  Bruno Haible  <bruno@clisp.org>
65152         fchownat: Replace also when chown has the trailing slash bug.
65153         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
65154         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
65155         introduced on 2010-04-10.
65156         Reported by Rainer Tammer.
65158 2010-07-31  Bruno Haible  <bruno@clisp.org>
65160         linkat: Work around AIX 7.1 bug.
65161         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
65162         whether linkat handles trailing slash correctly. If not, replace linkat
65163         and define LINKAT_TRAILING_SLASH_BUG.
65164         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
65165         check whether (fd1,file1) points to a directory if file1 or file2 ends
65166         in a slash. Code taken from lib/link.c.
65167         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
65168         Reported by Rainer Tammer.
65170 2010-07-31  Bruno Haible  <bruno@clisp.org>
65172         Correctly determine whether pow is available in libc on AIX 7 with xlc.
65173         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
65174         This disables an xlc optimization that was causing wrong test results.
65175         Reported by Rainer Tammer.
65177 2010-07-31  Bruno Haible  <bruno@clisp.org>
65179         iconv: Work around AIX 6.1..7.1 bug.
65180         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
65181         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
65182         cross-compiling, guess no on all versions of AIX.
65183         Reported by Rainer Tammer.
65185 2010-07-31  Bruno Haible  <bruno@clisp.org>
65187         readlink: Relax test a bit.
65188         * tests/test-readlink.h (test_readlink): Allow different errno value
65189         when readlink is called with a file name that ends in / and refers to
65190         a file.
65191         Suggested by Eric Blake.
65192         Reported by Rainer Tammer.
65194 2010-07-31  Bruno Haible  <bruno@clisp.org>
65196         copysign: Does not require -lm on glibc systems.
65197         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
65198         gl_COMMON_DOUBLE_MATHFUNC.
65199         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
65201 2010-07-31  Bruno Haible  <bruno@clisp.org>
65203         duplocale: Work around AIX 7.1 bug.
65204         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
65205         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
65206         * lib/duplocale.c (rpl_duplocale): Update comment.
65207         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
65208         Reported by Rainer Tammer.
65210 2010-07-30  Bruno Haible  <bruno@clisp.org>
65212         dirfd: Avoid link error on AIX 7.1.
65213         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
65214         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
65215         exist, set REPLACE_DIRFD.
65216         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
65217         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
65218         * doc/posix-functions/dirfd.texi: Update.
65219         Reported by Rainer Tammer.
65221 2010-07-30  Eric Blake  <eblake@redhat.com>
65223         strtod: next round of AIX fixes
65224         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
65225         exponent.
65226         * tests/test-strtod.c (main): Enhance tests.
65227         * doc/posix-functions/strtod.texi (strtod): Document next bug.
65228         Reported by Rainer Tammer.
65230         futimens: fix configure check
65231         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
65232         Reported by Bruno Haible.
65234 2010-07-30  Bruno Haible  <bruno@clisp.org>
65236         getline: Update regarding AIX.
65237         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
65238         Reported by Rainer Tammer.
65240 2010-07-30  Bruno Haible  <bruno@clisp.org>
65242         wcwidth: Drop replacement on AIX 7.
65243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
65244         AIX 7.
65245         Reported by Rainer Tammer.
65247 2010-07-30  Bruno Haible  <bruno@clisp.org>
65249         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
65250         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
65251         a 'char *'.
65252         Reported by Rainer Tammer.
65254 2010-07-30  Bruno Haible  <bruno@clisp.org>
65256         unlink: Update regarding AIX.
65257         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65258         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
65259         Reported by Rainer Tammer.
65261 2010-07-30  Bruno Haible  <bruno@clisp.org>
65263         symlink: Update regarding AIX.
65264         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
65265         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
65266         Reported by Rainer Tammer.
65268 2010-07-30  Bruno Haible  <bruno@clisp.org>
65270         strndup: Update regarding AIX.
65271         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
65272         AIX 7.
65273         Reported by Rainer Tammer.
65275 2010-07-30  Bruno Haible  <bruno@clisp.org>
65277         stat: Update regarding AIX.
65278         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
65279         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
65280         Reported by Rainer Tammer.
65282 2010-07-30  Bruno Haible  <bruno@clisp.org>
65284         truncl: Fix autoconf test.
65285         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
65286         whether truncl works.
65287         Reported by Rainer Tammer.
65289 2010-07-30  Bruno Haible  <bruno@clisp.org>
65291         round: Update regarding AIX.
65292         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
65293         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
65294         Reported by Rainer Tammer.
65296 2010-07-30  Bruno Haible  <bruno@clisp.org>
65298         rename: Update regarding AIX.
65299         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
65300         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
65301         Reported by Rainer Tammer.
65303 2010-07-30  Bruno Haible  <bruno@clisp.org>
65305         printf.m4: Update regarding AIX.
65306         * m4/printf.m4: Update comments regarding AIX.
65307         Reported by Rainer Tammer.
65309 2010-07-30  Bruno Haible  <bruno@clisp.org>
65311         iconv: Update regarding AIX.
65312         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
65313         AIX 7.
65314         Reported by Rainer Tammer.
65316 2010-07-30  Bruno Haible  <bruno@clisp.org>
65318         getopt: Update regarding AIX.
65319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
65320         no on AIX.
65321         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
65322         Reported by Rainer Tammer.
65324 2010-07-30  Bruno Haible  <bruno@clisp.org>
65326         ldexpl; Update regarding AIX.
65327         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
65328         on AIX 7.
65329         Reported by Rainer Tammer.
65331 2010-07-30  Bruno Haible  <bruno@clisp.org>
65333         frexpl: Update regarding AIX.
65334         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
65335         on AIX 7.
65336         Reported by Rainer Tammer.
65338 2010-07-30  Bruno Haible  <bruno@clisp.org>
65340         open, fopen: Update regarding AIX.
65341         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
65342         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65343         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
65344         * doc/posix-functions/fopen.texi: Likewise.
65345         Reported by Rainer Tammer.
65347 2010-07-30  Bruno Haible  <bruno@clisp.org>
65349         chown: Update doc regarding AIX.
65350         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
65351         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
65352         Reported by Rainer Tammer.
65354 2010-07-30  Eric Blake  <eblake@redhat.com>
65356         strtod: fix bug in replacement function on AIX
65357         * lib/strtod.c (strtod): Special case broken "0x" parse in
65358         underlying strtod.
65359         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
65360         * doc/posix-functions/strtod.texi (strtod): Likewise.
65361         Reported by Rainer Tammer.
65363 2010-07-30  Bruno Haible  <bruno@clisp.org>
65365         mbrlen: Fix cross-compilation guess for AIX.
65366         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
65367         guess. Leftover from 2008-12-22.
65369 2010-07-30  Bruno Haible  <bruno@clisp.org>
65371         mbrtowc: Fix cross-compilation guess for AIX.
65372         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
65373         guess. Leftover from 2008-12-21.
65375 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
65377         init.sh: work around trap limitation of some shells
65378         * tests/init.sh (setup_): Move exit trap outside of shell function.
65380 2010-07-29  Eric Blake  <eblake@redhat.com>
65382         strtod: aid debugging
65383         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
65384         understanding why strtod is rejected.
65386 2010-07-28  Bruno Haible  <bruno@clisp.org>
65388         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
65389         * lib/unistr/u8-chr.c: Include <string.h>.
65390         * tests/unistr/test-u8-chr.c: Likewise.
65391         * tests/unistr/test-u16-chr.c: Likewise.
65392         * tests/unistr/test-u32-chr.c: Likewise.
65393         * tests/unistr/test-u8-strchr.c: Likewise.
65394         * tests/unistr/test-u16-strchr.c: Likewise.
65395         * tests/unistr/test-u32-strchr.c: Likewise.
65396         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
65397         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
65398         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
65399         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
65401 2010-07-28  Bruno Haible  <bruno@clisp.org>
65403         Use spaces for indentation, not tabs.
65404         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
65406 2010-07-27  Bruno Haible  <bruno@clisp.org>
65408         mbspcasecmp: Fix function specification.
65409         * lib/string.in.h (mbspcasecmp): Fix specification comment.
65410         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
65411         Reported by Eric Blake <eblake@redhat.com>.
65413 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
65415         timespec: use cast and not conditional, as truncation isn't possible
65416         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
65417         instead of a conditional.  Comment about the situation in more detail.
65418         This undoes most of the 2009-10-29 patch.
65420 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
65422         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
65423         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
65424         * lib/unistr/u8-strchr.c: Likewise.
65425         * modules/unistr/u8-chr: Depend on memchr.
65427         unistr/u*-strchr: add tests
65428         * modules/unistr/u8-strchr-tests: New file.
65429         * modules/unistr/u16-strchr-tests: New file.
65430         * modules/unistr/u32-strchr-tests: New file.
65431         * tests/unistr/test-strchr.h: New file.
65432         * tests/unistr/test-u8-strchr.c: New file.
65433         * tests/unistr/test-u16-strchr.c: New file.
65434         * tests/unistr/test-u32-strchr.c: New file.
65436         unistr/u*-chr: test multibyte sequences more
65437         * tests/unistr/test-chr.h: Do complete testing of the characters in the
65438         test vector.
65439         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
65440         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
65441         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
65443         unistr/u*-chr: test multibyte sequences
65444         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
65446         unistr/u*-chr: prepare for multibyte tests
65447         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
65448         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
65449         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
65450         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
65451         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
65452         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
65454 2010-07-18  Bruno Haible  <bruno@clisp.org>
65456         unistr/u8-strchr: Optimize non-ASCII argument case.
65457         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
65458         because the first byte often matches anyway.
65459         Reported by Pádraig Brady <P@draigbrady.com>.
65461 2010-07-15  Karl Berry  <karl@gnu.org>
65463         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
65465 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
65467         getcwd: on Solaris, work better if ancestors are inaccessible
65468         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
65469         buffer and size, try again with a large buffer.  This works better
65470         on Solaris, since its getcwd succeeds even if the path to the root
65471         is inaccessible, and this is helpful in common cases such as .zfs
65472         hidden directories.  Problem reported by J Chapman Flack in
65473         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
65474         Use system getcwd if it's declared, not merely if it's partly
65475         working; use the partly-working test only to avoid needless effort
65476         if the system getcwd fails.
65477         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
65478         comment that was already obsolete and is now even more obsolete.
65479         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
65480         now might call strdup.
65482 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
65484         pthread: Add enough so that coreutils/src/sort.c compiles.
65485         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
65486         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
65487         gnulib. Include <sched.h> and <time.h>, as per POSIX.
65488         Include <sys/types.h>, in case it defines pthread_t.
65489         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
65490         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
65491         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
65492         (pthread_rwlockattr_t, pthread_spinlock_t):
65493         New typedefs, if HAVE_PTHREAD_T is not defined.
65494         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
65495         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
65496         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
65497         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
65498         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
65499         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
65500         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
65501         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
65502         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
65503         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
65504         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
65505         New macros.
65506         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
65507         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
65508         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
65509         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
65510         (pthread_spin_unlock): New dummy functions.
65511         (pthread_create): Return EAGAIN; don't set errno.
65512         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
65513         require AC_C_INLINE.
65514         * modules/pthread (Depends-on): Add sched, time.
65515         (pthread.h): Use AM_V_GEN.
65517 2010-07-13  Bruno Haible  <bruno@clisp.org>
65519         striconveh: Don't malloc memory if the result buffer is sufficient.
65520         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
65521         buffer if its size is sufficient.
65522         Reported by Ludovic Courtès <ludo@gnu.org>.
65524 2010-07-13  Bruno Haible  <bruno@clisp.org>
65526         strtod: Add safety check.
65527         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
65529 2010-07-12  Bruno Haible  <bruno@clisp.org>
65531         Unify tests that set gl_cv_func_ldexpl_no_libm.
65532         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
65533         gl_FUNC_LDEXPL.
65534         (gl_FUNC_LDEXPL): Invoke it.
65535         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65537 2010-07-12  Bruno Haible  <bruno@clisp.org>
65539         Unify tests that set gl_cv_func_ldexp_no_libm.
65540         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
65541         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
65542         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
65543         (configure.ac): Simply invoke gl_FUNC_LDEXP.
65544         * modules/strtod (Files): Add m4/ldexp.m4.
65546 2010-07-12  Bruno Haible  <bruno@clisp.org>
65548         Unify tests that set gl_cv_func_frexpl_no_libm.
65549         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
65550         gl_FUNC_FREXPL_NO_LIBM.
65551         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
65552         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65554 2010-07-12  Bruno Haible  <bruno@clisp.org>
65556         Unify tests that set gl_cv_func_frexp_no_libm.
65557         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
65558         gl_FUNC_FREXP_NO_LIBM.
65559         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
65560         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65562 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65564         memcoll: clarify sizes versus lengths, document better, and tweak perf
65565         * lib/memcoll.c (strcoll_loop, memcoll0):
65566         Improve quality of descriptive comments.  Name variables
65567         consistently as to whether they are lengths (which do not include
65568         terminating null) versus sizes (which do).
65569         * lib/xmemcoll.c (xmemcoll0): Likewise.
65570         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
65571         returned when s1size == 0; this is easier to compile and saves
65572         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
65574 2010-07-12  Bruno Haible  <bruno@clisp.org>
65576         Tests for module '_Exit'.
65577         * modules/_Exit-tests: New file.
65578         * tests/test-_Exit.sh: New file.
65579         * tests/test-_Exit.c: New file.
65581         New module '_Exit'.
65582         * lib/stdlib.in.h (__attribute__): New macro.
65583         (_Exit): New declaration.
65584         * lib/_Exit.c: New file.
65585         * m4/_Exit.m4: New file.
65586         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
65587         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
65588         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
65589         * modules/_Exit: New file.
65590         * tests/test-stdlib-c++.cc (_Exit): Check signature.
65591         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
65593 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65595         strtod: make it more-accurate typically, and don't require libm
65596         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
65597         Include limits.h.  Don't include string.h.
65598         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
65599         (locale_isspace): New function, so that no casts are needed to
65600         check whether *s is a space.
65601         (ldexp): Provide an unused dummy if not available.
65602         (scale_radix_exp, parse_number, underlying_strtod): New functions.
65603         (strtod): Use them.  This implementation prefers to use the
65604         underlying strtod if available, falling back on our own code
65605         only to fix known bugs.  This is more likely to produce an
65606         accurate result.  Also, it avoids the use of libm functions.
65607         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
65608         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
65609         was absent, but it caused a test failure with coreutils.
65610         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
65611         with libm.
65612         * modules/strtod (Makefile.am, Link): libm is no longer needed.
65613         * modules/strtod-tests (Makefile.am): Likewise.
65615 2010-07-11  Pádraig Brady  <P@draigBrady.com>
65616             Bruno Haible  <bruno@clisp.org>
65618         unistr/u8-strchr: Optimize ASCII argument case.
65619         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
65621 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65623         (x)memcoll: minor tweaks
65624         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
65625         is after the type that it qualifies.
65626         (memcoll0): Likewise.
65627         * lib/memcoll.h (memcoll0): Likewise.
65628         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
65629         * lib/xmemcoll.h (xmemcoll0): Likewise.
65630         * lib/memcoll.c (memcoll0): Correct the comment.  This function
65631         differs from memcoll in that the NUL byte is part of the argument.
65632         Omit the abort-checks, as performance is a real issue here.  Plus,
65633         the checks were wrong anyway (an off-by-one error).  Omit local
65634         variable 'diff', as it's a bit clearer that way.
65635         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
65636         no longer needed.
65638 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
65640         (x)memcoll: speedup when input is known to be NUL delimited
65641         * lib/memcoll.c: Include stdlib.
65642         (memcoll0): New function.
65643         (strcoll_loop): New function, refactored for use in both memcoll
65644         and memcoll0.
65645         * lib/memcoll.h (memcoll0): Add prototype.
65646         * lib/xmemcoll.c (xmemcoll0): New function.
65647         (collate_error): New function, refactored for use in both xmemcoll
65648         and xmemcoll0.
65649         * lib/xmemcoll.h (xmemcoll0): Add prototype.
65650         * m4/memcoll.m4: add inline invocation.
65652 2010-07-06  Pádraig Brady  <P@draigBrady.com>
65654         * build-aux/bootstrap: Remove any local translations
65655         from the translation project synchronization directory,
65656         so that local only translations are not distributed.
65658 2010-07-04  Bruno Haible  <bruno@clisp.org>
65660         fsusage: Clarify which code applies to which platforms.
65661         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
65662         platform.
65663         * lib/fsusage.c (get_fs_usage): Likewise.
65665 2010-07-04  Bruno Haible  <bruno@clisp.org>
65667         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
65668         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
65669         Reported by Martin Lambers <marlam@marlam.de>.
65671 2010-07-04  Jim Meyering  <meyering@redhat.com>
65673         hash: once again explicitly disallow insertion of NULL
65674         * lib/hash.c (hash_insert0): Reinstate just-removed test:
65675         inserting a NULL pointer cannot work with these functions.
65676         Add a comment with details.
65677         This reverts part of the 2010-07-01 commit, 5bef1a35
65678         "hash: extend module to deal with non-pointer keys".
65680 2010-07-01  Bruno Haible  <bruno@clisp.org>
65682         stdbool: Update doc.
65683         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
65684         Info from Christian Weisgerber <naddy@mips.inka.de>.
65686 2010-07-01  Jim Meyering  <meyering@redhat.com>
65688         hash: extend module to deal with non-pointer keys
65689         * lib/hash.c (hash_insert0): New interface, much like hash_insert
65690         but that allows insertion of non-pointer entries.
65691         Do not disallow an ENTRY value of NULL.
65692         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
65693         * lib/hash.h (hash_insert0): Declare.
65695 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
65697         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
65698         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
65699         not present (i.e. with autoconf 2.59 and when using gettextize, not
65700         gnulib), require AC_GNU_SOURCE instead.
65702 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
65704         idpriv-drop: Fix tests.
65705         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
65706         not to the test-idpriv-droptemp program.
65708 2010-06-29  Bruno Haible  <bruno@clisp.org>
65710         string: Fix syntax error with g++ 2.96.
65711         * lib/string.in.h (__pure__): Remove definition.
65712         (_GL_ATTRIBUTE_PURE): New macro.
65713         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
65714         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
65715         Reported by Christian Weisgerber <naddy@mips.inka.de>.
65717 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
65719         unitypes: Fix bug introduced on 2010-05-18.
65720         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
65722 2010-06-22  Eric Blake  <eblake@redhat.com>
65724         memmem: slight optimization
65725         * lib/str-two-way.h (critical_factorization): Update comments.
65726         Reduce work during factorization phase.
65727         Reported by Carlos Bueno <carlos@bueno.org>.
65729 2010-06-21  Bruno Haible  <bruno@clisp.org>
65731         Fix HAVE_CALLOC_POSIX misnomer.
65732         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
65733         !HAVE_CALLOC_POSIX.
65734         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
65735         HAVE_CALLOC_POSIX.
65736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
65737         instead of HAVE_CALLOC_POSIX.
65738         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
65739         HAVE_CALLOC_POSIX.
65741         Use modern idiom for calloc() replacement.
65742         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
65743         AC_FUNC_CALLOC.
65744         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
65745         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
65746         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65747         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
65748         (gl_REPLACE_CALLOC): New macro.
65750 2010-06-21  Bruno Haible  <bruno@clisp.org>
65752         Fix HAVE_REALLOC_POSIX misnomer.
65753         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
65754         !HAVE_REALLOC_POSIX.
65755         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
65756         HAVE_REALLOC_POSIX.
65757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
65758         instead of HAVE_REALLOC_POSIX.
65759         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
65760         HAVE_REALLOC_POSIX.
65762         Use modern idiom for realloc() replacement.
65763         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
65764         AC_FUNC_REALLOC.
65765         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
65766         Autoconf's AC_FUNC_REALLOC.
65767         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65768         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
65769         (gl_REPLACE_REALLOC): New macro.
65770         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65772 2010-06-21  Bruno Haible  <bruno@clisp.org>
65774         Fix HAVE_MALLOC_POSIX misnomer.
65775         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
65776         !HAVE_MALLOC_POSIX.
65777         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
65778         HAVE_MALLOC_POSIX.
65779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
65780         instead of HAVE_MALLOC_POSIX.
65781         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
65782         HAVE_MALLOC_POSIX.
65784         Use modern idiom for malloc() replacement.
65785         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
65786         AC_FUNC_MALLOC.
65787         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
65788         Autoconf's AC_FUNC_MALLOC.
65789         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65790         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
65791         (gl_REPLACE_MALLOC): New macro.
65792         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65794 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
65796         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
65797         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
65798         This macro takes 3 arguments, not 4.
65800 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
65802         ipv6: fix detection under mingw
65803         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
65804         in6_addr.
65806 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
65808         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
65809         that strtod() works when cross-compiling to a glibc version known
65810         to work.
65812 2010-06-15  Bruno Haible  <bruno@clisp.org>
65814         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
65816 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
65818         select: Correct timeout.
65819         * lib/select.c (rpl_select): Compute wait_timeout correctly.
65821 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65823         git-version-gen: init shell var to avoid env var influence
65824         * build-aux/git-version-gen (v): Init shell var to empty.
65826 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
65828         priv-set: Don't assume that priv.h exists merely because getppriv does.
65829         See Jan Andersen's bug report about AIX 5L in
65830         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
65831         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
65832         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
65833         * lib/priv-set.h: Likewise.
65834         * tests/test-priv-set.c: Likewise.
65836 2010-06-13  Bruno Haible  <bruno@clisp.org>
65838         relocatable: Make it easier to test whether to install wrappers.
65839         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
65840         RELOCATABLE_VIA_WRAPPER.
65842 2010-06-13  Bruno Haible  <bruno@clisp.org>
65844         gnulib-tool: Display specified modules and dependencies differently.
65845         * gnulib-tool (func_show_module_list): New function.
65846         (func_import, func_create_testdir): Invoke it.
65847         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
65849 2010-06-13  Bruno Haible  <bruno@clisp.org>
65851         gnulib-tool: Align code of func_import and func_create_testdir.
65852         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
65853         specified_modules.
65855 2010-06-12  Jim Meyering  <meyering@redhat.com>
65857         test-inttostr: avoid spurious failure on Solaris 9
65858         * tests/test-inttostr.c (main): Skip the test when snprintf fails
65859         to accept "%ju".  Reported by Bruno Haible.
65861 2010-06-11  Jim Meyering  <meyering@redhat.com>
65863         test-sys_socket: mark variables as used more readably
65864         * tests/test-sys_socket.c (main): Mark otherwise unused variables
65865         as "used" explicitly via (void) statement casts.  This is more
65866         readable than using them in an artificial return expression.
65867         Suggestion from Bruno Haible.
65869 2010-06-11  Bruno Haible  <bruno@clisp.org>
65871         Avoid some more warnings from "gcc -Wwrite-strings".
65872         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
65873         to 'const char *'.
65874         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
65875         * tests/test-c-strcasestr.c (main): Likewise.
65876         * tests/test-mbscasestr1.c (main): Likewise.
65877         * tests/test-mbscasestr2.c (main): Likewise.
65878         * tests/test-memmem.c (main): Likewise.
65879         * tests/test-strstr.c (main): Likewise.
65880         * tests/test-strcasestr.c (main): Likewise.
65882 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65884         init.sh: change framework_failure_ to fail with status 99, not 1
65885         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
65886         automake's parallel-tests rule that this is an unexpected failure,
65887         even if the test is listed in XFAIL_TESTS.
65889 2010-06-11  Jim Meyering  <meyering@redhat.com>
65891         test-inttostr: avoid warnings about 4-6KB literal strings
65892         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
65893         Include "macros.h", for its definition of ASSERT.
65894         (CK): s/assert/ASSERT/
65895         * modules/inttostr-tests (Files): Add macros.h.
65897         init.sh: don't use $ME_ or skip_ before they are defined
65898         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
65899         their first uses.  Also hoist their companions: warn_, fail_,
65900         framework_failure_, $stderr_fileno.  Prompted by a patch from
65901         Stefano Lattarini.
65903         test-sys_socket: avoid set-but-not-used warnings from gcc
65904         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
65905         avoid warning about set-but-not-used variables.
65907         test-xvasprintf: avoid 'const' discard warnings
65908         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
65909         "const" when assigning from literal strings.
65910         (test_xasprintf): Add "void" in function argument list to placate
65911         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
65913         tests: avoid compilation warnings in argmatch and exclude tests...
65914         in packages that define ARGMATCH_DIE_DECL, like coreutils.
65915         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
65916         Since it always exits, declare with the "noreturn" attribute.
65917         * tests/test-argmatch.c: Likewise.
65919         tests: avoid 'const' discard warnings in mbsstr tests
65920         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
65921         * tests/test-mbsstr2.c (main): Likewise.
65923         test-verify: avoid warning from gcc's -Wmissing-declarations
65924         * tests/test-verify.c (function): Declare to be static.
65926         test-inttostr.c: include <string.h> for use of strcmp
65927         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
65929         test-linkat: avoid failed assertion on "other" architectures
65930         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
65931         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
65932         sparc: https://bugs.launchpad.net/bugs/591968
65934 2010-06-11  Jim Meyering  <meyering@redhat.com>
65936         printf.m4: avoid autoconf's "Expanded Before Required" warning
65937         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
65938         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
65939         autoconf warning.
65941 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
65943         Replacement header templates are now named with ".in", not "_".
65944         * doc/gnulib-intro.texi: Correct.
65946 2010-06-10  Jim Meyering  <meyering@redhat.com>
65948         inttostr-tests: depend on snprintf, not snprintf-posix
65949         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
65950         snprintf-posix, to avoid this aclocal failure:
65951           missing file gnulib-tests/vasnprintf.c
65952           configure.ac:45: error: expected source file, required through \
65953           AC_LIBSOURCES, not found
65955 2010-06-10  Jim Meyering  <meyering@redhat.com>
65957         inttostr: add a new function, inttostr, and tests
65958         The namesake function was not available.  The existence of the
65959         template file, inttostr.c makes its addition nontrivial.
65960         * lib/anytostr.c: Rename from inttostr.c.
65961         (anytostr): Rename from inttostr.
65962         * lib/inttostr.c: New file.
65963         * modules/inttostr (Files): Add anytostr.c.
65964         (Makefile.am): Set lib_SOURCES instead of ...
65965         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
65966         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
65967         * lib/offtostr.c: Likewise.
65968         * lib/uinttostr.c: Likewise.
65969         * lib/umaxtostr.c: Likewise.
65970         * modules/inttostr-tests: New file.
65971         * tests/test-inttostr.c: New file.  Test these functions.
65973 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
65974             Bruno Haible  <bruno@clisp.org>
65976         Add "Extending Gnulib" chapter to manual.
65977         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
65978         chapter.
65979         (Extending Gnulib): New chapter.
65980         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
65981         chapter.
65983 2010-06-09  Bruno Haible  <bruno@clisp.org>
65985         Avoid relocwrapper link errors due to gnulib replacement functions.
65986         * lib/areadlink.c: Use the system's malloc, realloc functions.
65987         (areadlink): Set errno to ENOMEM explicitly.
65988         * modules/areadlink (Depends-on): Remove malloc-posix.
65989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65991 2010-06-09  Bruno Haible  <bruno@clisp.org>
65993         Avoid relocwrapper link errors due to gnulib replacement functions.
65994         * lib/canonicalize-lgpl.c: Use the system's malloc function.
65995         * lib/malloca.c: Likewise.
65996         * lib/relocatable.c: Likewise.
65997         * lib/progreloc.c: Use the system's malloc, sprintf functions.
65998         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
65999         * lib/setenv.c: Use the system's malloc, realloc functions.
66000         * lib/strerror.c: Use the system's sprintf function.
66001         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66003 2010-06-04  Bruno Haible  <bruno@clisp.org>
66005         Prefer documented low-level autoconf macro names.
66006         * m4/lib-link.m4: Use m4_translit instead of translit.
66007         * m4/environ.m4: Likewise.
66008         * m4/mathfunc.m4: Likewise.
66009         * m4/onceonly.m4: Likewise.
66010         * m4/stdint.m4: Likewise.
66011         Suggested by Eric Blake.
66013 2010-06-04  Martin Lambers  <marlam@marlam.de>
66014             Bruno Haible  <bruno@clisp.org>
66016         havelib: Allow library names with '+' characters.
66017         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66018         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
66020 2010-06-09  Bruno Haible  <bruno@clisp.org>
66022         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
66023         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
66024         realloc failed.
66026 2010-06-08  Peter Simons  <simons@cryp.to>
66028         maint.mk: make the news-check rule more configurable
66029         * top/maint.mk (news-check-lines-spec): New variable.
66030         (news-check): Use "sed -n 1,10p" in place of "head".
66032 2010-06-07  Jim Meyering  <meyering@redhat.com>
66034         do-release-commit-and-tag: fix typo in --help
66035         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
66037         regex: avoid new dead-code warning with gcc-4.6.0
66038         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
66039         if-block containing a while-loop.  It's been unused for at least
66040         5 years.
66042 2010-06-05  Bruno Haible  <bruno@clisp.org>
66044         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
66045         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
66047 2010-06-04  Bruno Haible  <bruno@clisp.org>
66049         Update to GNU gettext 0.18.1.
66050         * modules/gettext (configure.ac): Require gettext infrastructure from
66051         version 0.18.1.
66053 2010-06-03  Bruno Haible  <bruno@clisp.org>
66055         Don't use AC_LIBOBJ with file names in subdirectories.
66056         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
66057         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
66058         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
66059         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
66060         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
66061         gl_LIBUNISTRING_LIBSOURCE.
66062         (Makefile.am): Augment lib_SOURCES here, conditionally.
66063         * NEWS: Drop requirement for Automake option 'subdir-objects'.
66065 2010-06-03  Bruno Haible  <bruno@clisp.org>
66067         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
66068         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
66069         expansion does not end with a newline.
66070         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
66071         unnecessary newline.
66073 2010-06-03  Bruno Haible  <bruno@clisp.org>
66075         Reduce dependencies.
66076         * tests/test-quotearg.h: New file, extracted from
66077         tests/test-quotearg.c.
66078         * tests/test-quotearg-simple.c: New file, extracted from
66079         tests/test-quotearg.c.
66080         * tests/test-quotearg.c: Don't include <ctype.h>.
66081         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
66082         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
66083         use_quote_double_quotes, use_quotearg_colon): Moved to
66084         tests/test-quotearg.h.
66085         (results_g, flag_results, custom_quotes, custom_results): Moved
66086         to tests/test-quotearg-simple.c.
66087         (main): Moved the part that does not depend on gettext to
66088         tests/test-quotearg-simple.c. Return 77 if the test cannot be
66089         performed.
66090         * modules/quotearg-simple: New file.
66091         * modules/quotearg-simple-tests: New file.
66092         * modules/quotearg (Depends-on): Add quotearg-simple.
66093         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
66094         (Files): Add tests/test-quotearg.h.
66095         Reported by Paolo Bonzini.
66097 2010-06-03  Bruno Haible  <bruno@clisp.org>
66099         Reduce dependencies.
66100         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
66102 2010-06-03  Bruno Haible  <bruno@clisp.org>
66104         time: Undefine more broken macros.
66105         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
66106         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
66107         Reported by Eric Blake.
66109 2010-06-03  Bruno Haible  <bruno@clisp.org>
66111         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
66112         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
66113         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
66114         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
66115         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
66116         Reported by Ludovic Courtès <ludo@gnu.org>.
66118 2010-06-02  Eric Blake  <eblake@redhat.com>
66120         time: work with mingw + pthreads-win32 library
66121         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
66122         if timespec is defined only in pthread.h.
66123         * modules/time (Makefile.am): Substitute it.
66124         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
66125         <pthread.h>, when needed.
66126         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
66127         from the library.
66129 2010-05-31  Bruno Haible  <bruno@clisp.org>
66131         Avoid expanding two macros in the wrong order.
66132         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
66133         gl_LIBUNISTRING if it is defined.
66134         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
66135         autoconf >= 2.64.
66136         Reported by Ludovic Courtès <ludo@gnu.org>.
66138 2010-05-27  Jim Meyering  <meyering@redhat.com>
66140         maint.mk: also prohibit "#undef" of always-defined symbols
66141         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
66142         Allow more than one space before the symbol name.
66143         (sc_prohibit_always-defined_macros): Use grep's -E, now that
66144         the regexp uses alternation.
66146 2010-05-26  Eric Blake  <eblake@redhat.com>
66148         maint.mk: avoid echo -e
66149         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
66150         Convert all uses of echo -* to printf.
66151         Reported by Matthias Bolte.
66153 2010-05-25  Bruno Haible  <bruno@clisp.org>
66155         Update to GNU gettext 0.18, part 2.
66156         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
66157         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
66159 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66161         Add missing include in test-pwrite.c.
66162         * tests/test-pwrite.c: Include string.h, for strcmp.
66164 2010-05-24  Bruno Haible  <bruno@clisp.org>
66166         * NEWS: Mention requirement for Automake option 'subdir-objects'.
66168 2010-05-24  Bruno Haible  <bruno@clisp.org>
66170         Don't use conversion with transliteration in u{8,16,32}_strcoll.
66171         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
66172         iconveh_error argument.
66173         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
66174         U_STRCONV_TO_LOCALE.
66175         * lib/unistr/u16-strcoll.c: Likewise.
66176         * lib/unistr/u32-strcoll.c: Likewise.
66177         * modules/unistr/u8-strcoll (Depends-on): Add
66178         uniconv/u8-strconv-to-enc, localcharset. Remove
66179         uniconv/u8-strconv-to-locale.
66180         (configure.ac): Bump version number.
66181         * modules/unistr/u16-strcoll (Depends-on): Add
66182         uniconv/u16-strconv-to-enc, localcharset. Remove
66183         uniconv/u16-strconv-to-locale.
66184         (configure.ac): Bump version number.
66185         * modules/unistr/u32-strcoll (Depends-on): Add
66186         uniconv/u32-strconv-to-enc, localcharset. Remove
66187         uniconv/u32-strconv-to-locale.
66188         (configure.ac): Bump version number.
66190 2010-05-24  Bruno Haible  <bruno@clisp.org>
66192         Avoid a test failure on NetBSD 5.0.
66193         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
66194         an iconv() bug.
66196 2010-05-24  Bruno Haible  <bruno@clisp.org>
66198         Adjust #include directive style.
66199         * modules/regex (Includes): Recommend to write <regex.h>.
66201 2010-05-24  Bruno Haible  <bruno@clisp.org>
66203         regex: Don't require alloca.
66204         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
66205         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
66206         only inside if (0).
66208 2010-05-23  Jim Meyering  <meyering@redhat.com>
66210         test-renameat.c: include <sys/stat.h>
66211         * tests/test-renameat.c: Include <sys/stat.h>; required for
66212         definition of S_IS* macros.
66214 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
66216         Update maintainer documentation for 'relocatable-prog' module.
66217         * doc/relocatable-maint.texi: Update.
66218         Comments by Bruno Haible.
66220 2010-05-23  Bruno Haible  <bruno@clisp.org>
66222         git-merge-changelog: Enable --split-merged-entry by default.
66223         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
66224         (usage): Don't mention this option any more.
66225         Reported by Ralf Wildenhues.
66227 2010-05-23  Jim Meyering  <meyering@redhat.com>
66229         test-pwrite: do not leave behind a test file named "out"
66230         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
66231         The trivial-looking use of init.sh is really necessary.
66232         It ensures that the temporary file, "out", is created in
66233         a temporary directory, and removed upon termination.
66234         * tests/test-pwrite.sh: Re-add file.
66235         * modules/pwrite-tests: Reference it.
66237 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66239         Fix output redirection buglet in init.sh.
66240         * tests/init.sh: Fix redirection of stderr.
66242 2010-05-20  Simon Josefsson  <simon@josefsson.org>
66244         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
66246 2010-05-17  Simon Josefsson  <simon@josefsson.org>
66248         * modules/valgrind-tests: New file.
66249         * m4/valgrind-tests.m4: New file.
66250         * doc/valgrind-tests.texi: New file.
66251         * doc/gnulib.texi (Running self-tests under valgrind): New
66252         section.
66254 2010-05-19  Bruno Haible  <bruno@clisp.org>
66256         Clean up dead code in recent commit.
66257         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
66258         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
66259         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
66260         Suggested by Paolo Bonzini.
66262 2010-05-19  Bruno Haible  <bruno@clisp.org>
66264         Avoid valgrind error reports from libunistring.
66265         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
66266         * modules/libunistring (Files): Add it.
66267         * modules/libunistring-optional (Files): Likewise.
66269 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
66270             Bruno Haible  <bruno@clisp.org>
66272         New module 'libunistring-optional'.
66273         * modules/libunistring-optional: New file.
66274         * m4/libunistring-base.m4: New file.
66275         * m4/libunistring-optional.m4: New file.
66276         * lib/unicase.in.h: Renamed from lib/unicase.h.
66277         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
66278         * lib/unictype.in.h: Renamed from lib/unictype.h.
66279         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
66280         * lib/uniname.in.h: Renamed from lib/uniname.h.
66281         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
66282         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
66283         * lib/unistr.in.h: Renamed from lib/unistr.h.
66284         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66285         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
66286         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
66287         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
66288         gl_LIBUNISTRING. If the library was found, determine the installed
66289         version and set LIBUNISTRING_VERSION.
66290         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
66291         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
66292         handle a configuration option --with-included-libunistring.
66293         * modules/libunistring (Files): Add m4/absolute-header.m4.
66294         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
66295         Add m4/libunistring-base.m4.
66296         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66297         (Makefile.am): Build unicase.h from unicase.in.h.
66298         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
66299         Add m4/libunistring-base.m4.
66300         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66301         (Makefile.am): Build uniconv.h from uniconv.in.h.
66302         * modules/unictype/base (Files): Use unictype.in.h instead of
66303         unictype.h. Add m4/libunistring-base.m4.
66304         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66305         (Makefile.am): Build unictype.h from unictype.in.h.
66306         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
66307         Add m4/libunistring-base.m4.
66308         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66309         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
66310         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
66311         Add m4/libunistring-base.m4.
66312         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66313         (Makefile.am): Build uniname.h from uniname.in.h.
66314         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
66315         Add m4/libunistring-base.m4.
66316         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66317         (Makefile.am): Build uninorm.h from uninorm.in.h.
66318         * modules/unistdio/base (Files): Use unistdio.in.h instead of
66319         unistdio.h. Add m4/libunistring-base.m4.
66320         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66321         (Makefile.am): Build unistdio.h from unistdio.in.h.
66322         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
66323         Add m4/libunistring-base.m4.
66324         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66325         (Makefile.am): Build unistr.h from unistr.in.h.
66326         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
66327         Add m4/libunistring-base.m4.
66328         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66329         (Makefile.am): Build unitypes.h from unitypes.in.h.
66330         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
66331         Add m4/libunistring-base.m4.
66332         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66333         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
66334         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
66335         uniwidth.h. Add m4/libunistring-base.m4.
66336         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66337         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
66338         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
66339         instead of augmenting lib_SOURCES.
66340         * modules/unicase/empty-suffix-context: Likewise.
66341         * modules/unicase/locale-language: Likewise.
66342         * modules/unicase/tolower: Likewise.
66343         * modules/unicase/totitle: Likewise.
66344         * modules/unicase/toupper: Likewise.
66345         * modules/unicase/u8-casecmp: Likewise.
66346         * modules/unicase/u8-casecoll: Likewise.
66347         * modules/unicase/u8-casefold: Likewise.
66348         * modules/unicase/u8-casexfrm: Likewise.
66349         * modules/unicase/u8-ct-casefold: Likewise.
66350         * modules/unicase/u8-ct-tolower: Likewise.
66351         * modules/unicase/u8-ct-totitle: Likewise.
66352         * modules/unicase/u8-ct-toupper: Likewise.
66353         * modules/unicase/u8-is-cased: Likewise.
66354         * modules/unicase/u8-is-casefolded: Likewise.
66355         * modules/unicase/u8-is-lowercase: Likewise.
66356         * modules/unicase/u8-is-titlecase: Likewise.
66357         * modules/unicase/u8-is-uppercase: Likewise.
66358         * modules/unicase/u8-prefix-context: Likewise.
66359         * modules/unicase/u8-suffix-context: Likewise.
66360         * modules/unicase/u8-tolower: Likewise.
66361         * modules/unicase/u8-totitle: Likewise.
66362         * modules/unicase/u8-toupper: Likewise.
66363         * modules/unicase/u16-casecmp: Likewise.
66364         * modules/unicase/u16-casecoll: Likewise.
66365         * modules/unicase/u16-casefold: Likewise.
66366         * modules/unicase/u16-casexfrm: Likewise.
66367         * modules/unicase/u16-ct-casefold: Likewise.
66368         * modules/unicase/u16-ct-tolower: Likewise.
66369         * modules/unicase/u16-ct-totitle: Likewise.
66370         * modules/unicase/u16-ct-toupper: Likewise.
66371         * modules/unicase/u16-is-cased: Likewise.
66372         * modules/unicase/u16-is-casefolded: Likewise.
66373         * modules/unicase/u16-is-lowercase: Likewise.
66374         * modules/unicase/u16-is-titlecase: Likewise.
66375         * modules/unicase/u16-is-uppercase: Likewise.
66376         * modules/unicase/u16-prefix-context: Likewise.
66377         * modules/unicase/u16-suffix-context: Likewise.
66378         * modules/unicase/u16-tolower: Likewise.
66379         * modules/unicase/u16-totitle: Likewise.
66380         * modules/unicase/u16-toupper: Likewise.
66381         * modules/unicase/u32-casecmp: Likewise.
66382         * modules/unicase/u32-casecoll: Likewise.
66383         * modules/unicase/u32-casefold: Likewise.
66384         * modules/unicase/u32-casexfrm: Likewise.
66385         * modules/unicase/u32-ct-casefold: Likewise.
66386         * modules/unicase/u32-ct-tolower: Likewise.
66387         * modules/unicase/u32-ct-totitle: Likewise.
66388         * modules/unicase/u32-ct-toupper: Likewise.
66389         * modules/unicase/u32-is-cased: Likewise.
66390         * modules/unicase/u32-is-casefolded: Likewise.
66391         * modules/unicase/u32-is-lowercase: Likewise.
66392         * modules/unicase/u32-is-titlecase: Likewise.
66393         * modules/unicase/u32-is-uppercase: Likewise.
66394         * modules/unicase/u32-prefix-context: Likewise.
66395         * modules/unicase/u32-suffix-context: Likewise.
66396         * modules/unicase/u32-tolower: Likewise.
66397         * modules/unicase/u32-totitle: Likewise.
66398         * modules/unicase/u32-toupper: Likewise.
66399         * modules/unicase/ulc-casecmp: Likewise.
66400         * modules/unicase/ulc-casecoll: Likewise.
66401         * modules/unicase/ulc-casexfrm: Likewise.
66402         * modules/uniconv/u8-conv-from-enc: Likewise.
66403         * modules/uniconv/u8-conv-to-enc: Likewise.
66404         * modules/uniconv/u8-strconv-from-enc: Likewise.
66405         * modules/uniconv/u8-strconv-from-locale: Likewise.
66406         * modules/uniconv/u8-strconv-to-enc: Likewise.
66407         * modules/uniconv/u8-strconv-to-locale: Likewise.
66408         * modules/uniconv/u16-conv-from-enc: Likewise.
66409         * modules/uniconv/u16-conv-to-enc: Likewise.
66410         * modules/uniconv/u16-strconv-from-enc: Likewise.
66411         * modules/uniconv/u16-strconv-from-locale: Likewise.
66412         * modules/uniconv/u16-strconv-to-enc: Likewise.
66413         * modules/uniconv/u16-strconv-to-locale: Likewise.
66414         * modules/uniconv/u32-conv-from-enc: Likewise.
66415         * modules/uniconv/u32-conv-to-enc: Likewise.
66416         * modules/uniconv/u32-strconv-from-enc: Likewise.
66417         * modules/uniconv/u32-strconv-from-locale: Likewise.
66418         * modules/uniconv/u32-strconv-to-enc: Likewise.
66419         * modules/uniconv/u32-strconv-to-locale: Likewise.
66420         * modules/unictype/bidicategory-byname: Likewise.
66421         * modules/unictype/bidicategory-name: Likewise.
66422         * modules/unictype/bidicategory-of: Likewise.
66423         * modules/unictype/bidicategory-test: Likewise.
66424         * modules/unictype/block-list: Likewise.
66425         * modules/unictype/block-test: Likewise.
66426         * modules/unictype/category-C: Likewise.
66427         * modules/unictype/category-Cc: Likewise.
66428         * modules/unictype/category-Cf: Likewise.
66429         * modules/unictype/category-Cn: Likewise.
66430         * modules/unictype/category-Co: Likewise.
66431         * modules/unictype/category-Cs: Likewise.
66432         * modules/unictype/category-L: Likewise.
66433         * modules/unictype/category-Ll: Likewise.
66434         * modules/unictype/category-Lm: Likewise.
66435         * modules/unictype/category-Lo: Likewise.
66436         * modules/unictype/category-Lt: Likewise.
66437         * modules/unictype/category-Lu: Likewise.
66438         * modules/unictype/category-M: Likewise.
66439         * modules/unictype/category-Mc: Likewise.
66440         * modules/unictype/category-Me: Likewise.
66441         * modules/unictype/category-Mn: Likewise.
66442         * modules/unictype/category-N: Likewise.
66443         * modules/unictype/category-Nd: Likewise.
66444         * modules/unictype/category-Nl: Likewise.
66445         * modules/unictype/category-No: Likewise.
66446         * modules/unictype/category-P: Likewise.
66447         * modules/unictype/category-Pc: Likewise.
66448         * modules/unictype/category-Pd: Likewise.
66449         * modules/unictype/category-Pe: Likewise.
66450         * modules/unictype/category-Pf: Likewise.
66451         * modules/unictype/category-Pi: Likewise.
66452         * modules/unictype/category-Po: Likewise.
66453         * modules/unictype/category-Ps: Likewise.
66454         * modules/unictype/category-S: Likewise.
66455         * modules/unictype/category-Sc: Likewise.
66456         * modules/unictype/category-Sk: Likewise.
66457         * modules/unictype/category-Sm: Likewise.
66458         * modules/unictype/category-So: Likewise.
66459         * modules/unictype/category-Z: Likewise.
66460         * modules/unictype/category-Zl: Likewise.
66461         * modules/unictype/category-Zp: Likewise.
66462         * modules/unictype/category-Zs: Likewise.
66463         * modules/unictype/category-and: Likewise.
66464         * modules/unictype/category-and-not: Likewise.
66465         * modules/unictype/category-byname: Likewise.
66466         * modules/unictype/category-name: Likewise.
66467         * modules/unictype/category-none: Likewise.
66468         * modules/unictype/category-of: Likewise.
66469         * modules/unictype/category-or: Likewise.
66470         * modules/unictype/category-test: Likewise.
66471         * modules/unictype/combining-class: Likewise.
66472         * modules/unictype/ctype-alnum: Likewise.
66473         * modules/unictype/ctype-alpha: Likewise.
66474         * modules/unictype/ctype-blank: Likewise.
66475         * modules/unictype/ctype-cntrl: Likewise.
66476         * modules/unictype/ctype-digit: Likewise.
66477         * modules/unictype/ctype-graph: Likewise.
66478         * modules/unictype/ctype-lower: Likewise.
66479         * modules/unictype/ctype-print: Likewise.
66480         * modules/unictype/ctype-punct: Likewise.
66481         * modules/unictype/ctype-space: Likewise.
66482         * modules/unictype/ctype-upper: Likewise.
66483         * modules/unictype/ctype-xdigit: Likewise.
66484         * modules/unictype/decimal-digit: Likewise.
66485         * modules/unictype/digit: Likewise.
66486         * modules/unictype/mirror: Likewise.
66487         * modules/unictype/numeric: Likewise.
66488         * modules/unictype/property-alphabetic: Likewise.
66489         * modules/unictype/property-ascii-hex-digit: Likewise.
66490         * modules/unictype/property-bidi-arabic-digit: Likewise.
66491         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
66492         * modules/unictype/property-bidi-block-separator: Likewise.
66493         * modules/unictype/property-bidi-boundary-neutral: Likewise.
66494         * modules/unictype/property-bidi-common-separator: Likewise.
66495         * modules/unictype/property-bidi-control: Likewise.
66496         * modules/unictype/property-bidi-embedding-or-override: Likewise.
66497         * modules/unictype/property-bidi-eur-num-separator: Likewise.
66498         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
66499         * modules/unictype/property-bidi-european-digit: Likewise.
66500         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
66501         * modules/unictype/property-bidi-left-to-right: Likewise.
66502         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
66503         * modules/unictype/property-bidi-other-neutral: Likewise.
66504         * modules/unictype/property-bidi-pdf: Likewise.
66505         * modules/unictype/property-bidi-segment-separator: Likewise.
66506         * modules/unictype/property-bidi-whitespace: Likewise.
66507         * modules/unictype/property-byname: Likewise.
66508         * modules/unictype/property-combining: Likewise.
66509         * modules/unictype/property-composite: Likewise.
66510         * modules/unictype/property-currency-symbol: Likewise.
66511         * modules/unictype/property-dash: Likewise.
66512         * modules/unictype/property-decimal-digit: Likewise.
66513         * modules/unictype/property-default-ignorable-code-point: Likewise.
66514         * modules/unictype/property-deprecated: Likewise.
66515         * modules/unictype/property-diacritic: Likewise.
66516         * modules/unictype/property-extender: Likewise.
66517         * modules/unictype/property-format-control: Likewise.
66518         * modules/unictype/property-grapheme-base: Likewise.
66519         * modules/unictype/property-grapheme-extend: Likewise.
66520         * modules/unictype/property-grapheme-link: Likewise.
66521         * modules/unictype/property-hex-digit: Likewise.
66522         * modules/unictype/property-hyphen: Likewise.
66523         * modules/unictype/property-id-continue: Likewise.
66524         * modules/unictype/property-id-start: Likewise.
66525         * modules/unictype/property-ideographic: Likewise.
66526         * modules/unictype/property-ids-binary-operator: Likewise.
66527         * modules/unictype/property-ids-trinary-operator: Likewise.
66528         * modules/unictype/property-ignorable-control: Likewise.
66529         * modules/unictype/property-iso-control: Likewise.
66530         * modules/unictype/property-join-control: Likewise.
66531         * modules/unictype/property-left-of-pair: Likewise.
66532         * modules/unictype/property-line-separator: Likewise.
66533         * modules/unictype/property-logical-order-exception: Likewise.
66534         * modules/unictype/property-lowercase: Likewise.
66535         * modules/unictype/property-math: Likewise.
66536         * modules/unictype/property-non-break: Likewise.
66537         * modules/unictype/property-not-a-character: Likewise.
66538         * modules/unictype/property-numeric: Likewise.
66539         * modules/unictype/property-other-alphabetic: Likewise.
66540         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
66541         * modules/unictype/property-other-grapheme-extend: Likewise.
66542         * modules/unictype/property-other-id-continue: Likewise.
66543         * modules/unictype/property-other-id-start: Likewise.
66544         * modules/unictype/property-other-lowercase: Likewise.
66545         * modules/unictype/property-other-math: Likewise.
66546         * modules/unictype/property-other-uppercase: Likewise.
66547         * modules/unictype/property-paired-punctuation: Likewise.
66548         * modules/unictype/property-paragraph-separator: Likewise.
66549         * modules/unictype/property-pattern-syntax: Likewise.
66550         * modules/unictype/property-pattern-white-space: Likewise.
66551         * modules/unictype/property-private-use: Likewise.
66552         * modules/unictype/property-punctuation: Likewise.
66553         * modules/unictype/property-quotation-mark: Likewise.
66554         * modules/unictype/property-radical: Likewise.
66555         * modules/unictype/property-sentence-terminal: Likewise.
66556         * modules/unictype/property-soft-dotted: Likewise.
66557         * modules/unictype/property-space: Likewise.
66558         * modules/unictype/property-terminal-punctuation: Likewise.
66559         * modules/unictype/property-test: Likewise.
66560         * modules/unictype/property-titlecase: Likewise.
66561         * modules/unictype/property-unassigned-code-value: Likewise.
66562         * modules/unictype/property-unified-ideograph: Likewise.
66563         * modules/unictype/property-uppercase: Likewise.
66564         * modules/unictype/property-variation-selector: Likewise.
66565         * modules/unictype/property-white-space: Likewise.
66566         * modules/unictype/property-xid-continue: Likewise.
66567         * modules/unictype/property-xid-start: Likewise.
66568         * modules/unictype/property-zero-width: Likewise.
66569         * modules/unictype/scripts: Likewise.
66570         * modules/unictype/syntax-c-ident: Likewise.
66571         * modules/unictype/syntax-c-whitespace: Likewise.
66572         * modules/unictype/syntax-java-ident: Likewise.
66573         * modules/unictype/syntax-java-whitespace: Likewise.
66574         * modules/unilbrk/u8-possible-linebreaks: Likewise.
66575         * modules/unilbrk/u8-width-linebreaks: Likewise.
66576         * modules/unilbrk/u16-possible-linebreaks: Likewise.
66577         * modules/unilbrk/u16-width-linebreaks: Likewise.
66578         * modules/unilbrk/u32-possible-linebreaks: Likewise.
66579         * modules/unilbrk/u32-width-linebreaks: Likewise.
66580         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
66581         * modules/unilbrk/ulc-width-linebreaks: Likewise.
66582         * modules/uniname/uniname: Likewise.
66583         * modules/uninorm/canonical-decomposition: Likewise.
66584         * modules/uninorm/composition: Likewise.
66585         * modules/uninorm/decomposing-form: Likewise.
66586         * modules/uninorm/decomposition: Likewise.
66587         * modules/uninorm/filter: Likewise.
66588         * modules/uninorm/nfc: Likewise.
66589         * modules/uninorm/nfd: Likewise.
66590         * modules/uninorm/nfkc: Likewise.
66591         * modules/uninorm/nfkd: Likewise.
66592         * modules/uninorm/u8-normalize: Likewise.
66593         * modules/uninorm/u8-normcmp: Likewise.
66594         * modules/uninorm/u8-normcoll: Likewise.
66595         * modules/uninorm/u8-normxfrm: Likewise.
66596         * modules/uninorm/u16-normalize: Likewise.
66597         * modules/uninorm/u16-normcmp: Likewise.
66598         * modules/uninorm/u16-normcoll: Likewise.
66599         * modules/uninorm/u16-normxfrm: Likewise.
66600         * modules/uninorm/u32-normalize: Likewise.
66601         * modules/uninorm/u32-normcmp: Likewise.
66602         * modules/uninorm/u32-normcoll: Likewise.
66603         * modules/uninorm/u32-normxfrm: Likewise.
66604         * modules/unistdio/u8-asnprintf: Likewise.
66605         * modules/unistdio/u8-asprintf: Likewise.
66606         * modules/unistdio/u8-snprintf: Likewise.
66607         * modules/unistdio/u8-sprintf: Likewise.
66608         * modules/unistdio/u8-u8-asnprintf: Likewise.
66609         * modules/unistdio/u8-u8-asprintf: Likewise.
66610         * modules/unistdio/u8-u8-snprintf: Likewise.
66611         * modules/unistdio/u8-u8-sprintf: Likewise.
66612         * modules/unistdio/u8-u8-vasnprintf: Likewise.
66613         * modules/unistdio/u8-u8-vasprintf: Likewise.
66614         * modules/unistdio/u8-u8-vsnprintf: Likewise.
66615         * modules/unistdio/u8-u8-vsprintf: Likewise.
66616         * modules/unistdio/u8-vasnprintf: Likewise.
66617         * modules/unistdio/u8-vasprintf: Likewise.
66618         * modules/unistdio/u8-vsnprintf: Likewise.
66619         * modules/unistdio/u8-vsprintf: Likewise.
66620         * modules/unistdio/u16-asnprintf: Likewise.
66621         * modules/unistdio/u16-asprintf: Likewise.
66622         * modules/unistdio/u16-snprintf: Likewise.
66623         * modules/unistdio/u16-sprintf: Likewise.
66624         * modules/unistdio/u16-u16-asnprintf: Likewise.
66625         * modules/unistdio/u16-u16-asprintf: Likewise.
66626         * modules/unistdio/u16-u16-snprintf: Likewise.
66627         * modules/unistdio/u16-u16-sprintf: Likewise.
66628         * modules/unistdio/u16-u16-vasnprintf: Likewise.
66629         * modules/unistdio/u16-u16-vasprintf: Likewise.
66630         * modules/unistdio/u16-u16-vsnprintf: Likewise.
66631         * modules/unistdio/u16-u16-vsprintf: Likewise.
66632         * modules/unistdio/u16-vasnprintf: Likewise.
66633         * modules/unistdio/u16-vasprintf: Likewise.
66634         * modules/unistdio/u16-vsnprintf: Likewise.
66635         * modules/unistdio/u16-vsprintf: Likewise.
66636         * modules/unistdio/u32-asnprintf: Likewise.
66637         * modules/unistdio/u32-asprintf: Likewise.
66638         * modules/unistdio/u32-snprintf: Likewise.
66639         * modules/unistdio/u32-sprintf: Likewise.
66640         * modules/unistdio/u32-u32-asnprintf: Likewise.
66641         * modules/unistdio/u32-u32-asprintf: Likewise.
66642         * modules/unistdio/u32-u32-snprintf: Likewise.
66643         * modules/unistdio/u32-u32-sprintf: Likewise.
66644         * modules/unistdio/u32-u32-vasnprintf: Likewise.
66645         * modules/unistdio/u32-u32-vasprintf: Likewise.
66646         * modules/unistdio/u32-u32-vsnprintf: Likewise.
66647         * modules/unistdio/u32-u32-vsprintf: Likewise.
66648         * modules/unistdio/u32-vasnprintf: Likewise.
66649         * modules/unistdio/u32-vasprintf: Likewise.
66650         * modules/unistdio/u32-vsnprintf: Likewise.
66651         * modules/unistdio/u32-vsprintf: Likewise.
66652         * modules/unistdio/ulc-asnprintf: Likewise.
66653         * modules/unistdio/ulc-asprintf: Likewise.
66654         * modules/unistdio/ulc-fprintf: Likewise.
66655         * modules/unistdio/ulc-snprintf: Likewise.
66656         * modules/unistdio/ulc-sprintf: Likewise.
66657         * modules/unistdio/ulc-vasnprintf: Likewise.
66658         * modules/unistdio/ulc-vasprintf: Likewise.
66659         * modules/unistdio/ulc-vfprintf: Likewise.
66660         * modules/unistdio/ulc-vsnprintf: Likewise.
66661         * modules/unistdio/ulc-vsprintf: Likewise.
66662         * modules/unistr/u8-check: Likewise.
66663         * modules/unistr/u8-chr: Likewise.
66664         * modules/unistr/u8-cmp: Likewise.
66665         * modules/unistr/u8-cmp2: Likewise.
66666         * modules/unistr/u8-cpy: Likewise.
66667         * modules/unistr/u8-cpy-alloc: Likewise.
66668         * modules/unistr/u8-endswith: Likewise.
66669         * modules/unistr/u8-mblen: Likewise.
66670         * modules/unistr/u8-mbsnlen: Likewise.
66671         * modules/unistr/u8-mbtouc: Likewise.
66672         * modules/unistr/u8-mbtouc-unsafe: Likewise.
66673         * modules/unistr/u8-mbtoucr: Likewise.
66674         * modules/unistr/u8-move: Likewise.
66675         * modules/unistr/u8-next: Likewise.
66676         * modules/unistr/u8-prev: Likewise.
66677         * modules/unistr/u8-set: Likewise.
66678         * modules/unistr/u8-startswith: Likewise.
66679         * modules/unistr/u8-stpcpy: Likewise.
66680         * modules/unistr/u8-stpncpy: Likewise.
66681         * modules/unistr/u8-strcat: Likewise.
66682         * modules/unistr/u8-strchr: Likewise.
66683         * modules/unistr/u8-strcmp: Likewise.
66684         * modules/unistr/u8-strcoll: Likewise.
66685         * modules/unistr/u8-strcpy: Likewise.
66686         * modules/unistr/u8-strcspn: Likewise.
66687         * modules/unistr/u8-strdup: Likewise.
66688         * modules/unistr/u8-strlen: Likewise.
66689         * modules/unistr/u8-strmblen: Likewise.
66690         * modules/unistr/u8-strmbtouc: Likewise.
66691         * modules/unistr/u8-strncat: Likewise.
66692         * modules/unistr/u8-strncmp: Likewise.
66693         * modules/unistr/u8-strncpy: Likewise.
66694         * modules/unistr/u8-strnlen: Likewise.
66695         * modules/unistr/u8-strpbrk: Likewise.
66696         * modules/unistr/u8-strrchr: Likewise.
66697         * modules/unistr/u8-strspn: Likewise.
66698         * modules/unistr/u8-strstr: Likewise.
66699         * modules/unistr/u8-strtok: Likewise.
66700         * modules/unistr/u8-to-u16: Likewise.
66701         * modules/unistr/u8-to-u32: Likewise.
66702         * modules/unistr/u8-uctomb: Likewise.
66703         * modules/unistr/u16-check: Likewise.
66704         * modules/unistr/u16-chr: Likewise.
66705         * modules/unistr/u16-cmp: Likewise.
66706         * modules/unistr/u16-cmp2: Likewise.
66707         * modules/unistr/u16-cpy: Likewise.
66708         * modules/unistr/u16-cpy-alloc: Likewise.
66709         * modules/unistr/u16-endswith: Likewise.
66710         * modules/unistr/u16-mblen: Likewise.
66711         * modules/unistr/u16-mbsnlen: Likewise.
66712         * modules/unistr/u16-mbtouc: Likewise.
66713         * modules/unistr/u16-mbtouc-unsafe: Likewise.
66714         * modules/unistr/u16-mbtoucr: Likewise.
66715         * modules/unistr/u16-move: Likewise.
66716         * modules/unistr/u16-next: Likewise.
66717         * modules/unistr/u16-prev: Likewise.
66718         * modules/unistr/u16-set: Likewise.
66719         * modules/unistr/u16-startswith: Likewise.
66720         * modules/unistr/u16-stpcpy: Likewise.
66721         * modules/unistr/u16-stpncpy: Likewise.
66722         * modules/unistr/u16-strcat: Likewise.
66723         * modules/unistr/u16-strchr: Likewise.
66724         * modules/unistr/u16-strcmp: Likewise.
66725         * modules/unistr/u16-strcoll: Likewise.
66726         * modules/unistr/u16-strcpy: Likewise.
66727         * modules/unistr/u16-strcspn: Likewise.
66728         * modules/unistr/u16-strdup: Likewise.
66729         * modules/unistr/u16-strlen: Likewise.
66730         * modules/unistr/u16-strmblen: Likewise.
66731         * modules/unistr/u16-strmbtouc: Likewise.
66732         * modules/unistr/u16-strncat: Likewise.
66733         * modules/unistr/u16-strncmp: Likewise.
66734         * modules/unistr/u16-strncpy: Likewise.
66735         * modules/unistr/u16-strnlen: Likewise.
66736         * modules/unistr/u16-strpbrk: Likewise.
66737         * modules/unistr/u16-strrchr: Likewise.
66738         * modules/unistr/u16-strspn: Likewise.
66739         * modules/unistr/u16-strstr: Likewise.
66740         * modules/unistr/u16-strtok: Likewise.
66741         * modules/unistr/u16-to-u32: Likewise.
66742         * modules/unistr/u16-to-u8: Likewise.
66743         * modules/unistr/u16-uctomb: Likewise.
66744         * modules/unistr/u32-check: Likewise.
66745         * modules/unistr/u32-chr: Likewise.
66746         * modules/unistr/u32-cmp: Likewise.
66747         * modules/unistr/u32-cmp2: Likewise.
66748         * modules/unistr/u32-cpy: Likewise.
66749         * modules/unistr/u32-cpy-alloc: Likewise.
66750         * modules/unistr/u32-endswith: Likewise.
66751         * modules/unistr/u32-mblen: Likewise.
66752         * modules/unistr/u32-mbsnlen: Likewise.
66753         * modules/unistr/u32-mbtouc: Likewise.
66754         * modules/unistr/u32-mbtouc-unsafe: Likewise.
66755         * modules/unistr/u32-mbtoucr: Likewise.
66756         * modules/unistr/u32-move: Likewise.
66757         * modules/unistr/u32-next: Likewise.
66758         * modules/unistr/u32-prev: Likewise.
66759         * modules/unistr/u32-set: Likewise.
66760         * modules/unistr/u32-startswith: Likewise.
66761         * modules/unistr/u32-stpcpy: Likewise.
66762         * modules/unistr/u32-stpncpy: Likewise.
66763         * modules/unistr/u32-strcat: Likewise.
66764         * modules/unistr/u32-strchr: Likewise.
66765         * modules/unistr/u32-strcmp: Likewise.
66766         * modules/unistr/u32-strcoll: Likewise.
66767         * modules/unistr/u32-strcpy: Likewise.
66768         * modules/unistr/u32-strcspn: Likewise.
66769         * modules/unistr/u32-strdup: Likewise.
66770         * modules/unistr/u32-strlen: Likewise.
66771         * modules/unistr/u32-strmblen: Likewise.
66772         * modules/unistr/u32-strmbtouc: Likewise.
66773         * modules/unistr/u32-strncat: Likewise.
66774         * modules/unistr/u32-strncmp: Likewise.
66775         * modules/unistr/u32-strncpy: Likewise.
66776         * modules/unistr/u32-strnlen: Likewise.
66777         * modules/unistr/u32-strpbrk: Likewise.
66778         * modules/unistr/u32-strrchr: Likewise.
66779         * modules/unistr/u32-strspn: Likewise.
66780         * modules/unistr/u32-strstr: Likewise.
66781         * modules/unistr/u32-strtok: Likewise.
66782         * modules/unistr/u32-to-u16: Likewise.
66783         * modules/unistr/u32-to-u8: Likewise.
66784         * modules/unistr/u32-uctomb: Likewise.
66785         * modules/uniwbrk/u8-wordbreaks: Likewise.
66786         * modules/uniwbrk/u16-wordbreaks: Likewise.
66787         * modules/uniwbrk/u32-wordbreaks: Likewise.
66788         * modules/uniwbrk/ulc-wordbreaks: Likewise.
66789         * modules/uniwbrk/wordbreak-property: Likewise.
66790         * modules/uniwidth/u8-strwidth: Likewise.
66791         * modules/uniwidth/u8-width: Likewise.
66792         * modules/uniwidth/u16-strwidth: Likewise.
66793         * modules/uniwidth/u16-width: Likewise.
66794         * modules/uniwidth/u32-strwidth: Likewise.
66795         * modules/uniwidth/u32-width: Likewise.
66796         * modules/uniwidth/width: Likewise.
66797         * modules/unicase/cased-tests (Makefile.am): Link all test programs
66798         with $(LIBUNISTRING).
66799         * modules/unicase/ignorable-tests: Likewise.
66800         * modules/unicase/locale-language-tests: Likewise.
66801         * modules/unicase/tolower-tests: Likewise.
66802         * modules/unicase/totitle-tests: Likewise.
66803         * modules/unicase/toupper-tests: Likewise.
66804         * modules/unicase/u8-casecmp-tests: Likewise.
66805         * modules/unicase/u8-casecoll-tests: Likewise.
66806         * modules/unicase/u8-casefold-tests: Likewise.
66807         * modules/unicase/u8-is-cased-tests: Likewise.
66808         * modules/unicase/u8-is-casefolded-tests: Likewise.
66809         * modules/unicase/u8-is-lowercase-tests: Likewise.
66810         * modules/unicase/u8-is-titlecase-tests: Likewise.
66811         * modules/unicase/u8-is-uppercase-tests: Likewise.
66812         * modules/unicase/u8-tolower-tests: Likewise.
66813         * modules/unicase/u8-totitle-tests: Likewise.
66814         * modules/unicase/u8-toupper-tests: Likewise.
66815         * modules/unicase/u16-casecmp-tests: Likewise.
66816         * modules/unicase/u16-casecoll-tests: Likewise.
66817         * modules/unicase/u16-casefold-tests: Likewise.
66818         * modules/unicase/u16-is-cased-tests: Likewise.
66819         * modules/unicase/u16-is-casefolded-tests: Likewise.
66820         * modules/unicase/u16-is-lowercase-tests: Likewise.
66821         * modules/unicase/u16-is-titlecase-tests: Likewise.
66822         * modules/unicase/u16-is-uppercase-tests: Likewise.
66823         * modules/unicase/u16-tolower-tests: Likewise.
66824         * modules/unicase/u16-totitle-tests: Likewise.
66825         * modules/unicase/u16-toupper-tests: Likewise.
66826         * modules/unicase/u32-casecmp-tests: Likewise.
66827         * modules/unicase/u32-casecoll-tests: Likewise.
66828         * modules/unicase/u32-casefold-tests: Likewise.
66829         * modules/unicase/u32-is-cased-tests: Likewise.
66830         * modules/unicase/u32-is-casefolded-tests: Likewise.
66831         * modules/unicase/u32-is-lowercase-tests: Likewise.
66832         * modules/unicase/u32-is-titlecase-tests: Likewise.
66833         * modules/unicase/u32-is-uppercase-tests: Likewise.
66834         * modules/unicase/u32-tolower-tests: Likewise.
66835         * modules/unicase/u32-totitle-tests: Likewise.
66836         * modules/unicase/u32-toupper-tests: Likewise.
66837         * modules/unicase/ulc-casecmp-tests: Likewise.
66838         * modules/unicase/ulc-casecoll-tests: Likewise.
66839         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
66840         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
66841         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
66842         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
66843         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
66844         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
66845         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
66846         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
66847         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
66848         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
66849         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
66850         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
66851         * modules/unictype/bidicategory-byname-tests: Likewise.
66852         * modules/unictype/bidicategory-name-tests: Likewise.
66853         * modules/unictype/bidicategory-of-tests: Likewise.
66854         * modules/unictype/bidicategory-test-tests: Likewise.
66855         * modules/unictype/block-list-tests: Likewise.
66856         * modules/unictype/block-of-tests: Likewise.
66857         * modules/unictype/block-test-tests: Likewise.
66858         * modules/unictype/category-C-tests: Likewise.
66859         * modules/unictype/category-Cc-tests: Likewise.
66860         * modules/unictype/category-Cf-tests: Likewise.
66861         * modules/unictype/category-Cn-tests: Likewise.
66862         * modules/unictype/category-Co-tests: Likewise.
66863         * modules/unictype/category-Cs-tests: Likewise.
66864         * modules/unictype/category-L-tests: Likewise.
66865         * modules/unictype/category-Ll-tests: Likewise.
66866         * modules/unictype/category-Lm-tests: Likewise.
66867         * modules/unictype/category-Lo-tests: Likewise.
66868         * modules/unictype/category-Lt-tests: Likewise.
66869         * modules/unictype/category-Lu-tests: Likewise.
66870         * modules/unictype/category-M-tests: Likewise.
66871         * modules/unictype/category-Mc-tests: Likewise.
66872         * modules/unictype/category-Me-tests: Likewise.
66873         * modules/unictype/category-Mn-tests: Likewise.
66874         * modules/unictype/category-N-tests: Likewise.
66875         * modules/unictype/category-Nd-tests: Likewise.
66876         * modules/unictype/category-Nl-tests: Likewise.
66877         * modules/unictype/category-No-tests: Likewise.
66878         * modules/unictype/category-P-tests: Likewise.
66879         * modules/unictype/category-Pc-tests: Likewise.
66880         * modules/unictype/category-Pd-tests: Likewise.
66881         * modules/unictype/category-Pe-tests: Likewise.
66882         * modules/unictype/category-Pf-tests: Likewise.
66883         * modules/unictype/category-Pi-tests: Likewise.
66884         * modules/unictype/category-Po-tests: Likewise.
66885         * modules/unictype/category-Ps-tests: Likewise.
66886         * modules/unictype/category-S-tests: Likewise.
66887         * modules/unictype/category-Sc-tests: Likewise.
66888         * modules/unictype/category-Sk-tests: Likewise.
66889         * modules/unictype/category-Sm-tests: Likewise.
66890         * modules/unictype/category-So-tests: Likewise.
66891         * modules/unictype/category-Z-tests: Likewise.
66892         * modules/unictype/category-Zl-tests: Likewise.
66893         * modules/unictype/category-Zp-tests: Likewise.
66894         * modules/unictype/category-Zs-tests: Likewise.
66895         * modules/unictype/category-and-not-tests: Likewise.
66896         * modules/unictype/category-and-tests: Likewise.
66897         * modules/unictype/category-byname-tests: Likewise.
66898         * modules/unictype/category-name-tests: Likewise.
66899         * modules/unictype/category-none-tests: Likewise.
66900         * modules/unictype/category-of-tests: Likewise.
66901         * modules/unictype/category-or-tests: Likewise.
66902         * modules/unictype/category-test-withtable-tests: Likewise.
66903         * modules/unictype/combining-class-tests: Likewise.
66904         * modules/unictype/ctype-alnum-tests: Likewise.
66905         * modules/unictype/ctype-alpha-tests: Likewise.
66906         * modules/unictype/ctype-blank-tests: Likewise.
66907         * modules/unictype/ctype-cntrl-tests: Likewise.
66908         * modules/unictype/ctype-digit-tests: Likewise.
66909         * modules/unictype/ctype-graph-tests: Likewise.
66910         * modules/unictype/ctype-lower-tests: Likewise.
66911         * modules/unictype/ctype-print-tests: Likewise.
66912         * modules/unictype/ctype-punct-tests: Likewise.
66913         * modules/unictype/ctype-space-tests: Likewise.
66914         * modules/unictype/ctype-upper-tests: Likewise.
66915         * modules/unictype/ctype-xdigit-tests: Likewise.
66916         * modules/unictype/decimal-digit-tests: Likewise.
66917         * modules/unictype/digit-tests: Likewise.
66918         * modules/unictype/mirror-tests: Likewise.
66919         * modules/unictype/numeric-tests: Likewise.
66920         * modules/unictype/property-alphabetic-tests: Likewise.
66921         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
66922         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
66923         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
66924         * modules/unictype/property-bidi-block-separator-tests: Likewise.
66925         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
66926         * modules/unictype/property-bidi-common-separator-tests: Likewise.
66927         * modules/unictype/property-bidi-control-tests: Likewise.
66928         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
66929         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
66930         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
66931         * modules/unictype/property-bidi-european-digit-tests: Likewise.
66932         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
66933         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
66934         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
66935         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
66936         * modules/unictype/property-bidi-pdf-tests: Likewise.
66937         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
66938         * modules/unictype/property-bidi-whitespace-tests: Likewise.
66939         * modules/unictype/property-byname-tests: Likewise.
66940         * modules/unictype/property-combining-tests: Likewise.
66941         * modules/unictype/property-composite-tests: Likewise.
66942         * modules/unictype/property-currency-symbol-tests: Likewise.
66943         * modules/unictype/property-dash-tests: Likewise.
66944         * modules/unictype/property-decimal-digit-tests: Likewise.
66945         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
66946         * modules/unictype/property-deprecated-tests: Likewise.
66947         * modules/unictype/property-diacritic-tests: Likewise.
66948         * modules/unictype/property-extender-tests: Likewise.
66949         * modules/unictype/property-format-control-tests: Likewise.
66950         * modules/unictype/property-grapheme-base-tests: Likewise.
66951         * modules/unictype/property-grapheme-extend-tests: Likewise.
66952         * modules/unictype/property-grapheme-link-tests: Likewise.
66953         * modules/unictype/property-hex-digit-tests: Likewise.
66954         * modules/unictype/property-hyphen-tests: Likewise.
66955         * modules/unictype/property-id-continue-tests: Likewise.
66956         * modules/unictype/property-id-start-tests: Likewise.
66957         * modules/unictype/property-ideographic-tests: Likewise.
66958         * modules/unictype/property-ids-binary-operator-tests: Likewise.
66959         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
66960         * modules/unictype/property-ignorable-control-tests: Likewise.
66961         * modules/unictype/property-iso-control-tests: Likewise.
66962         * modules/unictype/property-join-control-tests: Likewise.
66963         * modules/unictype/property-left-of-pair-tests: Likewise.
66964         * modules/unictype/property-line-separator-tests: Likewise.
66965         * modules/unictype/property-logical-order-exception-tests: Likewise.
66966         * modules/unictype/property-lowercase-tests: Likewise.
66967         * modules/unictype/property-math-tests: Likewise.
66968         * modules/unictype/property-non-break-tests: Likewise.
66969         * modules/unictype/property-not-a-character-tests: Likewise.
66970         * modules/unictype/property-numeric-tests: Likewise.
66971         * modules/unictype/property-other-alphabetic-tests: Likewise.
66972         * modules/unictype/property-other-default-ignorable-code-point-tests:
66973         Likewise.
66974         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
66975         * modules/unictype/property-other-id-continue-tests: Likewise.
66976         * modules/unictype/property-other-id-start-tests: Likewise.
66977         * modules/unictype/property-other-lowercase-tests: Likewise.
66978         * modules/unictype/property-other-math-tests: Likewise.
66979         * modules/unictype/property-other-uppercase-tests: Likewise.
66980         * modules/unictype/property-paired-punctuation-tests: Likewise.
66981         * modules/unictype/property-paragraph-separator-tests: Likewise.
66982         * modules/unictype/property-pattern-syntax-tests: Likewise.
66983         * modules/unictype/property-pattern-white-space-tests: Likewise.
66984         * modules/unictype/property-private-use-tests: Likewise.
66985         * modules/unictype/property-punctuation-tests: Likewise.
66986         * modules/unictype/property-quotation-mark-tests: Likewise.
66987         * modules/unictype/property-radical-tests: Likewise.
66988         * modules/unictype/property-sentence-terminal-tests: Likewise.
66989         * modules/unictype/property-soft-dotted-tests: Likewise.
66990         * modules/unictype/property-space-tests: Likewise.
66991         * modules/unictype/property-terminal-punctuation-tests: Likewise.
66992         * modules/unictype/property-test-tests: Likewise.
66993         * modules/unictype/property-titlecase-tests: Likewise.
66994         * modules/unictype/property-unassigned-code-value-tests: Likewise.
66995         * modules/unictype/property-unified-ideograph-tests: Likewise.
66996         * modules/unictype/property-uppercase-tests: Likewise.
66997         * modules/unictype/property-variation-selector-tests: Likewise.
66998         * modules/unictype/property-white-space-tests: Likewise.
66999         * modules/unictype/property-xid-continue-tests: Likewise.
67000         * modules/unictype/property-xid-start-tests: Likewise.
67001         * modules/unictype/property-zero-width-tests: Likewise.
67002         * modules/unictype/scripts-tests: Likewise.
67003         * modules/unictype/syntax-c-ident-tests: Likewise.
67004         * modules/unictype/syntax-c-whitespace-tests: Likewise.
67005         * modules/unictype/syntax-java-ident-tests: Likewise.
67006         * modules/unictype/syntax-java-whitespace-tests: Likewise.
67007         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
67008         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
67009         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
67010         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
67011         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
67012         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
67013         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
67014         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
67015         * modules/uniname/uniname-tests: Likewise.
67016         * modules/uninorm/canonical-decomposition-tests: Likewise.
67017         * modules/uninorm/compat-decomposition-tests: Likewise.
67018         * modules/uninorm/composition-tests: Likewise.
67019         * modules/uninorm/decomposing-form-tests: Likewise.
67020         * modules/uninorm/decomposition-tests: Likewise.
67021         * modules/uninorm/filter-tests: Likewise.
67022         * modules/uninorm/nfc-tests: Likewise.
67023         * modules/uninorm/nfd-tests: Likewise.
67024         * modules/uninorm/nfkc-tests: Likewise.
67025         * modules/uninorm/nfkd-tests: Likewise.
67026         * modules/uninorm/u8-normcmp-tests: Likewise.
67027         * modules/uninorm/u8-normcoll-tests: Likewise.
67028         * modules/uninorm/u16-normcmp-tests: Likewise.
67029         * modules/uninorm/u16-normcoll-tests: Likewise.
67030         * modules/uninorm/u32-normcmp-tests: Likewise.
67031         * modules/uninorm/u32-normcoll-tests: Likewise.
67032         * modules/unistdio/u8-asnprintf-tests: Likewise.
67033         * modules/unistdio/u8-vasnprintf-tests: Likewise.
67034         * modules/unistdio/u8-vasprintf-tests: Likewise.
67035         * modules/unistdio/u8-vsnprintf-tests: Likewise.
67036         * modules/unistdio/u8-vsprintf-tests: Likewise.
67037         * modules/unistdio/u16-asnprintf-tests: Likewise.
67038         * modules/unistdio/u16-vasnprintf-tests: Likewise.
67039         * modules/unistdio/u16-vasprintf-tests: Likewise.
67040         * modules/unistdio/u16-vsnprintf-tests: Likewise.
67041         * modules/unistdio/u16-vsprintf-tests: Likewise.
67042         * modules/unistdio/u32-asnprintf-tests: Likewise.
67043         * modules/unistdio/u32-vasnprintf-tests: Likewise.
67044         * modules/unistdio/u32-vasprintf-tests: Likewise.
67045         * modules/unistdio/u32-vsnprintf-tests: Likewise.
67046         * modules/unistdio/u32-vsprintf-tests: Likewise.
67047         * modules/unistdio/ulc-asnprintf-tests: Likewise.
67048         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
67049         * modules/unistdio/ulc-vasprintf-tests: Likewise.
67050         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
67051         * modules/unistdio/ulc-vsprintf-tests: Likewise.
67052         * modules/unistr/u8-check-tests: Likewise.
67053         * modules/unistr/u8-chr-tests: Likewise.
67054         * modules/unistr/u8-cmp-tests: Likewise.
67055         * modules/unistr/u8-cmp2-tests: Likewise.
67056         * modules/unistr/u8-cpy-alloc-tests: Likewise.
67057         * modules/unistr/u8-cpy-tests: Likewise.
67058         * modules/unistr/u8-mblen-tests: Likewise.
67059         * modules/unistr/u8-mbsnlen-tests: Likewise.
67060         * modules/unistr/u8-mbtouc-tests: Likewise.
67061         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
67062         * modules/unistr/u8-mbtoucr-tests: Likewise.
67063         * modules/unistr/u8-move-tests: Likewise.
67064         * modules/unistr/u8-next-tests: Likewise.
67065         * modules/unistr/u8-prev-tests: Likewise.
67066         * modules/unistr/u8-set-tests: Likewise.
67067         * modules/unistr/u8-stpcpy-tests: Likewise.
67068         * modules/unistr/u8-stpncpy-tests: Likewise.
67069         * modules/unistr/u8-strcat-tests: Likewise.
67070         * modules/unistr/u8-strcmp-tests: Likewise.
67071         * modules/unistr/u8-strcoll-tests: Likewise.
67072         * modules/unistr/u8-strcpy-tests: Likewise.
67073         * modules/unistr/u8-strdup-tests: Likewise.
67074         * modules/unistr/u8-strlen-tests: Likewise.
67075         * modules/unistr/u8-strmblen-tests: Likewise.
67076         * modules/unistr/u8-strmbtouc-tests: Likewise.
67077         * modules/unistr/u8-strncat-tests: Likewise.
67078         * modules/unistr/u8-strncmp-tests: Likewise.
67079         * modules/unistr/u8-strncpy-tests: Likewise.
67080         * modules/unistr/u8-strnlen-tests: Likewise.
67081         * modules/unistr/u8-to-u16-tests: Likewise.
67082         * modules/unistr/u8-to-u32-tests: Likewise.
67083         * modules/unistr/u8-uctomb-tests: Likewise.
67084         * modules/unistr/u16-check-tests: Likewise.
67085         * modules/unistr/u16-chr-tests: Likewise.
67086         * modules/unistr/u16-cmp-tests: Likewise.
67087         * modules/unistr/u16-cmp2-tests: Likewise.
67088         * modules/unistr/u16-cpy-alloc-tests: Likewise.
67089         * modules/unistr/u16-cpy-tests: Likewise.
67090         * modules/unistr/u16-mblen-tests: Likewise.
67091         * modules/unistr/u16-mbsnlen-tests: Likewise.
67092         * modules/unistr/u16-mbtouc-tests: Likewise.
67093         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
67094         * modules/unistr/u16-mbtoucr-tests: Likewise.
67095         * modules/unistr/u16-move-tests: Likewise.
67096         * modules/unistr/u16-next-tests: Likewise.
67097         * modules/unistr/u16-prev-tests: Likewise.
67098         * modules/unistr/u16-set-tests: Likewise.
67099         * modules/unistr/u16-stpcpy-tests: Likewise.
67100         * modules/unistr/u16-stpncpy-tests: Likewise.
67101         * modules/unistr/u16-strcat-tests: Likewise.
67102         * modules/unistr/u16-strcmp-tests: Likewise.
67103         * modules/unistr/u16-strcoll-tests: Likewise.
67104         * modules/unistr/u16-strcpy-tests: Likewise.
67105         * modules/unistr/u16-strdup-tests: Likewise.
67106         * modules/unistr/u16-strlen-tests: Likewise.
67107         * modules/unistr/u16-strmblen-tests: Likewise.
67108         * modules/unistr/u16-strmbtouc-tests: Likewise.
67109         * modules/unistr/u16-strncat-tests: Likewise.
67110         * modules/unistr/u16-strncmp-tests: Likewise.
67111         * modules/unistr/u16-strncpy-tests: Likewise.
67112         * modules/unistr/u16-strnlen-tests: Likewise.
67113         * modules/unistr/u16-to-u32-tests: Likewise.
67114         * modules/unistr/u16-to-u8-tests: Likewise.
67115         * modules/unistr/u16-uctomb-tests: Likewise.
67116         * modules/unistr/u32-check-tests: Likewise.
67117         * modules/unistr/u32-chr-tests: Likewise.
67118         * modules/unistr/u32-cmp-tests: Likewise.
67119         * modules/unistr/u32-cmp2-tests: Likewise.
67120         * modules/unistr/u32-cpy-alloc-tests: Likewise.
67121         * modules/unistr/u32-cpy-tests: Likewise.
67122         * modules/unistr/u32-mblen-tests: Likewise.
67123         * modules/unistr/u32-mbsnlen-tests: Likewise.
67124         * modules/unistr/u32-mbtouc-tests: Likewise.
67125         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
67126         * modules/unistr/u32-mbtoucr-tests: Likewise.
67127         * modules/unistr/u32-move-tests: Likewise.
67128         * modules/unistr/u32-next-tests: Likewise.
67129         * modules/unistr/u32-prev-tests: Likewise.
67130         * modules/unistr/u32-set-tests: Likewise.
67131         * modules/unistr/u32-stpcpy-tests: Likewise.
67132         * modules/unistr/u32-stpncpy-tests: Likewise.
67133         * modules/unistr/u32-strcat-tests: Likewise.
67134         * modules/unistr/u32-strcmp-tests: Likewise.
67135         * modules/unistr/u32-strcoll-tests: Likewise.
67136         * modules/unistr/u32-strcpy-tests: Likewise.
67137         * modules/unistr/u32-strdup-tests: Likewise.
67138         * modules/unistr/u32-strlen-tests: Likewise.
67139         * modules/unistr/u32-strmblen-tests: Likewise.
67140         * modules/unistr/u32-strmbtouc-tests: Likewise.
67141         * modules/unistr/u32-strncat-tests: Likewise.
67142         * modules/unistr/u32-strncmp-tests: Likewise.
67143         * modules/unistr/u32-strncpy-tests: Likewise.
67144         * modules/unistr/u32-strnlen-tests: Likewise.
67145         * modules/unistr/u32-to-u16-tests: Likewise.
67146         * modules/unistr/u32-to-u8-tests: Likewise.
67147         * modules/unistr/u32-uctomb-tests: Likewise.
67148         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
67149         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
67150         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
67151         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
67152         * modules/uniwidth/u8-strwidth-tests: Likewise.
67153         * modules/uniwidth/u8-width-tests: Likewise.
67154         * modules/uniwidth/u16-strwidth-tests: Likewise.
67155         * modules/uniwidth/u16-width-tests: Likewise.
67156         * modules/uniwidth/u32-strwidth-tests: Likewise.
67157         * modules/uniwidth/u32-width-tests: Likewise.
67158         * modules/uniwidth/width-tests: Likewise.
67160 2010-05-18  Richard Jones  <rjones@redhat.com>
67162         doc: users.txt: list hivex
67163         * users.txt: Add hivex.
67165 2010-05-18  Richard Jones  <rjones@redhat.com>
67167         doc: users.txt: list febootstrap
67168         * users.txt: Add febootstrap.
67170 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
67172         bootstrap: fix an error when gnulib is not used as a git submodule
67173         * build-aux/bootstrap (gnulib_path): If its length is zero then
67174         assign "gnulib" to it.
67175         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
67177 2010-05-16  Bruno Haible  <bruno@clisp.org>
67179         Avoid autoconf warnings about AM_ICONV.
67180         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
67181         2.64.
67183 2010-05-16  Bruno Haible  <bruno@clisp.org>
67185         absolute-header: Make the macro usable in more situations.
67186         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
67187         from gl_ABSOLUTE_HEADER.
67188         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
67190 2010-05-16  James Youngman  <jay@gnu.org>
67192         doc: update users.txt
67193         * users.txt: Add CSSC.
67195 2010-05-16  Jim Meyering  <meyering@redhat.com>
67197         init.sh: fix an error in the previous change; add more comments
67198         * tests/init.sh: Compare exit code in loop against 9, not 2.
67199         Patch by Bruno Haible.
67200         Make the two tests more similar by adding an empty "then" clause.
67201         Add comments.
67203         init.sh: avoid unnecessary shell re-exec
67204         * tests/init.sh: Improve the re-exec-required check to first test the
67205         current shell.  If it passes the test, do not search for a shell that
67206         does pass, and do not re-exec.  This test is particularly contorted to
67207         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
67208         of $(...) evokes a syntax error and causes immediate shell exit with
67209         status 2.  Bruno Haible reported that the re-exec made it impossible
67210         to single-step through any init.sh-using script.
67212 2010-05-16  Bruno Haible  <bruno@clisp.org>
67214         Fix collision between gnulib's and libintl's printf replacements.
67215         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
67216         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
67217         (printf): When using GNU C, map the __printf__ function to rpl_printf
67218         via __asm__. When not using GNU C, define rpl_printf instead of
67219         __printf__.
67220         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
67221         commit.
67222         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
67223         commit.
67224         * m4/asm-underscore.m4: New file.
67225         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
67226         * modules/stdio (Files): Add m4/asm-underscore.m4.
67227         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
67228         Reported by Ben Pfaff.
67230 2010-05-16  Bruno Haible  <bruno@clisp.org>
67232         verify: Avoid skipping the test on openSUSE 11.0.
67233         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
67235 2010-05-13  Bruno Haible  <bruno@clisp.org>
67237         Avoid useless warnings from G++.
67238         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
67239         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
67240         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67242 2010-05-11  Jim Meyering  <meyering@redhat.com>
67244         maint.mk: tweak preceding change
67245         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
67246         regexps tighter by anchoring at EOL, and make the new group "shy"
67247         for slightly decreased overhead.
67249 2010-05-11  Eric Blake  <eblake@redhat.com>
67251         maint.mk: gnulib doesn't guarantee NSIG
67252         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
67254 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67256         test-pwrite.c: Remove unused variable declaration.
67257         * tests/test-pwrite.c (main): Remove read_buf declaration.
67259         Remove useless test-pwrite.sh file.
67260         * tests/test-pwrite.sh: Delete file.
67261         * modules/pwrite-tests: Remove references.
67262         Reported by Bruno Haible.
67264 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67266         init.sh: fix a typo
67267         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
67269 2010-05-10  Jim Meyering  <meyering@redhat.com>
67271         maint.mk: avoid using a temporary file in the always-defined-macros check
67272         * top/maint.mk (.re-defmac): Remove rule.
67273         (gl_trap_): Remove definition.
67274         (sc_prohibit_always-defined_macros): Rewrite not to create and
67275         depend on a temporary file.  Instead, depend on GNU grep's ability
67276         to read a list of regular expressions from stdin when given "-f -".
67278 2010-05-09  Bruno Haible  <bruno@clisp.org>
67280         Update to GNU gettext 0.18, part 1.
67281         * m4/gettext.m4: Update to GNU gettext 0.18.
67282         * m4/intl.m4: Likewise.
67283         * m4/po.m4: Likewise.
67284         * modules/gettext (Files): Add m4/fcntl-o.m4.
67285         (configure.ac): Require gettext infrastructure from version 0.18.
67287 2010-05-09  Jim Meyering  <meyering@redhat.com>
67289         init.sh: enable MALLOC_PERTURB_
67290         * tests/init.sh: Enable glibc's malloc-perturbing option.
67292         maint.mk: improve sc_cross_check_PATH_usage_in_tests
67293         With my recent change in init.sh from the two-line form:
67294             -#   : ${srcdir=.}
67295             -#   . "$srcdir/init.sh"; path_prepend_ .
67296             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
67297         I noticed that using the one-line form would cause this test
67298         to fail with a false-positive, or to stop working altogether,
67299         depending on whether help-version changed or all the tests did.
67300         * top/maint.mk (_hv_regex): Remove this definition.
67301         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
67302         (_hv_regex_strong): Use a stronger regex to check for conformance.
67303         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
67304         Give a separate diagnostic for lack of conforming use.
67306         maint.mk: prohibit definition of symbols defined by gnulib
67307         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
67308         definition of symbols defined by gnulib.
67310 2010-05-09  Bruno Haible  <bruno@clisp.org>
67312         acl: Avoid test failure on Cygwin-hosted mingw.
67313         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
67315 2010-05-09  Bruno Haible  <bruno@clisp.org>
67317         error: Use system's fcntl function.
67318         * lib/error.c (fcntl): Undefine.
67320 2010-05-09  Jim Meyering  <meyering@redhat.com>
67322         verify: adjust formatting to be more consistent
67323         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
67324         argument-list '('s, and after one comma.
67326 2010-05-09  Bruno Haible  <bruno@clisp.org>
67328         error: More reliable output on mingw.
67329         * lib/error.c: Include <windows.h>.
67330         (is_open): New function.
67331         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
67332         defined.
67334 2010-05-09  Bruno Haible  <bruno@clisp.org>
67336         vasnprintf: Fix syntax errors in libintl build on mingw.
67337         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
67338         pad_ourselves and prec_ourselves after use.
67340 2010-05-08  Bruno Haible  <bruno@clisp.org>
67342         * lib/config.charset: Update comments for Cygwin 1.7.
67343         * lib/localcharset.c: Likewise.
67345 2010-05-07  Jim Meyering  <meyering@redhat.com>
67347         init.sh: improve comments
67348         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
67349         . "${srcdir=.}/init.sh"; path_prepend_ .
67350         Add a note about path_prepend_ and the alternative of using
67351         TESTS_ENVIRONMENT.
67353 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
67355         exclude: Unescape hashed patterns in wildcard mode.
67356         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
67357         to the hash list.
67358         * tests/test-exclude8.sh: New test case.
67359         * modules/exclude-tests: Add new test.
67361 2010-05-05  Eric Blake  <eblake@redhat.com>
67363         verify: automate tests
67364         * modules/verify-tests: New module.
67365         * tests/test-verify.sh: New file.
67366         * tests/test-verify.c: Guard each negative test with a unique id.
67367         Also avoid warning about unused left hand of comma expressions.
67369 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67371         Further improvements to verify.h, suggested by Eric Blake.
67372         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
67373         the GL_* versions, to avoid collision with OpenGL.
67374         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
67375         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
67376         than testing merely whether it's defined.
67378         Modify verify.h to pacify gcc -Wredundant_decls.
67379         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
67380         These use the prefix "GL_" since they're likely to be useful elsewhere.
67381         We may need to break them out into a different .h file.
67382         (__COUNTER__): Define to 0 if the compiler doesn't support it.
67383         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
67384         of verify_function__.
67386 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67388         Tests for module pwrite.
67389         * modules/pwrite-tests: New file.
67390         * tests/test-pwrite.sh: New file.
67391         * tests/test-pwrite.c: New file.
67393         New module pwrite.
67394         * lib/unistd.in.h (pwrite): New declaration.
67395         * lib/pwrite.c: New file, from glibc with modifications.
67396         * m4/pwrite.m4: New file.
67397         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
67398         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
67399         REPLACE_PWRITE.
67400         * modules/pwrite: New file.
67401         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
67402         REPLACE_PWRITE.
67403         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
67404         * doc/posix-functions/pwrite.texi: Mention the new module.
67406 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67408         pread: Update documentation.
67409         * doc/posix-functions/pread.texi: Mention the 'pread' module.
67411 2010-05-04  Eric Blake  <eblake@redhat.com>
67413         docs: update cygwin progress
67414         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
67415         this bug.
67416         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
67417         Added in cygwin 1.7.2.
67418         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
67419         Likewise.
67420         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
67421         Likewise.
67422         * doc/glibc-functions/dup3.texi (dup3): Likewise.
67423         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
67424         * doc/glibc-functions/accept4.texi (accept4): Likewise.
67425         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
67426         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
67427         Mention nproc module.
67428         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
67429         bug in cygwin 1.7.5 addition.
67430         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
67431         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
67432         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
67433         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
67434         1.7.5.
67435         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
67436         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
67437         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
67438         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
67439         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
67440         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
67441         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
67442         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
67443         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
67444         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
67445         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
67446         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
67447         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
67448         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
67449         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
67450         Likewise.
67451         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
67452         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
67453         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
67454         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
67455         Likewise.
67456         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
67457         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
67458         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
67459         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
67460         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
67461         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
67462         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
67463         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
67464         Likewise.
67465         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
67466         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
67467         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
67468         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
67469         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
67470         Likewise.
67471         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
67472         Likewise.
67473         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
67474         Likewise.
67475         * doc/glibc-functions/xdrrec_endofrecord.texi
67476         (xdrrec_endofrecord): Likewise.
67477         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
67478         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
67479         Likewise.
67480         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
67481         Likewise.
67483 2010-05-04  Jim Meyering  <meyering@redhat.com>
67485         gendocs.sh: make its "-s FILE" option more useful
67486         * build-aux/gendocs.sh: When honoring the -s FILE option, update
67487         $PACKAGE to reflect the probably-different basename of "FILE".
67489 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67491         bootstrap: don't ignore download_po_files failure
67492         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
67493         failure.
67495 2010-05-03  Jim Meyering  <meyering@redhat.com>
67497         maint.mk: allow to pass options to gendocs.sh
67498         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
67499         (gendocs_options_): New overridable variable.
67501         gnu-web-doc-update: don't ignore configure or build failure
67502         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
67504         announce-gen: backslash-escape '@'s in --help output
67505         * build-aux/announce-gen: Fix syntax errors.
67507         maint.mk, announce-gen: allow project-specific announcement mail headers
67508         * top/maint.mk (translation_project_): Define default.
67509         (announcement_Cc_, announcement_mail_headers_): Likewise.
67510         (announcement): Invoke announce-gen with new --mail-headers option.
67511         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
67513         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
67514         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
67515         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
67516         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
67517         line in the "err2" output file when running "make check" in verbose
67518         mode (i.e., with set -x enabled).
67520 2010-05-03  Bruno Haible  <bruno@clisp.org>
67522         wctob: Fix for weird platforms.
67523         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
67524         argument value.
67526 2010-05-03  Jim Meyering  <meyering@redhat.com>
67528         maint.mk: prohibit unwarranted use of <strings.h>
67529         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
67530         strings.h in a file that does not also use strcasecmp, strncasecmp,
67531         ffs or ffsll.
67533         maint.mk: remove obsolete comments
67534         * top/maint.mk: Remove stale, commented-out rules.
67536 2010-05-02  Bruno Haible  <bruno@clisp.org>
67538         wcwidth: Declare also when it's aliased.
67539         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
67540         macro.
67542 2010-05-02  Bruno Haible  <bruno@clisp.org>
67544         Fix regression from 2010-04-25.
67545         * gnulib-tool (func_modules_transitive_closure): Check the status of
67546         all modules, not only of the tests that are of the form foo-tests where
67547         foo is a module.
67549 2010-05-02  Bruno Haible  <bruno@clisp.org>
67551         wctob: Work around nasty Cygwin 1.7.2 bug.
67552         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
67553         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
67555 2010-05-01  Bruno Haible  <bruno@clisp.org>
67557         fpurge: Sharper test.
67558         * tests/test-fpurge.c (main): Add one more ftell check.
67559         * modules/fpurge-tests (Depends-on): Add ftell.
67560         Suggested by Eric Blake.
67562 2010-05-01  Bruno Haible  <bruno@clisp.org>
67564         ftello: Another test.
67565         * tests/test-ftello3.c: New file.
67566         * modules/ftello-tests (Files): Add it.
67567         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67568         MOSTLYCLEANFILES.
67570         ftell: Another test.
67571         * tests/test-ftell3.c: New file.
67572         * modules/ftell-tests (Files): Add it.
67573         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67574         MOSTLYCLEANFILES.
67576 2010-05-01  Bruno Haible  <bruno@clisp.org>
67578         ftell, ftello: Work around Solaris bug.
67579         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
67580         * lib/ftello.c: Include stdio-impl.h.
67581         (ftello): On Solaris, when _IOWRT is set, compute the result without
67582         looking at _IOREAD.
67583         * modules/ftello (Files): Add lib/stdio-impl.h.
67584         * doc/posix-functions/ftell.texi: Mention Solaris bug.
67585         * doc/posix-functions/ftello.texi: Likewise.
67586         Reported by Eric Blake.
67588 2010-05-01  Bruno Haible  <bruno@clisp.org>
67590         freading: Adapt to special meaning of _IOREAD flag on Solaris.
67591         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
67592         the _IOWRT flag is also set.
67594 2010-05-01  Bruno Haible  <bruno@clisp.org>
67596         Fix doc about a HP-UX stdio bug.
67597         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
67598         * doc/posix-functions/ftello.texi: Likewise.
67600 2010-05-01  Bruno Haible  <bruno@clisp.org>
67602         lseek test: Fix failure on Solaris.
67603         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
67604         output.
67606 2010-04-30  Jim Meyering  <meyering@redhat.com>
67608         bootstrap: don't ignore failure to generate po*/Makevars
67609         * build-aux/bootstrap (with_gettext): Don't ignore failure
67610         to create po/Makevars or runtime-po/Makevars.
67612 2010-04-29  Eric Blake  <eblake@redhat.com>
67614         headers: relax license to LGPLv2+
67615         * modules/fcntl-h (License): Relax license.
67616         * modules/getopt-posix (License): Likewise.
67617         * modules/locale (License): Likewise.
67618         * modules/math (License): Likewise.
67619         * modules/pty (License): Likewise.
67620         * modules/sched (License): Likewise.
67621         * modules/search (License): Likewise.
67622         * modules/spawn (License): Likewise.
67623         * modules/stdarg (License): Likewise.
67624         * modules/sysexits (License): Likewise.
67626 2010-04-29  Jim Meyering  <meyering@redhat.com>
67628         inttypes: relax license to LGPLv2+
67629         * modules/inttypes (License): Relax license.
67631 2010-04-29  Simon Josefsson  <simon@josefsson.org>
67633         * top/maint.mk (indent): Run twice to produce idempotent results.
67635 2010-04-28  Bruno Haible  <bruno@clisp.org>
67637         getdate: Generate getdate.c in the source directory.
67638         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
67639         MOSTLYCLEANFILES.
67640         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
67642 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
67644         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
67645         is not declared as a const *; avoid warnings in that case.
67647 2010-04-28  Eric Blake  <eblake@redhat.com>
67649         canonicalize-lgpl: avoid compiler warning
67650         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
67651         declaration' / 'extraneous semicolon' warning with some compilers.
67652         Reported by Andreas Gruenbacher.
67654 2010-04-28  Jim Meyering  <meyering@redhat.com>
67656         init.sh: ensure a more reliable exit status when exiting via trap
67657         * tests/init.sh (setup_): Don't rely on $? in signal handler.
67658         Inspired by patches from Dmitry V. Levin.
67659         Also trap on signal 3 (SIGQUIT).
67661 2010-04-27  Bruno Haible  <bruno@clisp.org>
67663         Update doc about utimes().
67664         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
67665         'utimens' module.
67666         Reported by Andreas Gruenbacher <agruen@suse.de>.
67668 2010-04-27  Eric Blake  <eblake@redhat.com>
67670         full-read, full-write: relax license
67671         * modules/full-read (License): Drop to LGPLv2+.
67672         * modules/full-write (License): Likewise.
67673         * modules/safe-read (License): Likewise.
67674         * modules/safe-write (License): Likewise.
67676         pthread: mention library for linking
67677         * modules/pthread (Link): Mention $(LIB_PTHREAD).
67679 2010-04-27  Jim Meyering  <meyering@redhat.com>
67681         maint.mk: fix a bug introduced in last change
67682         * top/maint.mk (gl_assured_headers_): Now that all names are on
67683         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
67684         is not anchored to end of word, it should be adequate.
67686         maint.mk: avoid side-effect in latest syntax-check
67687         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
67688         to run commands via $(shell...), and hence to incur cost only when
67689         the new rule is actually run.
67691         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
67692         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
67693         and use that to create a regexp used to detect all #if HAVE_..._H uses.
67694         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
67695         (gl_assured_headers_, az_, AZ_): Define.
67696         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
67698 2010-04-26  Jim Meyering  <jim@meyering.net>
67699             Bruno Haible  <bruno@clisp.org>
67701         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
67702         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
67703         Prompted by an exchange with Gilles Espinasse.
67705 2010-04-26  Jim Meyering  <meyering@redhat.com>
67707         git-version-gen: aesthetic tweak
67708         * build-aux/git-version-gen: Use "$nl" rather than a literal,
67709         so that the command remains on a single line.
67711 2010-04-26  Eric Blake  <eblake@redhat.com>
67713         git-version-gen: allow use on EBCDIC hosts
67714         * build-aux/git-version-gen (dirty): Use literal rather than tying
67715         ourselves to ascii.
67716         Reported by Steve Goetze.
67718 2010-04-25  Bruno Haible  <bruno@clisp.org>
67720         netdb: Add support for GNULIB_POSIXCHECK.
67721         * lib/netdb.in.h: Include warn-on-use.h.
67722         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
67723         functions are used when GNULIB_POSIXCHECK is defined and the
67724         getaddrinfo module is not in use.
67725         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
67726         freeaddrinfo, gai_strerror, getnameinfo are declared.
67727         * modules/netdb (Depends-on): Add warn-on-use.
67728         (Makefile.am): Include warn-on-use.h in netdb.h.
67730 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
67732         build: avoid "make check" failure without .git/ directory
67733         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
67734         there is no .git/ directory.
67736 2010-04-25  Bruno Haible  <bruno@clisp.org>
67738         ptsname: Fix misuse of ttyname_r.
67739         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
67740         of errno.
67742 2010-04-25  Bruno Haible  <bruno@clisp.org>
67744         ttyname_r: Make it work on Solaris 10.
67745         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
67746         if the system function has the POSIX declaration. Test whether the
67747         function fails if the buffer is less than 128 bytes large.
67748         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
67749         system's ttyname_r function. Provide a reasonably large buffer.
67750         * modules/ttyname_r (Depends-on): Add extensions.
67751         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
67753 2010-04-25  Bruno Haible  <bruno@clisp.org>
67755         Use the 'extensions' module for some more functions on Solaris.
67756         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
67757         module.
67758         * doc/posix-functions/ctime_r.texi: Likewise.
67759         * doc/posix-functions/getgrgid_r.texi: Likewise.
67760         * doc/posix-functions/getgrnam_r.texi: Likewise.
67761         * doc/posix-functions/getpwnam_r.texi: Likewise.
67762         * doc/posix-functions/getpwuid_r.texi: Likewise.
67763         * doc/posix-functions/readdir_r.texi: Likewise.
67764         * doc/posix-functions/sigwait.texi: Likewise.
67765         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
67766         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
67768 2010-04-25  Bruno Haible  <bruno@clisp.org>
67770         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
67771         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
67772         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
67773         * lib/ttyname_r.c: Include <limits.h>.
67774         (ttyname_r): Define using the system's ttyname_r function, if it exists
67775         and not on Solaris.
67776         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
67777         set.
67778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
67779         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
67780         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
67781         Reported by Simon Josefsson.
67783 2010-04-25  Bruno Haible  <bruno@clisp.org>
67785         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
67786         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
67787         * doc/posix-functions/ctime_r.texi: Likewise.
67788         * doc/posix-functions/getgrgid_r.texi: Likewise.
67789         * doc/posix-functions/getgrnam_r.texi: Likewise.
67790         * doc/posix-functions/getlogin_r.texi: Likewise.
67791         * doc/posix-functions/getpwnam_r.texi: Likewise.
67792         * doc/posix-functions/getpwuid_r.texi: Likewise.
67793         * doc/posix-functions/readdir_r.texi: Likewise.
67794         * doc/posix-functions/sigwait.texi: Likewise.
67795         * doc/posix-functions/ttyname_r.texi: Likewise.
67796         Reported by Simon Josefsson.
67798 2010-04-25  Bruno Haible  <bruno@clisp.org>
67800         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
67801         * gnulib-tool (func_usage): Document that --with-*-tests options apply
67802         also to --create-testdir.
67803         (func_acceptable): Don't consider the status of *-tests modules here.
67804         (func_modules_transitive_closure): Consider it here, before including a
67805         test module.
67806         (func_import, func_create_testdir): Set inc_all_direct_tests,
67807         inc_all_indirect_tests.
67808         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
67809         --create-testdir and --create-megatestdir.
67811 2010-04-25  Bruno Haible  <bruno@clisp.org>
67813         gnulib-tool: Add --without-*-tests options.
67814         * gnulib-tool (func_usage): Document the --without-*-tests options.
67815         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
67816         excl_unportable_tests): New variables.
67817         Fail if they are specified with --import or --update.
67818         (func_acceptable): Respect the excl_*_tests variables.
67819         (func_import): Set the excl_*_tests variables to empty.
67821 2010-04-25  Simon Josefsson  <simon@josefsson.org>
67822             Bruno Haible  <bruno@clisp.org>
67824         Work around a MacOS X 10.4 bug with openpty.
67825         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
67826         * tests/test-openpty.c (main): Close the master side explicitly.
67828 2010-04-25  Bruno Haible  <bruno@clisp.org>
67830         strnlen: Fix a C++ test error on MacOS X and Solaris.
67831         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
67832         the function is not declared.
67833         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
67834         Simon Josefsson.
67836 2010-04-24  Bruno Haible  <bruno@clisp.org>
67838         Avoid a gcc warning.
67839         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
67840         of correct type for %08lx directive.
67841         Reported by Eric Blake.
67843 2010-04-24  Bruno Haible  <bruno@clisp.org>
67845         vasnprintf: Correct errno value in case of out-of-memory.
67846         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
67847         or sprintf. Use the errno value from SNPRINTF or sprintf.
67848         Reported by Ian Beckwith <ianb@erislabs.net>.
67850 2010-04-24  Bruno Haible  <bruno@clisp.org>
67852         ansi-c++-opt: Find correct compiler when cross-compiling.
67853         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
67854         AC_CHECK_PROGS.
67855         Reported by Simon Josefsson.
67857 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
67859         vc-list-files: Add support for subversion
67860         * build-aux/vc-list-files: Use "svn list" to generate the list of
67861         files controlled by subversion.
67863 2010-04-23  Jim Meyering  <meyering@redhat.com>
67865         vc-list-files tests: convert to use init.sh
67866         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
67867         path_prepend_.
67868         Use Exit, not exit.
67869         Use skip_ rather than open coding it.
67870         Remove trap set-up and compare definitions.
67871         * tests/test-vc-list-files-git.sh: Likewise.
67872         * modules/vc-list-files-tests (Files): Add tests/init.sh.
67874 2010-04-22  Simon Josefsson  <simon@josefsson.org>
67876         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
67877         backup files.
67879 2010-04-21  Simon Josefsson  <simon@josefsson.org>
67881         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
67883 2010-04-20  Eric Blake  <eblake@redhat.com>
67885         tests: be robust to ignored SIGPIPE
67886         * tests/test-select-in.sh: Consume all output.
67887         * tests/test-lseek.sh: Check correct exit status, while avoiding
67888         EPIPE.
67890 2010-04-20  Simon Josefsson  <simon@josefsson.org>
67891             Bruno Haible  <bruno@clisp.org>
67893         visibility: Don't use -fvisibility if it leads to a warning.
67894         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
67895         yes, don't pretend that visibility works if it leads to a warning.
67896         Reported by Mike Gran <spk121@yahoo.com>.
67898 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
67900         * build-aux/bootstrap: Use "git -h" for testing for supported options
67901         instead of "git --help".  The short-form option only shows a summary,
67902         and doesn't layout the full man page.  Grep for the full option name
67903         in the summary, too.
67905 2010-04-19  Bruno Haible  <bruno@clisp.org>
67907         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
67908         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
67909         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
67910         mention of RELOCATABLE_STRIP.
67911         Reported by Sylvain Beucler <beuc@beuc.net>.
67913 2010-04-19  Bruno Haible  <bruno@clisp.org>
67915         * lib/diffseq.h: Fix typo in comment.
67916         Reported by Eric Blake.
67918 2010-04-19  Bruno Haible  <bruno@clisp.org>
67920         ioctl: Move autoconf macro to a .m4 file.
67921         * m4/ioctl.m4: New file, extracted from modules/ioctl.
67922         * modules/ioctl (Files): Add it.
67923         (configure.ac): Simply invoke gl_FUNC_IOCTL.
67924         Reported by Ian Beckwith <ianb@erislabs.net>.
67926 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
67927             Bruno Haible  <bruno@clisp.org>
67929         diffseq: Accommodate use-case with abstract arrays.
67930         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
67931         is not defined.
67932         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
67933         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
67935 2010-04-18  Bruno Haible  <bruno@clisp.org>
67937         * doc/posix-headers/stdbool.texi: More precise wording.
67939 2010-04-17  Jim Meyering  <meyering@redhat.com>
67941         maint.mk: use gnu-style indentation in an embedded perl script
67942         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
67943         Rename variable: s/two/last_two_bytes/
67945 2010-04-16  Eric Blake  <eblake@redhat.com>
67947         test-stdbool: skip test that fails with Solaris CC
67948         * tests/test-stdbool.c (f): Skip test that causes compilation
67949         error under buggy C++ compiler.
67950         * lib/stdbool.in.h: Document the limitation.
67951         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
67953         setenv: allow compilation with C++
67954         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
67955         register keyword.
67957         stdint: allow test to pass with C++
67958         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
67960         getopt: allow compilation with C++
67961         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
67962         struct.
67963         * lib/getopt.c (_getopt_internal_r): Use correct type.
67964         Reported by Dagobert Michelson, via Joel E. Denny.
67966 2010-04-16  Bruno Haible  <bruno@clisp.org>
67968         Override netdb.h always.
67969         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
67970         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
67971         Reported by Ludovic Courtès <ludo@gnu.org>.
67973 2010-04-15  Bruno Haible  <bruno@clisp.org>
67975         openpty: Fix mistake from 2010-03-21.
67976         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
67977         Reported by Simon Josefsson.
67979 2010-04-15  Eric Blake  <eblake@redhat.com>
67981         test-forkpty: fix expected signature
67982         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
67983         Reported by Simon Josefsson.
67985 2010-04-15  Jim Meyering  <meyering@redhat.com>
67987         maint.mk: texinfo_suffix_re_: correct the default regexp
67988         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
67990         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
67991         make it configurable via texinfo_suffix_re_.
67993 2010-04-14  Eric Blake  <eblake@redhat.com>
67995         strtok_r: relax license to LGPLv2+
67996         * modules/strtok_r (License): Relax license.
67997         Reported by Matthias Bolte.
67999 2010-04-14  Simon Josefsson  <simon@josefsson.org>
68001         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
68002         version 1.4.4 by default instead of requiring the libgcrypt
68003         version used during build.  This makes it possible to use the
68004         application with older but still binary compatible libgcrypt
68005         versions.
68007 2010-04-13  Eric Blake  <eblake@redhat.com>
68009         getopt-gnu: match recent glibc fixes and posix ruling
68010         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
68011         '+' handling, when requesting extensions.
68012         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
68013         'W;' handling.
68014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
68015         * doc/posix-functions/getopt.texi (getopt): Document this.
68016         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68017         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68018         Likewise.
68020         getopt: merge bug fixes from glibc
68021         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
68022         diagnostics.  Honor '+:' correctly.  Reject ';'.
68024         getopt-posix: detect MacOS bug
68025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
68026         optind when missing a required argument.
68027         * doc/posix-functions/getopt.texi (getopt): Document the bug.
68028         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68029         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68030         Likewise.
68032         getopt-posix: avoid spurious failure on Solaris
68033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
68034         an indicator that setting optind=1 is sufficient for reset.
68036         getopt-posix: avoid spurious failure on FreeBSD
68037         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
68038         in POSIX mode, since the m4 test uses it.
68040         gnulib-tool: silence warning on BSD sh
68041         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
68043 2010-04-13  Jim Meyering  <meyering@redhat.com>
68045         doc: users.txt: GNU patch now uses gnulib
68046         * users.txt: Add patch.
68048 2010-04-12  Jim Meyering  <meyering@redhat.com>
68050         maint.mk: generate more concise timing data for syntax-check rules
68051         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
68052         " done" from each line that reports a syntax-check test duration.
68054 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
68056         git-version-gen: use "git update-index..." rather than "git status"
68057         * build-aux/git-version-gen: Use git update-index --refresh, not
68058         "git status".  With some versions of git, "git status" would fail
68059         to update the index and result in an unwarranted "-dirty" suffix.
68061 2010-04-11  Jim Meyering  <meyering@redhat.com>
68063         openat: correct formatting (no semantic change)
68064         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
68065         Suggested by Bruno Haible.
68067 2010-04-11  Bruno Haible  <bruno@clisp.org>
68069         Stricter declaration checking in testdirs.
68070         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68071         If for_tests is true, augment AM_CPPFLAGS to define
68072         GNULIB_STRICT_CHECKING.
68073         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
68074         GNULIB_STRICT_CHECKING is defined, verify that the function is
68075         declared.
68077 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
68078             Bruno Haible  <bruno@clisp.org>
68080         libunistring: Improve configure output.
68081         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
68082         Don't say "consider installing GNU libunistring" when checking again
68083         with libiconv.
68085 2010-04-11  Bruno Haible  <bruno@clisp.org>
68087         libunistring: Correct value of $LTLIBUNISTRING.
68088         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
68089         correct the value of $LTLIBUNISTRING.
68091 2010-04-11  Bruno Haible  <bruno@clisp.org>
68093         havelib: Add static libraries to LIBS in the right order.
68094         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
68095         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
68097 2010-04-11  Bruno Haible  <bruno@clisp.org>
68099         libunistring: Detect libunistring also when it depends on libiconv.
68100         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
68101         the second AC_LIB_HAVE_LINKFLAGS invocation.
68103 2010-04-11  James Youngman  <jay@gnu.org>
68105         close-stream: declare local scalars to be "const"
68106         * lib/close-stream.c (close_stream): Make boolean variables const
68107         to document the fact that we set but do not change them.
68109 2010-04-11  Bruno Haible  <bruno@clisp.org>
68111         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
68113 2010-04-11  Jim Meyering  <meyering@redhat.com>
68115         maint.mk: don't include dist-check.mk
68116         * top/maint.mk: Remove bogus include directive.
68118         maint.mk: improve empty-line-at-EOF check
68119         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
68120         solution, rather than tail+Perl-based one.  The latter would read
68121         a few kilobytes from the end of each file, and did not handle empty
68122         files properly.
68124         maint.mk: print the elapsed time for each syntax-check rule
68125         * top/maint.mk (sc_m_rules_): Save start time in a file.
68126         (sc_z_rules_): New rules: remove temp file and print elapsed time.
68127         (local-check): Interpose the .z rules
68129 2010-04-11  Jim Meyering  <meyering@redhat.com>
68131         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
68132         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
68133         empty file with one that ends in an empty line.
68135 2010-04-10  Bruno Haible  <bruno@clisp.org>
68137         mkdir: Make it work on mingw64.
68138         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
68139         * lib/mkdir.c: Update comment.
68140         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
68142 2010-04-10  Bruno Haible  <bruno@clisp.org>
68144         Don't override improved macro from newer autoconf.
68145         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
68146         autoconf >= 2.62.
68147         Reported by Joel E. Denny <jdenny@clemson.edu>.
68149 2010-04-10  Jim Meyering  <meyering@redhat.com>
68151         maint.mk: new syntax-check rule: prohibit empty lines at end of file
68152         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
68154         maint.mk: correct a diagnostic
68155         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
68156         in diagnostic; now use $prohibit.
68158 2010-04-10  Bruno Haible  <address@hidden>
68160         fchownat: Fix a C++ test error on Solaris 8.
68161         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
68162         the function does not exist.
68164 2010-04-10  Bruno Haible  <bruno@clisp.org>
68166         vasnprintf: Add more tests.
68167         * tests/test-vasnprintf-posix.c: Include <errno.h>.
68168         (test_function): Test converting an invalid wide string.
68170         vasnprintf: Correct handling of unconvertible wide string arguments.
68171         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
68172         VASNPRINTF.
68173         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
68174         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
68175         smaller than the expected maximum need for the directive. Set errno to
68176         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
68177         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
68178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
68179         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
68180         * modules/vasnprintf (Files): Add m4/printf.m4.
68181         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68183 2010-04-10  Bruno Haible  <bruno@clisp.org>
68185         vasnprintf: Fix crash in %ls directive.
68186         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
68187         string is passed as argument to %ls, with no precision and no width.
68188         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68190 2010-04-10  Bruno Haible  <bruno@clisp.org>
68192         vasnprintf: Fix multiple test failures on mingw.
68193         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
68194         _snprintf, or snwprintf, not _snwprintf.
68196 2010-04-10  Bruno Haible  <bruno@clisp.org>
68198         write: Fix a C++ test error on mingw.
68199         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
68201 2010-04-10  Bruno Haible  <bruno@clisp.org>
68203         vasnprintf test: Reduce code duplication.
68204         * tests/test-vasnprintf.c (test_function): New function, extracted from
68205         test_vasnprintf.
68206         (test_vasnprintf, test_asnprintf): Invoke it.
68208 2010-04-10  Bruno Haible  <bruno@clisp.org>
68210         strnlen: Fix warning in C++ mode on MacOS X.
68211         * lib/string.in.h (strnlen): Use the modern idiom.
68212         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
68213         defining strnlen as a macro already in <config.h>.
68214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68215         REPLACE_STRNLEN.
68216         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
68217         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68219 2010-04-08  James Youngman  <jay@gnu.org>
68221         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
68222         the example.
68224 2010-04-09  Jim Meyering  <meyering@redhat.com>
68226         maint.mk: print better diagnostic when there is no $(_hv_file)
68227         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
68228         announce that when $(_hv_file) (aka help-version) does not exist.
68230         init.sh: run tr in the "C" locale to avoid multibyte interpretation
68231         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
68232         not try to interpret its random input bytes.  Jarno Rajahalme reported
68233         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
68234         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
68235         (mktempd_): Likewise, just in case.
68237         ftruncate: add two years to projected module removal date: 2012
68238         * m4/ftruncate.m4: Adjust comments.
68240         ftruncate: mark module as obsolete; even MinGW provides it, now
68241         * modules/ftruncate (Status): Obsolete.
68242         (Notice): Say that.
68243         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
68244         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
68246 2010-04-08  Bruno Haible  <bruno@clisp.org>
68248         Fix side effects from tests-related modules.
68249         * modules/dprintf-posix (Comment): New section.
68250         * modules/fprintf-posix (Comment): Likewise.
68251         * modules/obstack-printf-posix (Comment): Likewise.
68252         * modules/printf-posix (Comment): Likewise.
68253         * modules/snprintf-posix (Comment): Likewise.
68254         * modules/sprintf-posix (Comment): Likewise.
68255         * modules/vasnprintf-posix (Comment): Likewise.
68256         * modules/vasprintf-posix (Comment): Likewise.
68257         * modules/vdprintf-posix (Comment): Likewise.
68258         * modules/vfprintf-posix (Comment): Likewise.
68259         * modules/vprintf-posix (Comment): Likewise.
68260         * modules/vsnprintf-posix (Comment): Likewise.
68261         * modules/vsprintf-posix (Comment): Likewise.
68262         * modules/xprintf-posix (Comment): Likewise.
68263         * modules/xvasprintf-posix (Comment): Likewise.
68264         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
68265         * modules/floorf-tests (Depends-on): Likewise.
68266         * modules/round-tests (Depends-on): Likewise.
68267         * modules/roundf-tests (Depends-on): Likewise.
68268         * modules/trunc-tests (Depends-on): Likewise.
68269         * modules/truncf-tests (Depends-on): Likewise.
68270         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
68271         'fprintf-posix' module is not present.
68272         * tests/test-floorf2.c (check): Likewise.
68273         * tests/test-trunc2.c (check): Likewise.
68274         * tests/test-truncf2.c (check): Likewise.
68275         * tests/test-round2.c (equal): Likewise.
68276         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68278 2010-04-07  Karl Berry  <karl@gnu.org>
68280         * config/srclist.txt,
68281         * config/srclistvars.sh,
68282         * config/srclist-update: doc fixes.
68284 2010-04-07  Jim Meyering  <meyering@redhat.com>
68286         maint.mk: add a PATH crosschecking syntax-check rule
68287         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
68288         Useful if you use a test like the one in help-version (coreutils,
68289         diffutils, grep, gzip) that ensures $(VERSION) matches what is
68290         printed by prog --version.
68292 2010-04-06  Bruno Haible  <bruno@clisp.org>
68294         Fix link error on mingw.
68295         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
68296         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
68298 2010-04-06  Bruno Haible  <bruno@clisp.org>
68300         Assume rmdir exists.
68301         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
68303 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
68305         doc: update users.txt
68306         * users.txt: Add gcal.
68308 2010-04-06  Jim Meyering  <meyering@redhat.com>
68310         init.sh: simply unset TMPDIR rather than risking env -i
68311         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
68312         although it probably works fine on all Unix-based systems, some
68313         systems (Cygwin?) cannot tolerate a totally cleared environment.
68314         Suggestion from Eric Blake.
68316 2010-04-06  Jim Meyering  <meyering@redhat.com>
68318         init.sh: portability fix: use env's POSIX-specified -i option not -u
68319         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
68320         than unportable env -u.  Solaris 5.11's env lacks support for -u.
68322 2010-04-05  Bruno Haible  <bruno@clisp.org>
68324         btowc: Work around Cygwin 1.7.2 bug.
68325         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
68326         does not map NUL to 0.
68327         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
68329 2010-04-05  Bruno Haible  <bruno@clisp.org>
68331         Make the multithread modules work on Cygwin 1.7.2.
68332         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
68333         imported symbols can be declared weak, so that it returns "no" on
68334         Cygwin 1.7.2.
68336 2010-04-05  Bruno Haible  <bruno@clisp.org>
68338         Use the module 'strncat'.
68339         * modules/unistr/u8-strncat (Depends-on): Add strncat.
68341         Tests for module 'strncat'.
68342         * modules/strncat-tests: New file.
68343         * tests/test-strncat.c: New file.
68345         New module 'strncat'.
68346         * lib/string.in.h (strncat): New declaration.
68347         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
68348         * m4/strncat.m4: New file, based on m4/memchr.m4.
68349         * modules/strncat: New file.
68350         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
68351         is declared.
68352         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
68353         REPLACE_STRNCAT.
68354         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
68355         REPLACE_STRNCAT.
68356         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
68357         module.
68358         * tests/test-string-c++.cc: Check signature of strncat.
68360 2010-04-05  Jim Meyering  <meyering@redhat.com>
68362         xstrtoumax-tests: convert to use init.sh
68363         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
68364         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68365         Use Exit, not exit.
68366         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68368         xstrtoimax-tests: convert to use init.sh
68369         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
68370         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68371         Use Exit, not exit.
68372         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68374 2010-04-05  Bruno Haible  <bruno@clisp.org>
68376         sys_socket: Avoid #define replacements in C++ mode.
68377         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
68378         warning to the function if possible, rather than #defining the symbol
68379         to a dysfunctional alias.
68381 2010-04-05  Bruno Haible  <bruno@clisp.org>
68383         fseeko: Fix C++ test error on mingw.
68384         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
68385         gl_FUNC_FSEEKO.
68386         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
68387         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
68388         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
68389         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
68391 2010-04-05  Bruno Haible  <bruno@clisp.org>
68393         duplocale: Improve test output.
68394         * tests/test-duplocale.c (main): Print reason for skipped test.
68396 2010-04-05  Bruno Haible  <bruno@clisp.org>
68398         Assume rmdir exists.
68399         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
68400         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
68402 2010-04-05  Bruno Haible  <bruno@clisp.org>
68404         Fix link error on Solaris 8 with cc.
68405         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
68407 2010-04-05  Bruno Haible  <bruno@clisp.org>
68409         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68410         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
68412 2010-04-05  Bruno Haible  <bruno@clisp.org>
68414         vasprintf: Update documentation.
68415         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
68417 2010-04-05  Bruno Haible  <bruno@clisp.org>
68419         ptsname: Improve test.
68420         * tests/test-ptsname.c (main): Also try the various master names of BSD
68421         systems.
68423 2010-04-05  Bruno Haible  <bruno@clisp.org>
68425         memchr: Avoid a possible C++ test error.
68426         * lib/string.in.h (memchr): Provide declaration if function is missing.
68427         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
68428         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
68429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
68430         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
68432 2010-04-05  Bruno Haible  <bruno@clisp.org>
68434         strtok_r: Improve idiom.
68435         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
68436         AC_LIBOBJ is used.
68438 2010-04-05  Bruno Haible  <bruno@clisp.org>
68440         strdup: Improve idiom.
68441         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
68442         AC_LIBOBJ is used.
68443         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
68444         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
68445         when AC_LIBOBJ is used.
68447 2010-04-05  Bruno Haible  <bruno@clisp.org>
68449         mbsinit, mbrtowc, wcrtomb: Improve idioms.
68450         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
68451         don't set REPLACE_MBSINIT to 1.
68452         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
68453         don't set REPLACE_MBRTOWC to 1.
68454         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
68455         exist, don't set REPLACE_MBSRTOWCS to 1.
68456         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
68457         exist, don't set REPLACE_MBSNRTOWCS to 1.
68458         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
68459         don't set REPLACE_WCRTOMB to 1.
68460         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
68461         exist, don't set REPLACE_WCSRTOMBS to 1.
68462         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
68463         exist, don't set REPLACE_WCSNRTOMBS to 1.
68465 2010-04-05  Bruno Haible  <bruno@clisp.org>
68467         ldexpl: Improve idiom.
68468         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
68469         make sure to set HAVE_DECL_LDEXPL to 0.
68471 2010-04-05  Jim Meyering  <meyering@redhat.com>
68473         xstrtol-tests: convert to use init.sh
68474         * modules/xstrtol-tests (Files): Add tests/init.sh.
68475         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68476         Use Exit, not exit.
68477         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68479         atexit-tests: convert to use init.sh
68480         * modules/atexit-tests (Files): Add tests/init.sh.
68481         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68482         Use Exit, not exit.
68483         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68485         init.sh: fix typo
68486         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
68488         init.sh: make it easier for a test script to write to the tty, ...
68489         when using automake's parallel-tests mode.
68490         * tests/init.sh (stderr_fileno_): Define overridable variable.
68491         (warn_): New function, to use it.
68492         (fail_, skip_, framework_failure_): Use warn_.
68494 2010-04-04  Bruno Haible  <bruno@clisp.org>
68496         btowc: Avoid warning.
68497         * lib/btowc.c: Include <stdlib.h>.
68498         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
68500 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68501             Bruno Haible  <bruno@clisp.org>
68503         wchar: Port to NetBSD 1.5.
68504         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
68505         * lib/wctype.in.h (WEOF): Likewise.
68507 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68508             Bruno Haible  <bruno@clisp.org>
68510         Port extended stdio to NetBSD 1.5.
68511         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
68512         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
68513         older.
68515 2010-04-04  Bruno Haible  <bruno@clisp.org>
68517         string: Remove unused substitution.
68518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68519         HAVE_DECL_STRERROR.
68520         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
68522 2010-04-04  Bruno Haible  <bruno@clisp.org>
68524         strtod: Avoid a possible C++ test error.
68525         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
68526         set REPLACE_STRTOD.
68528 2010-04-04  Bruno Haible  <bruno@clisp.org>
68530         strerror: Update documentation.
68531         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
68533 2010-04-04  Bruno Haible  <bruno@clisp.org>
68535         stdio: Fix some C++ test errors on Solaris 8 with GCC.
68536         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
68537         _GL_CXXALIAS_SYS_CAST.
68539 2010-04-04  Bruno Haible  <bruno@clisp.org>
68541         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68542         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
68543         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
68544         REPLACE_FREXPL to 1.
68545         * doc/posix-functions/frexpl.texi: Update documentation.
68547 2010-04-04  Bruno Haible  <bruno@clisp.org>
68549         math: Fix some C++ test errors on Solaris 8 and Cygwin.
68550         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
68552 2010-04-04  Bruno Haible  <bruno@clisp.org>
68554         Implement nanosleep for native Windows.
68555         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
68557 2010-04-04  Bruno Haible  <bruno@clisp.org>
68559         math: Fix some C++ test errors on Solaris 8.
68560         * lib/math.in.h (truncf, trunc): Use simpler idiom.
68562 2010-04-04  Bruno Haible  <bruno@clisp.org>
68564         math: Fix some C++ test errors on Cygwin.
68565         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
68566         truncl): Provide declaration if the system does not have it.
68567         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
68568         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
68569         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
68570         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
68571         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
68572         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
68573         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
68574         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
68575         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
68576         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
68577         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
68578         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
68579         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
68580         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
68581         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
68582         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
68583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
68584         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68585         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68586         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
68587         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68588         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68590 2010-04-04  Bruno Haible  <bruno@clisp.org>
68592         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
68593         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
68594         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
68595         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
68596         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
68597         * m4/isinf.m4 (gl_ISINF): Likewise.
68598         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
68600 2010-04-04  Bruno Haible  <bruno@clisp.org>
68602         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
68603         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
68605 2010-04-04  Bruno Haible  <bruno@clisp.org>
68607         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
68608         * modules/tmpfile (configure.ac): Update.
68610         tmpfile: Fix C++ test error on mingw.
68611         * lib/stdio.in.h (tmpfile): New declaration.
68612         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
68613         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
68614         * modules/tmpfile (Depends-on): Add stdio.
68615         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68616         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
68617         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
68618         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
68619         REPLACE_TMPFILE.
68620         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
68622 2010-04-04  Bruno Haible  <bruno@clisp.org>
68624         ioctl: Fix C++ test error on mingw.
68625         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
68626         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
68627         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
68629 2010-04-03  Bruno Haible  <bruno@clisp.org>
68631         wcwidth: Fix C++ test error on mingw.
68632         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
68633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
68634         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
68636 2010-04-03  Bruno Haible  <bruno@clisp.org>
68638         nanosleep: Fix C++ test error on mingw.
68639         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
68640         * lib/time.in.h (nanosleep): Use modern idiom.
68641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
68642         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
68643         REPLACE_NANOSLEEP to 1.
68644         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
68645         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
68647 2010-04-03  Bruno Haible  <bruno@clisp.org>
68649         strptime: Fix C++ test error on mingw.
68650         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
68651         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
68652         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
68653         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
68654         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
68655         not REPLACE_STRPTIME.
68656         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
68657         REPLACE_STRPTIME.
68659 2010-04-03  Bruno Haible  <bruno@clisp.org>
68661         timegm: Fix C++ test error on mingw.
68662         * lib/time.in.h (timegm): Use modern idiom.
68663         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
68664         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
68665         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
68666         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
68668 2010-04-03  Bruno Haible  <bruno@clisp.org>
68670         timegm: Assume declaration if function exists.
68671         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
68672         if it exists. Don't clobber ac_cv_func_timegm.
68674 2010-04-03  Bruno Haible  <bruno@clisp.org>
68676         time_r: Fix C++ test error on mingw.
68677         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
68678         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
68679         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
68680         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
68681         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
68683 2010-04-03  Bruno Haible  <bruno@clisp.org>
68685         time_r: Minor updates.
68686         * modules/time_r (Description): Mention the provided functions.
68687         * lib/time_r.c: Don't include <string.h>.
68688         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
68689         * doc/posix-functions/localtime_r.texi: Likewise.
68691 2010-04-03  Bruno Haible  <bruno@clisp.org>
68693         time: Fix regression introduced on 2010-03-08.
68694         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
68695         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
68697 2010-04-03  Jim Meyering  <meyering@redhat.com>
68699         maint.mk: don't silently disable project-specific syntax-check rules
68700         * top/maint.mk (_prohibit_regexp): Define, to help people realize
68701         that they need to convert their project-specific syntax-check rules
68702         to use the new _sc_search_regexp.
68704 2010-04-03  Bruno Haible  <bruno@clisp.org>
68706         fchdir: Fix regression introduced on 2010-03-08.
68707         * lib/unistd.in.h (fchdir): Fix declaration.
68708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
68709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
68710         REPLACE_FCHDIR.
68711         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
68712         REPLACE_FCHDIR.
68714 2010-04-03  Bruno Haible  <bruno@clisp.org>
68716         getpagesize: Fix C++ test error on mingw.
68717         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
68718         system does not declare the function.
68719         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
68720         declared.
68721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68722         HAVE_DECL_GETPAGESIZE.
68723         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
68725 2010-04-03  Bruno Haible  <bruno@clisp.org>
68727         stdio: Make C++ tests work on mingw.
68728         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
68729         does not declare the function.
68731 2010-04-03  Bruno Haible  <bruno@clisp.org>
68733         ftello: Fix C++ test error on mingw.
68734         * lib/stdio.in.h (ftello): Use modern idiom.
68735         * lib/ftello.c (ftello): Renamed from rpl_ftello.
68736         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
68737         is missing and that it needs to be replaced.
68738         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
68739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
68740         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
68742 2010-04-03  Bruno Haible  <bruno@clisp.org>
68744         fseeko: Fix C++ test error on mingw.
68745         * lib/stdio.in.h (fseeko): Use modern idiom.
68746         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
68747         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
68748         is missing and that it needs to be replaced.
68749         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
68750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
68751         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
68753 2010-04-03  Bruno Haible  <bruno@clisp.org>
68755         mkstemp: Fix C++ test error on mingw.
68756         * lib/stdlib.in.h (mkstemp): Use modern idiom.
68757         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
68758         function is missing and that it needs to be replaced.
68759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
68760         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
68762 2010-04-03  Bruno Haible  <bruno@clisp.org>
68764         stpncpy: Fix C++ test error on mingw.
68765         * lib/string.in.h (stpncpy): Use modern idiom.
68766         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
68767         function is missing and that it needs to be replaced.
68768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68769         REPLACE_STPNCPY.
68770         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
68772 2010-04-03  Bruno Haible  <bruno@clisp.org>
68774         sys_stat: Fix C++ test error on mingw.
68775         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
68776         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
68778 2010-04-03  Bruno Haible  <bruno@clisp.org>
68780         pty: Update doc.
68781         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
68783 2010-04-03  Bruno Haible  <bruno@clisp.org>
68785         unistd: Fix C++ test error on mingw.
68786         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
68788 2010-04-03  Bruno Haible  <bruno@clisp.org>
68790         Update doc regarding mingw.
68791         * doc/glibc-functions/openpty.texi: Update regarding mingw.
68792         * doc/glibc-functions/login_tty.texi: Likewise.
68793         * doc/glibc-functions/forkpty.texi: Likewise.
68795 2010-04-03  Bruno Haible  <bruno@clisp.org>
68797         stdlib: Avoid compilation failure of c-strtold on mingw.
68798         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
68800 2010-04-03  Bruno Haible  <bruno@clisp.org>
68802         locale: Make C++ tests work on Cygwin and mingw.
68803         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
68804         cannot provide the function.
68805         Reported by Simon Josefsson.
68807 2010-04-03  Bruno Haible  <bruno@clisp.org>
68809         localename: Port to MacOS X 10.6.
68810         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
68811         memory layout of the locales in MacOS X 10.6 as well.
68812         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
68814 2010-04-02  Bruno Haible  <bruno@clisp.org>
68816         gnulib-tool: Ensure that long-running tests are executed last.
68817         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
68818         running tests after the one for the other tests.
68820 2010-04-02  Bruno Haible  <bruno@clisp.org>
68822         gnulib-tool: Ensure the tests in the main directory are executed first.
68823         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
68824         start with the current directory.
68826 2010-04-02  Bruno Haible  <bruno@clisp.org>
68828         Tests for module 'havelib', moved here from GNU gettext.
68829         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
68830         modifications.
68831         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
68832         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
68833         with modifications.
68834         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
68835         modifications.
68836         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
68837         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
68838         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
68839         with modifications.
68840         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
68841         with modifications.
68842         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
68843         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
68844         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
68845         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
68846         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
68847         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
68848         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
68849         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
68850         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
68851         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
68852         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
68853         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
68854         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
68855         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
68856         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
68857         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
68858         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
68859         with modifications.
68860         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
68861         with modifications.
68862         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
68863         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
68864         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
68865         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
68866         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
68867         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
68868         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
68869         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
68870         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
68871         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
68872         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
68873         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
68874         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
68875         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
68876         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
68877         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
68878         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
68879         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
68880         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
68881         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
68882         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
68883         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
68884         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
68885         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
68886         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
68887         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
68888         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
68889         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
68890         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
68891         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
68892         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
68893         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
68894         * tests/havelib/rpathx/rpathx.c: New file, from
68895         gettext/autoconf-lib-link.
68896         * tests/havelib/rpathx/Makefile.am: New file, from
68897         gettext/autoconf-lib-link.
68898         * tests/havelib/rpathx/configure.ac: New file, from
68899         gettext/autoconf-lib-link with modifications.
68900         * tests/havelib/rpathy/rpathy.c: New file, from
68901         gettext/autoconf-lib-link.
68902         * tests/havelib/rpathy/Makefile.am: New file, from
68903         gettext/autoconf-lib-link.
68904         * tests/havelib/rpathy/configure.ac: New file, from
68905         gettext/autoconf-lib-link with modifications.
68906         * tests/havelib/rpathz/rpathz.c: New file, from
68907         gettext/autoconf-lib-link.
68908         * tests/havelib/rpathz/Makefile.am: New file, from
68909         gettext/autoconf-lib-link.
68910         * tests/havelib/rpathz/configure.ac: New file, from
68911         gettext/autoconf-lib-link with modifications.
68912         * tests/havelib/rpathlx/usex.c: New file, from
68913         gettext/autoconf-lib-link.
68914         * tests/havelib/rpathlx/Makefile.am: New file, from
68915         gettext/autoconf-lib-link.
68916         * tests/havelib/rpathlx/configure.ac: New file, from
68917         gettext/autoconf-lib-link with modifications.
68918         * tests/havelib/rpathly/usey.c: New file, from
68919         gettext/autoconf-lib-link.
68920         * tests/havelib/rpathly/Makefile.am: New file, from
68921         gettext/autoconf-lib-link.
68922         * tests/havelib/rpathly/configure.ac: New file, from
68923         gettext/autoconf-lib-link with modifications.
68924         * tests/havelib/rpathlz/usez.c: New file, from
68925         gettext/autoconf-lib-link.
68926         * tests/havelib/rpathlz/Makefile.am: New file, from
68927         gettext/autoconf-lib-link.
68928         * tests/havelib/rpathlz/configure.ac: New file, from
68929         gettext/autoconf-lib-link with modifications.
68930         * tests/havelib/rpathlyx/usey.c: New file, from
68931         gettext/autoconf-lib-link.
68932         * tests/havelib/rpathlyx/Makefile.am: New file, from
68933         gettext/autoconf-lib-link.
68934         * tests/havelib/rpathlyx/configure.ac: New file, from
68935         gettext/autoconf-lib-link with modifications.
68936         * tests/havelib/rpathlzyx/usez.c: New file, from
68937         gettext/autoconf-lib-link.
68938         * tests/havelib/rpathlzyx/Makefile.am: New file, from
68939         gettext/autoconf-lib-link.
68940         * tests/havelib/rpathlzyx/configure.ac: New file, from
68941         gettext/autoconf-lib-link with modifications.
68942         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
68943         with modifications.
68945 2010-04-02  Bruno Haible  <bruno@clisp.org>
68947         gnulib-tool: Create distributed built sources also for the tests.
68948         * gnulib-tool (func_create_testdir): Also generate distributed built
68949         sources in the tests directory.
68951 2010-04-02  Bruno Haible  <bruno@clisp.org>
68953         gnulib-tool: Obey user's environment variables.
68954         * gnulib-tool (func_create_testdir): When creating built sources,
68955         respect the environment variables for autoconf, automake, etc. given by
68956         the user.
68958 2010-04-02  Bruno Haible  <bruno@clisp.org>
68960         gnulib-tool: Provide the value of --m4-base to modules.
68961         * gnulib-tool (func_import, func_create_testdir): Emit a definition
68962         of gl_m4_base.
68964 2010-04-02  Eric Blake  <eblake@redhat.com>
68966         maint.mk: fix some fallout
68967         * NEWS: Document the incompatible change, and its effect on cfg.mk.
68968         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
68970 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
68972         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
68973         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
68974         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
68975         (sc_cast_of_x_alloc_return_value): Likewise.
68976         (sc_cast_of_alloca_return_value): Likewise.
68977         (sc_space_tab): Likewise.
68978         (sc_prohibit_atoi_atof): Likewise.
68979         (sc_prohibit_magic_number_exit): Likewise.
68980         (sc_error_exit_success): Likewise.
68981         (sc_file_system): Likewise.
68982         (sc_prohibit_have_config_h): Likewise.
68983         (sc_require_config_h): Likewise.
68984         (sc_prohibit_HAVE_MBRTOWC): Likewise.
68985         (sc_obsolete_symbols): Likewise.
68986         (sc_changelog): Likewise.
68987         (sc_program_name): Likewise.
68988         (sc_the_the): Likewise.
68989         (sc_trailing_blank): Likewise.
68990         (sc_two_space_separator_in_usage): Likewise.
68991         (sc_useless_cpp_parens): Likewise.
68992         (sc_GPL_version): Likewise.
68993         (sc_GFDL_version): Likewise.
68994         (sc_texinfo_acronym): Likewise.
68995         (sc_prohibit_cvs_keyword): Likewise.
68996         (sc_prohibit_stat_st_blocks): Likewise.
68997         (sc_prohibit_S_IS_definition): Likewise.
68998         (sc_redundant_const): Likewise.
68999         (sc_makefile_TAB_only_indentation): Likewise.
69000         (sc_m4_quote_check): Likewise.
69001         (sc_makefile_path_separator_check): Likewise.
69002         (sc_copyright_check): Likewise.
69003         (sc_Wundef_boolean): Likewise.
69004         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
69006         maint.mk: match 0 or more whitespace-before-function-call '('
69007         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
69008         that have zero or two-and-more spaces between the function name
69009         and the open parenthesis.
69010         (sc_error_message_warn_fatal): Likewise.
69011         (sc_error_message_uppercase): Likewise.
69012         (sc_error_message_period): Likewise.
69014 2010-03-31  Eric Blake  <eblake@redhat.com>
69016         maint.mk: check for [ as well as test
69017         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
69018         Based on a libvirt report by Matthias Bolte.
69020         gnumakefile: don't squelch _version output
69021         * top/GNUmakefile (_version): Create one-shot dependency rather
69022         than using $(shell) when version must be regenerated.
69023         (_autoreconf): Run verbosely, by default.
69025         sys_time: avoid compiler warnings
69026         * lib/sys_time.in.h (includes): Ensure gcc pragma is
69027         unconditional, fixing regression from 2010-03-29.
69028         Reported by Simon Josefsson.
69030 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69032         maint.mk: s/_header_without_use/_sc_header_without_use/
69033         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
69034         (sc_prohibit_assert_without_use): Use the new name.
69035         (sc_prohibit_close_stream_without_use): Likewise.
69036         (sc_prohibit_getopt_without_use): Likewise.
69037         (sc_prohibit_quotearg_without_use): Likewise.
69038         (sc_prohibit_quote_without_use): Likewise.
69039         (sc_prohibit_long_options_without_use): Likewise.
69040         (sc_prohibit_inttostr_without_use): Likewise.
69041         (sc_prohibit_ignore_value_without_use): Likewise.
69042         (sc_prohibit_error_without_use): Likewise.
69043         (sc_prohibit_xalloc_without_use): Likewise.
69044         (sc_prohibit_hash_without_use): Likewise.
69045         (sc_prohibit_hash_pjw_without_use): Likewise.
69046         (sc_prohibit_safe_read_without_use): Likewise.
69047         (sc_prohibit_argmatch_without_use): Likewise.
69048         (sc_prohibit_canonicalize_without_use): Likewise.
69049         (sc_prohibit_root_dev_ino_without_use): Likewise.
69050         (sc_prohibit_openat_without_use): Likewise.
69051         (sc_prohibit_c_ctype_without_use): Likewise.
69052         (sc_prohibit_signal_without_use): Likewise.
69053         (sc_prohibit_intprops_without_use): Likewise.
69055 2010-03-30  Eric Blake  <eblake@redhat.com>
69057         maint: improve module indicators
69058         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
69059         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
69060         columns, and avoid extra macro expansion.
69062         fdopendir: work around FreeBSD bug
69063         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69064         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
69065         * modules/dirent (Makefile.am): Substitute it.
69066         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
69067         declaration.
69068         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
69069         fix.
69070         Reported by Christian Weisgerber <naddy@mips.inka.de>.
69072 2010-03-29  Bruno Haible  <bruno@clisp.org>
69074         Emit #pragma system_header after the inclusion guard, not before.
69075         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
69076         guard that spans the entire file, not before. This enables an
69077         optimization in GCC's preprocessor.
69078         * lib/ctype.in.h: Likewise.
69079         * lib/dirent.in.h: Likewise.
69080         * lib/errno.in.h: Likewise.
69081         * lib/float.in.h: Likewise.
69082         * lib/getopt.in.h: Likewise.
69083         * lib/iconv.in.h: Likewise.
69084         * lib/langinfo.in.h: Likewise.
69085         * lib/locale.in.h: Likewise.
69086         * lib/math.in.h: Likewise.
69087         * lib/netdb.in.h: Likewise.
69088         * lib/netinet_in.in.h: Likewise.
69089         * lib/pty.in.h: Likewise.
69090         * lib/sched.in.h: Likewise.
69091         * lib/se-selinux.in.h: Likewise.
69092         * lib/search.in.h: Likewise.
69093         * lib/spawn.in.h: Likewise.
69094         * lib/stdarg.in.h: Likewise.
69095         * lib/stdint.in.h: Likewise.
69096         * lib/string.in.h: Likewise.
69097         * lib/strings.in.h: Likewise.
69098         * lib/sys_file.in.h: Likewise.
69099         * lib/sys_ioctl.in.h: Likewise.
69100         * lib/sys_time.in.h: Likewise.
69101         * lib/sys_times.in.h: Likewise.
69102         * lib/sys_utsname.in.h: Likewise.
69103         * lib/sys_wait.in.h: Likewise.
69104         * lib/sysexits.in.h: Likewise.
69105         * lib/wctype.in.h: Likewise.
69107 2010-03-28  James Youngman  <jay@gnu.org>
69109         save-cwd: don't leak a file descriptor when the caller execs.
69110         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
69111         saved file descriptor.
69112         * modules/save-cwd (Depends-on): Depend on cloexec.
69114 2010-03-29  Bruno Haible  <bruno@clisp.org>
69116         Remove vestiges of fts-lgpl module.
69117         * lib/fts_.h: Assume GNULIB_FTS is 1.
69118         * lib/fts.c: Likewise.
69119         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69121 2010-03-28  Bruno Haible  <bruno@clisp.org>
69123         Fix definition of tests witness macro.
69124         * gnulib-tool (func_import): Fix definition of witness macro.
69126 2010-03-28  Bruno Haible  <bruno@clisp.org>
69128         Fix ioctl's protoype on glibc systems.
69129         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
69130         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
69131         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
69132         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
69133         signature. If not, arrange to replace the ioctl function.
69134         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
69135         REPLACE_IOCTL.
69136         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
69137         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
69138         Reported by Ludovic Courtès <ludo@gnu.org>.
69140 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
69142         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
69143         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
69144         made it so grep -r --include=GLOB* ... did not work.
69146 2010-03-26  Jim Meyering  <meyering@redhat.com>
69147             Eric Blake  <eblake@redhat.com>
69149         maint.mk: prohibit use of test's -o and -a operators
69150         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
69152 2010-03-28  Bruno Haible  <bruno@clisp.org>
69154         Remove unused GNULIB_XYZ macro definitions.
69155         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
69156         invocation.
69158 2010-03-28  Bruno Haible  <bruno@clisp.org>
69160         Mark privileged tests modules.
69161         * modules/idpriv-drop-tests (Status): New section.
69162         * modules/idpriv-droptemp-tests (Status): New section.
69164 2010-03-28  Bruno Haible  <bruno@clisp.org>
69166         Split C++ tests into separate tests modules.
69167         * modules/dirent-c++-tests: New file, extracted from
69168         modules/dirent-tests.
69169         * modules/dirent-tests: Depend on it.
69170         * modules/fcntl-h-c++-tests: New file, extracted from
69171         modules/fcntl-h-tests.
69172         * modules/fcntl-h-tests: Depend on it.
69173         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
69174         * modules/glob-tests: Depend on it.
69175         * modules/iconv-h-c++-tests: New file, extracted from
69176         modules/iconv-h-tests.
69177         * modules/iconv-h-tests: Depend on it.
69178         * modules/langinfo-c++-tests: New file, extracted from
69179         modules/langinfo-tests.
69180         * modules/langinfo-tests: Depend on it.
69181         * modules/locale-c++-tests: New file, extracted from
69182         modules/locale-tests.
69183         * modules/locale-tests: Depend on it.
69184         * modules/math-c++-tests: New file, extracted from modules/math-tests.
69185         * modules/math-tests: Depend on it.
69186         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
69187         * modules/pty-tests: Depend on it.
69188         * modules/search-c++-tests: New file, extracted from
69189         modules/search-tests.
69190         * modules/search-tests: Depend on it.
69191         * modules/signal-c++-tests: New file, extracted from
69192         modules/signal-tests.
69193         * modules/signal-tests: Depend on it.
69194         * modules/spawn-c++-tests: New file, extracted from
69195         modules/spawn-tests.
69196         * modules/spawn-tests: Depend on it.
69197         * modules/stdio-c++-tests: New file, extracted from
69198         modules/stdio-tests.
69199         * modules/stdio-tests: Depend on it.
69200         * modules/stdlib-c++-tests: New file, extracted from
69201         modules/stdlib-tests.
69202         * modules/stdlib-tests: Depend on it.
69203         * modules/string-c++-tests: New file, extracted from
69204         modules/string-tests.
69205         * modules/string-tests: Depend on it.
69206         * modules/sys_ioctl-c++-tests: New file, extracted from
69207         modules/sys_ioctl-tests.
69208         * modules/sys_ioctl-tests: Depend on it.
69209         * modules/sys_select-c++-tests: New file, extracted from
69210         modules/sys_select-tests.
69211         * modules/sys_select-tests: Depend on it.
69212         * modules/sys_socket-c++-tests: New file, extracted from
69213         modules/sys_socket-tests.
69214         * modules/sys_socket-tests: Depend on it.
69215         * modules/sys_stat-c++-tests: New file, extracted from
69216         modules/sys_stat-tests.
69217         * modules/sys_stat-tests: Depend on it.
69218         * modules/sys_time-c++-tests: New file, extracted from
69219         modules/sys_time-tests.
69220         * modules/sys_time-tests: Depend on it.
69221         * modules/time-c++-tests: New file, extracted from modules/time-tests.
69222         * modules/time-tests: Depend on it.
69223         * modules/unistd-c++-tests: New file, extracted from
69224         modules/unistd-tests.
69225         * modules/unistd-tests: Depend on it.
69226         * modules/wchar-c++-tests: New file, extracted from
69227         modules/wchar-tests.
69228         * modules/wchar-tests: Depend on it.
69229         * modules/wctype-c++-tests: New file, extracted from
69230         modules/wctype-tests.
69231         * modules/wctype-tests: Depend on it.
69232         Reported by Simon Josefsson.
69234 2010-03-28  Bruno Haible  <bruno@clisp.org>
69236         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
69237         * gnulib-tool (func_exists_module): New function, extracted from
69238         func_verify_module.
69239         (func_verify_module): Use it.
69240         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
69241         'foo' only if 'foo' exists.
69242         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
69243         module.
69245 2010-03-28  Bruno Haible  <bruno@clisp.org>
69247         gnulib-tool: Add support for special categories of tests.
69248         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
69249         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
69250         (func_usage): Document them.
69251         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
69252         inc_unportable_tests, inc_all_tests): New variables.
69253         (func_acceptable): Consider these variables.
69254         (func_modules_transitive_closure): Make it work when the 'Status' field
69255         consists of multiple words.
69256         (func_import): Store and restore the values of inc_cxx_tests,
69257         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
69258         inc_all_tests in gnulib-comp.m4.
69259         (func_create_testdir): Set inc_all_tests to true.
69260         * doc/gnulib.texi (Extra tests modules): New section.
69261         Suggested by Jim Meyering.
69263 2010-03-28  Bruno Haible  <bruno@clisp.org>
69265         ansi-c++-opt: Allow turning off the C++ build by default.
69266         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
69267         gl_CXX_CHOICE_DEFAULT_NO is defined.
69268         Requested by Eric Blake.
69270 2010-03-28  Bruno Haible  <bruno@clisp.org>
69272         unistd: Avoid #define replacements in C++ mode.
69273         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
69274         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
69275         setsockopt, shutdown, select): In C++, attach a warning to the function
69276         if possible, rather than #defining the symbol to a dysfunctional alias.
69277         Reported by John W. Eaton <jwe@gnu.org>.
69279 2010-03-28  Bruno Haible  <bruno@clisp.org>
69281         Fix link errors on mingw.
69282         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
69283         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
69284         $(LIBSOCKET).
69285         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
69286         $(LIBSOCKET).
69288 2010-03-28  Bruno Haible  <bruno@clisp.org>
69289             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69291         lib-ignore: Determine different options for different compilers.
69292         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
69293         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
69294         Add comments.
69295         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
69296         * NEWS: Mention the change.
69298 2010-03-27  Bruno Haible  <bruno@clisp.org>
69300         Remove unused GNULIB_XYZ macro definitions.
69301         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69302         * modules/fseek (configure.ac): Likewise.
69303         * modules/ioctl (configure.ac): Likewise.
69304         * modules/open (configure.ac): Likewise.
69305         * modules/stdlib-safer (configure.ac): Likewise.
69307 2010-03-27  Bruno Haible  <bruno@clisp.org>
69309         Add a remark about certain modules.
69310         * modules/malloc (Comment): New section.
69311         * modules/realloc (Comment): Likewise.
69312         * modules/sigpipe (Comment): Likewise.
69314 2010-03-27  Bruno Haible  <bruno@clisp.org>
69316         Resolve conflict between the two kinds of module indicators.
69317         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
69318         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
69319         * modules/canonicalize (configure.ac): Invoke
69320         gl_MODULE_INDICATOR_FOR_TESTS.
69321         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
69322         GNULIB_XYZ.
69323         * tests/test-dirent-c++.cc: Likewise.
69324         * tests/test-dirent-safer.c: Likewise.
69325         * tests/test-dup2.c: Likewise.
69326         * tests/test-fchdir.c: Likewise.
69327         * tests/test-fcntl-h-c++.cc: Likewise.
69328         * tests/test-getopt.c: Likewise.
69329         * tests/test-getopt.h: Likewise.
69330         * tests/test-langinfo-c++.cc: Likewise.
69331         * tests/test-locale-c++.cc: Likewise.
69332         * tests/test-math-c++.cc: Likewise.
69333         * tests/test-pty-c++.cc: Likewise.
69334         * tests/test-search-c++.cc: Likewise.
69335         * tests/test-signal-c++.cc: Likewise.
69336         * tests/test-spawn-c++.cc: Likewise.
69337         * tests/test-stdio-c++.cc: Likewise.
69338         * tests/test-stdlib-c++.cc: Likewise.
69339         * tests/test-string-c++.cc: Likewise.
69340         * tests/test-sys_ioctl-c++.cc: Likewise.
69341         * tests/test-sys_select-c++.cc: Likewise.
69342         * tests/test-sys_socket-c++.cc: Likewise.
69343         * tests/test-sys_stat-c++.cc: Likewise.
69344         * tests/test-sys_time-c++.cc: Likewise.
69345         * tests/test-time-c++.cc: Likewise.
69346         * tests/test-unistd-c++.cc: Likewise.
69347         * tests/test-wchar-c++.cc: Likewise.
69348         * tests/uninorm/test-u8-nfc.c: Likewise.
69349         * tests/uninorm/test-u8-nfd.c: Likewise.
69350         * tests/uninorm/test-u8-nfkc.c: Likewise.
69351         * tests/uninorm/test-u8-nfkd.c: Likewise.
69352         * tests/uninorm/test-u16-nfc.c: Likewise.
69353         * tests/uninorm/test-u16-nfd.c: Likewise.
69354         * tests/uninorm/test-u16-nfkc.c: Likewise.
69355         * tests/uninorm/test-u16-nfkd.c: Likewise.
69356         * tests/uninorm/test-u32-nfc.c: Likewise.
69357         * tests/uninorm/test-u32-nfc-big.c: Likewise.
69358         * tests/uninorm/test-u32-nfd.c: Likewise.
69359         * tests/uninorm/test-u32-nfd-big.c: Likewise.
69360         * tests/uninorm/test-u32-nfkc.c: Likewise.
69361         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
69362         * tests/uninorm/test-u32-nfkd.c: Likewise.
69363         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
69364         * tests/uninorm/test-u32-normalize-big.c: Likewise.
69366 2010-03-27  Bruno Haible  <bruno@clisp.org>
69368         Distinguish two kinds of module indicators.
69369         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
69370         gl_MODULE_INDICATOR.
69371         (gl_MODULE_INDICATOR): New macro.
69372         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
69373         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
69374         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69375         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69376         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69377         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69378         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69379         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69380         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69381         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69382         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69383         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69385         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69386         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69387         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69388         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69389         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69390         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69391         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69392         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69393         * modules/cloexec (configure.ac): Likewise.
69394         * modules/getopt-gnu (configure.ac): Likewise.
69395         * modules/uninorm/u8-normalize (configure.ac): Likewise.
69396         * modules/uninorm/u16-normalize (configure.ac): Likewise.
69397         * modules/uninorm/u32-normalize (configure.ac): Likewise.
69398         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
69400 2010-03-27  Bruno Haible  <bruno@clisp.org>
69402         New module description field 'Comment'.
69403         * gnulib-tool: New option --extract-comment.
69404         (func_usage): Document it.
69405         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
69406         (func_get_comment): New function.
69407         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
69409 2010-03-27  Bruno Haible  <bruno@clisp.org>
69411         Addendum to 2010-02-07 commit.
69412         * gnulib-tool (func_usage): Document --extract-applicability option.
69414 2010-03-27  Bruno Haible  <bruno@clisp.org>
69416         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
69417         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
69418         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
69419         rather than link errors.
69421 2010-03-27  Bruno Haible  <bruno@clisp.org>
69423         Avoid side effects from tests-related modules on the compilation of lib.
69424         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
69425         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
69426         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
69427         parameter. Emit into AM_CPPFLAGS a definition of the designated C
69428         macro.
69429         (func_import): Define a witness macro. Assign it a value that depends
69430         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
69431         tests-related modules.
69432         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
69433         Reported by Jim Meyering.
69435 2010-03-27  Bruno Haible  <bruno@clisp.org>
69437         Factorize common .m4 code.
69438         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
69439         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
69440         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
69441         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
69442         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69443         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
69444         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
69445         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69446         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69447         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69448         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
69449         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69450         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69451         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69452         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69453         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
69454         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69455         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69456         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69457         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
69458         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
69459         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69460         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69461         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69462         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69463         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69464         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
69465         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
69466         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
69467         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69468         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69469         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69471 2010-03-27  Bruno Haible  <bruno@clisp.org>
69473         Fix a compilation error on Cygwin with g++ >= 4.3.
69474         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
69475         if it is undefined or if we alias it to chmod.
69476         (lstat): Don't warn about the use of this function if it is undefined
69477         or if we alias it to stat.
69478         Reported by Simon Josefsson.
69480 2010-03-27  Bruno Haible  <bruno@clisp.org>
69482         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
69483         * modules/getlogin (configure.ac): Update.
69485         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
69486         * modules/getlogin_r (configure.ac): Update.
69488         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
69489         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
69490         * modules/inet_ntop (configure.ac): Update.
69492         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
69493         * modules/inet_pton (configure.ac): Update.
69495         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
69496         * modules/mbslen (configure.ac): Update.
69498         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
69499         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
69500         * modules/forkpty (configure.ac): Update.
69501         * modules/openpty (configure.ac): Update.
69503 2010-03-26  Simon Josefsson  <simon@josefsson.org>
69505         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
69506         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
69508 2010-03-25  Eric Blake  <eblake@redhat.com>
69510         maint: use pragma consistently across replacement headers
69511         * lib/ctype.in.h (system_header): Hoist for consistent placement.
69512         * lib/dirent.in.h (system_header): Likewise.
69513         * lib/errno.in.h (system_header): Likewise.
69514         * lib/float.in.h (system_header): Likewise.
69515         * lib/getopt.in.h (system_header): Likewise.
69516         * lib/iconv.in.h (system_header): Likewise.
69517         * lib/inttypes.in.h (system_header): Likewise.
69518         * lib/langinfo.in.h (system_header): Likewise.
69519         * lib/locale.in.h (system_header): Likewise.
69520         * lib/math.in.h (system_header): Likewise.
69521         * lib/netdb.in.h (system_header): Likewise.
69522         * lib/netinet_in.in.h (system_header): Likewise.
69523         * lib/pty.in.h (system_header): Likewise.
69524         * lib/sched.in.h (system_header): Likewise.
69525         * lib/se-selinux.in.h (system_header): Likewise.
69526         * lib/search.in.h (system_header): Likewise.
69527         * lib/spawn.in.h (system_header): Likewise.
69528         * lib/stdarg.in.h (system_header): Likewise.
69529         * lib/stdint.in.h (system_header): Likewise.
69530         * lib/string.in.h (system_header): Likewise.
69531         * lib/strings.in.h (system_header): Likewise.
69532         * lib/sys_file.in.h (system_header): Likewise.
69533         * lib/sys_ioctl.in.h (system_header): Likewise.
69534         * lib/sys_socket.in.h (system_header): Likewise.
69535         * lib/sys_times.in.h (system_header): Likewise.
69536         * lib/sys_utsname.in.h (system_header): Likewise.
69537         * lib/sys_wait.in.h (system_header): Likewise.
69538         * lib/sysexits.in.h (system_header): Likewise.
69539         * lib/unistd.in.h (system_header): Likewise.
69540         * lib/wctype.in.h (system_header): Likewise.
69542         arpa/inet: fix mingw compilation warning
69543         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
69544         Reported by Matthew Bolte.
69546 2010-03-25  Bruno Haible  <bruno@clisp.org>
69548         Avoid collision between gnulib wrapper and libintl wrapper.
69549         * lib/printf.c (printf): Don't define if a printf wrapper is already
69550         defined in intl/printf.c.
69551         Reported by Michel Boaventura <michel@michelboaventura.com>.
69553 2010-03-25  Bruno Haible  <bruno@clisp.org>
69555         Use ANSI C.
69556         * lib/readutmp.h (getutent): Provide ANSI C prototype.
69558 2010-03-25  Bruno Haible  <bruno@clisp.org>
69560         Minor formatting changes.
69561         * lib/acosl.c: Insert space before function argument list.
69562         * lib/argz.c: Likewise.
69563         * lib/asinl.c: Likewise.
69564         * lib/expl.c: Likewise.
69565         * lib/gen-uni-tables.c: Likewise.
69566         * lib/gettext.h: Likewise.
69567         * lib/glthread/lock.h: Likewise.
69568         * lib/tanl.c: Likewise.
69569         * lib/uniname/uniname.c: Likewise.
69570         * tests/test-idpriv-drop.c: Likewise.
69571         * tests/test-idpriv-droptemp.c: Likewise.
69572         * tests/test-lock.c: Likewise.
69573         * tests/test-tls.c: Likewise.
69574         * lib/argp-help.c: Insert space before function-like macro argument
69575         list.
69576         * lib/memcmp.c: Likewise.
69577         * tests/test-base64.c: Likewise.
69578         * lib/localename.c: Insert space before sizeof's argument list.
69579         * lib/safe-alloc.h: Likewise.
69580         * lib/file-set.h: Insert space before macro argument list.
69581         * tests/test-argp.c: Likewise.
69582         * lib/argp-namefrob.h: Insert space before function parameter list.
69583         * lib/getaddrinfo.c: Likewise.
69584         * lib/netdb.in.h: Likewise.
69585         * lib/parse-duration.h: Likewise.
69586         * lib/parse-duration.c: Likewise.
69587         * lib/poll.c: Likewise.
69588         * lib/select.c: Likewise.
69589         * lib/trim.h: Likewise.
69590         * tests/test-usleep.c: Likewise.
69591         * lib/ldexpl.c: Insert space before function parameter list and before
69592         function argument list.
69593         * lib/logl.c: Likewise.
69594         * lib/sqrtl.c: Likewise.
69595         * lib/trim.c: Likewise.
69596         * lib/cosl.c: Use GNU style indentation. Insert space before function
69597         argument list.
69598         * lib/sinl.c: Likewise.
69599         * lib/tsearch.c: Insert space after 'for'.
69600         Reported by Jim Meyering.
69602 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
69604         * maint.mk (sc_Wundef_boolean): Check for the presence of the
69605         config header before grepping, as it's not present before
69606         autoreconf/configure are run.  Reported by Simon Josefsson.
69608 2010-03-23  Bruno Haible  <bruno@clisp.org>
69610         pt_chown: Make it work with automake < 1.11.
69611         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
69612         Reported by Simon Josefsson.
69614 2010-03-23  Bruno Haible  <bruno@clisp.org>
69616         pt_chown: Don't depend on GPLed modules.
69617         * lib/pt_chown.c: Don't include idpriv.h.
69618         (main): Don't drop privileges.
69619         * modules/pt_chown (Depends-on): Remove idpriv-drop.
69620         Reported by Simon Josefsson.
69622 2010-03-24  Simon Josefsson  <simon@josefsson.org>
69624         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
69625         suggestions from karl@freefriends.org (Karl Berry).
69627 2010-03-22  Eric Blake  <eblake@redhat.com>
69629         gethostname: further tweaks
69630         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
69631         are overriding gethostname.
69632         Suggested by Bruno Haible.
69634 2010-03-21  Bruno Haible  <bruno@clisp.org>
69636         Fix comments.
69637         * lib/forkpty.c (rpl_forkpty): Fix comment.
69638         * lib/openpty.c (rpl_openpty): Likewise.
69639         Reported by Eric Blake.
69641 2010-03-22  Eric Blake  <eblake@redhat.com>
69643         gethostname: fix build on mingw
69644         * lib/unistd.in.h (includes): Work around fact that mingw
69645         <winsock2.h> re-includes <unistd.h>, by avoiding any
69646         redeclarations if we are being included by <winsock2.h>.
69647         Reported by Matthias Bolte.
69649 2010-03-21  Bruno Haible  <bruno@clisp.org>
69651         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69652         * lib/forkpty.c (forkpty): New replacement function, from glibc with
69653         modifications.
69654         * lib/pty.in.h (forkpty): Update declaration. Add comments.
69655         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
69656         provide the replacement.
69657         * modules/forkpty (Depends-on): Add openpty, login_tty.
69658         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
69659         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
69660         * doc/glibc-functions/forkpty.texi: More supported platforms.
69661         * config/srclist.txt: Add forkpty.c (commented).
69663 2010-03-21  Bruno Haible  <bruno@clisp.org>
69665         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
69666         (Makefile.am): Verify that PTY_LIB is defined.
69668         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
69670 2010-03-21  Bruno Haible  <bruno@clisp.org>
69672         Tests for module 'login_tty'.
69673         * modules/login_tty-tests: New file.
69674         * tests/test-login_tty.c: New file.
69676         New module 'login_tty'.
69677         * lib/login_tty.c: New file.
69678         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
69679         * modules/login_tty: New file.
69680         * doc/glibc-functions/login_tty.texi: Mention the new module.
69682 2010-03-21  Bruno Haible  <bruno@clisp.org>
69684         login_tty: Documentation.
69685         * doc/glibc-functions/login_tty.texi: New file.
69686         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
69688 2010-03-21  Bruno Haible  <bruno@clisp.org>
69690         pty: Consistent macro naming.
69691         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
69692         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
69693         * modules/pty (configure.ac): Update.
69695 2010-03-21  Bruno Haible  <bruno@clisp.org>
69697         Tests for openpty: Make stricter.
69698         * tests/test-openpty.c (main): Add test of canonical processing and
69699         erase.
69700         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
69702         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69703         * lib/openpty.c (openpty): New replacement function.
69704         * lib/pty.in.h: Include <termios.h>.
69705         (openpty): Update declaration. Add comments.
69706         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
69707         is not declared, arrange to provide the replacement. Check for _getpty
69708         and posix_openpt.
69709         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
69710         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
69711         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
69712         * modules/pty-tests (test_pty_c___LDADD): New variable.
69713         * doc/glibc-functions/openpty.texi: More supported platforms.
69715 2010-03-21  Bruno Haible  <bruno@clisp.org>
69717         setenv: Tweaks.
69718         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
69719         the test program.
69720         * doc/posix-functions/setenv.texi: Update platforms list.
69722 2010-03-21  Bruno Haible  <bruno@clisp.org>
69724         New module 'unlockpt'.
69725         * lib/unlockpt.c: New file, from glibc with modifications.
69726         * m4/unlockpt.m4: New file.
69727         * modules/unlockpt: New file.
69728         * lib/stdlib.in.h (unlockpt): New declaration.
69729         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
69730         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
69731         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
69732         HAVE_UNLOCKPT.
69733         * doc/posix-functions/unlockpt.texi: Mention the new module.
69734         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
69735         * config/srclist.txt: Add unlockpt.c (commented).
69737 2010-03-21  Jim Meyering  <meyering@redhat.com>
69739         maint.mk: prohibit inclusion of "intprops.h" without use
69740         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
69742 2010-03-21  Bruno Haible  <bruno@clisp.org>
69744         New module 'grantpt'.
69745         * lib/grantpt.c: New file, from glibc with modifications.
69746         * m4/grantpt.m4: New file.
69747         * modules/grantpt: New file.
69748         * lib/stdlib.in.h (grantpt): New declaration.
69749         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
69750         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
69751         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
69752         HAVE_GRANTPT.
69753         * doc/posix-functions/grantpt.texi: Mention the new module.
69754         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
69755         * config/srclist.txt: Add grantpt.c (commented).
69757 2010-03-21  Bruno Haible  <bruno@clisp.org>
69759         New module 'pt_chown'.
69760         * lib/pt_chown.c: New file, from glibc with modifications.
69761         * lib/pty-private.h: New file, from glibc with modifications.
69762         * modules/pt_chown: New file.
69763         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
69765 2010-03-21  Bruno Haible  <bruno@clisp.org>
69767         Tests for module 'ptsname'.
69768         * modules/ptsname-tests: New file.
69769         * tests/test-ptsname.c: New file.
69771         New module 'ptsname'.
69772         * lib/ptsname.c: New file, from glibc with modifications.
69773         * m4/ptsname.m4: New file.
69774         * modules/ptsname: New file.
69775         * lib/stdlib.in.h (ptsname): New declaration.
69776         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
69777         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
69778         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
69779         HAVE_PTSNAME.
69780         * doc/posix-functions/ptsname.texi: Mention the new module.
69781         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
69782         * config/srclist.txt: Add ptsname.c (commented).
69784 2010-03-21  Bruno Haible  <bruno@clisp.org>
69786         Tests for module 'ttyname_r'.
69787         * modules/ttyname_r-tests: New file.
69788         * tests/test-ttyname_r.c: New file.
69790         New module 'ttyname_r'.
69791         * lib/ttyname_r.c: New file.
69792         * m4/ttyname_r.m4: New file.
69793         * modules/ttyname_r: New file.
69794         * lib/unistd.in.h (ttyname_r): New declaration.
69795         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
69796         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
69797         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
69798         HAVE_TTYNAME_R.
69799         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
69800         * doc/posix-functions/ttyname_r.texi: Mention the new module.
69802 2010-03-20  Bruno Haible  <bruno@clisp.org>
69804         signal: Undefine macro definitions in C++ mode.
69805         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
69806         sigfillset): Undefine macro definitions from the system header in C++
69807         mode.
69808         Reported by John W. Eaton <jwe@gnu.org>.
69810 2010-03-20  Bruno Haible  <bruno@clisp.org>
69812         Ensure no #include statements inside extern "C" { ... }.
69813         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
69814         contain #include statements.
69815         * lib/time.in.h: Likewise.
69817 2010-03-20  Bruno Haible  <bruno@clisp.org>
69819         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
69820         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
69821         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
69822         Reported by John W. Eaton <jwe@gnu.org>.
69824 2010-03-20  Bruno Haible  <bruno@clisp.org>
69826         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
69827         Reported by Jim Meyering.
69829 2010-03-20  Bruno Haible  <bruno@clisp.org>
69831         pipe: Set errno upon failure.
69832         * lib/pipe.h: Specify that when -1 is returned, errno is set.
69833         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
69834         errno value in error message.
69836 2010-03-20  Bruno Haible  <bruno@clisp.org>
69837             Jim Meyering  <meyering@redhat.com>
69839         lchown: Avoid "unused variable" warning.
69840         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
69842 2010-03-20  Bruno Haible  <bruno@clisp.org>
69844         Work around unlink() bug on MacOS X 10.5.6.
69845         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
69846         attempting to unlink a parent directory.
69847         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
69848         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
69849         activate for the replacement function.
69850         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
69852 2010-03-20  Bruno Haible  <bruno@clisp.org>
69854         Fix link errors on Solaris 8.
69855         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
69856         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
69858 2010-03-19  Jim Meyering  <meyering@redhat.com>
69860         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
69861         The _LIBC implementation of build_range_exp correctly honors the
69862         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
69863         However, the non-_LIBC implementation would ignore that syntax-bit
69864         flag and return REG_ERANGE unconditionally.
69865         This change makes it honor that flag.
69866         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
69867         Make two pointer parameters "const".
69868         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
69869         (parse_bracket_exp): Update caller.
69871         regex.m4: correct the reversed range endpoint ([b-a]) test
69872         * m4/regex.m4: When requiring that [b-a] evoke failure,
69873         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
69874         test pass once again for x86-based systems.
69876 2010-03-19  Bruno Haible  <bruno@clisp.org>
69878         scandir: Fix link error on Solaris 8.
69879         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
69880         macros.
69882 2010-03-19  Bruno Haible  <bruno@clisp.org>
69884         getusershell: Fix documentation.
69885         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
69886         module.
69887         * doc/glibc-functions/setusershell.texi: Likewise.
69889         getusershell: Provide declaration, missing on Solaris 9.
69890         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
69891         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
69892         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
69893         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
69894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69895         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
69896         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
69897         HAVE_GETUSERSHELL.
69898         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
69900 2010-03-19  Bruno Haible  <bruno@clisp.org>
69902         wctype: Provide iswblank function.
69903         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
69904         exists and is fine.
69905         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
69906         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
69907         * tests/test-wctype.c (main): Re-enable the iswblank tests.
69908         * doc/posix-functions/iswblank.texi: Update.
69910 2010-03-19  Bruno Haible  <bruno@clisp.org>
69912         Tests of module 'pty' in C++ mode.
69913         * modules/pty-tests: New file.
69914         * tests/test-pty-c++.cc: New file.
69915         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
69917 2010-03-19  Eric Blake  <eblake@redhat.com>
69919         logb: fix documentation
69920         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
69921         1.5 declaration bug.
69923         forkpty, openpty: prefer glibc's const-safe prototype
69924         * lib/forkpty.c (rpl_forkpty): New file.
69925         * lib/openpty.c (rpl_openpty): Likewise.
69926         * modules/forkpty (Files): Distribute it.
69927         * modules/openpty (Files): Likewise.
69928         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
69929         check...
69930         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
69931         replacement for non-const BSD signature.
69932         * modules/pty (Makefile.am): Substitute witnesses.
69933         * lib/pty.in.h (forkpty, openpty): Declare replacements.
69934         * tests/test-forkpty.c: Update signature check.
69935         * tests/test-openpty.c: Likewise.
69936         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
69937         * doc/glibc-functions/openpty.texi (openpty): Likewise.
69939         forkpty, openpty: split functions into new modules
69940         * modules/pty (Makefile.am): Substitute new witnesses.
69941         (Libraries): Move library detection...
69942         * modules/forkpty: ...into new module.
69943         * modules/openpty: Another new module.
69944         * modules/pty-tests: Rename and split...
69945         * modules/forkpty-tests: ...to this...
69946         * modules/openpty-tests: ...and this.
69947         * tests/test-pty.c: Rename and split...
69948         * tests/test-forkpty.c: ...to this...
69949         * tests/test-openpty.c: ...and this.
69950         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
69951         (gl_PTY): Split library searching...
69952         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
69953         (gl_FORKPTY, gl_OPENPTY): New macros.
69954         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
69955         * NEWS: Mention the split.
69956         * MODULES.html.sh (Misc): Document the modules.
69957         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
69958         * doc/glibc-functions/openpty.texi (openpty): Likewise.
69960         pty: improve replacement header
69961         * lib/pty.in.h: New file.
69962         * modules/pty (Files): Ship it.
69963         (Makefile.am): Always build replacement.
69964         * m4/pty.m4: Rename...
69965         * m4/pty_h.m4: ...to this.
69966         (gl_PTY): Modernize setting of witness macros; update check of
69967         forkpty to take proper advantage of cache.
69968         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
69970         getopt: avoid compiler warning
69971         * lib/getopt.c (attribute_hidden): Remove unused macro.
69973 2010-03-18  Bruno Haible  <bruno@clisp.org>
69975         Fix link errors on Solaris 8.
69976         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
69977         * modules/search-tests (test_search_c___LDADD): Likewise.
69978         * modules/signal-tests (test_signal_c___LDADD): Likewise.
69979         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
69980         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
69981         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
69982         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
69983         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
69984         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
69986 2010-03-18  Bruno Haible  <bruno@clisp.org>
69988         Fix bug introduced on 2010-03-14.
69989         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
69990         (gl_SPAWN_H): Require it.
69991         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
69992         Reported by Simon Josefsson.
69994 2010-03-18  Bruno Haible  <bruno@clisp.org>
69996         Fix typo introduced on 2009-12-31.
69997         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
69998         posix_spawn_file_actions_adddup2.
70000 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
70001         and Eric Blake  <eblake@redhat.com>
70003         test-vc-list-files-git: make more robust
70004         * tests/test-vc-list-files-git.sh: Unset problematic environment
70005         variables.  Chain commands together.
70007 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
70009         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
70010         `AC_CHECK_DECL' invocation.
70012 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
70014         * lib/inttostr.c (inttostr): Make sure the invocation of verify
70015         appears before executable statements. Suggested by Petr Sumbera
70016         <Petr.Sumbera@Sun.COM>.
70018 2010-03-14  Bruno Haible  <bruno@clisp.org>
70020         * tests/test-flock.c (test_exclusive): Comment out a test that causes
70021         portability problems. Instead use a simpler test.
70022         (main): Check that invalid arguments are rejected only on Linux.
70024 2010-03-14  Bruno Haible  <bruno@clisp.org>
70026         Fix bug introduced on 2009-12-31.
70027         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70028         gl_PREREQ_SYS_H_WINSOCK2 always.
70029         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
70030         SYS_SOCKET_H variable.
70031         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
70032         Update comments.
70033         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
70034         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70035         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70036         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
70037         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
70039 2010-03-14  Bruno Haible  <bruno@clisp.org>
70041         Fix values returned by sinl, cosl.
70042         * lib/trigl.h: Add specification comments.
70043         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
70044         that combines the values from the precomputed table with the values of
70045         the Chebyshev polynomials.
70047 2010-03-14  Bruno Haible  <bruno@clisp.org>
70049         Fix compilation error when modules 'posix_spawn[p]' are not used.
70050         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
70051         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
70053 2010-03-14  Bruno Haible  <bruno@clisp.org>
70055         Fix compilation error on mingw when module 'time_r' is not used.
70056         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
70057         is 1.
70058         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
70059         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70060         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
70061         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
70063 2010-03-14  Bruno Haible  <bruno@clisp.org>
70065         Fix compilation error with Sun C.
70066         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
70067         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
70068         instead of GCC specific ULONG_LONG_MAX.
70069         * lib/xstrtoll.c: Likewise.
70070         * lib/xstrtoull.c: Likewise.
70072 2010-03-13  Bruno Haible  <bruno@clisp.org>
70074         Allow the user to disable C++ code and tests.
70075         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
70076         (gl_PROG_ANSI_CXX): Require it.
70078 2010-03-13  Bruno Haible  <bruno@clisp.org>
70080         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
70081         cases.
70083 2010-03-13  Bruno Haible  <bruno@clisp.org>
70085         Test that gnulib does not break the standard C++ headers.
70086         * tests/test-locale-c++2.cc: New file.
70087         * modules/locale-tests (Files): Add it.
70088         (Makefile.am): Compile it for test-locale-c++.
70089         * tests/test-math-c++2.cc: New file.
70090         * modules/math-tests (Files): Add it.
70091         (Makefile.am): Compile it for test-math-c++.
70092         * tests/test-signal-c++2.cc: New file.
70093         * modules/signal-tests (Files): Add it.
70094         (Makefile.am): Compile it for test-signal-c++.
70095         * tests/test-stdio-c++2.cc: New file.
70096         * modules/stdio-tests (Files): Add it.
70097         (Makefile.am): Compile it for test-stdio-c++.
70098         * tests/test-stdlib-c++2.cc: New file.
70099         * modules/stdlib-tests (Files): Add it.
70100         (Makefile.am): Compile it for test-stdlib-c++.
70101         * tests/test-string-c++2.cc: New file.
70102         * modules/string-tests (Files): Add it.
70103         (Makefile.am): Compile it for test-string-c++.
70104         * tests/test-time-c++2.cc: New file.
70105         * modules/time-tests (Files): Add it.
70106         (Makefile.am): Compile it for test-time-c++.
70107         Reported by John W. Eaton <jwe@gnu.org>.
70109 2010-03-13  Bruno Haible  <bruno@clisp.org>
70111         * gnulib-tool (func_usage): Clarify which options are available for
70112         --create-testdir and --create-megatestdir.
70114 2010-03-13  Bruno Haible  <bruno@clisp.org>
70116         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
70117         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
70118         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
70119         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
70120         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
70121         when appropriate.
70122         Reported by Jim Meyering.
70124 2010-03-12  Simon Josefsson  <simon@josefsson.org>
70126         * gnulib-tool (func_import): Explain origin of code.
70128 2010-03-12  Bruno Haible  <bruno@clisp.org>
70130         Fix problem with automake's definition of CXXLINK.
70131         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
70132         Reported by Simon Josefsson and Ludovic Courtès.
70134 2010-03-12  Bruno Haible  <bruno@clisp.org>
70136         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
70137         stable releases.
70139 2010-03-11  Bruno Haible  <bruno@clisp.org>
70141         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
70142         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
70143         whether the system provides one variant or multiple variants of the
70144         function.
70145         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
70146         C++ compilers.
70147         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
70148         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
70149         Reported by Jim Meyering.
70151 2010-03-09  Simon Josefsson  <simon@josefsson.org>
70153         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
70155 2010-03-08  Bruno Haible  <bruno@clisp.org>
70157         gnulib-tool: Add support for --libtool in --create-testdir.
70158         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
70159         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
70161 2010-03-08  Eric Blake  <eblake@redhat.com>
70163         gnulib-tool.texi: mention possibility of git submodule
70164         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
70165         submodules.
70166         * doc/.gitignore: Ignore another generated file.
70168 2010-03-08  Karl Berry  <karl@gnu.org>
70170         * doc/gnulib-tool.texi (VCS Issues): Mention third option
70171         of committing gnulib files while skipping others.
70173 2010-03-07  Bruno Haible  <bruno@clisp.org>
70175         Tests of module 'wctype' in C++ mode.
70176         * tests/test-wctype-c++.cc: New file.
70177         * modules/wctype-tests (Files): Add it and tests/signature.h.
70178         (Depends-on): Add ansi-c++-opt.
70179         (Makefile.am): Arrange to compile and run test-wctype-c++.
70181         Tests of module 'wchar' in C++ mode.
70182         * tests/test-wchar-c++.cc: New file.
70183         * modules/wchar-tests (Files): Add it and tests/signature.h.
70184         (Depends-on): Add ansi-c++-opt.
70185         (Makefile.am): Arrange to compile and run test-wchar-c++.
70186         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
70187         gl_MODULE_INDICATOR.
70189         Tests of module 'unistd' in C++ mode.
70190         * tests/test-unistd-c++.cc: New file.
70191         * modules/unistd-tests (Files): Add it and tests/signature.h.
70192         (Depends-on): Add ansi-c++-opt.
70193         (Makefile.am): Arrange to compile and run test-unistd-c++.
70194         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
70195         gl_MODULE_INDICATOR.
70197         Tests of module 'time' in C++ mode.
70198         * tests/test-time-c++.cc: New file.
70199         * modules/time-tests (Files): Add it and tests/signature.h.
70200         (Depends-on): Add ansi-c++-opt.
70201         (Makefile.am): Arrange to compile and run test-time-c++.
70202         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70204         Tests of module 'sys_time' in C++ mode.
70205         * tests/test-sys_time-c++.cc: New file.
70206         * modules/sys_time-tests (Files): Add it and tests/signature.h.
70207         (Depends-on): Add ansi-c++-opt.
70208         (Makefile.am): Arrange to compile and run test-sys_time-c++.
70209         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
70210         gl_MODULE_INDICATOR.
70212         Tests of module 'sys_stat' in C++ mode.
70213         * tests/test-sys_stat-c++.cc: New file.
70214         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
70215         (Depends-on): Add ansi-c++-opt.
70216         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
70217         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
70218         gl_MODULE_INDICATOR.
70220         Tests of module 'sys_socket' in C++ mode.
70221         * tests/test-sys_socket-c++.cc: New file.
70222         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
70223         (Depends-on): Add ansi-c++-opt.
70224         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
70225         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
70226         gl_MODULE_INDICATOR.
70228         Tests of module 'sys_select' in C++ mode.
70229         * tests/test-sys_select-c++.cc: New file.
70230         * modules/sys_select-tests (Files): Add it and tests/signature.h.
70231         (Depends-on): Add ansi-c++-opt.
70232         (Makefile.am): Arrange to compile and run test-sys_select-c++.
70233         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
70234         gl_MODULE_INDICATOR.
70236         Tests of module 'sys_ioctl' in C++ mode.
70237         * tests/test-sys_ioctl-c++.cc: New file.
70238         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
70239         (Depends-on): Add ansi-c++-opt.
70240         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
70241         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
70242         gl_MODULE_INDICATOR.
70244         Tests of module 'string' in C++ mode.
70245         * tests/test-string-c++.cc: New file.
70246         * modules/string-tests (Files): Add it and tests/signature.h.
70247         (Depends-on): Add ansi-c++-opt.
70248         (Makefile.am): Arrange to compile and run test-string-c++.
70249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
70250         gl_MODULE_INDICATOR.
70252         Tests of module 'stdlib' in C++ mode.
70253         * tests/test-stdlib-c++.cc: New file.
70254         * modules/stdlib-tests (Files): Add it and tests/signature.h.
70255         (Depends-on): Add ansi-c++-opt.
70256         (Makefile.am): Arrange to compile and run test-stdlib-c++.
70257         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
70258         gl_MODULE_INDICATOR.
70260         Tests of module 'stdio' in C++ mode.
70261         * tests/test-stdio-c++.cc: New file.
70262         * modules/stdio-tests (Files): Add it and tests/signature.h.
70263         (Depends-on): Add ansi-c++-opt.
70264         (Makefile.am): Arrange to compile and run test-stdio-c++.
70265         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
70266         gl_MODULE_INDICATOR.
70268         Tests of module 'spawn' in C++ mode.
70269         * tests/test-spawn-c++.cc: New file.
70270         * modules/spawn-tests (Files): Add it and tests/signature.h.
70271         (Depends-on): Add ansi-c++-opt.
70272         (Makefile.am): Arrange to compile and run test-spawn-c++.
70273         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
70274         gl_MODULE_INDICATOR.
70276         Tests of module 'signal' in C++ mode.
70277         * tests/test-signal-c++.cc: New file.
70278         * modules/signal-tests (Files): Add it and tests/signature.h.
70279         (Depends-on): Add ansi-c++-opt.
70280         (Makefile.am): Arrange to compile and run test-signal-c++.
70281         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
70282         gl_MODULE_INDICATOR.
70284         Tests of module 'search' in C++ mode.
70285         * tests/test-search-c++.cc: New file.
70286         * modules/search-tests (Files): Add it and tests/signature.h.
70287         (Depends-on): Add ansi-c++-opt.
70288         (Makefile.am): Arrange to compile and run test-search-c++.
70289         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
70290         gl_MODULE_INDICATOR.
70292         Tests of module 'math' in C++ mode.
70293         * tests/test-math-c++.cc: New file.
70294         * modules/math-tests (Files): Add it and tests/signature.h.
70295         (Depends-on): Add ansi-c++-opt.
70296         (Makefile.am): Arrange to compile and run test-math-c++.
70297         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70299         Tests of module 'locale' in C++ mode.
70300         * tests/test-locale-c++.cc: New file.
70301         * modules/locale-tests (Files): Add it and tests/signature.h.
70302         (Depends-on): Add ansi-c++-opt.
70303         (Makefile.am): Arrange to compile and run test-locale-c++.
70304         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
70305         gl_MODULE_INDICATOR.
70307         Tests of module 'langinfo' in C++ mode.
70308         * tests/test-langinfo-c++.cc: New file.
70309         * modules/langinfo-tests (Files): Add it and tests/signature.h.
70310         (Depends-on): Add ansi-c++-opt.
70311         (Makefile.am): Arrange to compile and run test-langinfo-c++.
70312         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
70313         gl_MODULE_INDICATOR.
70315         Tests of module 'iconv-h' in C++ mode.
70316         * tests/test-iconv-h-c++.cc: New file.
70317         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
70318         (Depends-on): Add ansi-c++-opt.
70319         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
70321         Tests of module 'glob' in C++ mode.
70322         * tests/test-glob-c++.cc: New file.
70323         * modules/glob-tests (Files): Add it.
70324         (Depends-on): Add ansi-c++-opt.
70325         (Makefile.am): Arrange to compile and run test-glob-c++.
70327         Tests of module 'fcntl-h' in C++ mode.
70328         * tests/test-fcntl-h-c++.cc: New file.
70329         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
70330         (Depends-on): Add ansi-c++-opt.
70331         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
70332         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
70333         gl_MODULE_INDICATOR.
70335         Tests of module 'dirent' in C++ mode.
70336         * tests/test-dirent-c++.cc: New file.
70337         * modules/dirent-tests (Files): Add it and tests/signature.h.
70338         (Depends-on): Add ansi-c++-opt.
70339         (Makefile.am): Arrange to compile and run test-dirent-c++.
70340         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70341         gl_MODULE_INDICATOR.
70343         New module 'ansi-c++-opt'.
70344         * modules/ansi-c++-opt: New file.
70345         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
70347         Document C++ namespace mode.
70348         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
70350         wctype: Avoid #define replacements in C++ mode.
70351         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
70352         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
70353         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
70354         In C++, define a namespaced alias symbol.
70355         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
70356         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
70357         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
70358         rule.
70360         wchar: Avoid #define replacements in C++ mode.
70361         * lib/wchar.in.h: Include c++defs.h.
70362         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
70363         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
70364         symbol.
70365         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
70366         * modules/wchar (Depends-on): Add c++defs.
70367         (Makefile.am): Update wchar.h rule.
70369         unistd: Avoid #define replacements in C++ mode.
70370         * lib/unistd.in.h: Include c++defs.h.
70371         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
70372         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
70373         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
70374         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
70375         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
70376         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
70377         symbol.
70378         (environ): Update.
70379         * modules/unistd (Depends-on): Add c++defs.
70380         (Makefile.am): Update unistd.h rule.
70382         time: Avoid #define replacements in C++ mode.
70383         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
70384         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
70385         define a namespaced alias symbol.
70386         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
70387         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
70388         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
70389         * modules/time (Depends-on): Add c++defs, warn-on-use.
70390         (Makefile.am): Update time.h rule.
70391         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70392         * modules/nanosleep (configure.ac): Likewise.
70393         * modules/strptime (configure.ac): Likewise.
70394         * modules/timegm (configure.ac): Likewise.
70396         sys_time: Avoid #define replacements in C++ mode.
70397         * lib/sys_time.in.h: Include c++defs.h.
70398         (gettimeofday): In C++, define a namespaced alias symbol.
70399         * modules/sys_time (Depends-on): Add c++defs.
70400         (Makefile.am): Update sys/time.h rule.
70402         sys_stat: Avoid #define replacements in C++ mode.
70403         * lib/sys_stat.in.h: Include c++defs.h.
70404         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
70405         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
70406         namespaced alias symbol.
70407         In C++, define a namespaced alias symbol.
70408         * modules/sys_stat (Depends-on): Add c++defs.
70409         (Makefile.am): Update sys/stat.h rule.
70411         sys_socket: Avoid #define replacements in C++ mode.
70412         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
70413         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
70414         definitions also when the system has a <sys/socket.h>.
70415         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70416         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
70417         In C++, define a namespaced alias symbol.
70418         * modules/sys_socket (Depends-on): Add c++defs.
70419         (Makefile.am): Update sys/socket.h rule.
70421         sys_select: Avoid #define replacements in C++ mode.
70422         * lib/sys_select.in.h: Include c++defs.h. Enable the function
70423         definitions also when the system has a <sys/select.h>.
70424         (select): In C++, define a namespaced alias symbol.
70425         * modules/sys_select (Depends-on): Add c++defs.
70426         (Makefile.am): Update sys/select.h rule.
70428         sys_ioctl: Avoid #define replacements in C++ mode.
70429         * lib/sys_ioctl.in.h: Include c++defs.h.
70430         (ioctl): In C++, define a namespaced alias symbol.
70431         * modules/sys_ioctl (Depends-on): Add c++defs.
70432         (Makefile.am): Update sys/ioctl.h rule.
70434         string: Avoid #define replacements in C++ mode.
70435         * lib/string.in.h: Include c++defs.h.
70436         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
70437         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
70438         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
70439         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
70440         strsignal, strverscmp): In C++, define a namespaced alias symbol.
70441         * modules/string (Depends-on): Add c++defs.
70442         (Makefile.am): Update string.h rule.
70444         stdlib: Avoid #define replacements in C++ mode.
70445         * lib/stdlib.in.h: Include c++defs.h.
70446         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
70447         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
70448         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
70449         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
70450         symbol.
70451         * modules/stdlib (Depends-on): Add c++defs.
70452         (Makefile.am): Update stdlib.h rule.
70454         stdio: Avoid #define replacements in C++ mode.
70455         * lib/stdio.in.h: Include c++defs.h.
70456         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
70457         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
70458         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
70459         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
70460         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
70461         namespaced alias symbol.
70462         * modules/stdio (Depends-on): Add c++defs.
70463         (Makefile.am): Update stdio.h rule.
70465         spawn: Avoid #define replacements in C++ mode.
70466         * lib/spawn.in.h: Include c++defs.h.
70467         (posix_spawn, posix_spawnp, posix_spawnattr_init,
70468         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
70469         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
70470         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
70471         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
70472         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
70473         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
70474         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
70475         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
70476         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
70477         In C++, define a namespaced alias symbol.
70478         * modules/spawn (Depends-on): Add c++defs.
70479         (Makefile.am): Update spawn.h rule.
70481         signal: Avoid #define replacements in C++ mode.
70482         * lib/signal.in.h: Include c++defs.h.
70483         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
70484         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
70485         namespaced alias symbol.
70486         * modules/signal (Depends-on): Add c++defs.
70487         (Makefile.am): Update signal.h rule.
70489         search: Avoid #define replacements in C++ mode.
70490         * lib/search.in.h: Include c++defs.h.
70491         (_gl_search_compar_fn, _gl_search_action_fn): New types.
70492         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
70493         symbol.
70494         * modules/search (Depends-on): Add c++defs.
70495         (Makefile.am): Update search.h rule.
70497         math: Avoid #define replacements in C++ mode.
70498         * lib/math.in.h: Include c++defs.h.
70499         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
70500         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
70501         trunc, truncl): In C++, define a namespaced alias symbol.
70502         * modules/math (Depends-on): Add c++defs.
70503         (Makefile.am): Update math.h rule.
70505         locale: Avoid #define replacements in C++ mode.
70506         * lib/locale.in.h: Include c++defs.h.
70507         (duplocale): In C++, define a namespaced alias symbol.
70508         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
70509         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
70510         * modules/locale (Depends-on): Add c++defs.
70511         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
70513         langinfo: Avoid #define replacements in C++ mode.
70514         * lib/langinfo.in.h: Include c++defs.h.
70515         (nl_langinfo): In C++, define a namespaced alias symbol.
70516         * modules/langinfo (Depends-on): Add c++defs.
70517         (Makefile.am): Update langinfo.h rule.
70519         iconv-h: Avoid #define replacements in C++ mode.
70520         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
70521         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
70522         symbol.
70523         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
70524         whenever iconv is present.
70525         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
70526         (Makefile.am): Update iconv.h rule.
70528         glob: Avoid #define replacements in C++ mode.
70529         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
70530         (_gl_glob_errfunc_fn): New type.
70531         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
70532         symbol.
70533         * modules/glob (Depends-on): Add c++defs, warn-on-use.
70534         (Makefile.am): Update glob.h rule.
70536         fcntl-h: Avoid #define replacements in C++ mode.
70537         * lib/fcntl.in.h: Include c++defs.h.
70538         (fcntl, open, openat): In C++, define a namespaced alias symbol.
70539         * modules/fcntl-h (Depends-on): Add c++defs.
70540         (Makefile.am): Update fcntl.h rule.
70542         dirent: Avoid #define replacements in C++ mode.
70543         * lib/dirent.in.h: Include c++defs.h.
70544         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
70545         namespaced alias symbol.
70546         (dirfd): Update declaration.
70547         * modules/dirent (Depends-on): Add c++defs.
70548         (Makefile.am): Update dirent.h rule.
70550         ctype: Make it usable in C++ code.
70551         * lib/ctype.in.h: Include c++defs.h.
70552         (isblank): Declare as extern "C".
70553         * modules/ctype (Depends-on): Add c++defs.
70554         (Makefile.am): Update ctype.h rule.
70556         New module 'c++defs'.
70557         * modules/c++defs: New file.
70558         * build-aux/c++defs.h: New file.
70559         Reported by John W. Eaton <jwe@gnu.org>.
70561 2010-03-07  Bruno Haible  <bruno@clisp.org>
70563         logb: Provide missing declaration for Cygwin.
70564         * lib/math.in.h (logb): New declaration.
70565         * m4/logb.m4: New file.
70566         * modules/logb (Files): Add m4/logb.m4.
70567         (Depends-on): Add math.
70568         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
70569         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
70570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
70571         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
70572         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
70574 2010-03-07  Bruno Haible  <bruno@clisp.org>
70576         Fix test-cond link error.
70577         * tests/test-cond.c: Include <stdio.h>.
70579 2010-03-07  Bruno Haible  <bruno@clisp.org>
70581         Fix test-dirent-safer link error.
70582         * modules/dirent-safer-tests (Makefile.am): Define
70583         test_dirent_safer_LDADD.
70585 2010-03-07  Bruno Haible  <bruno@clisp.org>
70587         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
70588         among default module list.
70590 2010-03-07  Bruno Haible  <bruno@clisp.org>
70592         Fix link error on platforms with GNU libiconv.
70593         * modules/unistr/u8-strcoll-tests (Makefile): Define
70594         test_u8_strcoll_LDADD.
70595         * modules/unistr/u16-strcoll-tests (Makefile): Define
70596         test_u16_strcoll_LDADD.
70597         * modules/unistr/u32-strcoll-tests (Makefile): Define
70598         test_u32_strcoll_LDADD.
70600 2010-03-07  Bruno Haible  <bruno@clisp.org>
70602         Use POSIX declarations for socket functions.
70603         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
70604         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
70605         rpl_sendto): Change declaration to match POSIX.
70606         * lib/connect.c (rpl_connect): Likewise.
70607         * lib/accept.c (rpl_accept): Likewise.
70608         * lib/bind.c (rpl_bind): Likewise.
70609         * lib/getpeername.c (rpl_getpeername): Likewise.
70610         * lib/getsockname.c (rpl_getsockname): Likewise.
70611         * lib/recv.c (rpl_recv): Likewise.
70612         * lib/send.c (rpl_send): Likewise.
70613         * lib/recvfrom.c (rpl_recvfrom): Likewise.
70614         * lib/sendto.c (rpl_sendto): Likewise.
70616 2010-03-06  Bruno Haible  <bruno@clisp.org>
70618         Clarify access, euidaccess, faccessat.
70619         * doc/posix-functions/faccessat.texi: Mention security problem under
70620         "Other problems", not "Portability problems".
70621         * doc/posix-functions/access.texi: Likewise. Mention a related security
70622         problem.
70623         * doc/glibc-functions/euidaccess.texi: Mention security problems.
70624         * lib/euidaccess.c: Add comments about platforms.
70625         * lib/unistd.in.h (access, euidaccess): Add warnings.
70627 2010-03-07  Bruno Haible  <bruno@clisp.org>
70629         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
70630         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
70631         (POSIX_SPAWN_SETSCHEDULER): Likewise.
70632         (POSIX_SPAWN_USEVFORK): Define in a way that works when
70633         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70634         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
70635         declare when POSIX_SPAWN_SETSCHEDULER is zero.
70636         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
70637         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
70638         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
70639         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
70640         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
70641         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
70642         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
70643         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
70644         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
70645         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
70646         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
70647         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
70648         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
70649         Likewise.
70650         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
70651         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
70652         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
70653         Likewise.
70654         * tests/test-spawn.c (main): Make it work when
70655         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70657 2010-03-07  Bruno Haible  <bruno@clisp.org>
70659         Fix incorrect Makefile.am generation in German locale.
70660         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70661         Execute sed command with character range in C locale.
70663 2010-03-06  Bruno Haible  <bruno@clisp.org>
70665         Tests for module 'iconv-h'.
70666         * modules/iconv-h-tests: New file.
70667         * tests/test-iconv-h.c: New file.
70669         New module 'iconv-h'.
70670         * modules/iconv-h: New file.
70671         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
70672         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
70673         (configure.ac): Remove gl_ICONV_H.
70674         (Makefile.am): Remove rule for iconv.h.
70676 2010-03-06  Bruno Haible  <bruno@clisp.org>
70678         More consistent naming of *.m4 files.
70679         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
70680         * modules/wctype (Files): Update.
70682         More consistent naming of *.m4 files.
70683         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
70684         * modules/wchar (Files): Update.
70686 2010-03-06  Jim Meyering  <meyering@redhat.com>
70688         euidaccess: relax license to LGPLv2+
70689         * modules/euidaccess (License): Relax to LGPLv2+.
70691 2010-03-06  Bruno Haible  <bruno@clisp.org>
70693         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
70694         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
70695         (Makefile.am): Augment lib_SOURCES instead.
70697 2010-03-04  Jim Meyering  <meyering@redhat.com>
70699         utime: remove obsolete module
70700         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
70701         unnecessary for years, and has been marked as obsolete for 10 months.
70702         * modules/utime: Remove file.
70703         * lib/utime.c: Remove file.
70704         * m4/utime.m4: Remove file.
70705         * m4/utimes-null.m4: Remove file.
70706         * doc/posix-functions/utime.texi (utime): Remove reference to
70707         the module.  Move the sole "fixed by gnulib" item into the
70708         "problems not fixed by Gnulib" list.
70709         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
70711 2010-03-05  Simon Josefsson  <simon@josefsson.org>
70713         * modules/exit (License): Relax license to LGPLv2+.
70714         (Status): Mark as obsolete.
70715         * NEWS: Mention deprecated 'exit' module.
70716         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
70717         of now obsolete 'exit'.
70719 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70721         fts-lgpl: remove unused module
70722         * modules/fts-lgpl: Remove.
70723         * MODULES.html.sh (func_all_modules): Adjust.
70724         * check-module (find_included_lib_files): Adjust.
70725         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
70727 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
70729         copy-acl: enhance Solaris ACL error handling
70730         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
70731         * lib/set-mode-acl.c (qset_acl): Likewise.
70733 2010-03-02  Bruno Haible  <bruno@clisp.org>
70735         spawn: Don't override the system defined values on FreeBSD 8.
70736         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
70737         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
70738         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
70739         if HAVE_POSIX_SPAWN is 1.
70740         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
70742 2010-03-01  Bruno Haible  <bruno@clisp.org>
70744         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
70745         regarding Automake.
70747 2010-02-25  Bruno Haible  <bruno@clisp.org>
70749         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
70750         * gnulib-tool: Define 'echo' as a function only before the ksh alias
70751         setting, not afterwards.
70752         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
70754 2010-02-24  Eric Blake  <eblake@redhat.com>
70756         bootstrap, git-version-gen: use timestamp
70757         * build-aux/git-version-gen (scriptversion): Force UTC.
70758         * build-aux/bootstrap (scriptversion): New variable.
70760         bootstrap: allow older git
70761         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
70762         older than 1.6.4.  Requested by the libvirt project.
70764 2010-02-23  Eric Blake  <eblake@redhat.com>
70766         warn-on-use: work with old autoconf
70767         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
70768         AS_VAR semantics of autoconf 2.60.
70769         Reported by Bruno Haible.
70771         bootstrap: improve some comments
70772         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
70773         clarification comments.
70775         gettimeofday: provide correct function
70776         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
70777         when replacement is declared, otherwise provide gettimeofday.
70778         Reported by Michael Goffioul.
70780 2010-02-23  Jim Meyering  <meyering@redhat.com>
70782         lib-ignore: relax license to "unlimited", not LGPLv2+
70783         * modules/lib-ignore (License): Relax to "unlimited".
70785 2010-02-23  Jim Meyering  <meyering@redhat.com>
70787         lib-ignore: relax license to LGPLv2+
70788         * modules/lib-ignore (License): Relax to LGPLv2+.
70790 2010-02-22  Eric Blake  <eblake@redhat.com>
70792         lseek: avoid bash 3.2 broken pipe bug
70793         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
70794         warning from bash 3.2.
70795         Reported by Ben Pfaff, with analysis from Bruno Haible.
70797         bootstrap: support non-FSF copyright holder
70798         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
70799         bootstrap.conf override of COPYRIGHT_HOLDER.
70800         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
70802         bootstrap: interoperate with gettext 0.14.1
70803         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
70805         bootstrap: allow for alternate submodule location
70806         * build-aux/bootstrap (gnulib_path): New variable; use instead of
70807         hardcoding submodule location.
70808         (gnulib_mk): Allow direct use of Makefile.am.
70810         bootstrap: use GNULIB_SRCDIR to reduce disk usage
70811         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
70812         rather than reconfiguring where the submodule points.
70814         gettimeofday: restore support for platforms that lack function
70815         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
70816         replacement if function is missing.
70817         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
70818         * modules/sys_time (Makefile.am): Substitute it.
70819         * lib/sys_time.in.h (gettimeofday): Check it.
70820         Reported by Michael Goffioul.
70822 2010-02-21  Bruno Haible  <bruno@clisp.org>
70824         * lib/stdio.in.h (obstack_printf): Fix typo.
70826 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
70828         vc-list-files: use bzr ls's -R option
70829         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
70830         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
70832 2010-02-21  Jim Meyering  <meyering@redhat.com>
70834         init.sh: fix EXEEXT shims to work also for names like test-prog
70835         * tests/init.sh: Re-exec a better shell, when needed.
70836         If the current shell lacks support for posix $(...), an init.sh-using
70837         test will now try to find a shell that supports that.  If EXEEXT is
70838         nonempty, we also require support for hyphen-in-alias-name and shell
70839         substitutions like ${var#glob}.  Failure to find such a shell results
70840         in a skipped test.
70842 2010-02-21  Bruno Haible  <bruno@clisp.org>
70844         Really work around "broken pipe" error message from bash 3.2.
70845         * gnulib-tool (func_reset_sigpipe): Remove function.
70846         (echo): In bash 3.2, define to a function that uses printf.
70847         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
70849 2010-02-20  Bruno Haible  <bruno@clisp.org>
70851         Restore support for automake 1.9.6 with autoconf 2.61.
70852         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
70853         Reported by James Youngman <jay@gnu.org>.
70855 2010-02-20  Bruno Haible  <bruno@clisp.org>
70857         Improve *printf warning condition.
70858         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
70859         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
70860         and the function is overridden due to SIGPIPE emulation.
70862 2010-02-20  Bruno Haible  <bruno@clisp.org>
70864         * lib/stdio.in.h: Tweak comments.
70866 2010-02-19  Bruno Haible  <bruno@clisp.org>
70868         Make it easier to find modules. New gnulib-tool option '--find'.
70869         * gnulib-tool: New option --find.
70870         (func_usage): Document it.
70871         (func_sanitize_modulelist): New function, extracted from
70872         func_all_modules.
70873         (func_all_modules): Invoke it.
70874         * doc/gnulib-tool.texi (Which modules?): New node.
70876 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
70878         * lib/sys_select.in.h: Provide select replacement even if
70879         sys/select.h exists on a system, for Interix.
70881 2010-02-18  Jim Meyering  <meyering@redhat.com>
70883         init.sh: don't use $(...) just yet
70884         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
70885         to accommodate e.g., Solaris' /bin/sh.
70887 2010-02-17  Bruno Haible  <bruno@clisp.org>
70889         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
70890         Reported by Ludovic Courtès <ludo@gnu.org>.
70892 2010-02-16  Simon Josefsson  <simon@josefsson.org>
70894         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
70895         linking with -lintl.
70897 2010-02-17  Simon Josefsson  <simon@josefsson.org>
70899         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
70900         if not provided by the system's netdb.h.  Reported by
70901         ludo@gnu.org (Ludovic Courtès).
70903 2010-02-15  Jim Meyering  <meyering@redhat.com>
70905         init.sh: improve portability and efficiency
70906         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
70907         "dummy" in a for loop.
70908         Use '!', not '^' to select the complement of a character set used
70909         in a "case" statement.
70910         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
70911         Suggestions from Eric Blake.
70913         init.sh: automatically accommodate programs with the .exe suffix
70914         Automatically arrange for an invocation of "prog" to execute the
70915         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
70916         may use the simpler "prog", yet still work when built on a system
70917         that requires specifying the added suffix.
70918         Do this by constructing a function named "prog" that invokes
70919         "prog.exe" for each .exe file in selected directories.
70920         * tests/init.sh (find_exe_basenames_): New function.
70921         (create_exe_shim_functions_): New function.
70922         (path_prepend_): Use it.
70924         maint.mk: mark syntax-check sc_*.m rules as .PHONY
70925         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
70926         "make -t syntax-check" doesn't create a ton of sc_*.m files.
70928 2010-02-14  Jim Meyering  <meyering@redhat.com>
70930         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
70931         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
70932         (sc_prohibit_hash_pjw_without_use): New rule.
70934         maint.mk: allow the default upload destination dir to be overridden
70935         * top/maint.mk (upload_dest_dir_): Define with a default that
70936         preserves the status quo.
70937         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
70938         Reported by Peter Simons.
70940         maint.mk: prohibit inclusion of "hash.h" without_use
70941         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
70943 2010-02-10  Jim Meyering  <meyering@redhat.com>
70945         maint.mk: prohibit inclusion of "ignore-value.h" without_use
70946         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
70948 2010-02-09  Eric Blake  <ebb9@byu.net>
70949         and Bruno Haible  <bruno@clisp.org>
70951         obstack-printf-posix: ensure declaration
70952         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
70953         extracted from gl_FUNC_OBSTACK_PRINTF.
70954         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
70955         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
70956         Likewise.
70957         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
70958         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
70959         0.
70961 2010-02-08  Bruno Haible  <bruno@clisp.org>
70963         gnulib-tool: Fix typo in 2010-02-07 commit.
70964         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
70965         Reported by Eric Blake.
70967 2010-02-07  Bruno Haible  <bruno@clisp.org>
70969         gnulib-tool: Fix up caching patches.
70970         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
70971         option --no-cache. Use associative arrays when supported by the shell.
70972         (sed_comments): New variable.
70973         (modcache): Renamed from do_cache.
70974         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
70975         abbreviate unnecessarily.
70976         (have_associative): New variable.
70977         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
70978         way also for ksh and zsh.
70979         (func_init_sed_convert_to_cache_statements): New function, extracted
70980         from func_cache_lookup_module. Add support for associative arrays.
70981         Don't set the c_MODULE_cached variable here. Ignore all lines before
70982         the first field header. Remove only the final newline, not all trailing
70983         newlines. Support empty fields correctly. Limit the use of 'eval' to
70984         assignments.
70985         (func_get_description, func_get_status, func_get_notice,
70986         func_get_applicability, func_get_filelist, func_get_dependencies,
70987         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
70988         func_get_automake_snippet, func_get_include_directive,
70989         func_get_link_directive, func_get_license, func_get_maintainer):
70990         Update documentation. List the unoptimized code first. Add support for
70991         associative arrays. Limit the use of 'eval' to assignments.
70992         (func_get_applicability): Undo stylistic pessimisations.
70993         (func_get_automake_snippet, func_get_include_directive): Reduce code
70994         duplication.
70995         (func_modules_transitive_closure, func_modules_add_dummy,
70996         func_modules_notice, func_modules_to_filelist, func_add_file,
70997         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
70998         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
70999         func_create_testdir, func_create_megatestdir): Update documentation.
71001 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71003         * gnulib-tool (func_cache_lookup_module): Store the module name
71004         belonging to the cache variable; error out if two different
71005         module names map to the same cache variable name.
71007 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71009         gnulib-tool: Make caching optional.
71010         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
71011         Update matching short versions of --no-changelog.
71012         (func_usage): Update.
71013         (sed_extract_cache_prog): Renamed from ...
71014         (sed_extract_prog): ... this; revert to old extraction script.
71015         (func_get_description, func_get_status)
71016         (func_get_notice, func_get_applicability, func_get_filelist)
71017         (func_get_dependencies, func_get_autoconf_early_snippet)
71018         (func_get_autoconf_snippet, func_get_automake_snippet)
71019         (func_get_include_directive, func_get_link_directive)
71020         (func_get_license, func_get_maintainer): If $do_cache is false,
71021         use old, non-caching extraction scripts.
71022         Suggestion by Bruno Haible.
71024 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71026         gnulib-tool: cache module metainformation.
71027         * gnulib-tool (sed_extract_prog): Match newline before each
71028         header, and rewrite header to a shell variable suffix.
71029         (func_cache_var, func_cache_lookup_module): New functions,
71030         to turn a module name into a cache variable prefix, and to
71031         look up and cache module metainformation.
71032         (func_get_description, func_get_status)
71033         (func_get_notice, func_get_applicability, func_get_filelist)
71034         (func_get_dependencies, func_get_autoconf_early_snippet)
71035         (func_get_autoconf_snippet, func_get_automake_snippet)
71036         (func_get_include_directive, func_get_link_directive)
71037         (func_get_license, func_get_maintainer): Use
71038         func_cache_lookup_module.
71040 2010-02-07  Bruno Haible  <bruno@clisp.org>
71042         fnctl: Fix missing dependency.
71043         * modules/fcntl (Depends-on): Add getdtablesize.
71044         Reported by John W. Eaton <jwe@gnu.org>.
71046 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71048         Argp: fix recognition of short alias options.
71050         * lib/argp-parse.c (convert_options): Fix improper use of
71051         `|' between character values.
71052         * tests/test-argp.c (group1_option): New alias option
71053         --read (-r).
71054         (group1_parser): Special handling for 'r'.
71055         (test15): New test case.
71056         (test_fun): Add test15.
71057         * tests/test-argp-2.sh: Update expected --help and --usage
71058         outputs.
71060 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71062         * tests/test-argp.c: Fix indentation.
71064 2010-02-04  Eric Blake  <ebb9@byu.net>
71066         gettimeofday: expose type of second argument
71067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
71068         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
71069         * tests/test-gettimeofday.c: Use it to silence warning.
71070         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
71071         the issue.
71073 2010-02-03  Jim Meyering  <meyering@redhat.com>
71075         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
71076         * lib/regcomp.c (TYPE_SIGNED): Define.
71077         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
71079         regcomp.c: avoid a new -Wshadow warning
71080         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
71082 2010-02-01  Jim Meyering  <meyering@redhat.com>
71084         removing useless parentheses in cpp #define directives
71085         For motivation, see commit c0221df4, "define STREQ(a,b)
71086         consistently, removing useless parentheses"
71087         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
71088         * lib/mountlist.c (MNT_IGNORE): Likewise.
71089         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
71091 2010-02-01  Eric Blake  <ebb9@byu.net>
71093         sys_time: use link-warning
71094         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
71095         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
71096         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
71097         * modules/sys_time (Depends-on): Add warn-on-use.
71098         (Makefile.am): Always build replacement.
71099         (configure.ac): Update substitutions.
71100         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
71101         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
71102         bother with SYS_TIME_H.
71103         * modules/gettimeofday (configure.ac): Declare indicator.
71104         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
71105         in use.
71107         closein-tests: silence compiler warning
71108         * tests/test-closein.c (main): Ignore fread result.
71109         * modules/closein-tests (Depends-on): Add ignore-value.
71111         tests: silence warning about system return
71112         * tests/test-areadlink-with-size.c (main): Ignore system result.
71113         * tests/test-areadlink.c (main): Likewise.
71114         * tests/test-areadlinkat-with-size.c (main): Likewise.
71115         * tests/test-areadlinkat.c (main): Likewise.
71116         * tests/test-canonicalize-lgpl.c (main): Likewise.
71117         * tests/test-canonicalize.c (main): Likewise.
71118         * tests/test-chown.c (main): Likewise.
71119         * tests/test-fchownat.c (main): Likewise.
71120         * tests/test-fdutimensat.c (main): Likewise.
71121         * tests/test-fstatat.c (main): Likewise.
71122         * tests/test-futimens.c (main): Likewise.
71123         * tests/test-lchown.c (main): Likewise.
71124         * tests/test-link.c (main): Likewise.
71125         * tests/test-linkat.c (main): Likewise.
71126         * tests/test-lstat.c (main): Likewise.
71127         * tests/test-mkdir.c (main): Likewise.
71128         * tests/test-mkdirat.c (main): Likewise.
71129         * tests/test-mkfifo.c (main): Likewise.
71130         * tests/test-mkfifoat.c (main): Likewise.
71131         * tests/test-mknod.c (main): Likewise.
71132         * tests/test-readlink.c (main): Likewise.
71133         * tests/test-remove.c (main): Likewise.
71134         * tests/test-rename.c (main): Likewise.
71135         * tests/test-renameat.c (main): Likewise.
71136         * tests/test-rmdir.c (main): Likewise.
71137         * tests/test-symlink.c (main): Likewise.
71138         * tests/test-symlinkat.c (main): Likewise.
71139         * tests/test-unlink.c (main): Likewise.
71140         * tests/test-unlinkat.c (main): Likewise.
71141         * tests/test-utimens.c (main): Likewise.
71142         * tests/test-utimensat.c (main): Likewise.
71143         * modules/areadlink-tests (Depends-on): Add ignore-value.
71144         * modules/areadlink-with-size-tests (Depends-on): Likewise.
71145         * modules/areadlinkat-tests (Depends-on): Likewise.
71146         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
71147         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71148         * modules/canonicalize-tests (Depends-on): Likewise.
71149         * modules/chown-tests (Depends-on): Likewise.
71150         * modules/fdutimensat-tests (Depends-on): Likewise.
71151         * modules/futimens-tests (Depends-on): Likewise.
71152         * modules/lchown-tests (Depends-on): Likewise.
71153         * modules/link-tests (Depends-on): Likewise.
71154         * modules/linkat-tests (Depends-on): Likewise.
71155         * modules/lstat-tests (Depends-on): Likewise.
71156         * modules/mkdir-tests (Depends-on): Likewise.
71157         * modules/mkfifo-tests (Depends-on): Likewise.
71158         * modules/mkfifoat-tests (Depends-on): Likewise.
71159         * modules/mknod-tests (Depends-on): Likewise.
71160         * modules/openat-tests (Depends-on): Likewise.
71161         * modules/readlink-tests (Depends-on): Likewise.
71162         * modules/remove-tests (Depends-on): Likewise.
71163         * modules/rename-tests (Depends-on): Likewise.
71164         * modules/renameat-tests (Depends-on): Likewise.
71165         * modules/rmdir-tests (Depends-on): Likewise.
71166         * modules/symlink-tests (Depends-on): Likewise.
71167         * modules/symlinkat-tests (Depends-on): Likewise.
71168         * modules/unlink-tests (Depends-on): Likewise.
71169         * modules/utimens-tests (Depends-on): Likewise.
71170         * modules/utimensat-tests (Depends-on): Likewise.
71172 2010-01-31  Bruno Haible  <bruno@clisp.org>
71174         Perform the same test for many <math.h> functions.
71175         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
71176         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
71177         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
71178         of gl_MATHFUNC.
71179         * modules/acos (configure.ac): Likewise.
71180         * modules/asin (configure.ac): Likewise.
71181         * modules/atan (configure.ac): Likewise.
71182         * modules/atan2 (configure.ac): Likewise.
71183         * modules/cbrt (configure.ac): Likewise.
71184         * modules/copysign (configure.ac): Likewise.
71185         * modules/cos (configure.ac): Likewise.
71186         * modules/cosh (configure.ac): Likewise.
71187         * modules/erf (configure.ac): Likewise.
71188         * modules/erfc (configure.ac): Likewise.
71189         * modules/exp (configure.ac): Likewise.
71190         * modules/fmod (configure.ac): Likewise.
71191         * modules/hypot (configure.ac): Likewise.
71192         * modules/j0 (configure.ac): Likewise.
71193         * modules/j1 (configure.ac): Likewise.
71194         * modules/jn (configure.ac): Likewise.
71195         * modules/lgamma (configure.ac): Likewise.
71196         * modules/log (configure.ac): Likewise.
71197         * modules/log10 (configure.ac): Likewise.
71198         * modules/log1p (configure.ac): Likewise.
71199         * modules/pow (configure.ac): Likewise.
71200         * modules/remainder (configure.ac): Likewise.
71201         * modules/sin (configure.ac): Likewise.
71202         * modules/sinh (configure.ac): Likewise.
71203         * modules/tan (configure.ac): Likewise.
71204         * modules/tanh (configure.ac): Likewise.
71205         * modules/y0 (configure.ac): Likewise.
71206         * modules/y1 (configure.ac): Likewise.
71207         * modules/yn (configure.ac): Likewise.
71208         Suggested by Paolo Bonzini.
71210 2010-01-31  Bruno Haible  <bruno@clisp.org>
71212         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
71214 2010-01-31  Bruno Haible  <bruno@clisp.org>
71216         Work around getdelim() bug on FreeBSD 8.0.
71217         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
71218         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
71219         not work.
71220         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
71221         is 1.
71222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
71223         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
71224         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
71225         a non-zero size.
71226         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
71228 2010-01-31  Bruno Haible  <bruno@clisp.org>
71230         Work around getline() bug on FreeBSD 8.0.
71231         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
71232         and a non-zero size.
71233         * tests/test-getline.c (main): Likewise.
71234         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
71235         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
71237 2010-01-28  Eric Blake  <ebb9@byu.net>
71239         regex: fix build failure
71240         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
71241         platforms.
71243 2010-01-28  Jim Meyering  <meyering@redhat.com>
71245         regex: do not ignore memory allocation failure
71246         * lib/regex_internal.c (create_cd_newstate): Detect
71247         re_node_set_init_copy failure.   Extracted from glibc commit
71248         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71250         regex: sync more white-space changes from libc
71251         * lib/regex_internal.c: White-space only changes.
71252         * lib/regexec.c: Likewise.
71254         regex: add many uses of __attribute_warn_unused_result__
71255         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
71256         * lib/regexec.c: Likewise.
71257         Extracted from a messy glibc commit.
71259         regcomp.c: spelling and merge-artifact from glibc
71260         * lib/regcomp.c: Merge remainder of glibc's
71261         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71263         regcomp.c: sync white-space changes from glibc
71264         * lib/regcomp.c: Merge to accommodate white space
71265         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71267         regcomp.c: do not ignore internal return values
71268         * lib/regcomp.c: Do not ignore internal return values.
71269         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
71270         but without its white-space changes and spelling fixes.
71272         regex_internal.h: define __attribute_warn_unused_result__
71273         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
71275         maint: add a syntax-check rule to check for vulnerable Makefile.in
71276         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
71278 2010-01-27  Jim Meyering  <meyering@redhat.com>
71280         ncftpput-ftp: clean up spaces
71281         * build-aux/ncftpput-ftp: Make Copyright line consistent.
71282         Remove trailing blanks.
71284 2010-01-27  Simon Josefsson  <simon@josefsson.org>
71286         * build-aux/git-version-gen: Fix copyright statement.
71287         * build-aux/gnupload: Likewise.
71288         * tests/test-arcfour.c: Likewise.
71289         * tests/test-arctwo.c: Likewise.
71290         * tests/test-count-one-bits.c: Likewise.
71291         * tests/test-crc.c: Likewise.
71292         * tests/test-des.c: Likewise.
71293         * tests/test-gc-arcfour.c: Likewise.
71294         * tests/test-gc-arctwo.c: Likewise.
71295         * tests/test-gc-des.c: Likewise.
71296         * tests/test-gc-hmac-md5.c: Likewise.
71297         * tests/test-gc-hmac-sha1.c: Likewise.
71298         * tests/test-gc-md2.c: Likewise.
71299         * tests/test-gc-md4.c: Likewise.
71300         * tests/test-gc-md5.c: Likewise.
71301         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71302         * tests/test-gc-rijndael.c: Likewise.
71303         * tests/test-gc-sha1.c: Likewise.
71304         * tests/test-gc.c: Likewise.
71305         * tests/test-gethostname.c: Likewise.
71306         * tests/test-gettimeofday.c: Likewise.
71307         * tests/test-hash.c: Likewise.
71308         * tests/test-hmac-md5.c: Likewise.
71309         * tests/test-hmac-sha1.c: Likewise.
71310         * tests/test-md2.c: Likewise.
71311         * tests/test-md4.c: Likewise.
71312         * tests/test-md5.c: Likewise.
71313         * tests/test-memchr.c: Likewise.
71314         * tests/test-memchr2.c: Likewise.
71315         * tests/test-memcmp.c: Likewise.
71316         * tests/test-memmem.c: Likewise.
71317         * tests/test-memrchr.c: Likewise.
71318         * tests/test-rawmemchr.c: Likewise.
71319         * tests/test-read-file.c: Likewise.
71320         * tests/test-rijndael.c: Likewise.
71321         * tests/test-sockets.c: Likewise.
71322         * tests/test-strchrnul.c: Likewise.
71323         * tests/test-strstr.c: Likewise.
71324         * tests/test-strtod.c: Likewise.
71325         * build-aux/ncftpput-ftp: Likewise.
71327 2010-01-26  Eric Blake  <ebb9@byu.net>
71329         ignore-value: update recommended header name
71330         * modules/ignore-value (Include): Only use <> for headers that
71331         exist in glibc.
71333 2010-01-26  Jim Meyering  <meyering@redhat.com>
71335         test-userspec.c: avoid compiler warnings
71336         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
71337         and "initialization discards qualifiers..." warnings.
71338         Put the first "uid" in its own scope, and make char* members "const".
71340 2010-01-25  Bruno Haible  <bruno@clisp.org>
71342         gnulib-tool: Make warning diagnostics consistent.
71343         * gnulib-tool (func_warning): New function.
71344         Use it everywhere where gnulib-tool produces output to stderr and it is
71345         not a fatal error.
71347 2010-01-25  Bruno Haible  <bruno@clisp.org>
71349         Fix test dependencies.
71350         * modules/xstrtol-tests (Depends-on): Add inttypes.
71351         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
71353 2010-01-25  Pádraig Brady  <P@draigBrady.com>
71355         syntax-check: detect incorrect boolean macro values in config.h
71356         * modules/maintainer-makefile (configure.ac): Parameterize the location
71357         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
71358         The logic is from Eric Blake and the location indicated by Jim Meyering.
71359         Note the more natural CONFIG_HEADER name is prohibited by automake
71360         for backwards compatibility reasons.
71361         * top/maint.mk (sc_Wundef_boolean): New rule.
71363 2010-01-25  Jim Meyering  <meyering@redhat.com>
71365         bootstrap: detect MacOS 10.6's shasum, too
71366         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
71367         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
71369 2010-01-23  Jim Meyering  <meyering@redhat.com>
71371         xstrtoll: new module
71372         * modules/xstrtoll: New file.
71373         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
71374         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
71375         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
71376         ./configure fails if you use this module and lack "long long".
71377         * modules/xstrtoll-tests: New module.
71378         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
71379         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
71380         new init.sh-based test framework.
71382 2010-01-24  Bruno Haible  <bruno@clisp.org>
71384         Tests for module 'yn'.
71385         * modules/yn-tests: New file.
71386         * tests/test-yn.c: New file.
71388         Tests for module 'y1'.
71389         * modules/y1-tests: New file.
71390         * tests/test-y1.c: New file.
71392         Tests for module 'y0'.
71393         * modules/y0-tests: New file.
71394         * tests/test-y0.c: New file.
71396         Tests for module 'tanh'.
71397         * modules/tanh-tests: New file.
71398         * tests/test-tanh.c: New file.
71400         Tests for module 'tan'.
71401         * modules/tan-tests: New file.
71402         * tests/test-tan.c: New file.
71404         Tests for module 'sqrt'.
71405         * modules/sqrt-tests: New file.
71406         * tests/test-sqrt.c: New file.
71408         Tests for module 'sinh'.
71409         * modules/sinh-tests: New file.
71410         * tests/test-sinh.c: New file.
71412         Tests for module 'sin'.
71413         * modules/sin-tests: New file.
71414         * tests/test-sin.c: New file.
71416         Tests for module 'rint'.
71417         * modules/rint-tests: New file.
71418         * tests/test-rint.c: New file.
71420         Tests for module 'remainder'.
71421         * modules/remainder-tests: New file.
71422         * tests/test-remainder.c: New file.
71424         Tests for module 'pow'.
71425         * modules/pow-tests: New file.
71426         * tests/test-pow.c: New file.
71428         Tests for module 'nextafter'.
71429         * modules/nextafter-tests: New file.
71430         * tests/test-nextafter.c: New file.
71432         Tests for module 'modf'.
71433         * modules/modf-tests: New file.
71434         * tests/test-modf.c: New file.
71436         Tests for module 'logb'.
71437         * modules/logb-tests: New file.
71438         * tests/test-logb.c: New file.
71440         Tests for module 'log1p'.
71441         * modules/log1p-tests: New file.
71442         * tests/test-log1p.c: New file.
71444         Tests for module 'log10'.
71445         * modules/log10-tests: New file.
71446         * tests/test-log10.c: New file.
71448         Tests for module 'log'.
71449         * modules/log-tests: New file.
71450         * tests/test-log.c: New file.
71452         Tests for module 'lgamma'.
71453         * modules/lgamma-tests: New file.
71454         * tests/test-lgamma.c: New file.
71456         Tests for module 'ldexp'.
71457         * modules/ldexp-tests: New file.
71458         * tests/test-ldexp.c: New file.
71460         Tests for module 'jn'.
71461         * modules/jn-tests: New file.
71462         * tests/test-jn.c: New file.
71464         Tests for module 'j1'.
71465         * modules/j1-tests: New file.
71466         * tests/test-j1.c: New file.
71468         Tests for module 'j0'.
71469         * modules/j0-tests: New file.
71470         * tests/test-j0.c: New file.
71472         Tests for module 'hypot'.
71473         * modules/hypot-tests: New file.
71474         * tests/test-hypot.c: New file.
71476         Tests for module 'fmod'.
71477         * modules/fmod-tests: New file.
71478         * tests/test-fmod.c: New file.
71480         Tests for module 'fabs'.
71481         * modules/fabs-tests: New file.
71482         * tests/test-fabs.c: New file.
71484         Tests for module 'exp'.
71485         * modules/exp-tests: New file.
71486         * tests/test-exp.c: New file.
71488         Tests for module 'erfc'.
71489         * modules/erfc-tests: New file.
71490         * tests/test-erfc.c: New file.
71492         Tests for module 'erf'.
71493         * modules/erf-tests: New file.
71494         * tests/test-erf.c: New file.
71496         Tests for module 'cosh'.
71497         * modules/cosh-tests: New file.
71498         * tests/test-cosh.c: New file.
71500         Tests for module 'cos'.
71501         * modules/cos-tests: New file.
71502         * tests/test-cos.c: New file.
71504         Tests for module 'copysign'.
71505         * modules/copysign-tests: New file.
71506         * tests/test-copysign.c: New file.
71508         Tests for module 'cbrt'.
71509         * modules/cbrt-tests: New file.
71510         * tests/test-cbrt.c: New file.
71512         Tests for module 'atan2'.
71513         * modules/atan2-tests: New file.
71514         * tests/test-atan2.c: New file.
71516         Tests for module 'atan'.
71517         * modules/atan-tests: New file.
71518         * tests/test-atan.c: New file.
71520         Tests for module 'asin'.
71521         * modules/asin-tests: New file.
71522         * tests/test-asin.c: New file.
71524         Tests for module 'acos'.
71525         * modules/acos-tests: New file.
71526         * tests/test-acos.c: New file.
71528 2010-01-24  Bruno Haible  <bruno@clisp.org>
71530         Fix tests for common <math.h> functions.
71531         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
71532         code snippet that references the function pointer, rather than merely
71533         calling the function. Substitute the FUNC_LIBM variable.
71534         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
71535         * modules/acos (configure.ac): Likewise.
71536         * modules/asin (configure.ac): Likewise.
71537         * modules/atan (configure.ac): Likewise.
71538         * modules/atan2 (configure.ac): Likewise.
71539         * modules/cbrt (configure.ac): Likewise.
71540         * modules/copysign (configure.ac): Likewise.
71541         * modules/cos (configure.ac): Likewise.
71542         * modules/cosh (configure.ac): Likewise.
71543         * modules/erf (configure.ac): Likewise.
71544         * modules/erfc (configure.ac): Likewise.
71545         * modules/exp (configure.ac): Likewise.
71546         * modules/fabs (configure.ac): Likewise.
71547         * modules/fmod (configure.ac): Likewise.
71548         * modules/hypot (configure.ac): Likewise.
71549         * modules/j0 (configure.ac): Likewise.
71550         * modules/j1 (configure.ac): Likewise.
71551         * modules/jn (configure.ac): Likewise.
71552         * modules/ldexp (configure.ac): Likewise.
71553         * modules/lgamma (configure.ac): Likewise.
71554         * modules/log (configure.ac): Likewise.
71555         * modules/log10 (configure.ac): Likewise.
71556         * modules/log1p (configure.ac): Likewise.
71557         * modules/logb (configure.ac): Likewise.
71558         * modules/modf (configure.ac): Likewise.
71559         * modules/nextafter (configure.ac): Likewise.
71560         * modules/pow (configure.ac): Likewise.
71561         * modules/remainder (configure.ac): Likewise.
71562         * modules/rint (configure.ac): Likewise.
71563         * modules/sin (configure.ac): Likewise.
71564         * modules/sinh (configure.ac): Likewise.
71565         * modules/tan (configure.ac): Likewise.
71566         * modules/tanh (configure.ac): Likewise.
71567         * modules/y0 (configure.ac): Likewise.
71568         * modules/y1 (configure.ac): Likewise.
71569         * modules/yn (configure.ac): Likewise.
71571 2010-01-24  Bruno Haible  <bruno@clisp.org>
71573         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
71574         * tests/test-acosl.c (x): New variable.
71575         (main): Store argument in x and fetch it from x.
71576         * tests/test-asinl.c (x): New variable.
71577         (main): Store argument in x and fetch it from x.
71578         * tests/test-atanl.c (x): New variable.
71579         (main): Store argument in x and fetch it from x.
71580         * tests/test-cosl.c (x): New variable.
71581         (main): Store argument in x and fetch it from x.
71582         * tests/test-expl.c (x): New variable.
71583         (main): Store argument in x and fetch it from x.
71584         * tests/test-logl.c (x): New variable.
71585         (main): Store argument in x and fetch it from x.
71586         * tests/test-sinl.c (x): New variable.
71587         (main): Store argument in x and fetch it from x.
71588         * tests/test-sqrtl.c (x): New variable.
71589         (main): Store argument in x and fetch it from x.
71590         * tests/test-tanl.c (x): New variable.
71591         (main): Store argument in x and fetch it from x.
71593 2010-01-24  Bruno Haible  <bruno@clisp.org>
71595         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
71596         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
71597         assignments to the initial TESTS_ENVIRONMENT.
71598         * doc/gnulib.texi (Unit test modules): Document it.
71599         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
71600         TESTS_ENVIRONMENT.
71601         * modules/btowc-tests (Makefile.am): Likewise.
71602         * modules/c-stack-tests (Makefile.am): Likewise.
71603         * modules/c-strcase-tests (Makefile.am): Likewise.
71604         * modules/copy-file-tests (Makefile.am): Likewise.
71605         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
71606         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
71607         * modules/mbrtowc-tests (Makefile.am): Likewise.
71608         * modules/mbscasecmp-tests (Makefile.am): Likewise.
71609         * modules/mbscasestr-tests (Makefile.am): Likewise.
71610         * modules/mbschr-tests (Makefile.am): Likewise.
71611         * modules/mbscspn-tests (Makefile.am): Likewise.
71612         * modules/mbsinit-tests (Makefile.am): Likewise.
71613         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
71614         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
71615         * modules/mbspbrk-tests (Makefile.am): Likewise.
71616         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
71617         * modules/mbsrchr-tests (Makefile.am): Likewise.
71618         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
71619         * modules/mbsspn-tests (Makefile.am): Likewise.
71620         * modules/mbsstr-tests (Makefile.am): Likewise.
71621         * modules/nl_langinfo-tests (Makefile.am): Likewise.
71622         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
71623         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
71624         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
71625         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
71626         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
71627         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
71628         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
71629         * modules/wcrtomb-tests (Makefile.am): Likewise.
71630         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
71631         * modules/wcsrtombs-tests (Makefile.am): Likewise.
71632         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
71633         assignments from TESTS_ENVIRONMENT.
71634         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
71635         augmentation.
71636         * modules/argp-version-etc-tests (Makefile.am): Likewise.
71637         * modules/atexit-tests (Makefile.am): Likewise.
71638         * modules/binary-io-tests (Makefile.am): Likewise.
71639         * modules/closein-tests (Makefile.am): Likewise.
71640         * modules/dprintf-posix-tests (Makefile.am): Likewise.
71641         * modules/exclude-tests (Makefile.am): Likewise.
71642         * modules/fflush-tests (Makefile.am): Likewise.
71643         * modules/fpending-tests (Makefile.am): Likewise.
71644         * modules/fprintf-posix-tests (Makefile.am): Likewise.
71645         * modules/freadahead-tests (Makefile.am): Likewise.
71646         * modules/freadptr-tests (Makefile.am): Likewise.
71647         * modules/freadseek-tests (Makefile.am): Likewise.
71648         * modules/fseek-tests (Makefile.am): Likewise.
71649         * modules/fseeko-tests (Makefile.am): Likewise.
71650         * modules/ftell-tests (Makefile.am): Likewise.
71651         * modules/ftello-tests (Makefile.am): Likewise.
71652         * modules/idpriv-drop-tests (Makefile.am): Likewise.
71653         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
71654         * modules/lseek-tests (Makefile.am): Likewise.
71655         * modules/parse-duration-tests (Makefile.am): Likewise.
71656         * modules/perror-tests (Makefile.am): Likewise.
71657         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
71658         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
71659         * modules/pipe-tests (Makefile.am): Likewise.
71660         * modules/pread-tests (Makefile.am): Likewise.
71661         * modules/printf-posix-tests (Makefile.am): Likewise.
71662         * modules/select-tests (Makefile.am): Likewise.
71663         * modules/sigpipe-tests (Makefile.am): Likewise.
71664         * modules/tsearch-tests (Makefile.am): Likewise.
71665         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
71666         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
71667         * modules/uniname/uniname-tests (Makefile.am): Likewise.
71668         * modules/uniwidth/width-tests (Makefile.am): Likewise.
71669         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
71670         * modules/version-etc-tests (Makefile.am): Likewise.
71671         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
71672         * modules/vprintf-posix-tests (Makefile.am): Likewise.
71673         * modules/xalloc-die-tests (Makefile.am): Likewise.
71674         * modules/xprintf-posix-tests (Makefile.am): Likewise.
71675         * modules/xstrtoimax-tests (Makefile.am): Likewise.
71676         * modules/xstrtol-tests (Makefile.am): Likewise.
71677         * modules/xstrtoumax-tests (Makefile.am): Likewise.
71678         * modules/yesno-tests (Makefile.am): Likewise.
71679         Suggested by Jim Meyering.
71681 2010-01-24  Bruno Haible  <bruno@clisp.org>
71683         More documentation.
71684         * doc/gnulib.texi (Writing modules): New chapter.
71685         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
71686         the new chapter.
71688 2010-01-24  Jim Meyering  <meyering@redhat.com>
71690         maint.mk: do not prepend "./" after filtering
71691         * top/maint.mk (_prepend_srcdir_prefix): New variable
71692         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
71693         "./" when $(srcdir) is ".".
71695         define STREQ(a,b) consistently, removing useless parentheses
71696         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
71697         since the only risk is that "a" or "b" contains an unparenthesized
71698         comma, but if either did that, STREQ would have 3 or more arguments.
71699         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
71700         * lib/fts.c (STREQ): Remove unnecessary parentheses.
71701         * lib/hash-triple.c (STREQ): Likewise.
71702         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
71703         * lib/getugroups.c (STREQ): Likewise.
71705 2010-01-23  Jim Meyering  <meyering@redhat.com>
71707         maint.mk: fix syntax-check in a non-srcdir build directory
71708         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
71709         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
71711 2010-01-22  Jim Meyering  <meyering@redhat.com>
71713         userspec: add unit tests
71714         * tests/test-userspec.c: New file.
71715         * modules/userspec-tests: Likewise.
71717 2010-01-21  Jim Meyering  <meyering@redhat.com>
71719         maint.mk: handle source file names containing "." robustly
71720         * top/maint.mk (_dot_escaped_srcdir): Define.
71721         (VC_LIST): Use it in LHS of sed substitution.
71723 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
71725         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
71726         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
71727         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
71728         from a non-srcdir build.
71730 2010-01-20  Eric Blake  <ebb9@byu.net>
71732         warn-on-use: use instead of link-warning
71733         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
71734         * modules/unistd (Depends-on, Makefile.am): Likewise.
71735         * modules/arpa_inet (Depends-on): Replace link-warning with
71736         warn-on-use.
71737         (Makefile.am): Update rules accordingly.
71738         * modules/ctype (Depends-on, Makefile.am): Likewise.
71739         * modules/dirent (Depends-on, Makefile.am): Likewise.
71740         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
71741         * modules/inttypes (Depends-on, Makefile.am): Likewise.
71742         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71743         * modules/locale (Depends-on, Makefile.am): Likewise.
71744         * modules/math (Depends-on, Makefile.am): Likewise.
71745         * modules/search (Depends-on, Makefile.am): Likewise.
71746         * modules/signal (Depends-on, Makefile.am): Likewise.
71747         * modules/spawn (Depends-on, Makefile.am): Likewise.
71748         * modules/stdlib (Depends-on, Makefile.am): Likewise.
71749         * modules/string (Depends-on, Makefile.am): Likewise.
71750         * modules/strings (Depends-on, Makefile.am): Likewise.
71751         * modules/sys_file (Depends-on, Makefile.am): Likewise.
71752         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
71753         * modules/sys_select (Depends-on, Makefile.am): Likewise.
71754         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
71755         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
71756         * modules/sys_times (Depends-on, Makefile.am): Likewise.
71757         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71758         * modules/wchar (Depends-on, Makefile.am): Likewise.
71759         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
71760         should be poisoned.
71761         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
71762         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
71763         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
71764         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71765         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71766         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
71767         * m4/math_h.m4 (gl_MATH_H): Likewise.
71768         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
71769         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
71770         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
71771         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
71772         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
71773         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
71774         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
71775         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
71776         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
71777         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71778         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
71779         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
71780         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71781         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71782         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
71783         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
71784         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
71785         GL_LINK_WARNING.
71786         * lib/ctype.in.h: Likewise.
71787         * lib/dirent.in.h: Likewise.
71788         * lib/fcntl.in.h: Likewise.
71789         * lib/inttypes.in.h: Likewise.
71790         * lib/langinfo.in.h: Likewise.
71791         * lib/locale.in.h: Likewise.
71792         * lib/math.in.h: Likewise.
71793         * lib/search.in.h: Likewise.
71794         * lib/signal.in.h: Likewise.
71795         * lib/spawn.in.h: Likewise.
71796         * lib/stdio.in.h: Likewise.
71797         * lib/stdlib.in.h: Likewise.
71798         * lib/string.in.h: Likewise.
71799         * lib/strings.in.h: Likewise.
71800         * lib/sys_file.in.h: Likewise.
71801         * lib/sys_ioctl.in.h: Likewise.
71802         * lib/sys_select.in.h: Likewise.
71803         * lib/sys_socket.in.h: Likewise.
71804         * lib/sys_stat.in.h: Likewise.
71805         * lib/sys_times.in.h: Likewise.
71806         * lib/sys_utsname.in.h: Likewise.
71807         * lib/unistd.in.h: Likewise.
71808         * lib/wchar.in.h: Likewise.
71810 2010-01-20  Bruno Haible  <bruno@clisp.org>
71812         Avoid duplicate -lm.
71813         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
71814         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
71815         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
71816         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
71817         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
71818         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
71819         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
71820         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
71821         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
71822         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
71823         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
71824         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
71825         Reported by Paolo Bonzini.
71827 2010-01-19  Bruno Haible  <bruno@clisp.org>
71829         langinfo, nl_langinfo: Relicense under LGPLv2+.
71830         * modules/langinfo (License): Change to LGPLv2+.
71831         * modules/nl_langinfo (License): Likewise.
71832         Patch by David Lutterkort <lutter@redhat.com>.
71834 2010-01-19  Bruno Haible  <bruno@clisp.org>
71836         Avoid compilation error with cc on OSF/1 5.1.
71837         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
71838         statement, not before.
71839         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71841 2010-01-18  Bruno Haible  <bruno@clisp.org>
71843         Avoid a link error due to the __printf__ symbol.
71844         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
71845         and 2.6.x.
71846         (__format__, __printf__): Remove definitions.
71847         * lib/argp-fmtstream.h: Likewise.
71848         * lib/argp.h: Likewise.
71849         * lib/error.h: Likewise.
71850         * lib/vasnprintf.h: Likewise.
71851         * lib/xprintf.h: Likewise.
71852         * lib/xvasprintf.h: Likewise.
71853         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71855 2010-01-18  Bruno Haible  <bruno@clisp.org>
71857         Tests for module 'tanl'.
71858         * modules/tanl-tests: New file.
71859         * tests/test-tanl.c: New file.
71861         Tests for module 'sqrtl'.
71862         * modules/sqrtl-tests: New file.
71863         * tests/test-sqrtl.c: New file.
71865         Tests for module 'sinl'.
71866         * modules/sinl-tests: New file.
71867         * tests/test-sinl.c: New file.
71869         Tests for module 'logl'.
71870         * modules/logl-tests: New file.
71871         * tests/test-logl.c: New file.
71873         Tests for module 'expl'.
71874         * modules/expl-tests: New file.
71875         * tests/test-expl.c: New file.
71877         Tests for module 'cosl'.
71878         * modules/cosl-tests: New file.
71879         * tests/test-cosl.c: New file.
71881         Tests for module 'atanl'.
71882         * modules/atanl-tests: New file.
71883         * tests/test-atanl.c: New file.
71885         Tests for module 'asinl'.
71886         * modules/asinl-tests: New file.
71887         * tests/test-asinl.c: New file.
71889         Tests for module 'acosl'.
71890         * modules/acosl-tests: New file.
71891         * tests/test-acosl.c: New file.
71893         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71894         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
71895         tanl): Use the standard gnulib idiom.
71896         * lib/cosl.c: Don't include trigl.c and sincosl.c.
71897         * lib/sinl.c: Likewise.
71898         * lib/tanl.c: Don't include trigl.c.
71899         (kernel_tanl): Make static.
71900         * lib/sincosl.c: Include trigl.h first.
71901         * lib/trigl.c: Likewise.
71902         * m4/acosl.m4: New file.
71903         * m4/asinl.m4: New file.
71904         * m4/atanl.m4: New file.
71905         * m4/cosl.m4: New file.
71906         * m4/expl.m4: New file.
71907         * m4/logl.m4: New file.
71908         * m4/sinl.m4: New file.
71909         * m4/sqrtl.m4: New file.
71910         * m4/tanl.m4: New file.
71911         * m4/mathl.m4: Remove file.
71912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
71913         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71914         Don't initialize GNULIB_MATHL.
71915         * modules/acosl: New file.
71916         * modules/asinl: New file.
71917         * modules/atanl: New file.
71918         * modules/cosl: New file.
71919         * modules/expl: New file.
71920         * modules/logl: New file.
71921         * modules/sinl: New file.
71922         * modules/sqrtl: New file.
71923         * modules/tanl: New file.
71924         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
71925         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
71926         substitute GNULIB_MATHL.
71927         * modules/mathl: Rewritten.
71928         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
71929         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
71930         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
71931         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
71932         * doc/posix-functions/expl.texi: Mention the 'expl' module.
71933         * doc/posix-functions/logl.texi: Mention the 'logl' module.
71934         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
71935         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
71936         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
71938 2010-01-18  Bruno Haible  <bruno@clisp.org>
71940         sqrt: Make gl_FUNC_SQRT requirable.
71941         * m4/sqrt.m4: New file.
71942         * modules/sqrt (Files): Add it.
71943         (configure.ac): Invoke gl_FUNC_SQRT.
71945 2010-01-18  Bruno Haible  <bruno@clisp.org>
71947         New modules for common <math.h> functions.
71948         * m4/mathfunc.m4: New file.
71949         * modules/acos: New file.
71950         * modules/asin: New file.
71951         * modules/atan: New file.
71952         * modules/atan2: New file.
71953         * modules/cbrt: New file.
71954         * modules/copysign: New file.
71955         * modules/cos: New file.
71956         * modules/cosh: New file.
71957         * modules/erf: New file.
71958         * modules/erfc: New file.
71959         * modules/exp: New file.
71960         * modules/fabs: New file.
71961         * modules/fmod: New file.
71962         * modules/hypot: New file.
71963         * modules/j0: New file.
71964         * modules/j1: New file.
71965         * modules/jn: New file.
71966         * modules/ldexp: New file.
71967         * modules/lgamma: New file.
71968         * modules/log: New file.
71969         * modules/log10: New file.
71970         * modules/log1p: New file.
71971         * modules/logb: New file.
71972         * modules/modf: New file.
71973         * modules/nextafter: New file.
71974         * modules/pow: New file.
71975         * modules/remainder: New file.
71976         * modules/rint: New file.
71977         * modules/sin: New file.
71978         * modules/sinh: New file.
71979         * modules/sqrt: New file.
71980         * modules/tan: New file.
71981         * modules/tanh: New file.
71982         * modules/y0: New file.
71983         * modules/y1: New file.
71984         * modules/yn: New file.
71985         * doc/posix-functions/acos.texi: Mention the 'acos' module.
71986         * doc/posix-functions/asin.texi: Mention the 'asin' module.
71987         * doc/posix-functions/atan.texi: Mention the 'atan' module.
71988         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
71989         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
71990         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
71991         * doc/posix-functions/cos.texi: Mention the 'cos' module.
71992         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
71993         * doc/posix-functions/erf.texi: Mention the 'erf' module.
71994         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
71995         * doc/posix-functions/exp.texi: Mention the 'exp' module.
71996         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
71997         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
71998         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
71999         * doc/posix-functions/j0.texi: Mention the 'j0' module.
72000         * doc/posix-functions/j1.texi: Mention the 'j1' module.
72001         * doc/posix-functions/jn.texi: Mention the 'jn' module.
72002         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
72003         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
72004         * doc/posix-functions/log.texi: Mention the 'log' module.
72005         * doc/posix-functions/log10.texi: Mention the 'log10' module.
72006         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
72007         * doc/posix-functions/logb.texi: Mention the 'logb' module.
72008         * doc/posix-functions/modf.texi: Mention the 'modf' module.
72009         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
72010         * doc/posix-functions/pow.texi: Mention the 'pow' module.
72011         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
72012         * doc/posix-functions/rint.texi: Mention the 'rint' module.
72013         * doc/posix-functions/sin.texi: Mention the 'sin' module.
72014         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
72015         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
72016         * doc/posix-functions/tan.texi: Mention the 'tan' module.
72017         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
72018         * doc/posix-functions/y0.texi: Mention the 'y0' module.
72019         * doc/posix-functions/y1.texi: Mention the 'y1' module.
72020         * doc/posix-functions/yn.texi: Mention the 'yn' module.
72022 2010-01-18  Jim Meyering  <meyering@redhat.com>
72024         ignore-value: relax license to LGPLv2+
72025         * modules/ignore-value (License): Relax to LGPLv2+.
72027         getdate: don't leak when TZ contains two or more '"'s
72028         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
72029         double quote in TZ after the first one.
72031         readtokens: do not leak internal token_lengths buffer
72032         * lib/readtokens.c (readtokens): Free the local, lengths,
72033         when the supplied "token_lengths" parameter is NULL.
72035 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72037         Fix a couple of missing LIBTHREAD link failures on AIX.
72038         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
72039         $(LIBTHREAD).
72040         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
72042         Link test-poll against INET_PTON_LIB.
72043         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
72044         for inet_pton on Solaris 10.
72046 2010-01-17  Bruno Haible  <bruno@clisp.org>
72048         unistdio/*-sprintf: Fix typo in module description.
72049         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
72050         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
72051         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
72052         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
72053         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
72054         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
72055         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
72056         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72058 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72060         gnulib-tool: fix filelist for AIX, HP-UX ksh.
72061         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
72062         variables in shell case patterns, for AIX and HP-UX ksh.
72064         Split large sed scripts, for HP-UX sed.
72065         * modules/stdio: Split sed scripts around 50 sed commands,
72066         to avoid HP-UX limit of 99 commands, in the near future.
72067         * modules/string: Likewise.
72068         * modules/unistd: Likewise.
72070         gnulib-tool: avoid writing in the current directory.
72071         * gnulib-tool (func_emit_lib_Makefile_am)
72072         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
72073         not in the current directory, so concurrent gnulib-tool
72074         instances do not interfere.
72076 2010-01-16  Jim Meyering  <meyering@redhat.com>
72078         doc: update users.txt
72079         * users.txt: Add grep.
72080         (diffutils, gzip): Update URLs.
72082 2010-01-12  Bruno Haible  <bruno@clisp.org>
72084         posix_spawn: Avoid test failure on Cygwin.
72085         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
72086         characters.
72087         Reported by Simon Josefsson.
72089 2010-01-12  Bruno Haible  <bruno@clisp.org>
72091         * tests/test-cond.c (main): When skipping the test, show the reason.
72093 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72095         * lib/striconv.c (str_cd_iconv): Avoid if before free.
72097 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72099         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
72100         VC_LIST_ALWAYS_EXCLUDE_REGEX.
72102 2010-01-12  Eric Blake  <ebb9@byu.net>
72104         build: guarantee AS_VAR_IF
72105         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
72106         (gl_AS_VAR_IF): Move...
72107         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
72108         Reported by Simon Josefsson.
72110 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72112         * lib/stdio.in.h: Fix typo.
72114 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72116         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
72117         libgpg-error.
72119 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72121         * tests/test-xalloc-die.sh: Use $EXEEXT.
72123 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72124             Bruno Haible  <bruno@clisp.org>
72126         getlogin, getlogin_r: Avoid test failure.
72127         * tests/test-getlogin.c: Include <stdio.h>.
72128         (main): Skip the test when the function fails because stdin is not a
72129         tty.
72130         * tests/test-getlogin_r.c: Include <stdio.h>.
72131         (main): Skip the test when the function fails because stdin is not a
72132         tty.
72134 2010-01-11  Eric Blake  <ebb9@byu.net>
72136         tests: avoid more large file warnings
72137         * tests/test-fflush.c: Avoid warning about ftell use.
72138         * tests/test-fseek.c: Avoid warning about fseek use.
72140 2010-01-10  Bruno Haible  <bruno@clisp.org>
72142         nproc: Work better on Linux when /proc and /sys are not mounted.
72143         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
72144         as lower bound when, on glibc/Linux systems,
72145         sysconf (_SC_NPROCESSORS_CONF) returns 1.
72146         Suggested by Pádraig Brady <P@draigbrady.com>.
72147         Reported by Dmitry V. Levin <ldv@altlinux.org>.
72149         nproc: Refactor.
72150         * lib/nproc.c (num_processors_via_affinity_mask): New function,
72151         extracted from num_processors.
72152         (num_processors): Call it.
72154 2010-01-11  Jim Meyering  <meyering@redhat.com>
72156         utimecmp: avoid new warning from upcoming gcc-4.5.0
72157         * lib/utimecmp.c (BILLION): Define using #define rather than an
72158         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
72160 2010-01-11  Eric Blake  <ebb9@byu.net>
72162         math: add portability warnings for classification macros
72163         * modules/math (Depends-on): Add warn-on-use.
72164         (Makefile.am): Provide new substitutions.
72165         * m4/math_h.m4 (gl_MATH_H): Require inline.
72166         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
72167         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72168         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
72169         implement warnings.
72171         unistd: warn on use of environ without module
72172         * modules/unistd (Depends-on): Add warn-on-use.
72173         (Makefile.am): Provide new substitutions.
72174         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
72175         * lib/unistd.in.h (environ): Wrap with a warning helper function.
72177         stdio: warn on suspicious uses
72178         * modules/stdio (Depends-on): Add warn-on-use.
72179         (Makefile.am): Provide new substitutions.
72180         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
72181         fseeko.
72182         * lib/stdio.in.h (gets): Always warn on use.
72183         (fseek, ftell): Adjust when warnings are issued, and honor
72184         _GL_NO_LARGE_FILES as a way to silence the warning.
72185         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
72186         any warning about large file offsets.
72187         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
72188         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
72189         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
72190         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
72191         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
72192         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
72193         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
72194         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
72196         warn-on-use: new module
72197         * modules/warn-on-use: New file.
72198         * build-aux/warn-on-use.h: Likewise.
72199         * m4/warn-on-use.m4: Likewise.
72200         * MODULES.html.sh (Support for building): Mention it.
72202 2010-01-10  Bruno Haible  <bruno@clisp.org>
72204         Tests for module 'unistr/u32-strdup'.
72205         * modules/unistr/u32-strdup-tests: New file.
72206         * tests/unistr/test-u32-strdup.c: New file.
72208         Tests for module 'unistr/u16-strdup'.
72209         * modules/unistr/u16-strdup-tests: New file.
72210         * tests/unistr/test-u16-strdup.c: New file.
72212         Tests for module 'unistr/u8-strdup'.
72213         * modules/unistr/u8-strdup-tests: New file.
72214         * tests/unistr/test-u8-strdup.c: New file.
72215         * tests/unistr/test-strdup.h: New file.
72217         Tests for module 'unistr/u32-strncmp'.
72218         * modules/unistr/u32-strncmp-tests: New file.
72219         * tests/unistr/test-u32-strncmp.c: New file.
72221         Tests for module 'unistr/u16-strncmp'.
72222         * modules/unistr/u16-strncmp-tests: New file.
72223         * tests/unistr/test-u16-strncmp.c: New file.
72225         Tests for module 'unistr/u8-strncmp'.
72226         * modules/unistr/u8-strncmp-tests: New file.
72227         * tests/unistr/test-u8-strncmp.c: New file.
72228         * tests/unistr/test-strncmp.h: New file.
72230         Tests for module 'unistr/u32-strcoll'.
72231         * modules/unistr/u32-strcoll-tests: New file.
72232         * tests/unistr/test-u32-strcoll.c: New file.
72234         Tests for module 'unistr/u16-strcoll'.
72235         * modules/unistr/u16-strcoll-tests: New file.
72236         * tests/unistr/test-u16-strcoll.c: New file.
72238         Tests for module 'unistr/u8-strcoll'.
72239         * modules/unistr/u8-strcoll-tests: New file.
72240         * tests/unistr/test-u8-strcoll.c: New file.
72242         Tests for module 'unistr/u32-strcmp'.
72243         * modules/unistr/u32-strcmp-tests: New file.
72244         * tests/unistr/test-u32-strcmp.c: New file.
72245         * tests/unistr/test-u32-strcmp.h: New file.
72247         Tests for module 'unistr/u16-strcmp'.
72248         * modules/unistr/u16-strcmp-tests: New file.
72249         * tests/unistr/test-u16-strcmp.c: New file.
72250         * tests/unistr/test-u16-strcmp.h: New file.
72252         Tests for module 'unistr/u8-strcmp'.
72253         * modules/unistr/u8-strcmp-tests: New file.
72254         * tests/unistr/test-u8-strcmp.c: New file.
72255         * tests/unistr/test-u8-strcmp.h: New file.
72256         * tests/unistr/test-strcmp.h: New file.
72258         Tests for module 'unistr/u32-strncat'.
72259         * modules/unistr/u32-strncat-tests: New file.
72260         * tests/unistr/test-u32-strncat.c: New file.
72262         Tests for module 'unistr/u16-strncat'.
72263         * modules/unistr/u16-strncat-tests: New file.
72264         * tests/unistr/test-u16-strncat.c: New file.
72266         Tests for module 'unistr/u8-strncat'.
72267         * modules/unistr/u8-strncat-tests: New file.
72268         * tests/unistr/test-u8-strncat.c: New file.
72269         * tests/unistr/test-strncat.h: New file.
72271         Tests for module 'unistr/u32-strcat'.
72272         * modules/unistr/u32-strcat-tests: New file.
72273         * tests/unistr/test-u32-strcat.c: New file.
72275         Tests for module 'unistr/u16-strcat'.
72276         * modules/unistr/u16-strcat-tests: New file.
72277         * tests/unistr/test-u16-strcat.c: New file.
72279         Tests for module 'unistr/u8-strcat'.
72280         * modules/unistr/u8-strcat-tests: New file.
72281         * tests/unistr/test-u8-strcat.c: New file.
72282         * tests/unistr/test-strcat.h: New file.
72284         Tests for module 'unistr/u32-stpncpy'.
72285         * modules/unistr/u32-stpncpy-tests: New file.
72286         * tests/unistr/test-u32-stpncpy.c: New file.
72288         Tests for module 'unistr/u16-stpncpy'.
72289         * modules/unistr/u16-stpncpy-tests: New file.
72290         * tests/unistr/test-u16-stpncpy.c: New file.
72292         Tests for module 'unistr/u8-stpncpy'.
72293         * modules/unistr/u8-stpncpy-tests: New file.
72294         * tests/unistr/test-u8-stpncpy.c: New file.
72295         * tests/unistr/test-stpncpy.h: New file.
72297         Tests for module 'unistr/u32-strncpy'.
72298         * modules/unistr/u32-strncpy-tests: New file.
72299         * tests/unistr/test-u32-strncpy.c: New file.
72301         Tests for module 'unistr/u16-strncpy'.
72302         * modules/unistr/u16-strncpy-tests: New file.
72303         * tests/unistr/test-u16-strncpy.c: New file.
72305         Tests for module 'unistr/u8-strncpy'.
72306         * modules/unistr/u8-strncpy-tests: New file.
72307         * tests/unistr/test-u8-strncpy.c: New file.
72308         * tests/unistr/test-strncpy.h: New file.
72310         Tests for module 'unistr/u32-stpcpy'.
72311         * modules/unistr/u32-stpcpy-tests: New file.
72312         * tests/unistr/test-u32-stpcpy.c: New file.
72314         Tests for module 'unistr/u16-stpcpy'.
72315         * modules/unistr/u16-stpcpy-tests: New file.
72316         * tests/unistr/test-u16-stpcpy.c: New file.
72318         Tests for module 'unistr/u8-stpcpy'.
72319         * modules/unistr/u8-stpcpy-tests: New file.
72320         * tests/unistr/test-u8-stpcpy.c: New file.
72321         * tests/unistr/test-stpcpy.h: New file.
72323         Tests for module 'unistr/u32-strcpy'.
72324         * modules/unistr/u32-strcpy-tests: New file.
72325         * tests/unistr/test-u32-strcpy.c: New file.
72327         Tests for module 'unistr/u16-strcpy'.
72328         * modules/unistr/u16-strcpy-tests: New file.
72329         * tests/unistr/test-u16-strcpy.c: New file.
72331         Tests for module 'unistr/u8-strcpy'.
72332         * modules/unistr/u8-strcpy-tests: New file.
72333         * tests/unistr/test-u8-strcpy.c: New file.
72334         * tests/unistr/test-strcpy.h: New file.
72336         Tests for module 'unistr/u32-strnlen'.
72337         * modules/unistr/u32-strnlen-tests: New file.
72338         * tests/unistr/test-u32-strnlen.c: New file.
72340         Tests for module 'unistr/u16-strnlen'.
72341         * modules/unistr/u16-strnlen-tests: New file.
72342         * tests/unistr/test-u16-strnlen.c: New file.
72344         Tests for module 'unistr/u8-strnlen'.
72345         * modules/unistr/u8-strnlen-tests: New file.
72346         * tests/unistr/test-u8-strnlen.c: New file.
72347         * tests/unistr/test-strnlen.h: New file.
72349         Tests for module 'unistr/u32-strlen'.
72350         * modules/unistr/u32-strlen-tests: New file.
72351         * tests/unistr/test-u32-strlen.c: New file.
72353         Tests for module 'unistr/u16-strlen'.
72354         * modules/unistr/u16-strlen-tests: New file.
72355         * tests/unistr/test-u16-strlen.c: New file.
72357         Tests for module 'unistr/u8-strlen'.
72358         * modules/unistr/u8-strlen-tests: New file.
72359         * tests/unistr/test-u8-strlen.c: New file.
72361         Tests for module 'unistr/u32-prev'.
72362         * modules/unistr/u32-prev-tests: New file.
72363         * tests/unistr/test-u32-prev.c: New file.
72365         Tests for module 'unistr/u16-prev'.
72366         * modules/unistr/u16-prev-tests: New file.
72367         * tests/unistr/test-u16-prev.c: New file.
72369         Tests for module 'unistr/u8-prev'.
72370         * modules/unistr/u8-prev-tests: New file.
72371         * tests/unistr/test-u8-prev.c: New file.
72373         Tests for module 'unistr/u32-next'.
72374         * modules/unistr/u32-next-tests: New file.
72375         * tests/unistr/test-u32-next.c: New file.
72377         Tests for module 'unistr/u16-next'.
72378         * modules/unistr/u16-next-tests: New file.
72379         * tests/unistr/test-u16-next.c: New file.
72381         Tests for module 'unistr/u8-next'.
72382         * modules/unistr/u8-next-tests: New file.
72383         * tests/unistr/test-u8-next.c: New file.
72385         Tests for module 'unistr/u32-strmbtouc'.
72386         * modules/unistr/u32-strmbtouc-tests: New file.
72387         * tests/unistr/test-u32-strmbtouc.c: New file.
72389         Tests for module 'unistr/u16-strmbtouc'.
72390         * modules/unistr/u16-strmbtouc-tests: New file.
72391         * tests/unistr/test-u16-strmbtouc.c: New file.
72393         Tests for module 'unistr/u8-strmbtouc'.
72394         * modules/unistr/u8-strmbtouc-tests: New file.
72395         * tests/unistr/test-u8-strmbtouc.c: New file.
72397         Tests for module 'unistr/u32-strmblen'.
72398         * modules/unistr/u32-strmblen-tests: New file.
72399         * tests/unistr/test-u32-strmblen.c: New file.
72401         Tests for module 'unistr/u16-strmblen'.
72402         * modules/unistr/u16-strmblen-tests: New file.
72403         * tests/unistr/test-u16-strmblen.c: New file.
72405         Tests for module 'unistr/u8-strmblen'.
72406         * modules/unistr/u8-strmblen-tests: New file.
72407         * tests/unistr/test-u8-strmblen.c: New file.
72409         Tests for module 'unistr/u32-cpy-alloc'.
72410         * modules/unistr/u32-cpy-alloc-tests: New file.
72411         * tests/unistr/test-u32-cpy-alloc.c: New file.
72413         Tests for module 'unistr/u16-cpy-alloc'.
72414         * modules/unistr/u16-cpy-alloc-tests: New file.
72415         * tests/unistr/test-u16-cpy-alloc.c: New file.
72417         Tests for module 'unistr/u8-cpy-alloc'.
72418         * modules/unistr/u8-cpy-alloc-tests: New file.
72419         * tests/unistr/test-u8-cpy-alloc.c: New file.
72420         * tests/unistr/test-cpy-alloc.h: New file.
72422         Tests for module 'unistr/u32-mbsnlen'.
72423         * modules/unistr/u32-mbsnlen-tests: New file.
72424         * tests/unistr/test-u32-mbsnlen.c: New file.
72426         Tests for module 'unistr/u16-mbsnlen'.
72427         * modules/unistr/u16-mbsnlen-tests: New file.
72428         * tests/unistr/test-u16-mbsnlen.c: New file.
72430         Tests for module 'unistr/u8-mbsnlen'.
72431         * modules/unistr/u8-mbsnlen-tests: New file.
72432         * tests/unistr/test-u8-mbsnlen.c: New file.
72434         Tests for module 'unistr/u32-chr'.
72435         * modules/unistr/u32-chr-tests: New file.
72436         * tests/unistr/test-u32-chr.c: New file.
72438         Tests for module 'unistr/u16-chr'.
72439         * modules/unistr/u16-chr-tests: New file.
72440         * tests/unistr/test-u16-chr.c: New file.
72442         Tests for module 'unistr/u8-chr'.
72443         * modules/unistr/u8-chr-tests: New file.
72444         * tests/unistr/test-u8-chr.c: New file.
72445         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
72447         Tests for module 'unistr/u32-cmp2'.
72448         * modules/unistr/u32-cmp2-tests: New file.
72449         * tests/unistr/test-u32-cmp2.c: New file.
72451         Tests for module 'unistr/u16-cmp2'.
72452         * modules/unistr/u16-cmp2-tests: New file.
72453         * tests/unistr/test-u16-cmp2.c: New file.
72455         Tests for module 'unistr/u8-cmp2'.
72456         * modules/unistr/u8-cmp2-tests: New file.
72457         * tests/unistr/test-u8-cmp2.c: New file.
72458         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
72460         Tests for module 'unistr/u32-cmp'.
72461         * modules/unistr/u32-cmp-tests: New file.
72462         * tests/unistr/test-u32-cmp.c: New file.
72464         Tests for module 'unistr/u16-cmp'.
72465         * modules/unistr/u16-cmp-tests: New file.
72466         * tests/unistr/test-u16-cmp.c: New file.
72468         Tests for module 'unistr/u8-cmp'.
72469         * modules/unistr/u8-cmp-tests: New file.
72470         * tests/unistr/test-u8-cmp.c: New file.
72471         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
72473         Tests for module 'unistr/u32-set'.
72474         * modules/unistr/u32-set-tests: New file.
72475         * tests/unistr/test-u32-set.c: New file.
72477         Tests for module 'unistr/u16-set'.
72478         * modules/unistr/u16-set-tests: New file.
72479         * tests/unistr/test-u16-set.c: New file.
72481         Tests for module 'unistr/u8-set'.
72482         * modules/unistr/u8-set-tests: New file.
72483         * tests/unistr/test-u8-set.c: New file.
72484         * tests/unistr/test-set.h: New file.
72486         Tests for module 'unistr/u32-move'.
72487         * modules/unistr/u32-move-tests: New file.
72488         * tests/unistr/test-u32-move.c: New file.
72490         Tests for module 'unistr/u16-move'.
72491         * modules/unistr/u16-move-tests: New file.
72492         * tests/unistr/test-u16-move.c: New file.
72494         Tests for module 'unistr/u8-move'.
72495         * modules/unistr/u8-move-tests: New file.
72496         * tests/unistr/test-u8-move.c: New file.
72497         * tests/unistr/test-move.h: New file.
72499         Tests for module 'unistr/u32-cpy'.
72500         * modules/unistr/u32-cpy-tests: New file.
72501         * tests/unistr/test-u32-cpy.c: New file.
72503         Tests for module 'unistr/u16-cpy'.
72504         * modules/unistr/u16-cpy-tests: New file.
72505         * tests/unistr/test-u16-cpy.c: New file.
72507         Tests for module 'unistr/u8-cpy'.
72508         * modules/unistr/u8-cpy-tests: New file.
72509         * tests/unistr/test-u8-cpy.c: New file.
72510         * tests/unistr/test-cpy.h: New file.
72512 2010-01-09  Bruno Haible  <bruno@clisp.org>
72514         Tests for module 'unistr/u32-uctomb'.
72515         * modules/unistr/u32-uctomb-tests: New file.
72516         * tests/unistr/test-u32-uctomb.c: New file.
72518         Tests for module 'unistr/u16-uctomb'.
72519         * modules/unistr/u16-uctomb-tests: New file.
72520         * tests/unistr/test-u16-uctomb.c: New file.
72522         Tests for module 'unistr/u8-uctomb'.
72523         * modules/unistr/u8-uctomb-tests: New file.
72524         * tests/unistr/test-u8-uctomb.c: New file.
72526         Tests for module 'unistr/u32-mbtoucr'.
72527         * modules/unistr/u32-mbtoucr-tests: New file.
72528         * tests/unistr/test-u32-mbtoucr.c: New file.
72530         Tests for module 'unistr/u16-mbtoucr'.
72531         * modules/unistr/u16-mbtoucr-tests: New file.
72532         * tests/unistr/test-u16-mbtoucr.c: New file.
72534         Tests for module 'unistr/u8-mbtoucr'.
72535         * modules/unistr/u8-mbtoucr-tests: New file.
72536         * tests/unistr/test-u8-mbtoucr.c: New file.
72538         Tests for module 'unistr/u32-mbtouc'.
72539         * modules/unistr/u32-mbtouc-tests: New file.
72540         * tests/unistr/test-u32-mbtouc.c: New file.
72542         Tests for module 'unistr/u16-mbtouc'.
72543         * modules/unistr/u16-mbtouc-tests: New file.
72544         * tests/unistr/test-u16-mbtouc.c: New file.
72546         Tests for module 'unistr/u8-mbtouc'.
72547         * modules/unistr/u8-mbtouc-tests: New file.
72548         * tests/unistr/test-u8-mbtouc.c: New file.
72550         Tests for module 'unistr/u32-mbtouc-unsafe'.
72551         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
72552         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
72553         * tests/unistr/test-u32-mbtouc.h: New file.
72555         Tests for module 'unistr/u16-mbtouc-unsafe'.
72556         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
72557         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
72558         * tests/unistr/test-u16-mbtouc.h: New file.
72560         Tests for module 'unistr/u8-mbtouc-unsafe'.
72561         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
72562         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
72563         * tests/unistr/test-u8-mbtouc.h: New file.
72565         Tests for module 'unistr/u32-mblen'.
72566         * modules/unistr/u32-mblen-tests: New file.
72567         * tests/unistr/test-u32-mblen.c: New file.
72569         Tests for module 'unistr/u16-mblen'.
72570         * modules/unistr/u16-mblen-tests: New file.
72571         * tests/unistr/test-u16-mblen.c: New file.
72573         Tests for module 'unistr/u8-mblen'.
72574         * modules/unistr/u8-mblen-tests: New file.
72575         * tests/unistr/test-u8-mblen.c: New file.
72577         Tests for module 'unistr/u32-to-u16'.
72578         * modules/unistr/u32-to-u16-tests: New file.
72579         * tests/unistr/test-u32-to-u16.c: New file.
72581         Tests for module 'unistr/u32-to-u8'.
72582         * modules/unistr/u32-to-u8-tests: New file.
72583         * tests/unistr/test-u32-to-u8.c: New file.
72585         Tests for module 'unistr/u16-to-u32'.
72586         * modules/unistr/u16-to-u32-tests: New file.
72587         * tests/unistr/test-u16-to-u32.c: New file.
72589         Tests for module 'unistr/u16-to-u8'.
72590         * modules/unistr/u16-to-u8-tests: New file.
72591         * tests/unistr/test-u16-to-u8.c: New file.
72593         Tests for module 'unistr/u8-to-u32'.
72594         * modules/unistr/u8-to-u32-tests: New file.
72595         * tests/unistr/test-u8-to-u32.c: New file.
72597         Tests for module 'unistr/u8-to-u16'.
72598         * modules/unistr/u8-to-u16-tests: New file.
72599         * tests/unistr/test-u8-to-u16.c: New file.
72601         Tests for module 'unistr/u32-check'.
72602         * modules/unistr/u32-check-tests: New file.
72603         * tests/unistr/test-u32-check.c: New file.
72605         Tests for module 'unistr/u16-check'.
72606         * modules/unistr/u16-check-tests: New file.
72607         * tests/unistr/test-u16-check.c: New file.
72609         Tests for module 'unistr/u8-check'.
72610         * modules/unistr/u8-check-tests: New file.
72611         * tests/unistr/test-u8-check.c: New file.
72613         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
72614         (category_equals): New function.
72615         (main): Add more tests.
72616         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
72618         * tests/unictype/test-bidi_byname.c (main): Add more tests.
72620 2010-01-10  Bruno Haible  <bruno@clisp.org>
72622         unistr/u*-strcoll: Try harder to distinguish different strings.
72623         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
72624         compare s1 and s2 to see if they are different.
72626 2010-01-10  Bruno Haible  <bruno@clisp.org>
72628         unistr/u*-stpncpy: Fix the return value.
72629         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
72630         description of the return value consistent with stpncpy in glibc.
72631         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
72632         written non-NUL unit.
72634 2010-01-10  Bruno Haible  <bruno@clisp.org>
72636         unistr/u*-next: Add missing dependencies.
72637         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
72638         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
72639         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
72641 2010-01-10  Bruno Haible  <bruno@clisp.org>
72643         unistr/u8-mbsnlen: Fix return value for incomplete character.
72644         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
72645         u8_mblen.
72646         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
72647         Remove unistr/u8-mblen.
72648         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
72649         u16_mblen.
72650         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
72651         Remove unistr/u16-mblen.
72653 2010-01-10  Bruno Haible  <bruno@clisp.org>
72655         wchar: Fix compilation error when <wchar.h> is used from coreutils.
72656         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
72657         Reported by Brian Gough <bjg@gnu.org> and
72658         Chris Clayton <chris2553@googlemail.com> via
72659         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
72661 2010-01-09  Bruno Haible  <bruno@clisp.org>
72663         unistr/u16-to-u32: Reject invalid input.
72664         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
72665         u16_mbtouc.
72666         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
72667         Remove unistr/u16-mbtouc.
72669         unistr/u16-to-u8: Reject invalid input.
72670         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
72671         u16_mbtouc.
72672         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
72673         Remove unistr/u16-mbtouc.
72675         unistr/u8-to-u32: Reject invalid input.
72676         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
72677         u8_mbtouc.
72678         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
72679         Remove unistr/u8-mbtouc.
72681         unistr/u8-to-u16: Reject invalid input.
72682         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
72683         u8_mbtouc.
72684         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
72685         Remove unistr/u8-mbtouc.
72687 2010-01-09  Bruno Haible  <bruno@clisp.org>
72689         Tests for module 'getlogin'.
72690         * modules/getlogin-tests: New file.
72691         * tests/test-getlogin.c: New file.
72693         New module 'getlogin'.
72694         * lib/unistd.in.h (getlogin): New declaration.
72695         * lib/getlogin.c: New file.
72696         * m4/getlogin.m4: New file.
72697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
72698         HAVE_GETLOGIN.
72699         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
72700         HAVE_GETLOGIN.
72701         * modules/getlogin: New file.
72702         * doc/posix-functions/getlogin.texi: Mention the new module.
72703         Reported by John W. Eaton <jwe@gnu.org>.
72705 2010-01-09  Bruno Haible  <bruno@clisp.org>
72707         getlogin_r: Support for native Windows.
72708         * lib/getlogin_r.c: Include <windows.h>
72709         (getlogin_r): Implement for native Windows.
72710         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
72711         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
72712         via John W. Eaton <jwe@gnu.org>.
72714 2010-01-09  Bruno Haible  <bruno@clisp.org>
72716         getlogin_r: Small fixes.
72717         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
72718         succeeds.
72719         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
72720         before testing whether getlogin_r is declared. No need to set
72721         HAVE_DECL_GETLOGIN_R to 1.
72722         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
72724 2010-01-09  Bruno Haible  <bruno@clisp.org>
72726         * lib/unistd.in.h (getlogin_r): Add comment.
72728 2010-01-09  Bruno Haible  <bruno@clisp.org>
72730         Tests for module 'getlogin_r'.
72731         * modules/getlogin_r-tests: New file.
72732         * tests/test-getlogin_r.c: New file.
72734 2010-01-09  Jim Meyering  <meyering@redhat.com>
72736         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
72737         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
72738         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
72740 2010-01-08  Simon Josefsson  <simon@josefsson.org>
72742         * lib/dup2.c (rpl_dup2): Improve comment.
72744 2010-01-08  Eric Blake  <ebb9@byu.net>
72746         maint.mk: allow packages to add makefile @@ exceptions
72747         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
72748         (sc_makefile_check): Rename...
72749         (sc_makefile_at_at_check): ...to this, and use hook.
72751         dup2: work around mingw bug
72752         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
72753         Reported by Simon Josefsson.
72755 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
72757         glob: Fix C++ compilation.
72758         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
72759         C++.
72761 2010-01-07  Bruno Haible  <bruno@clisp.org>
72763         Fix indentation of wctype.in.h, broken since 2007-01-06.
72764         * lib/wctype.in.h: Fix indentation of preprocessor directives.
72766 2010-01-07  Bruno Haible  <bruno@clisp.org>
72768         mbslen: Avoid collision with system function.
72769         * lib/string.in.h [MirBSD]: Include <wchar.h>.
72770         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
72771         * m4/mbslen.m4: New file.
72772         * modules/mbslen (Files): Add it.
72773         (configure.ac): Invoke gl_MBSLEN.
72774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
72775         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
72776         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
72777         via Ian Beckwith <ianb@erislabs.net>.
72779 2010-01-07  Bruno Haible  <bruno@clisp.org>
72781         dirent: Document the last fix.
72782         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
72784 2010-01-07  Bruno Haible  <bruno@clisp.org>
72786         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
72787         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
72788         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
72789         va_list are defined.
72790         * doc/posix-headers/stdio.texi: Document the bug of missing types.
72791         Reported by Eric Blake.
72793 2010-01-07  Bruno Haible  <bruno@clisp.org>
72795         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
72796         * modules/xlist (Depends-on): Add 'list',
72797         * modules/xoset (Depends-on): Add 'oset'.
72798         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72800 2010-01-07  Bruno Haible  <bruno@clisp.org>
72802         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
72803         * doc/posix-functions/strncasecmp.texi: Likewise.
72805 2010-01-07  Bruno Haible  <bruno@clisp.org>
72807         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
72809 2010-01-07  John W. Eaton  <jwe@octave.org>
72811         wctype: allow C++ use
72812         * lib/wctype.in.h: Add extern "C" block for C++.
72814 2010-01-06  Eric Blake  <ebb9@byu.net>
72816         maint.mk: detect incorrect GFDL usage
72817         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
72819 2010-01-06  Jim Meyering  <meyering@redhat.com>
72820         and Eric Blake  <ebb9@byu.net>
72822         maint.mk: ignore multi-line copyright in NEWS
72823         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
72825 2010-01-06  Eric Blake  <ebb9@byu.net>
72827         select: add missing dependency
72828         * modules/select-tests (Depends-on): Move sockets dependency...
72829         * modules/select (Depends-on): ...here.
72830         Reported by Ian Beckwith.
72832         doc: regenerate INSTALL
72833         * doc/INSTALL: Reflect recent autoconf update.
72834         * doc/INSTALL.ISO: Likewise.
72835         * doc/INSTALL.UTF-8: Likewise.
72837         pread: fix compilation on glibc
72838         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
72839         Reported by Ralf Wildenhues.
72841         dirent: fix test failure
72842         * lib/dirent.in.h (includes): Guarantee ino_t.
72843         Reported by Ralf Wildenhues.
72845 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
72847         linkat, renameat: avoid bad free
72848         * lib/at-func2.c (at_func2): Fix typo.
72849         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
72851 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72853         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
72854         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
72855         to avoid failure of symlink test later.
72857 2010-01-06  Eric Blake  <ebb9@byu.net>
72859         stdio, unistd: guarantee ssize_t
72860         * lib/unistd.in.h (includes): Ensure that types required by POSIX
72861         2008 are exposed when needed.
72862         * lib/stdio.in.h (includes): Likewise.
72863         Reported by Ralf Wildenhues.
72865 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
72867         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
72868         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
72869         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
72871 2010-01-06  Jim Meyering  <meyering@redhat.com>
72873         readtokens: this module *does* require xalloc.h
72874         It uses only functions that were omitted by the old syntax-check rule.
72875         * lib/readtokens.c: Include "xalloc.h" once again.
72876         * modules/readtokens (Depends-on): Add xalloc.
72877         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
72879 2010-01-05  Eric Blake  <ebb9@byu.net>
72881         maint: support 'make announcement' from a VPATH build
72882         * top/maint.mk (announcement): Look for correct NEWS file.
72884 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
72886         utimens (fdutimens): ignore a negative FD, per contract
72887         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
72888         when we have a valid file descriptor.  Otherwise, using a brand
72889         new glibc (with just-patched futimens that now fails with EBADF)
72890         would cause this function to fail with ENOSYS.
72891         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
72892         See also http://bugzilla.redhat.com/552320.
72894 2010-01-05  Eric Blake  <ebb9@byu.net>
72896         strcase: document what it provides
72897         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
72898         gnulib module.
72899         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
72900         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
72902 2010-01-05  Jim Meyering  <meyering@redhat.com>
72904         maint: remove useless inclusions of "xalloc.h"
72905         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
72906         * lib/readtokens.c: Likewise.
72907         * lib/same.c: Likewise.
72908         * modules/getloadavg (Depends-on): Remove xalloc.
72909         * modules/readtokens: Likewise.
72910         * modules/same: Likewise.
72912         maint.mk: include 4 more function names in alloca.h-checking regexp
72913         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
72914         regexp.  Before, we would give a false-positive (saying alloca.h
72915         is included unnecessarily) when the only uses involved omitted symbols.
72917         xalloc.h: use consistent formatting
72918         * lib/xalloc.h: Move declarations to start in the first column.
72920 2010-01-05  Eric Blake  <ebb9@byu.net>
72922         mkdir: avoid xalloc
72923         * lib/mkdir.c (includes): Drop unused header.
72924         Reported by John W. Eaton.
72926 2010-01-04  Jim Meyering  <meyering@redhat.com>
72928         nl_langinfo: avoid configure-time syntax error
72929         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
72930         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
72931         the empty string.  Don't let that provoke a shell syntax error.
72933         regcomp, regexec, fnmatch: avoid array bounds read error
72934         * lib/regcomp.c (build_equiv_class): From glibc:
72935         Use only the low 24 bits of a findidx return value as an index
72936         into the weights array.  Patch by Ulrich Drepper:
72937         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
72938         * lib/regexec.c (check_node_accept_bytes): Likewise.
72939         * lib/fnmatch_loop.c (FCT): Likewise.
72941         regcomp: skip collseq lookup when there are no rules
72942         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
72943         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
72945         regcomp: recognize ill-formed { } expressions
72946         * lib/regcomp.c (parse_dup_op): From glibc:
72947         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
72949         regcomp: fix typo in comment
72950         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
72951         s/satisfy/satisfies/.
72953         regcomp: sync from glibc: remove dead store
72954         * lib/regcomp.c (duplicate_node_closure): Remove useless
72955         search_duplicated_node call and dead store.
72957         regcomp: sync from glibc; always use nl_langinfo
72958         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
72959         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
72960         * modules/regex (Depends-on): Add nl_langinfo.
72962 2010-01-04  Eric Blake  <ebb9@byu.net>
72964         fdopendir: fix configure test
72965         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
72967 2010-01-01  Bruno Haible  <bruno@clisp.org>
72969         wchar: Remove unused configure check.
72970         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
72972 2010-01-01  Eric Blake  <ebb9@byu.net>
72974         headers: make check of system header explicit
72975         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
72976         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
72977         ourselves.
72978         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72979         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72980         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
72981         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
72982         internals.
72983         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
72984         missing.
72985         Suggested by Bruno Haible.
72987 2010-01-01  Jim Meyering  <meyering@redhat.com>
72989         ChangeLog: tweak to eliminate unnecessary copyright line
72990         * ChangeLog: Remove a copyright line that was mistakenly updated
72991         by today's update-copyright run.  Reported by Eric Blake.
72993         test-update-copyright: don't let envvar setting cause test failure
72994         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
72996 2010-01-01  Bruno Haible  <bruno@clisp.org>
72998         localename: Avoid gcc warning.
72999         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
73000         function if it is not used.
73002 2010-01-01  Jim Meyering  <meyering@redhat.com>
73004         update nearly all FSF copyright year lists to include 2010
73005         Use the same procedure as for 2009, outlined in
73006         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
73008         version-etc: set COPYRIGHT_YEAR to 2010
73009         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
73011 2009-12-31  Eric Blake  <ebb9@byu.net>
73013         doc: correct availability of cygwin 1.5.x getopt
73014         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
73015         variables.
73016         * doc/posix-functions/opterr.texi (opterr): Likewise.
73017         * doc/posix-functions/optind.texi (optind): Likewise.
73018         * doc/posix-functions/optopt.texi (optopt): Likewise.
73019         * doc/posix-functions/tzname.texi (tzname): Likewise.
73021         openat: update maintainer
73022         * modules/openat (Maintainer): Add myself.
73024         utimens: avoid shadowing warning
73025         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
73026         buffers into one, to avoid shadowing, as well as avoiding a
73027         redundant stat.
73028         Reported by Jim Meyering.
73030         test-dup2: avoid compiler warning
73031         * tests/test-dup2.c (is_inheritable): Only define if used.
73033 2010-01-01  Bruno Haible  <bruno@clisp.org>
73035         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
73036         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
73037         defined, use wctomb instead of wcrtomb.
73039 2010-01-01  Bruno Haible  <bruno@clisp.org>
73041         iconv: Reject native Solaris iconv.
73042         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
73043         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
73045 2009-12-31  Bruno Haible  <bruno@clisp.org>
73047         * tests/test-signal.c (main): Remove test of 'SIG'.
73049 2009-12-31  Bruno Haible  <bruno@clisp.org>
73051         spawn: Fix incomplete fix.
73052         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73053         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73054         warnings for GNULIB_POSIXCHECK again.
73055         Reported by Eric Blake.
73057 2009-12-31  Bruno Haible  <bruno@clisp.org>
73059         Avoid namespace pollution on glibc systems.
73060         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
73061         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
73062         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
73063         glibc systems.
73065 2009-12-31  Bruno Haible  <bruno@clisp.org>
73067         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
73068         (gl_REPLACE_WCHAR_H): Turn into a no-op.
73069         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
73070         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
73071         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
73072         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
73073         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
73075 2009-12-31  Bruno Haible  <bruno@clisp.org>
73077         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
73078         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
73079         afterwards.
73081 2009-12-31  Bruno Haible  <bruno@clisp.org>
73083         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
73084         SYS_UTSNAME_H.
73086 2009-12-31  Bruno Haible  <bruno@clisp.org>
73088         spawn: Fix misapplied patch.
73089         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73090         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73091         warnings for GNULIB_POSIXCHECK.
73093 2009-12-31  Bruno Haible  <bruno@clisp.org>
73095         times: Update after sys_times changed.
73096         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
73097         * modules/times (Files): Add it.
73098         (configure.ac): Invoke gl_FUNC_TIMES.
73100 2009-12-31  Bruno Haible  <bruno@clisp.org>
73102         Use AC_C_INLINE where necessary.
73103         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
73104         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73105         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73106         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
73107         * m4/mbfile.m4 (gl_MBFILE): Likewise.
73108         * m4/mbiter.m4 (gl_MBITER): Likewise.
73109         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73110         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
73111         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
73112         * modules/u64 (configure.ac): Likewise.
73114 2009-12-31  Bruno Haible  <bruno@clisp.org>
73116         Use AC_C_INLINE instead of module 'inline' where possible.
73117         * modules/inline (Description): Clarify purpose.
73118         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
73119         * modules/count-one-bits (Depends-on): Remove inline.
73120         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
73121         * modules/openat (Depends-on): Remove inline.
73122         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
73123         instead of depending on module 'inline'.
73124         * modules/filevercmp (Depends-on, configure.ac): Likewise.
73125         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
73126         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
73127         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
73128         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
73129         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
73130         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
73131         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
73132         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
73133         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
73134         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
73135         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
73136         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
73137         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
73138         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
73139         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
73140         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
73141         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
73142         Likewise.
73143         * modules/unictype/property-ascii-hex-digit (Depends-on,
73144         configure.ac): Likewise.
73145         * modules/unictype/property-bidi-arabic-digit (Depends-on,
73146         configure.ac): Likewise.
73147         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
73148         configure.ac): Likewise.
73149         * modules/unictype/property-bidi-block-separator (Depends-on,
73150         configure.ac): Likewise.
73151         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
73152         configure.ac): Likewise.
73153         * modules/unictype/property-bidi-common-separator (Depends-on,
73154         configure.ac): Likewise.
73155         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
73156         Likewise.
73157         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
73158         configure.ac): Likewise.
73159         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
73160         configure.ac): Likewise.
73161         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
73162         configure.ac): Likewise.
73163         * modules/unictype/property-bidi-european-digit (Depends-on,
73164         configure.ac): Likewise.
73165         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
73166         configure.ac): Likewise.
73167         * modules/unictype/property-bidi-left-to-right (Depends-on,
73168         configure.ac): Likewise.
73169         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
73170         configure.ac): Likewise.
73171         * modules/unictype/property-bidi-other-neutral (Depends-on,
73172         configure.ac): Likewise.
73173         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
73174         Likewise.
73175         * modules/unictype/property-bidi-segment-separator (Depends-on,
73176         configure.ac): Likewise.
73177         * modules/unictype/property-bidi-whitespace (Depends-on,
73178         configure.ac): Likewise.
73179         * modules/unictype/property-combining (Depends-on, configure.ac):
73180         Likewise.
73181         * modules/unictype/property-composite (Depends-on, configure.ac):
73182         Likewise.
73183         * modules/unictype/property-currency-symbol (Depends-on,
73184         configure.ac): Likewise.
73185         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
73186         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
73187         Likewise.
73188         * modules/unictype/property-default-ignorable-code-point (Depends-on,
73189         configure.ac): Likewise.
73190         * modules/unictype/property-deprecated (Depends-on, configure.ac):
73191         Likewise.
73192         * modules/unictype/property-diacritic (Depends-on, configure.ac):
73193         Likewise.
73194         * modules/unictype/property-extender (Depends-on, configure.ac):
73195         Likewise.
73196         * modules/unictype/property-format-control (Depends-on, configure.ac):
73197         Likewise.
73198         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
73199         Likewise.
73200         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
73201         Likewise.
73202         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
73203         Likewise.
73204         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
73205         Likewise.
73206         * modules/unictype/property-hyphen (Depends-on, configure.ac):
73207         Likewise.
73208         * modules/unictype/property-id-continue (Depends-on, configure.ac):
73209         Likewise.
73210         * modules/unictype/property-id-start (Depends-on, configure.ac):
73211         Likewise.
73212         * modules/unictype/property-ideographic (Depends-on, configure.ac):
73213         Likewise.
73214         * modules/unictype/property-ids-binary-operator (Depends-on,
73215         configure.ac): Likewise.
73216         * modules/unictype/property-ids-trinary-operator (Depends-on,
73217         configure.ac): Likewise.
73218         * modules/unictype/property-ignorable-control (Depends-on,
73219         configure.ac): Likewise.
73220         * modules/unictype/property-iso-control (Depends-on, configure.ac):
73221         Likewise.
73222         * modules/unictype/property-join-control (Depends-on, configure.ac):
73223         Likewise.
73224         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
73225         Likewise.
73226         * modules/unictype/property-line-separator (Depends-on, configure.ac):
73227         Likewise.
73228         * modules/unictype/property-logical-order-exception (Depends-on,
73229         configure.ac): Likewise.
73230         * modules/unictype/property-lowercase (Depends-on, configure.ac):
73231         Likewise.
73232         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
73233         * modules/unictype/property-non-break (Depends-on, configure.ac):
73234         Likewise.
73235         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
73236         Likewise.
73237         * modules/unictype/property-numeric (Depends-on, configure.ac):
73238         Likewise.
73239         * modules/unictype/property-other-alphabetic (Depends-on,
73240         configure.ac): Likewise.
73241         * modules/unictype/property-other-default-ignorable-code-point
73242         (Depends-on, configure.ac): Likewise.
73243         * modules/unictype/property-other-grapheme-extend (Depends-on,
73244         configure.ac): Likewise.
73245         * modules/unictype/property-other-id-continue (Depends-on,
73246         configure.ac): Likewise.
73247         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
73248         Likewise.
73249         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
73250         Likewise.
73251         * modules/unictype/property-other-math (Depends-on, configure.ac):
73252         Likewise.
73253         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
73254         Likewise.
73255         * modules/unictype/property-paired-punctuation (Depends-on,
73256         configure.ac): Likewise.
73257         * modules/unictype/property-paragraph-separator (Depends-on,
73258         configure.ac): Likewise.
73259         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
73260         Likewise.
73261         * modules/unictype/property-pattern-white-space (Depends-on,
73262         configure.ac): Likewise.
73263         * modules/unictype/property-private-use (Depends-on, configure.ac):
73264         Likewise.
73265         * modules/unictype/property-punctuation (Depends-on, configure.ac):
73266         Likewise.
73267         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
73268         Likewise.
73269         * modules/unictype/property-radical (Depends-on, configure.ac):
73270         Likewise.
73271         * modules/unictype/property-sentence-terminal (Depends-on,
73272         configure.ac): Likewise.
73273         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
73274         Likewise.
73275         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
73276         * modules/unictype/property-terminal-punctuation (Depends-on,
73277         configure.ac): Likewise.
73278         * modules/unictype/property-titlecase (Depends-on, configure.ac):
73279         Likewise.
73280         * modules/unictype/property-unassigned-code-value (Depends-on,
73281         configure.ac): Likewise.
73282         * modules/unictype/property-unified-ideograph (Depends-on,
73283         configure.ac): Likewise.
73284         * modules/unictype/property-uppercase (Depends-on, configure.ac):
73285         Likewise.
73286         * modules/unictype/property-variation-selector (Depends-on,
73287         configure.ac): Likewise.
73288         * modules/unictype/property-white-space (Depends-on, configure.ac):
73289         Likewise.
73290         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
73291         Likewise.
73292         * modules/unictype/property-xid-start (Depends-on, configure.ac):
73293         Likewise.
73294         * modules/unictype/property-zero-width (Depends-on, configure.ac):
73295         Likewise.
73296         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
73297         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
73298         Likewise.
73300 2009-12-31  Bruno Haible  <bruno@clisp.org>
73302         Remove unnecessary AC_C_INLINE invocation.
73303         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
73304         since 2009-08-21.
73306 2009-12-31  Jim Meyering  <meyering@redhat.com>
73308         maint.mk: don't require explicit gpg_key_ID in cfg.mk
73309         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
73310         With this change, we can all remove the gpg_key_ID = ... definition
73311         from our respective cfg.mk files.
73313         maint.mk: create announcement template in ~/, not in /tmp
73314         * top/maint.mk (emit_upload_commands): Adjust.
73315         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
73316         Remove temporary file, .ci-msg.
73318 2009-12-31  Eric Blake  <ebb9@byu.net>
73320         link-warning: always build headers with link warnings
73321         * modules/arpa_inet (Makefile.am): Always build replacement
73322         header.
73323         * modules/ctype (Makefile.am): Likewise.
73324         * modules/dirent (Makefile.am): Likewise.
73325         * modules/inttypes (Makefile.am): Likewise.
73326         * modules/langinfo (Makefile.am): Likewise.
73327         * modules/locale (Makefile.am): Likewise.
73328         * modules/spawn (Makefile.am): Likewise.
73329         * modules/sys_file (Makefile.am): Likewise.
73330         * modules/sys_ioctl (Makefile.am): Likewise.
73331         * modules/sys_select (Makefile.am): Likewise.
73332         * modules/sys_socket (Makefile.am): Likewise.
73333         * modules/sys_times (Makefile.am): Likewise.
73334         * modules/sys_utsname (Makefile.am): Likewise.
73335         * modules/sys_wait (Makefile.am): Likewise.
73336         * modules/wchar (Makefile.am): Likewise.
73337         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
73338         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
73339         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
73340         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
73341         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
73342         Likewise.
73343         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73344         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73345         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
73346         Likewise.
73347         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
73348         Likewise.
73349         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
73350         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
73351         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
73352         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73353         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73354         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73355         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73356         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
73357         (gl_WCHAR_H_DEFAULTS): Likewise.
73359 2009-12-31  Eric Blake  <ebb9@byu.net>
73361         signal, spawn: use link warnings
73362         * lib/signal.in.h (sigset_t): Make unconditional.
73363         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
73364         (sigpending, sigprocmask, sigaction): Add link warnings.
73365         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
73366         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
73367         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
73368         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
73369         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
73370         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
73371         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
73372         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
73373         (posix_spawn_file_actions_destroy)
73374         (posix_spawn_file_actions_addopen)
73375         (posix_spawn_file_actions_addclose)
73376         (posix_spawn_file_actions_adddup2): Likewise.
73377         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
73378         * tests/test-signal.c (main): Enhance test.
73380         spawn: improve wrapper support
73381         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
73382         (gl_SPAWN_H_DEFAULTS): New defaults.
73383         * modules/spawn (Makefile.am): Substitute them.
73384         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
73385         Only declare if missing or broken.
73387         sys_times, sys_utsname: use include_next
73388         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
73389         header.
73390         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
73391         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73392         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73393         * modules/sys_times (Depends-on): Add include_next.
73394         (Makefile.am): Substitute additional values.
73395         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73396         * lib/sys_times.in.h (includes): Include native header, if
73397         available.
73398         * lib/sys_utsname.in.h (includes): Likewise.
73399         * tests/test-sys_times.c (main): Enhance test.
73401         fdutimensat: revert prior patch
73402         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
73403         utimens.h.
73404         Reported by Bruno Haible.
73406 2009-12-30  Eric Blake  <ebb9@byu.net>
73408         sys_wait: drop link-warning dependency
73409         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
73410         link-warning efforts.
73411         * lib/sys_wait.in.h: Likewise.
73413         fdutimensat: remove bogus dependency
73414         * modules/fdutimensat (Depends-on): Drop inline.
73416         unistd: fix typo
73417         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
73419 2009-12-30  Bruno Haible  <bruno@clisp.org>
73421         Fix compilation error with Solaris cc.
73422         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
73423         * lib/unicase/u16-is-invariant.c: Likewise.
73424         * lib/unicase/u32-is-invariant.c: Likewise.
73425         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73427 2009-12-30  Bruno Haible  <bruno@clisp.org>
73429         Fix test crash.
73430         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
73431         locales.
73432         Reported by Simon Josefsson <simon@josefsson.org>.
73434 2009-12-30  Bruno Haible  <bruno@clisp.org>
73436         Fix compilation error on most platforms.
73437         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
73438         Reported by Simon Josefsson <simon@josefsson.org>
73439         and Nelson H. F. Beebe <beebe@math.utah.edu>.
73441 2009-12-30  Eric Blake  <ebb9@byu.net>
73443         futimens, utimensat: work around ntfs-3g bug
73444         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
73445         a ctime bug is present, and expand workaround to cover ntfs-3g.
73446         * lib/utimens.c (fdutimens, lutimens): Likewise.
73447         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
73448         (validate_timespec): Adjust return value.
73449         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
73450         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73451         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
73453 2009-12-29  Eric Blake  <ebb9@byu.net>
73455         link-warning: make usage consistent
73456         * modules/ctype (Depends-on): Add link-warning.
73457         (Makefile.am): Update rules accordingly.
73458         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73459         * modules/locale (Depends-on, Makefile.am): Likewise.
73460         * modules/sys_file (Makefile.am): Likewise.
73461         * modules/getopt-posix (Makefile.am): Delete unused link warning
73462         efforts.
73463         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
73464         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
73465         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
73466         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
73468         stdio: remove unused variables
73469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
73470         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
73471         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
73473         tests: test more substitute headers
73474         * modules/ctype-tests: New file.
73475         * modules/dirent-tests: Likewise.
73476         * modules/spawn-tests: Likewise.
73477         * modules/sys_file-tests: Likewise.
73478         * modules/sys_ioctl-tests: Likewise.
73479         * modules/sys_wait-tests: Likewise.
73480         * tests/test-ctype.c: Likewise.
73481         * tests/test-dirent.c: Likewise.
73482         * tests/test-spawn.c: Likewise.
73483         * tests/test-sys_file.c: Likewise.
73484         * tests/test-sys_ioctl.c: Likewise.
73485         * tests/test-sys_wait.c: Likewise.
73486         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
73487         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
73488         whether or not flock is in use.
73490         tests: remove License section from module
73491         * modules/arpa_inet-tests: Remove unneeded section.
73492         * modules/byteswap-tests: Likewise.
73493         * modules/ceilf-tests: Likewise.
73494         * modules/ceill-tests: Likewise.
73495         * modules/crypto/des-tests: Likewise.
73496         * modules/crypto/gc-arcfour-tests: Likewise.
73497         * modules/crypto/gc-arctwo-tests: Likewise.
73498         * modules/crypto/gc-des-tests: Likewise.
73499         * modules/crypto/gc-hmac-md5-tests: Likewise.
73500         * modules/crypto/gc-hmac-sha1-tests: Likewise.
73501         * modules/crypto/gc-md2-tests: Likewise.
73502         * modules/crypto/gc-md4-tests: Likewise.
73503         * modules/crypto/gc-md5-tests: Likewise.
73504         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
73505         * modules/crypto/gc-rijndael-tests: Likewise.
73506         * modules/crypto/gc-sha1-tests: Likewise.
73507         * modules/crypto/gc-tests: Likewise.
73508         * modules/crypto/md2-tests: Likewise.
73509         * modules/crypto/md4-tests: Likewise.
73510         * modules/fcntl-h-tests: Likewise.
73511         * modules/floorf-tests: Likewise.
73512         * modules/floorl-tests: Likewise.
73513         * modules/frexp-nolibm-tests: Likewise.
73514         * modules/frexp-tests: Likewise.
73515         * modules/frexpl-nolibm-tests: Likewise.
73516         * modules/frexpl-tests: Likewise.
73517         * modules/getaddrinfo-tests: Likewise.
73518         * modules/inttypes-tests: Likewise.
73519         * modules/isfinite-tests: Likewise.
73520         * modules/isinf-tests: Likewise.
73521         * modules/ldexpl-tests: Likewise.
73522         * modules/locale-tests: Likewise.
73523         * modules/math-tests: Likewise.
73524         * modules/netdb-tests: Likewise.
73525         * modules/netinet_in-tests: Likewise.
73526         * modules/printf-frexp-tests: Likewise.
73527         * modules/printf-frexpl-tests: Likewise.
73528         * modules/priv-set-tests: Likewise.
73529         * modules/random_r-tests: Likewise.
73530         * modules/round-tests: Likewise.
73531         * modules/roundf-tests: Likewise.
73532         * modules/roundl-tests: Likewise.
73533         * modules/search-tests: Likewise.
73534         * modules/select-tests: Likewise.
73535         * modules/signal-tests: Likewise.
73536         * modules/stdbool-tests: Likewise.
73537         * modules/stddef-tests: Likewise.
73538         * modules/stdint-tests: Likewise.
73539         * modules/stdio-tests: Likewise.
73540         * modules/stdlib-tests: Likewise.
73541         * modules/string-tests: Likewise.
73542         * modules/strings-tests: Likewise.
73543         * modules/sys_select-tests: Likewise.
73544         * modules/sys_socket-tests: Likewise.
73545         * modules/sys_stat-tests: Likewise.
73546         * modules/sys_time-tests: Likewise.
73547         * modules/sys_utsname-tests: Likewise.
73548         * modules/sysexits-tests: Likewise.
73549         * modules/time-tests: Likewise.
73550         * modules/trunc-tests: Likewise.
73551         * modules/truncf-tests: Likewise.
73552         * modules/truncl-tests: Likewise.
73553         * modules/tsearch-tests: Likewise.
73554         * modules/unistd-tests: Likewise.
73555         * modules/wchar-tests: Likewise.
73556         * modules/wctype-tests: Likewise.
73558         tests: fix license on several tests
73559         * tests/test-des.c: Update to GPLv3+.
73560         * tests/test-flock.c: Likewise.
73561         * tests/test-fsync.c: Likewise.
73562         * tests/test-futimens.h: Likewise.
73563         * tests/test-gc-arcfour.c: Likewise.
73564         * tests/test-gc-arctwo.c: Likewise.
73565         * tests/test-gc-des.c: Likewise.
73566         * tests/test-gc-hmac-md5.c: Likewise.
73567         * tests/test-gc-hmac-sha1.c: Likewise.
73568         * tests/test-gc-md2.c: Likewise.
73569         * tests/test-gc-md4.c: Likewise.
73570         * tests/test-gc-md5.c: Likewise.
73571         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73572         * tests/test-gc-rijndael.c: Likewise.
73573         * tests/test-gc-sha1.c: Likewise.
73574         * tests/test-gc.c: Likewise.
73575         * tests/test-getcwd.c: Likewise.
73576         * tests/test-link.c: Likewise.
73577         * tests/test-link.h: Likewise.
73578         * tests/test-lutimens.h: Likewise.
73579         * tests/test-md2.c: Likewise.
73580         * tests/test-md4.c: Likewise.
73581         * tests/test-mkdir.h: Likewise.
73582         * tests/test-rename.c: Likewise.
73583         * tests/test-rename.h: Likewise.
73584         * tests/test-safe-alloc.c: Likewise.
73585         * tests/test-utimens-common.h: Likewise.
73586         * tests/test-utimens.h: Likewise.
73588         maint: sync license texts
73589         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
73590         * doc/gpl-3.0.texi: Revert copyright year update.
73591         * doc/lgpl-3.0.texi: Likewise.
73593 2009-12-29  Jim Meyering  <meyering@redhat.com>
73595         update nearly all FSF copyright year lists to include 2009
73596         The files named by the following are exempted:
73597             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
73598               test -f "$dst" && { echo "$dst"; continue; }
73599               test -d "$dst" || continue
73600               echo "$dst"/$(basename "$src")
73601             done > exempt
73602             git ls-files tests/unictype >> exempt
73603         In the remaining files, convert to all-interval notation if
73604         - there is already at least one year interval like 2000-2003
73605         - the file is maintained by me
73606         - the file is in lib/uni*/, where that style already prevails
73607         Otherwise, use update-copyright's default.
73609 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73610         and Eric Blake  <ebb9@byu.net>
73612         tests: don't require debug system() to pass
73613         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
73614         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73615         * tests/test-unlink.h (test_unlink_func): Likewise.
73616         * tests/test-fstatat.c (main): ...into callers.
73617         * tests/test-lstat.c (main): Likewise.
73618         * tests/test-rmdir.c (main): Likewise.
73619         * tests/test-unlink.c (main): Likewise.
73620         * tests/test-unlinkat.c (main): Likewise.
73621         * tests/test-areadlink-with-size.c (main): Don't require a
73622         debug-only system call to pass, aiding cross-testing to mingw.
73623         * tests/test-areadlink.c (main): Likewise.
73624         * tests/test-areadlinkat-with-size.c (main): Likewise.
73625         * tests/test-areadlinkat.c (main): Likewise.
73626         * tests/test-canonicalize-lgpl.c (main): Likewise.
73627         * tests/test-canonicalize.c (main): Likewise.
73628         * tests/test-chown.c (main): Likewise.
73629         * tests/test-fchownat.c (main): Likewise.
73630         * tests/test-lchown.c (main): Likewise.
73631         * tests/test-fdutimensat.c (main): Likewise.
73632         * tests/test-futimens.c (main): Likewise.
73633         * tests/test-link.c (main): Likewise.
73634         * tests/test-linkat.c (main): Likewise.
73635         * tests/test-mkdir.c (main): Likewise.
73636         * tests/test-mkdirat.c (main): Likewise.
73637         * tests/test-mkfifo.c (main): Likewise.
73638         * tests/test-mkfifoat.c (main): Likewise.
73639         * tests/test-mknod.c (main): Likewise.
73640         * tests/test-readlink.c (main): Likewise.
73641         * tests/test-remove.c (main): Likewise.
73642         * tests/test-rename.c (main): Likewise.
73643         * tests/test-renameat.c (main): Likewise.
73644         * tests/test-symlink.c (main): Likewise.
73645         * tests/test-symlinkat.c (main): Likewise.
73646         * tests/test-utimens.c (main): Likewise.
73647         * tests/test-utimensat.c (main): Likewise.
73649 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73651         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
73652         on $(UNUSED_PARAMETER_H) to avoid build failure.
73654 2009-12-28  Jim Meyering  <meyering@redhat.com>
73656         update-copyright: you may specify a max. line length other than 72
73657         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73659         maint: use consistent FSF copyright line syntax
73660         * lib/posixtm.c: Add missing comma in FSF copyright line.
73661         * lib/posixtm.h: Likewise.
73662         * lib/getugroups.c: Add missing ", Inc.".
73664         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
73665         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
73666         FSF copyright line.  Remove trailing blanks.
73668 2009-12-28  Eric Blake  <ebb9@byu.net>
73670         test-dup2: reduce dependencies
73671         * modules/cloexec (Configure.ac): Set witness.
73672         * modules/dup2-tests (Depends-on): Drop cloexec.
73673         * tests/test-dup2.c (main): Skip portion of test if cloexec module
73674         not present.
73675         Suggested by Bruno Haible.
73677 2009-12-26  Bruno Haible  <bruno@clisp.org>
73679         Remove an unneeded dependency.
73680         * modules/fseterr (Depends-on): Remove dup2.
73682 2009-12-26  Eric Blake  <ebb9@byu.net>
73684         tests: use macros.h in more places
73685         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
73686         (ASSERT_STREAM): Provide default of stderr.
73687         * tests/test-dirent-safer.c: Include macros.h, using alternate
73688         stream for assertions.
73689         * tests/test-dup-safer.c: Likewise.
73690         * tests/test-freopen-safer.c: Likewise.
73691         * tests/test-getopt.c: Likewise.
73692         * tests/test-openat-safer.c: Likewise.
73693         * tests/test-pipe.c: Likewise.
73694         * tests/test-popen-safer.c: Likewise.
73695         * modules/dirent-safer-tests (Files): Include macros.h.
73696         * modules/unistd-safer-tests (Files): Likewise.
73697         * modules/freopen-safer-tests (Files): Likewise.
73698         * modules/getopt-posix-tests (Files): Likewise.
73699         * modules/openat-safer-tests (Files): Likewise.
73700         * modules/pipe-tests (Files): Likewise.
73702 2009-12-26  Bruno Haible  <bruno@clisp.org>
73704         javacomp-script: Portability fix.
73705         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
73706         that it also works on Solaris.
73708 2009-12-26  Bruno Haible  <bruno@clisp.org>
73710         localename: Fix storage allocation of gl_locale_name_thread's result.
73711         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
73712         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
73713         all platforms that have 'uselocale'.
73714         (gl_locale_name_thread_unsafe): New function, extracted from
73715         gl_locale_name_thread.
73716         (gl_locale_name_thread): Call struniq on all platforms that have
73717         'uselocale'.
73718         * tests/test-localename.c (test_locale_name_thread): Check that the
73719         resulting strings are permanently allocated.
73720         * modules/localename-tests (Depends-on): Add strdup.
73722 2009-12-26  Bruno Haible  <bruno@clisp.org>
73724         * tests/test-localename.c (categories): Fill in the strings.
73726 2009-12-26  Jim Meyering  <meyering@redhat.com>
73728         isdir: complete the removal of m4/isdir.m4
73729         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
73731         isdir: clean up, since at least grep still uses it
73732         * lib/isdir.c: Include "isdir.h".
73733         (S_ISDIR): Remove now-unneeded definition.
73734         * modules/isdir (Files): Add lib/isdir.h.
73735         * lib/isdir.h: New file, with declaration.
73736         * m4/isdir.m4: Remove file -- unneeded.
73738 2009-12-25  Bruno Haible  <bruno@clisp.org>
73740         selinux-h: Make generated .h files standalone.
73741         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
73742         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
73743         * lib/se-selinux.in.h: Likewise.
73744         * modules/selinux-h (Depends-on): Add unused-parameter.
73745         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
73746         selinux/selinux.h and selinux/context.h.
73747         Suggested by Eric Blake.
73749 2009-12-25  Bruno Haible  <bruno@clisp.org>
73751         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
73752         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
73753         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
73754         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
73755         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
73757 2009-12-24  Bruno Haible  <bruno@clisp.org>
73759         openat: Fix warning.
73760         * lib/openat-proc.c: Include <unistd.h>.
73762 2009-12-24  Bruno Haible  <bruno@clisp.org>
73764         New module 'unused-parameter'.
73765         * build-aux/unused-parameter.h: New file, extracted from earlier
73766         gnulib-common.m4.
73767         * modules/unused-parameter: New file.
73768         * lib/unistr.h: Include unused-parameter.h.
73769         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
73770         _GL_UNUSED.
73771         * modules/unistr/base (Depends-on): Add unused-parameter.
73773 2009-12-24  Bruno Haible  <bruno@clisp.org>
73775         Add missing dependencies to 'extensions' module.
73776         * m4/extensions.m4: Add comment.
73777         * modules/accept4 (Depends-on): Add extensions.
73778         * modules/dup3 (Depends-on): Likewise.
73779         * modules/fcntl (Depends-on): Likewise.
73780         * modules/futimens (Depends-on): Likewise.
73781         * modules/mknod (Depends-on): Likewise.
73782         * modules/pipe2 (Depends-on): Likewise.
73783         * modules/stat-time (Depends-on): Likewise.
73784         * modules/strcasestr-simple (Depends-on): Likewise.
73785         * modules/strsignal (Depends-on): Likewise.
73786         * modules/utimensat (Depends-on): Likewise.
73787         * modules/localcharset (Depends-on): Likewise. Needed because of
73788         gl_FCNTL_O_FLAGS.
73789         * modules/wcrtomb (Depends-on): Likewise. Needed because of
73790         AC_TYPE_MBSTATE_T.
73791         * modules/wcsnrtombs (Depends-on): Likewise.
73792         * modules/wcsrtombs (Depends-on): Likewise.
73794 2009-12-24  Bruno Haible  <bruno@clisp.org>
73796         binary-io: Avoid gcc warning due to SET_BINARY.
73797         * lib/binary-io.h (SET_BINARY): Cast the result to void.
73798         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
73800 2009-12-24  Bruno Haible  <bruno@clisp.org>
73802         Avoid future namespace pollution on glibc systems.
73803         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
73804         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
73805         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
73806         glibc systems.
73808 2009-12-24  Bruno Haible  <bruno@clisp.org>
73810         Refactor common macros used in tests.
73811         * tests/macros.h: New file.
73812         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
73813         and/or <stdlib.h>, if appropriate.
73814         (ASSERT, SIZEOF): Remove macros.
73815         * tests/test-areadlink-with-size.c: Likewise.
73816         * tests/test-areadlinkat.c: Likewise.
73817         * tests/test-areadlinkat-with-size.c: Likewise.
73818         * tests/test-argmatch.c: Likewise.
73819         * tests/test-argv-iter.c: Likewise.
73820         * tests/test-array-mergesort.c: Likewise.
73821         * tests/test-array_list.c: Likewise.
73822         * tests/test-array_oset.c: Likewise.
73823         * tests/test-avltree_list.c: Likewise.
73824         * tests/test-avltree_oset.c: Likewise.
73825         * tests/test-avltreehash_list.c: Likewise.
73826         * tests/test-base64.c: Likewise.
73827         * tests/test-binary-io.c: Likewise.
73828         * tests/test-bitrotate.c: Likewise.
73829         * tests/test-btowc.c: Likewise.
73830         * tests/test-byteswap.c: Likewise.
73831         * tests/test-c-ctype.c: Likewise.
73832         * tests/test-c-stack.c: Likewise.
73833         * tests/test-c-strcasecmp.c: Likewise.
73834         * tests/test-c-strcasestr.c: Likewise.
73835         * tests/test-c-strncasecmp.c: Likewise.
73836         * tests/test-c-strstr.c: Likewise.
73837         * tests/test-canonicalize-lgpl.c: Likewise.
73838         * tests/test-canonicalize.c: Likewise.
73839         * tests/test-carray_list.c: Likewise.
73840         * tests/test-ceilf1.c: Likewise.
73841         * tests/test-ceilf2.c: Likewise.
73842         * tests/test-ceill.c: Likewise.
73843         * tests/test-chown.c: Likewise.
73844         * tests/test-cloexec.c: Likewise.
73845         * tests/test-copy-acl.c: Likewise.
73846         * tests/test-copy-file.c: Likewise.
73847         * tests/test-count-one-bits.c: Likewise.
73848         * tests/test-dprintf-posix.c: Likewise.
73849         * tests/test-dup2.c: Likewise.
73850         * tests/test-dup3.c: Likewise.
73851         * tests/test-duplocale.c: Likewise.
73852         * tests/test-fbufmode.c: Likewise.
73853         * tests/test-fchdir.c: Likewise.
73854         * tests/test-fchownat.c: Likewise.
73855         * tests/test-fcntl-safer.c: Likewise.
73856         * tests/test-fcntl.c: Likewise.
73857         * tests/test-fdopendir.c: Likewise.
73858         * tests/test-fdutimensat.c: Likewise.
73859         * tests/test-fflush2.c: Likewise.
73860         * tests/test-file-has-acl.c: Likewise.
73861         * tests/test-filevercmp.c: Likewise.
73862         * tests/test-flock.c: Likewise.
73863         * tests/test-floorf1.c: Likewise.
73864         * tests/test-floorf2.c: Likewise.
73865         * tests/test-floorl.c: Likewise.
73866         * tests/test-fnmatch.c: Likewise.
73867         * tests/test-fopen.h: Likewise.
73868         * tests/test-fpending.c: Likewise.
73869         * tests/test-fprintf-posix.c: Likewise.
73870         * tests/test-fpurge.c: Likewise.
73871         * tests/test-freadable.c: Likewise.
73872         * tests/test-freadahead.c: Likewise.
73873         * tests/test-freading.c: Likewise.
73874         * tests/test-freadptr.c: Likewise.
73875         * tests/test-freadptr2.c: Likewise.
73876         * tests/test-freadseek.c: Likewise.
73877         * tests/test-freopen.c: Likewise.
73878         * tests/test-frexp.c: Likewise.
73879         * tests/test-frexpl.c: Likewise.
73880         * tests/test-fseek.c: Likewise.
73881         * tests/test-fseeko.c: Likewise.
73882         * tests/test-fstatat.c: Likewise.
73883         * tests/test-fstrcmp.c: Likewise.
73884         * tests/test-fsync.c: Likewise.
73885         * tests/test-ftell.c: Likewise.
73886         * tests/test-ftello.c: Likewise.
73887         * tests/test-func.c: Likewise.
73888         * tests/test-futimens.c: Likewise.
73889         * tests/test-fwritable.c: Likewise.
73890         * tests/test-fwriting.c: Likewise.
73891         * tests/test-getcwd.c: Likewise.
73892         * tests/test-getdate.c: Likewise.
73893         * tests/test-getdelim.c: Likewise.
73894         * tests/test-getdtablesize.c: Likewise.
73895         * tests/test-getgroups.c: Likewise.
73896         * tests/test-getline.c: Likewise.
73897         * tests/test-getndelim2.c: Likewise.
73898         * tests/test-glob.c: Likewise.
73899         * tests/test-hash.c: Likewise.
73900         * tests/test-i-ring.c: Likewise.
73901         * tests/test-iconv-utf.c: Likewise.
73902         * tests/test-iconv.c: Likewise.
73903         * tests/test-idpriv-drop.c: Likewise.
73904         * tests/test-idpriv-droptemp.c: Likewise.
73905         * tests/test-inet_ntop.c: Likewise.
73906         * tests/test-inet_pton.c: Likewise.
73907         * tests/test-isblank.c: Likewise.
73908         * tests/test-isfinite.c: Likewise.
73909         * tests/test-isinf.c: Likewise.
73910         * tests/test-isnan.c: Likewise.
73911         * tests/test-isnand.h: Likewise.
73912         * tests/test-isnanf.h: Likewise.
73913         * tests/test-isnanl.h: Likewise.
73914         * tests/test-lchown.c: Likewise.
73915         * tests/test-ldexpl.c: Likewise.
73916         * tests/test-link.c: Likewise.
73917         * tests/test-linkat.c: Likewise.
73918         * tests/test-linked_list.c: Likewise.
73919         * tests/test-linkedhash_list.c: Likewise.
73920         * tests/test-localename.c: Likewise.
73921         * tests/test-lseek.c: Likewise.
73922         * tests/test-lstat.c: Likewise.
73923         * tests/test-mbmemcasecmp.c: Likewise.
73924         * tests/test-mbmemcasecoll.c: Likewise.
73925         * tests/test-mbrtowc.c: Likewise.
73926         * tests/test-mbscasecmp.c: Likewise.
73927         * tests/test-mbscasestr1.c: Likewise.
73928         * tests/test-mbscasestr2.c: Likewise.
73929         * tests/test-mbscasestr3.c: Likewise.
73930         * tests/test-mbscasestr4.c: Likewise.
73931         * tests/test-mbschr.c: Likewise.
73932         * tests/test-mbscspn.c: Likewise.
73933         * tests/test-mbsinit.c: Likewise.
73934         * tests/test-mbsncasecmp.c: Likewise.
73935         * tests/test-mbsnrtowcs.c: Likewise.
73936         * tests/test-mbspbrk.c: Likewise.
73937         * tests/test-mbspcasecmp.c: Likewise.
73938         * tests/test-mbsrchr.c: Likewise.
73939         * tests/test-mbsrtowcs.c: Likewise.
73940         * tests/test-mbsspn.c: Likewise.
73941         * tests/test-mbsstr1.c: Likewise.
73942         * tests/test-mbsstr2.c: Likewise.
73943         * tests/test-mbsstr3.c: Likewise.
73944         * tests/test-memchr.c: Likewise.
73945         * tests/test-memchr2.c: Likewise.
73946         * tests/test-memcmp.c: Likewise.
73947         * tests/test-memmem.c: Likewise.
73948         * tests/test-memrchr.c: Likewise.
73949         * tests/test-mkdir.c: Likewise.
73950         * tests/test-mkdirat.c: Likewise.
73951         * tests/test-mkfifo.c: Likewise.
73952         * tests/test-mkfifoat.c: Likewise.
73953         * tests/test-mknod.c: Likewise.
73954         * tests/test-nanosleep.c: Likewise.
73955         * tests/test-nl_langinfo.c: Likewise.
73956         * tests/test-obstack-printf.c: Likewise.
73957         * tests/test-open.c: Likewise.
73958         * tests/test-openat.c: Likewise.
73959         * tests/test-pipe-filter-gi1.c: Likewise.
73960         * tests/test-pipe-filter-gi2-main.c: Likewise.
73961         * tests/test-pipe-filter-ii1.c: Likewise.
73962         * tests/test-pipe-filter-ii2-main.c: Likewise.
73963         * tests/test-pipe2.c: Likewise.
73964         * tests/test-popen.h: Likewise.
73965         * tests/test-posixtm.c: Likewise.
73966         * tests/test-pread.c: Likewise.
73967         * tests/test-printf-frexp.c: Likewise.
73968         * tests/test-printf-frexpl.c: Likewise.
73969         * tests/test-printf-posix.c: Likewise.
73970         * tests/test-priv-set.c: Likewise.
73971         * tests/test-quotearg.c: Likewise.
73972         * tests/test-random_r.c: Likewise.
73973         * tests/test-rawmemchr.c: Likewise.
73974         * tests/test-rbtree_list.c: Likewise.
73975         * tests/test-rbtree_oset.c: Likewise.
73976         * tests/test-rbtreehash_list.c: Likewise.
73977         * tests/test-readlink.c: Likewise.
73978         * tests/test-remove.c: Likewise.
73979         * tests/test-rename.c: Likewise.
73980         * tests/test-renameat.c: Likewise.
73981         * tests/test-rmdir.c: Likewise.
73982         * tests/test-round1.c: Likewise.
73983         * tests/test-roundf1.c: Likewise.
73984         * tests/test-roundl.c: Likewise.
73985         * tests/test-safe-alloc.c: Likewise.
73986         * tests/test-sameacls.c: Likewise.
73987         * tests/test-set-mode-acl.c: Likewise.
73988         * tests/test-setenv.c: Likewise.
73989         * tests/test-sigaction.c: Likewise.
73990         * tests/test-signbit.c: Likewise.
73991         * tests/test-sleep.c: Likewise.
73992         * tests/test-snprintf-posix.c: Likewise.
73993         * tests/test-snprintf.c: Likewise.
73994         * tests/test-sprintf-posix.c: Likewise.
73995         * tests/test-stat-time.c: Likewise.
73996         * tests/test-stat.c: Likewise.
73997         * tests/test-strcasestr.c: Likewise.
73998         * tests/test-strchrnul.c: Likewise.
73999         * tests/test-strerror.c: Likewise.
74000         * tests/test-striconv.c: Likewise.
74001         * tests/test-striconveh.c: Likewise.
74002         * tests/test-striconveha.c: Likewise.
74003         * tests/test-strsignal.c: Likewise.
74004         * tests/test-strstr.c: Likewise.
74005         * tests/test-strtod.c: Likewise.
74006         * tests/test-strverscmp.c: Likewise.
74007         * tests/test-symlink.c: Likewise.
74008         * tests/test-symlinkat.c: Likewise.
74009         * tests/test-trunc1.c: Likewise.
74010         * tests/test-trunc2.c: Likewise.
74011         * tests/test-truncf1.c: Likewise.
74012         * tests/test-truncf2.c: Likewise.
74013         * tests/test-truncl.c: Likewise.
74014         * tests/test-uname.c: Likewise.
74015         * tests/test-unlink.c: Likewise.
74016         * tests/test-unlinkat.c: Likewise.
74017         * tests/test-unsetenv.c: Likewise.
74018         * tests/test-usleep.c: Likewise.
74019         * tests/test-utimens.c: Likewise.
74020         * tests/test-utimensat.c: Likewise.
74021         * tests/test-vasnprintf-posix.c: Likewise.
74022         * tests/test-vasnprintf-posix2.c: Likewise.
74023         * tests/test-vasnprintf.c: Likewise.
74024         * tests/test-vasprintf-posix.c: Likewise.
74025         * tests/test-vasprintf.c: Likewise.
74026         * tests/test-vdprintf-posix.c: Likewise.
74027         * tests/test-vfprintf-posix.c: Likewise.
74028         * tests/test-vprintf-posix.c: Likewise.
74029         * tests/test-vsnprintf-posix.c: Likewise.
74030         * tests/test-vsnprintf.c: Likewise.
74031         * tests/test-vsprintf-posix.c: Likewise.
74032         * tests/test-wcrtomb.c: Likewise.
74033         * tests/test-wcsnrtombs.c: Likewise.
74034         * tests/test-wcsrtombs.c: Likewise.
74035         * tests/test-wctype.c: Likewise.
74036         * tests/test-wcwidth.c: Likewise.
74037         * tests/test-xfprintf-posix.c: Likewise.
74038         * tests/test-xmemdup0.c: Likewise.
74039         * tests/test-xprintf-posix.c: Likewise.
74040         * tests/test-xvasprintf.c: Likewise.
74041         * tests/unicase/test-locale-language.c: Likewise.
74042         * tests/unicase/test-mapping-part1.h: Likewise.
74043         * tests/unicase/test-predicate-part1.h: Likewise.
74044         * tests/unicase/test-u8-casecmp.c: Likewise.
74045         * tests/unicase/test-u8-casecoll.c: Likewise.
74046         * tests/unicase/test-u8-casefold.c: Likewise.
74047         * tests/unicase/test-u8-is-cased.c: Likewise.
74048         * tests/unicase/test-u8-is-casefolded.c: Likewise.
74049         * tests/unicase/test-u8-is-lowercase.c: Likewise.
74050         * tests/unicase/test-u8-is-titlecase.c: Likewise.
74051         * tests/unicase/test-u8-is-uppercase.c: Likewise.
74052         * tests/unicase/test-u8-tolower.c: Likewise.
74053         * tests/unicase/test-u8-totitle.c: Likewise.
74054         * tests/unicase/test-u8-toupper.c: Likewise.
74055         * tests/unicase/test-u16-casecmp.c: Likewise.
74056         * tests/unicase/test-u16-casecoll.c: Likewise.
74057         * tests/unicase/test-u16-casefold.c: Likewise.
74058         * tests/unicase/test-u16-is-cased.c: Likewise.
74059         * tests/unicase/test-u16-is-casefolded.c: Likewise.
74060         * tests/unicase/test-u16-is-lowercase.c: Likewise.
74061         * tests/unicase/test-u16-is-titlecase.c: Likewise.
74062         * tests/unicase/test-u16-is-uppercase.c: Likewise.
74063         * tests/unicase/test-u16-tolower.c: Likewise.
74064         * tests/unicase/test-u16-totitle.c: Likewise.
74065         * tests/unicase/test-u16-toupper.c: Likewise.
74066         * tests/unicase/test-u32-casecmp.c: Likewise.
74067         * tests/unicase/test-u32-casecoll.c: Likewise.
74068         * tests/unicase/test-u32-casefold.c: Likewise.
74069         * tests/unicase/test-u32-is-cased.c: Likewise.
74070         * tests/unicase/test-u32-is-casefolded.c: Likewise.
74071         * tests/unicase/test-u32-is-lowercase.c: Likewise.
74072         * tests/unicase/test-u32-is-titlecase.c: Likewise.
74073         * tests/unicase/test-u32-is-uppercase.c: Likewise.
74074         * tests/unicase/test-u32-tolower.c: Likewise.
74075         * tests/unicase/test-u32-totitle.c: Likewise.
74076         * tests/unicase/test-u32-toupper.c: Likewise.
74077         * tests/unicase/test-ulc-casecmp.c: Likewise.
74078         * tests/unicase/test-ulc-casecoll.c: Likewise.
74079         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
74080         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
74081         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
74082         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
74083         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
74084         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
74085         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
74086         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
74087         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
74088         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
74089         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
74090         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
74091         * tests/unictype/test-bidi_byname.c: Likewise.
74092         * tests/unictype/test-bidi_name.c: Likewise.
74093         * tests/unictype/test-bidi_of.c: Likewise.
74094         * tests/unictype/test-bidi_test.c: Likewise.
74095         * tests/unictype/test-block_list.c: Likewise.
74096         * tests/unictype/test-block_of.c: Likewise.
74097         * tests/unictype/test-block_test.c: Likewise.
74098         * tests/unictype/test-categ_and.c: Likewise.
74099         * tests/unictype/test-categ_and_not.c: Likewise.
74100         * tests/unictype/test-categ_byname.c: Likewise.
74101         * tests/unictype/test-categ_name.c: Likewise.
74102         * tests/unictype/test-categ_none.c: Likewise.
74103         * tests/unictype/test-categ_of.c: Likewise.
74104         * tests/unictype/test-categ_or.c: Likewise.
74105         * tests/unictype/test-categ_test_withtable.c: Likewise.
74106         * tests/unictype/test-combining.c: Likewise.
74107         * tests/unictype/test-decdigit.c: Likewise.
74108         * tests/unictype/test-digit.c: Likewise.
74109         * tests/unictype/test-mirror.c: Likewise.
74110         * tests/unictype/test-numeric.c: Likewise.
74111         * tests/unictype/test-pr_byname.c: Likewise.
74112         * tests/unictype/test-pr_test.c: Likewise.
74113         * tests/unictype/test-predicate-part1.h: Likewise.
74114         * tests/unictype/test-scripts.c: Likewise.
74115         * tests/unictype/test-sy_c_ident.c: Likewise.
74116         * tests/unictype/test-sy_java_ident.c: Likewise.
74117         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
74118         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
74119         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
74120         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
74121         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
74122         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
74123         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
74124         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
74125         * tests/uninorm/test-canonical-decomposition.c: Likewise.
74126         * tests/uninorm/test-compat-decomposition.c: Likewise.
74127         * tests/uninorm/test-composition.c: Likewise.
74128         * tests/uninorm/test-decomposing-form.c: Likewise.
74129         * tests/uninorm/test-decomposition.c: Likewise.
74130         * tests/uninorm/test-u8-nfc.c: Likewise.
74131         * tests/uninorm/test-u8-nfd.c: Likewise.
74132         * tests/uninorm/test-u8-nfkc.c: Likewise.
74133         * tests/uninorm/test-u8-nfkd.c: Likewise.
74134         * tests/uninorm/test-u8-normcmp.c: Likewise.
74135         * tests/uninorm/test-u8-normcoll.c: Likewise.
74136         * tests/uninorm/test-u16-nfc.c: Likewise.
74137         * tests/uninorm/test-u16-nfd.c: Likewise.
74138         * tests/uninorm/test-u16-nfkc.c: Likewise.
74139         * tests/uninorm/test-u16-nfkd.c: Likewise.
74140         * tests/uninorm/test-u16-normcmp.c: Likewise.
74141         * tests/uninorm/test-u16-normcoll.c: Likewise.
74142         * tests/uninorm/test-u32-nfc.c: Likewise.
74143         * tests/uninorm/test-u32-nfd.c: Likewise.
74144         * tests/uninorm/test-u32-nfkc.c: Likewise.
74145         * tests/uninorm/test-u32-nfkd.c: Likewise.
74146         * tests/uninorm/test-u32-normalize-big.c: Likewise.
74147         * tests/uninorm/test-u32-normcmp.c: Likewise.
74148         * tests/uninorm/test-u32-normcoll.c: Likewise.
74149         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
74150         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
74151         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
74152         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
74153         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
74154         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
74155         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
74156         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
74157         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
74158         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
74159         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
74160         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
74161         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
74162         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
74163         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
74164         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
74165         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
74166         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
74167         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
74168         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
74169         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
74170         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
74171         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
74172         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
74173         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
74174         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
74175         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
74176         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
74177         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
74178         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
74179         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
74180         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
74181         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
74182         * tests/uniwidth/test-u8-strwidth.c: Likewise.
74183         * tests/uniwidth/test-u8-width.c: Likewise.
74184         * tests/uniwidth/test-u16-strwidth.c: Likewise.
74185         * tests/uniwidth/test-u16-width.c: Likewise.
74186         * tests/uniwidth/test-u32-strwidth.c: Likewise.
74187         * tests/uniwidth/test-u32-width.c: Likewise.
74188         * tests/uniwidth/test-uc_width.c: Likewise.
74189         * tests/uniwidth/test-uc_width2.c: Likewise.
74190         * modules/acl-tests (Files): Add tests/macros.h.
74191         * modules/areadlink-tests (Files): Likewise.
74192         * modules/areadlink-with-size-tests (Files): Likewise.
74193         * modules/areadlinkat-tests (Files): Likewise.
74194         * modules/areadlinkat-with-size-tests (Files): Likewise.
74195         * modules/argmatch-tests (Files): Likewise.
74196         * modules/argv-iter-tests (Files): Likewise.
74197         * modules/array-list-tests (Files): Likewise.
74198         * modules/array-mergesort-tests (Files): Likewise.
74199         * modules/array-oset-tests (Files): Likewise.
74200         * modules/avltree-list-tests (Files): Likewise.
74201         * modules/avltree-oset-tests (Files): Likewise.
74202         * modules/avltreehash-list-tests (Files): Likewise.
74203         * modules/base64-tests (Files): Likewise.
74204         * modules/binary-io-tests (Files): Likewise.
74205         * modules/bitrotate-tests (Files): Likewise.
74206         * modules/btowc-tests (Files): Likewise.
74207         * modules/byteswap-tests (Files): Likewise.
74208         * modules/c-ctype-tests (Files): Likewise.
74209         * modules/c-stack-tests (Files): Likewise.
74210         * modules/c-strcase-tests (Files): Likewise.
74211         * modules/c-strcasestr-tests (Files): Likewise.
74212         * modules/c-strstr-tests (Files): Likewise.
74213         * modules/canonicalize-lgpl-tests (Files): Likewise.
74214         * modules/canonicalize-tests (Files): Likewise.
74215         * modules/carray-list-tests (Files): Likewise.
74216         * modules/ceilf-tests (Files): Likewise.
74217         * modules/ceill-tests (Files): Likewise.
74218         * modules/chown-tests (Files): Likewise.
74219         * modules/cloexec-tests (Files): Likewise.
74220         * modules/copy-file-tests (Files): Likewise.
74221         * modules/count-one-bits-tests (Files): Likewise.
74222         * modules/dprintf-posix-tests (Files): Likewise.
74223         * modules/dup2-tests (Files): Likewise.
74224         * modules/dup3-tests (Files): Likewise.
74225         * modules/duplocale-tests (Files): Likewise.
74226         * modules/fbufmode-tests (Files): Likewise.
74227         * modules/fchdir-tests (Files): Likewise.
74228         * modules/fcntl-safer-tests (Files): Likewise.
74229         * modules/fcntl-tests (Files): Likewise.
74230         * modules/fdopendir-tests (Files): Likewise.
74231         * modules/fdutimensat-tests (Files): Likewise.
74232         * modules/fflush-tests (Files): Likewise.
74233         * modules/filevercmp-tests (Files): Likewise.
74234         * modules/flock-tests (Files): Likewise.
74235         * modules/floorf-tests (Files): Likewise.
74236         * modules/floorl-tests (Files): Likewise.
74237         * modules/fnmatch-tests (Files): Likewise.
74238         * modules/fopen-safer-tests (Files): Likewise.
74239         * modules/fopen-tests (Files): Likewise.
74240         * modules/fpending-tests (Files): Likewise.
74241         * modules/fprintf-posix-tests (Files): Likewise.
74242         * modules/fpurge-tests (Files): Likewise.
74243         * modules/freadable-tests (Files): Likewise.
74244         * modules/freadahead-tests (Files): Likewise.
74245         * modules/freading-tests (Files): Likewise.
74246         * modules/freadptr-tests (Files): Likewise.
74247         * modules/freadseek-tests (Files): Likewise.
74248         * modules/freopen-tests (Files): Likewise.
74249         * modules/frexp-nolibm-tests (Files): Likewise.
74250         * modules/frexp-tests (Files): Likewise.
74251         * modules/frexpl-nolibm-tests (Files): Likewise.
74252         * modules/frexpl-tests (Files): Likewise.
74253         * modules/fseek-tests (Files): Likewise.
74254         * modules/fseeko-tests (Files): Likewise.
74255         * modules/fstrcmp-tests (Files): Likewise.
74256         * modules/fsync-tests (Files): Likewise.
74257         * modules/ftell-tests (Files): Likewise.
74258         * modules/ftello-tests (Files): Likewise.
74259         * modules/func-tests (Files): Likewise.
74260         * modules/futimens-tests (Files): Likewise.
74261         * modules/fwritable-tests (Files): Likewise.
74262         * modules/fwriting-tests (Files): Likewise.
74263         * modules/getcwd-tests (Files): Likewise.
74264         * modules/getdate-tests (Files): Likewise.
74265         * modules/getdelim-tests (Files): Likewise.
74266         * modules/getdtablesize-tests (Files): Likewise.
74267         * modules/getgroups-tests (Files): Likewise.
74268         * modules/getline-tests (Files): Likewise.
74269         * modules/getndelim2-tests (Files): Likewise.
74270         * modules/glob-tests (Files): Likewise.
74271         * modules/hash-tests (Files): Likewise.
74272         * modules/i-ring-tests (Files): Likewise.
74273         * modules/iconv-tests (Files): Likewise.
74274         * modules/iconv_open-utf-tests (Files): Likewise.
74275         * modules/idpriv-drop-tests (Files): Likewise.
74276         * modules/idpriv-droptemp-tests (Files): Likewise.
74277         * modules/inet_ntop-tests (Files): Likewise.
74278         * modules/inet_pton-tests (Files): Likewise.
74279         * modules/isblank-tests (Files): Likewise.
74280         * modules/isfinite-tests (Files): Likewise.
74281         * modules/isinf-tests (Files): Likewise.
74282         * modules/isnan-tests (Files): Likewise.
74283         * modules/isnand-nolibm-tests (Files): Likewise.
74284         * modules/isnand-tests (Files): Likewise.
74285         * modules/isnanf-nolibm-tests (Files): Likewise.
74286         * modules/isnanf-tests (Files): Likewise.
74287         * modules/isnanl-nolibm-tests (Files): Likewise.
74288         * modules/isnanl-tests (Files): Likewise.
74289         * modules/lchown-tests (Files): Likewise.
74290         * modules/ldexpl-tests (Files): Likewise.
74291         * modules/link-tests (Files): Likewise.
74292         * modules/linkat-tests (Files): Likewise.
74293         * modules/linked-list-tests (Files): Likewise.
74294         * modules/linkedhash-list-tests (Files): Likewise.
74295         * modules/localename-tests (Files): Likewise.
74296         * modules/lseek-tests (Files): Likewise.
74297         * modules/lstat-tests (Files): Likewise.
74298         * modules/mbmemcasecmp-tests (Files): Likewise.
74299         * modules/mbmemcasecoll-tests (Files): Likewise.
74300         * modules/mbrtowc-tests (Files): Likewise.
74301         * modules/mbscasecmp-tests (Files): Likewise.
74302         * modules/mbscasestr-tests (Files): Likewise.
74303         * modules/mbschr-tests (Files): Likewise.
74304         * modules/mbscspn-tests (Files): Likewise.
74305         * modules/mbsinit-tests (Files): Likewise.
74306         * modules/mbsncasecmp-tests (Files): Likewise.
74307         * modules/mbsnrtowcs-tests (Files): Likewise.
74308         * modules/mbspbrk-tests (Files): Likewise.
74309         * modules/mbspcasecmp-tests (Files): Likewise.
74310         * modules/mbsrchr-tests (Files): Likewise.
74311         * modules/mbsrtowcs-tests (Files): Likewise.
74312         * modules/mbsspn-tests (Files): Likewise.
74313         * modules/mbsstr-tests (Files): Likewise.
74314         * modules/memchr-tests (Files): Likewise.
74315         * modules/memchr2-tests (Files): Likewise.
74316         * modules/memcmp-tests (Files): Likewise.
74317         * modules/memmem-tests (Files): Likewise.
74318         * modules/memrchr-tests (Files): Likewise.
74319         * modules/mkdir-tests (Files): Likewise.
74320         * modules/mkfifo-tests (Files): Likewise.
74321         * modules/mkfifoat-tests (Files): Likewise.
74322         * modules/mknod-tests (Files): Likewise.
74323         * modules/nanosleep-tests (Files): Likewise.
74324         * modules/nl_langinfo-tests (Files): Likewise.
74325         * modules/obstack-printf-tests (Files): Likewise.
74326         * modules/open-tests (Files): Likewise.
74327         * modules/openat-tests (Files): Likewise.
74328         * modules/pipe-filter-gi-tests (Files): Likewise.
74329         * modules/pipe-filter-ii-tests (Files): Likewise.
74330         * modules/pipe2-tests (Files): Likewise.
74331         * modules/popen-safer-tests (Files): Likewise.
74332         * modules/popen-tests (Files): Likewise.
74333         * modules/posixtm-tests (Files): Likewise.
74334         * modules/pread-tests (Files): Likewise.
74335         * modules/printf-frexp-tests (Files): Likewise.
74336         * modules/printf-frexpl-tests (Files): Likewise.
74337         * modules/printf-posix-tests (Files): Likewise.
74338         * modules/priv-set-tests (Files): Likewise.
74339         * modules/quotearg-tests (Files): Likewise.
74340         * modules/random_r-tests (Files): Likewise.
74341         * modules/rawmemchr-tests (Files): Likewise.
74342         * modules/rbtree-list-tests (Files): Likewise.
74343         * modules/rbtree-oset-tests (Files): Likewise.
74344         * modules/rbtreehash-list-tests (Files): Likewise.
74345         * modules/readlink-tests (Files): Likewise.
74346         * modules/remove-tests (Files): Likewise.
74347         * modules/rename-tests (Files): Likewise.
74348         * modules/renameat-tests (Files): Likewise.
74349         * modules/rmdir-tests (Files): Likewise.
74350         * modules/round-tests (Files): Likewise.
74351         * modules/roundf-tests (Files): Likewise.
74352         * modules/roundl-tests (Files): Likewise.
74353         * modules/safe-alloc-tests (Files): Likewise.
74354         * modules/setenv-tests (Files): Likewise.
74355         * modules/sigaction-tests (Files): Likewise.
74356         * modules/signbit-tests (Files): Likewise.
74357         * modules/sleep-tests (Files): Likewise.
74358         * modules/snprintf-posix-tests (Files): Likewise.
74359         * modules/snprintf-tests (Files): Likewise.
74360         * modules/sprintf-posix-tests (Files): Likewise.
74361         * modules/stat-tests (Files): Likewise.
74362         * modules/stat-time-tests (Files): Likewise.
74363         * modules/strcasestr-tests (Files): Likewise.
74364         * modules/strchrnul-tests (Files): Likewise.
74365         * modules/strerror-tests (Files): Likewise.
74366         * modules/striconv-tests (Files): Likewise.
74367         * modules/striconveh-tests (Files): Likewise.
74368         * modules/striconveha-tests (Files): Likewise.
74369         * modules/strsignal-tests (Files): Likewise.
74370         * modules/strstr-tests (Files): Likewise.
74371         * modules/strtod-tests (Files): Likewise.
74372         * modules/strverscmp-tests (Files): Likewise.
74373         * modules/symlink-tests (Files): Likewise.
74374         * modules/symlinkat-tests (Files): Likewise.
74375         * modules/trunc-tests (Files): Likewise.
74376         * modules/truncf-tests (Files): Likewise.
74377         * modules/truncl-tests (Files): Likewise.
74378         * modules/uname-tests (Files): Likewise.
74379         * modules/unicase/cased-tests (Files): Likewise.
74380         * modules/unicase/ignorable-tests (Files): Likewise.
74381         * modules/unicase/locale-language-tests (Files): Likewise.
74382         * modules/unicase/tolower-tests (Files): Likewise.
74383         * modules/unicase/totitle-tests (Files): Likewise.
74384         * modules/unicase/toupper-tests (Files): Likewise.
74385         * modules/unicase/u8-casecmp-tests (Files): Likewise.
74386         * modules/unicase/u8-casecoll-tests (Files): Likewise.
74387         * modules/unicase/u8-casefold-tests (Files): Likewise.
74388         * modules/unicase/u8-is-cased-tests (Files): Likewise.
74389         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
74390         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
74391         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
74392         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
74393         * modules/unicase/u8-tolower-tests (Files): Likewise.
74394         * modules/unicase/u8-totitle-tests (Files): Likewise.
74395         * modules/unicase/u8-toupper-tests (Files): Likewise.
74396         * modules/unicase/u16-casecmp-tests (Files): Likewise.
74397         * modules/unicase/u16-casecoll-tests (Files): Likewise.
74398         * modules/unicase/u16-casefold-tests (Files): Likewise.
74399         * modules/unicase/u16-is-cased-tests (Files): Likewise.
74400         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
74401         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
74402         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
74403         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
74404         * modules/unicase/u16-tolower-tests (Files): Likewise.
74405         * modules/unicase/u16-totitle-tests (Files): Likewise.
74406         * modules/unicase/u16-toupper-tests (Files): Likewise.
74407         * modules/unicase/u32-casecmp-tests (Files): Likewise.
74408         * modules/unicase/u32-casecoll-tests (Files): Likewise.
74409         * modules/unicase/u32-casefold-tests (Files): Likewise.
74410         * modules/unicase/u32-is-cased-tests (Files): Likewise.
74411         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
74412         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
74413         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
74414         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
74415         * modules/unicase/u32-tolower-tests (Files): Likewise.
74416         * modules/unicase/u32-totitle-tests (Files): Likewise.
74417         * modules/unicase/u32-toupper-tests (Files): Likewise.
74418         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
74419         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
74420         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
74421         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
74422         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
74423         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
74424         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
74425         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
74426         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
74427         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
74428         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
74429         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
74430         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
74431         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
74432         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
74433         * modules/unictype/bidicategory-name-tests (Files): Likewise.
74434         * modules/unictype/bidicategory-of-tests (Files): Likewise.
74435         * modules/unictype/bidicategory-test-tests (Files): Likewise.
74436         * modules/unictype/block-list-tests (Files): Likewise.
74437         * modules/unictype/block-of-tests (Files): Likewise.
74438         * modules/unictype/block-test-tests (Files): Likewise.
74439         * modules/unictype/category-C-tests (Files): Likewise.
74440         * modules/unictype/category-Cc-tests (Files): Likewise.
74441         * modules/unictype/category-Cf-tests (Files): Likewise.
74442         * modules/unictype/category-Cn-tests (Files): Likewise.
74443         * modules/unictype/category-Co-tests (Files): Likewise.
74444         * modules/unictype/category-Cs-tests (Files): Likewise.
74445         * modules/unictype/category-L-tests (Files): Likewise.
74446         * modules/unictype/category-Ll-tests (Files): Likewise.
74447         * modules/unictype/category-Lm-tests (Files): Likewise.
74448         * modules/unictype/category-Lo-tests (Files): Likewise.
74449         * modules/unictype/category-Lt-tests (Files): Likewise.
74450         * modules/unictype/category-Lu-tests (Files): Likewise.
74451         * modules/unictype/category-M-tests (Files): Likewise.
74452         * modules/unictype/category-Mc-tests (Files): Likewise.
74453         * modules/unictype/category-Me-tests (Files): Likewise.
74454         * modules/unictype/category-Mn-tests (Files): Likewise.
74455         * modules/unictype/category-N-tests (Files): Likewise.
74456         * modules/unictype/category-Nd-tests (Files): Likewise.
74457         * modules/unictype/category-Nl-tests (Files): Likewise.
74458         * modules/unictype/category-No-tests (Files): Likewise.
74459         * modules/unictype/category-P-tests (Files): Likewise.
74460         * modules/unictype/category-Pc-tests (Files): Likewise.
74461         * modules/unictype/category-Pd-tests (Files): Likewise.
74462         * modules/unictype/category-Pe-tests (Files): Likewise.
74463         * modules/unictype/category-Pf-tests (Files): Likewise.
74464         * modules/unictype/category-Pi-tests (Files): Likewise.
74465         * modules/unictype/category-Po-tests (Files): Likewise.
74466         * modules/unictype/category-Ps-tests (Files): Likewise.
74467         * modules/unictype/category-S-tests (Files): Likewise.
74468         * modules/unictype/category-Sc-tests (Files): Likewise.
74469         * modules/unictype/category-Sk-tests (Files): Likewise.
74470         * modules/unictype/category-Sm-tests (Files): Likewise.
74471         * modules/unictype/category-So-tests (Files): Likewise.
74472         * modules/unictype/category-Z-tests (Files): Likewise.
74473         * modules/unictype/category-Zl-tests (Files): Likewise.
74474         * modules/unictype/category-Zp-tests (Files): Likewise.
74475         * modules/unictype/category-Zs-tests (Files): Likewise.
74476         * modules/unictype/category-and-not-tests (Files): Likewise.
74477         * modules/unictype/category-and-tests (Files): Likewise.
74478         * modules/unictype/category-byname-tests (Files): Likewise.
74479         * modules/unictype/category-name-tests (Files): Likewise.
74480         * modules/unictype/category-none-tests (Files): Likewise.
74481         * modules/unictype/category-of-tests (Files): Likewise.
74482         * modules/unictype/category-or-tests (Files): Likewise.
74483         * modules/unictype/category-test-withtable-tests (Files): Likewise.
74484         * modules/unictype/combining-class-tests (Files): Likewise.
74485         * modules/unictype/ctype-alnum-tests (Files): Likewise.
74486         * modules/unictype/ctype-alpha-tests (Files): Likewise.
74487         * modules/unictype/ctype-blank-tests (Files): Likewise.
74488         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
74489         * modules/unictype/ctype-digit-tests (Files): Likewise.
74490         * modules/unictype/ctype-graph-tests (Files): Likewise.
74491         * modules/unictype/ctype-lower-tests (Files): Likewise.
74492         * modules/unictype/ctype-print-tests (Files): Likewise.
74493         * modules/unictype/ctype-punct-tests (Files): Likewise.
74494         * modules/unictype/ctype-space-tests (Files): Likewise.
74495         * modules/unictype/ctype-upper-tests (Files): Likewise.
74496         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
74497         * modules/unictype/decimal-digit-tests (Files): Likewise.
74498         * modules/unictype/digit-tests (Files): Likewise.
74499         * modules/unictype/mirror-tests (Files): Likewise.
74500         * modules/unictype/numeric-tests (Files): Likewise.
74501         * modules/unictype/property-alphabetic-tests (Files): Likewise.
74502         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
74503         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
74504         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
74505         Likewise.
74506         * modules/unictype/property-bidi-block-separator-tests (Files):
74507         Likewise.
74508         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
74509         Likewise.
74510         * modules/unictype/property-bidi-common-separator-tests (Files):
74511         Likewise.
74512         * modules/unictype/property-bidi-control-tests (Files): Likewise.
74513         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
74514         Likewise.
74515         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
74516         Likewise.
74517         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
74518         Likewise.
74519         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
74520         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
74521         Likewise.
74522         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
74523         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
74524         Likewise.
74525         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
74526         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
74527         * modules/unictype/property-bidi-segment-separator-tests (Files):
74528         Likewise.
74529         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
74530         * modules/unictype/property-byname-tests (Files): Likewise.
74531         * modules/unictype/property-combining-tests (Files): Likewise.
74532         * modules/unictype/property-composite-tests (Files): Likewise.
74533         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
74534         * modules/unictype/property-dash-tests (Files): Likewise.
74535         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
74536         * modules/unictype/property-default-ignorable-code-point-tests (Files):
74537         Likewise.
74538         * modules/unictype/property-deprecated-tests (Files): Likewise.
74539         * modules/unictype/property-diacritic-tests (Files): Likewise.
74540         * modules/unictype/property-extender-tests (Files): Likewise.
74541         * modules/unictype/property-format-control-tests (Files): Likewise.
74542         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
74543         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
74544         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
74545         * modules/unictype/property-hex-digit-tests (Files): Likewise.
74546         * modules/unictype/property-hyphen-tests (Files): Likewise.
74547         * modules/unictype/property-id-continue-tests (Files): Likewise.
74548         * modules/unictype/property-id-start-tests (Files): Likewise.
74549         * modules/unictype/property-ideographic-tests (Files): Likewise.
74550         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
74551         * modules/unictype/property-ids-trinary-operator-tests (Files):
74552         Likewise.
74553         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
74554         * modules/unictype/property-iso-control-tests (Files): Likewise.
74555         * modules/unictype/property-join-control-tests (Files): Likewise.
74556         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
74557         * modules/unictype/property-line-separator-tests (Files): Likewise.
74558         * modules/unictype/property-logical-order-exception-tests (Files):
74559         Likewise.
74560         * modules/unictype/property-lowercase-tests (Files): Likewise.
74561         * modules/unictype/property-math-tests (Files): Likewise.
74562         * modules/unictype/property-non-break-tests (Files): Likewise.
74563         * modules/unictype/property-not-a-character-tests (Files): Likewise.
74564         * modules/unictype/property-numeric-tests (Files): Likewise.
74565         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
74566         * modules/unictype/property-other-default-ignorable-code-point-tests
74567         (Files): Likewise.
74568         * modules/unictype/property-other-grapheme-extend-tests (Files):
74569         Likewise.
74570         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
74571         * modules/unictype/property-other-id-start-tests (Files): Likewise.
74572         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
74573         * modules/unictype/property-other-math-tests (Files): Likewise.
74574         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
74575         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
74576         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
74577         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
74578         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
74579         * modules/unictype/property-private-use-tests (Files): Likewise.
74580         * modules/unictype/property-punctuation-tests (Files): Likewise.
74581         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
74582         * modules/unictype/property-radical-tests (Files): Likewise.
74583         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
74584         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
74585         * modules/unictype/property-space-tests (Files): Likewise.
74586         * modules/unictype/property-terminal-punctuation-tests (Files):
74587         Likewise.
74588         * modules/unictype/property-test-tests (Files): Likewise.
74589         * modules/unictype/property-titlecase-tests (Files): Likewise.
74590         * modules/unictype/property-unassigned-code-value-tests (Files):
74591         Likewise.
74592         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
74593         * modules/unictype/property-uppercase-tests (Files): Likewise.
74594         * modules/unictype/property-variation-selector-tests (Files): Likewise.
74595         * modules/unictype/property-white-space-tests (Files): Likewise.
74596         * modules/unictype/property-xid-continue-tests (Files): Likewise.
74597         * modules/unictype/property-xid-start-tests (Files): Likewise.
74598         * modules/unictype/property-zero-width-tests (Files): Likewise.
74599         * modules/unictype/scripts-tests (Files): Likewise.
74600         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
74601         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
74602         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
74603         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
74604         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
74605         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
74606         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
74607         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
74608         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
74609         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
74610         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
74611         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
74612         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
74613         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
74614         * modules/uninorm/composition-tests (Files): Likewise.
74615         * modules/uninorm/decomposing-form-tests (Files): Likewise.
74616         * modules/uninorm/decomposition-tests (Files): Likewise.
74617         * modules/uninorm/filter-tests (Files): Likewise.
74618         * modules/uninorm/nfc-tests (Files): Likewise.
74619         * modules/uninorm/nfd-tests (Files): Likewise.
74620         * modules/uninorm/nfkc-tests (Files): Likewise.
74621         * modules/uninorm/nfkd-tests (Files): Likewise.
74622         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
74623         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
74624         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
74625         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
74626         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
74627         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
74628         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
74629         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
74630         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
74631         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
74632         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
74633         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
74634         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
74635         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
74636         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
74637         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
74638         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
74639         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
74640         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
74641         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
74642         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
74643         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
74644         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
74645         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
74646         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
74647         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
74648         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
74649         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
74650         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
74651         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
74652         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
74653         * modules/uniwidth/u8-width-tests (Files): Likewise.
74654         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
74655         * modules/uniwidth/u16-width-tests (Files): Likewise.
74656         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
74657         * modules/uniwidth/u32-width-tests (Files): Likewise.
74658         * modules/uniwidth/width-tests (Files): Likewise.
74659         * modules/unlink-tests (Files): Likewise.
74660         * modules/unsetenv-tests (Files): Likewise.
74661         * modules/usleep-tests (Files): Likewise.
74662         * modules/utimens-tests (Files): Likewise.
74663         * modules/utimensat-tests (Files): Likewise.
74664         * modules/vasnprintf-posix-tests (Files): Likewise.
74665         * modules/vasnprintf-tests (Files): Likewise.
74666         * modules/vasprintf-posix-tests (Files): Likewise.
74667         * modules/vasprintf-tests (Files): Likewise.
74668         * modules/vdprintf-posix-tests (Files): Likewise.
74669         * modules/vfprintf-posix-tests (Files): Likewise.
74670         * modules/vprintf-posix-tests (Files): Likewise.
74671         * modules/vsnprintf-posix-tests (Files): Likewise.
74672         * modules/vsnprintf-tests (Files): Likewise.
74673         * modules/vsprintf-posix-tests (Files): Likewise.
74674         * modules/wcrtomb-tests (Files): Likewise.
74675         * modules/wcsnrtombs-tests (Files): Likewise.
74676         * modules/wcsrtombs-tests (Files): Likewise.
74677         * modules/wctype-tests (Files): Likewise.
74678         * modules/wcwidth-tests (Files): Likewise.
74679         * modules/xmemdup0-tests (Files): Likewise.
74680         * modules/xprintf-posix-tests (Files): Likewise.
74681         * modules/xvasprintf-tests (Files): Likewise.
74683 2009-12-24  Eric Blake  <ebb9@byu.net>
74685         test-nanosleep: fix typo
74686         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
74687         patch.
74688         Reported by Bruno Haible.
74690 2009-12-24  Bruno Haible  <bruno@clisp.org>
74692         Reduce namespace pollution on glibc systems.
74693         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
74694         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
74695         systems.
74696         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
74697         <getopt.h> on glibc systems.
74698         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
74699         systems.
74700         * lib/fcntl.c: Include <unistd.h> here instead.
74702 2009-12-24  Bruno Haible  <bruno@clisp.org>
74704         * lib/stdlib.in.h (includes): Fix typo in today's commit.
74706 2009-12-24  Eric Blake  <ebb9@byu.net>
74708         tests: add signature checks
74709         * tests/signature.h (SIGNATURE_CHECK): New file.
74710         * modules/atexit-tests (Files): Use it.
74711         * modules/btowc-tests (Files): Likewise.
74712         * modules/canonicalize-lgpl-tests (Files): Likewise.
74713         * modules/ceilf-tests (Files): Likewise.
74714         * modules/ceill-tests (Files): Likewise.
74715         * modules/chown-tests (Files): Likewise.
74716         * modules/dprintf-posix-tests (Files): Likewise.
74717         * modules/dup2-tests (Files): Likewise.
74718         * modules/dup3-tests (Files): Likewise.
74719         * modules/duplocale-tests (Files): Likewise.
74720         * modules/fchdir-tests (Files): Likewise.
74721         * modules/fcntl-tests (Files): Likewise.
74722         * modules/fdopendir-tests (Files): Likewise.
74723         * modules/fflush-tests (Files): Likewise.
74724         * modules/flock-tests (Files): Likewise.
74725         * modules/floorf-tests (Files): Likewise.
74726         * modules/floorl-tests (Files): Likewise.
74727         * modules/fnmatch-tests (Files): Likewise.
74728         * modules/fopen-tests (Files): Likewise.
74729         * modules/fprintf-posix-tests (Files): Likewise.
74730         * modules/freopen-tests (Files): Likewise.
74731         * modules/frexp-nolibm-tests (Files): Likewise.
74732         * modules/frexp-tests (Files): Likewise.
74733         * modules/frexpl-nolibm-tests (Files): Likewise.
74734         * modules/frexpl-tests (Files): Likewise.
74735         * modules/fseek-tests (Files): Likewise.
74736         * modules/fseeko-tests (Files): Likewise.
74737         * modules/fsync-tests (Files): Likewise.
74738         * modules/ftell-tests (Files): Likewise.
74739         * modules/ftello-tests (Files): Likewise.
74740         * modules/futimens-tests (Files): Likewise.
74741         * modules/getaddrinfo-tests (Files): Likewise.
74742         * modules/getcwd-tests (Files): Likewise.
74743         * modules/getdelim-tests (Files): Likewise.
74744         * modules/getdtablesize-tests (Files): Likewise.
74745         * modules/getgroups-tests (Files): Likewise.
74746         * modules/gethostname-tests (Files): Likewise.
74747         * modules/getline-tests (Files): Likewise.
74748         * modules/getopt-posix-tests (Files): Likewise.
74749         * modules/gettimeofday-tests (Files): Likewise.
74750         * modules/glob-tests (Files): Likewise.
74751         * modules/iconv-tests (Files): Likewise.
74752         * modules/inet_ntop-tests (Files): Likewise.
74753         * modules/inet_pton-tests (Files): Likewise.
74754         * modules/isblank-tests (Files): Likewise.
74755         * modules/lchown-tests (Files): Likewise.
74756         * modules/ldexpl-tests (Files): Likewise.
74757         * modules/link-tests (Files): Likewise.
74758         * modules/linkat-tests (Files): Likewise.
74759         * modules/lseek-tests (Files): Likewise.
74760         * modules/lstat-tests (Files): Likewise.
74761         * modules/mbrtowc-tests (Files): Likewise.
74762         * modules/mbsinit-tests (Files): Likewise.
74763         * modules/mbsnrtowcs-tests (Files): Likewise.
74764         * modules/mbsrtowcs-tests (Files): Likewise.
74765         * modules/memchr-tests (Files): Likewise.
74766         * modules/memcmp-tests (Files): Likewise.
74767         * modules/memmem-tests (Files): Likewise.
74768         * modules/memrchr-tests (Files): Likewise.
74769         * modules/mkdir-tests (Files): Likewise.
74770         * modules/mkfifo-tests (Files): Likewise.
74771         * modules/mkfifoat-tests (Files): Likewise.
74772         * modules/mknod-tests (Files): Likewise.
74773         * modules/nanosleep-tests (Files): Likewise.
74774         * modules/nl_langinfo-tests (Files): Likewise.
74775         * modules/obstack-printf-tests (Files): Likewise.
74776         * modules/open-tests (Files): Likewise.
74777         * modules/openat-tests (Files): Likewise.
74778         * modules/perror-tests (Files): Likewise.
74779         * modules/pipe2-tests (Files): Likewise.
74780         * modules/poll-tests (Files): Likewise.
74781         * modules/popen-tests (Files): Likewise.
74782         * modules/posix_spawn-tests (Files): Likewise.
74783         * modules/posix_spawnp-tests (Files): Likewise.
74784         * modules/pread-tests (Files): Likewise.
74785         * modules/printf-posix-tests (Files): Likewise.
74786         * modules/pty-tests (Files): Likewise.
74787         * modules/random_r-tests (Files): Likewise.
74788         * modules/rawmemchr-tests (Files): Likewise.
74789         * modules/readlink-tests (Files): Likewise.
74790         * modules/remove-tests (Files): Likewise.
74791         * modules/rename-tests (Files): Likewise.
74792         * modules/renameat-tests (Files): Likewise.
74793         * modules/rmdir-tests (Files): Likewise.
74794         * modules/round-tests (Files): Likewise.
74795         * modules/roundf-tests (Files): Likewise.
74796         * modules/roundl-tests (Files): Likewise.
74797         * modules/select-tests (Files): Likewise.
74798         * modules/setenv-tests (Files): Likewise.
74799         * modules/sigaction-tests (Files): Likewise.
74800         * modules/sleep-tests (Files): Likewise.
74801         * modules/snprintf-posix-tests (Files): Likewise.
74802         * modules/snprintf-tests (Files): Likewise.
74803         * modules/sprintf-posix-tests (Files): Likewise.
74804         * modules/stat-tests (Files): Likewise.
74805         * modules/strcasestr-tests (Files): Likewise.
74806         * modules/strchrnul-tests (Files): Likewise.
74807         * modules/strerror-tests (Files): Likewise.
74808         * modules/strsignal-tests (Files): Likewise.
74809         * modules/strstr-tests (Files): Likewise.
74810         * modules/strtod-tests (Files): Likewise.
74811         * modules/strverscmp-tests (Files): Likewise.
74812         * modules/symlink-tests (Files): Likewise.
74813         * modules/symlinkat-tests (Files): Likewise.
74814         * modules/times-tests (Files): Likewise.
74815         * modules/trunc-tests (Files): Likewise.
74816         * modules/truncf-tests (Files): Likewise.
74817         * modules/truncl-tests (Files): Likewise.
74818         * modules/tsearch-tests (Files): Likewise.
74819         * modules/uname-tests (Files): Likewise.
74820         * modules/unlink-tests (Files): Likewise.
74821         * modules/unsetenv-tests (Files): Likewise.
74822         * modules/usleep-tests (Files): Likewise.
74823         * modules/utimensat-tests (Files): Likewise.
74824         * modules/vasprintf-tests (Files): Likewise.
74825         * modules/vdprintf-posix-tests (Files): Likewise.
74826         * modules/vfprintf-posix-tests (Files): Likewise.
74827         * modules/vprintf-posix-tests (Files): Likewise.
74828         * modules/vsnprintf-posix-tests (Files): Likewise.
74829         * modules/vsnprintf-tests (Files): Likewise.
74830         * modules/vsprintf-posix-tests (Files): Likewise.
74831         * modules/wcrtomb-tests (Files): Likewise.
74832         * modules/wcsnrtombs-tests (Files): Likewise.
74833         * modules/wcsrtombs-tests (Files): Likewise.
74834         * modules/wcwidth-tests (Files): Likewise.
74835         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
74836         * tests/test-isinf.c (isinf): Likewise.
74837         * tests/test-isnan.c (isnan): Likewise.
74838         * tests/test-signbit.c (signbit): Likewise.
74839         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
74840         declaration, either as macro or with correct signature.
74841         (select): Ensure function under test is declared with correct
74842         signature in correct header.
74843         * tests/test-atexit.c (atexit): Likewise.
74844         * tests/test-btowc.c (btowc): Likewise.
74845         * tests/test-canonicalize-lgpl.c (realpath)
74846         (canonicalize_file_name): Likewise.
74847         * tests/test-ceilf1.c (ceilf): Likewise.
74848         * tests/test-ceill.c (ceill): Likewise.
74849         * tests/test-chown.c (chown): Likewise.
74850         * tests/test-dprintf-posix.c (dprintf): Likewise.
74851         * tests/test-dup2.c (dup2): Likewise.
74852         * tests/test-dup3.c (dup3): Likewise.
74853         * tests/test-duplocale.c (duplocale): Likewise.
74854         * tests/test-fchdir.c (fchdir): Likewise.
74855         * tests/test-fchownat.c (fchownat): Likewise.
74856         * tests/test-fcntl.c (fcntl): Likewise.
74857         * tests/test-fdopendir.c (fdopendir): Likewise.
74858         * tests/test-fflush.c (fflush): Likewise.
74859         * tests/test-flock.c (flock): Likewise.
74860         * tests/test-floorf1.c (floorf): Likewise.
74861         * tests/test-floorl.c (floorl): Likewise.
74862         * tests/test-fnmatch.c (fnmatch): Likewise.
74863         * tests/test-fopen.c (fopen): Likewise.
74864         * tests/test-fprintf-posix.c (fprintf): Likewise.
74865         * tests/test-freopen.c (freopen): Likewise.
74866         * tests/test-frexp.c (frexp): Likewise.
74867         * tests/test-frexpl.c (frexpl): Likewise.
74868         * tests/test-fseek.c (fseek): Likewise.
74869         * tests/test-fseeko.c (fseeko): Likewise.
74870         * tests/test-fstatat.c (fstatat): Likewise.
74871         * tests/test-fsync.c (fsync): Likewise.
74872         * tests/test-ftell.c (ftell): Likewise.
74873         * tests/test-ftello.c (ftello): Likewise.
74874         * tests/test-futimens.c (futimens): Likewise.
74875         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
74876         (gai_strerror): Likewise.
74877         * tests/test-getcwd.c (getcwd): Likewise.
74878         * tests/test-getdelim.c (getdelim): Likewise.
74879         * tests/test-getdtablesize.c (getdtablesize): Likewise.
74880         * tests/test-getgroups.c (getgroups): Likewise.
74881         * tests/test-gethostname.c (gethostname): Likewise.
74882         * tests/test-getline.c (getline): Likewise.
74883         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
74884         Likewise.
74885         * tests/test-gettimeofday.c (gettimeofday): Likewise.
74886         * tests/test-glob.c (glob, globfree): Likewise.
74887         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
74888         * tests/test-inet_ntop.c (inet_ntop): Likewise.
74889         * tests/test-inet_pton.c (inet_pton): Likewise.
74890         * tests/test-isblank.c (isblank): Likewise.
74891         * tests/test-lchown.c (lchown): Likewise.
74892         * tests/test-ldexpl.c (ldexpl): Likewise.
74893         * tests/test-link.c (link): Likewise.
74894         * tests/test-linkat.c (linkat): Likewise.
74895         * tests/test-lseek.c (lseek): Likewise.
74896         * tests/test-lstat.c (lstat): Likewise.
74897         * tests/test-mbrtowc.c (mbrtowc): Likewise.
74898         * tests/test-mbsinit.c (mbsinit): Likewise.
74899         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
74900         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
74901         * tests/test-memchr.c (memchr): Likewise.
74902         * tests/test-memcmp.c (memcmp): Likewise.
74903         * tests/test-memmem.c (memmem): Likewise.
74904         * tests/test-memrchr.c (memrchr): Likewise.
74905         * tests/test-mkdir.c (mkdir): Likewise.
74906         * tests/test-mkdirat.c (mkdirat): Likewise.
74907         * tests/test-mkfifo.c (mkfifo): Likewise.
74908         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
74909         * tests/test-mknod.c (mknod): Likewise.
74910         * tests/test-nanosleep.c (nanosleep): Likewise.
74911         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
74912         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
74913         Likewise.
74914         * tests/test-open.c (open): Likewise.
74915         * tests/test-openat.c (openat): Likewise.
74916         * tests/test-perror.c (perror): Likewise.
74917         * tests/test-pipe2.c (pipe2): Likewise.
74918         * tests/test-poll.c (poll): Likewise.
74919         * tests/test-popen.c (popen, pclose): Likewise.
74920         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
74921         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
74922         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
74923         (posix_spawn_file_actions_destroy)
74924         (posix_spawn_file_actions_addclose)
74925         (posix_spawn_file_actions_addopen)
74926         (posix_spawn_file_actions_adddup2): Likewise.
74927         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
74928         * tests/test-pread.c (pread): Likewise.
74929         * tests/test-printf-posix.c (printf): Likewise.
74930         * tests/test-pty.c (openpty, forkpty): Likewise.
74931         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
74932         (random_r): Likewise.
74933         * tests/test-rawmemchr.c (rawmemchr): Likewise.
74934         * tests/test-readlink.c (readlink): Likewise.
74935         * tests/test-remove.c (remove): Likewise.
74936         * tests/test-rename.c (rename): Likewise.
74937         * tests/test-renameat.c (renameat): Likewise.
74938         * tests/test-rmdir.c (rmdir): Likewise.
74939         * tests/test-round1.c (round): Likewise.
74940         * tests/test-roundf1.c (roundf): Likewise.
74941         * tests/test-roundl.c (roundl): Likewise.
74942         * tests/test-setenv.c (setenv): Likewise.
74943         * tests/test-sigaction.c (sigaction): Likewise.
74944         * tests/test-sleep.c (sleep): Likewise.
74945         * tests/test-snprintf.c (snprintf): Likewise.
74946         * tests/test-sprintf-posix.c (sprintf): Likewise.
74947         * tests/test-stat.c (stat): Likewise.
74948         * tests/test-stpncpy.c (stpncpy): Likewise.
74949         * tests/test-strcasestr.c (strcasestr): Likewise.
74950         * tests/test-strchrnul.c (strchrnul): Likewise.
74951         * tests/test-strerror.c (strerror): Likewise.
74952         * tests/test-strsignal.c (strsignal): Likewise.
74953         * tests/test-strstr.c (strstr): Likewise.
74954         * tests/test-strtod.c (strtod): Likewise.
74955         * tests/test-strverscmp.c (strverscmp): Likewise.
74956         * tests/test-symlink.c (symlink): Likewise.
74957         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
74958         * tests/test-times.c (times): Likewise.
74959         * tests/test-trunc1.c (trunc): Likewise.
74960         * tests/test-truncf1.c (truncf): Likewise.
74961         * tests/test-truncl.c (truncl): Likewise.
74962         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
74963         Likewise.
74964         * tests/test-uname.c (uname): Likewise.
74965         * tests/test-unlink.c (unlink): Likewise.
74966         * tests/test-unlinkat.c (unlinkat): Likewise.
74967         * tests/test-unsetenv.c (unsetenv): Likewise.
74968         * tests/test-usleep.c (usleep): Likewise.
74969         * tests/test-utimensat.c (utimensat): Likewise.
74970         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
74971         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
74972         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
74973         * tests/test-vprintf-posix.c (vprintf): Likewise.
74974         * tests/test-vsnprintf.c (vsnprintf): Likewise.
74975         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
74976         * tests/test-wcrtomb.c (wcrtomb): Likewise.
74977         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
74978         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
74979         * tests/test-wcwidth.c (wcwidth): Likewise.
74981         build: pull in conditional headers during GNULIB_POSIXCHECK
74982         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
74983         definitions from any conditionally-included headers.
74984         * lib/stdlib.in.h (includes): Likewise.
74985         * lib/unistd.in.h (includes): Likewise.
74987 2009-12-24  Bruno Haible  <bruno@clisp.org>
74989         * tests/test-argv-iter.c: Include header file being tested immediately
74990         after config.h.
74991         * tests/test-base64.c: Likewise.
74992         * tests/test-flock.c: Likewise.
74993         * tests/test-fsync.c: Likewise.
74994         * tests/test-getdate.c: Likewise.
74995         * tests/test-getndelim2.c: Likewise.
74996         * tests/test-isfinite.c: Likewise.
74997         * tests/test-isinf.c: Likewise.
74998         * tests/test-strerror.c: Likewise.
74999         * tests/test-strsignal.c: Likewise.
75001 2009-12-23  Eric Blake  <ebb9@byu.net>
75003         unistd: work around cygwin bug
75004         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
75005         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
75006         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75008 2009-12-23  Bruno Haible  <bruno@clisp.org>
75010         localename: More tests.
75011         * tests/test-localename.c (SIZEOF): New macro.
75012         (categories): New variable.
75013         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
75014         test_locale_name_default): Add test w.r.t. thread locale.
75015         (test_locale_name_thread): New function.
75016         (main): Invoke it.
75018         localename: Make aware of thread locale.
75019         * lib/localename.h (gl_locale_name_thread): New declaration.
75020         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
75021         behaviour with respect to thread locale.
75022         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
75023         <langinfo.h>, glthread/lock.h.
75024         (SIZE_BITS): New macro.
75025         (string_hash): New function.
75026         (struct hash_node): New type.
75027         (HASH_TABLE_SIZE): New macro.
75028         (struniq_hash_table, struniq_lock): New variables.
75029         (struniq): New function.
75030         (gl_locale_name_thread): New function.
75031         (gl_locale_name): Invoke it.
75032         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
75033         * modules/localename (Depends-on): Add lock.
75034         Reported by Mike Gran <spk121@yahoo.com>.
75036 2009-12-23  Eric Blake  <ebb9@byu.net>
75038         va-args: new module
75039         * modules/va-args: New file.
75040         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
75041         * MODULES.html.sh (Core language properties): Mention it.
75043         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
75044         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
75045         named alias for __attribute__((__unused__)).
75046         * lib/chown.c: Update client.
75047         * lib/fchmodat.c: Likewise.
75048         * lib/fts.c: Likewise.
75049         * lib/getdate.y: Likewise.
75050         * lib/getgroups.c: Likewise.
75051         * lib/getopt.c: Likewise.
75052         * lib/getugroups.c: Likewise.
75053         * lib/mkdir.c: Likewise.
75054         * lib/mkfifo.c: Likewise.
75055         * lib/mkfifoat.c: Likewise.
75056         * lib/mknod.c: Likewise.
75057         * lib/mknodat.c: Likewise.
75058         * lib/readlink.c: Likewise.
75059         * lib/se-context.in.h: Likewise.
75060         * lib/se-selinux.in.h: Likewise.
75061         * lib/sockets.c: Likewise.
75062         * lib/symlink.c: Likewise.
75063         * lib/symlinkat.c: Likewise.
75064         * lib/unicodeio.c: Likewise.
75065         * lib/unistr.h: Likewise.
75066         * tests/test-areadlink.c: Likewise.
75067         * tests/test-areadlinkat.c: Likewise.
75068         * tests/test-filenamecat.c: Likewise.
75069         * tests/test-fseeko.c: Likewise.
75070         * tests/test-ftello.c: Likewise.
75071         * tests/test-getdate.c: Likewise.
75072         * tests/test-getgroups.c: Likewise.
75073         * tests/test-gethostname.c: Likewise.
75074         * tests/test-quotearg.c: Likewise.
75075         * tests/test-version-etc.c: Likewise.
75076         * tests/test-xalloc-die.c: Likewise.
75077         * tests/test-xfprintf-posix.c: Likewise.
75078         * tests/test-xprintf-posix.c: Likewise.
75079         * tests/test-xvasprintf.c: Likewise.
75081         tests: avoid compiler warnings
75082         * tests/test-fcntl.c (main): Delete unused parameters.
75083         * tests/test-freopen-safer.c (main): Likewise.
75084         * tests/test-xalloc-die.c (main): Mark unused parameters.
75085         * tests/test-fseeko.c (main): Likewise.
75086         * tests/test-ftello.c (main): Likewise.
75087         * tests/test-nanosleep.c (main): Avoid declaration warning.
75088         * tests/test-sleep.c (main): Likewise.
75089         * tests/test-unsetenv.c (main): Silence warning about string
75090         literal.
75091         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
75093 2009-12-23  Bruno Haible  <bruno@clisp.org>
75095         * tests/test-localename.c (test_locale_name): New function, extracted
75096         from main. Also test mixed situations.
75097         (test_locale_name_posix, test_locale_name_environ,
75098         test_locale_name_default): New functions.
75099         (main): Invoke them all.
75100         * modules/localename-tests (configure.ac): Test for newlocale.
75102 2009-12-23  Bruno Haible  <bruno@clisp.org>
75104         unistd: Ensure getcwd gets declared before being overridden.
75105         * lib/unistd.in.h: Conditionally include <io.h>.
75107 2009-12-22  Bruno Haible  <bruno@clisp.org>
75109         wchar: Diagnose broken combination of glibc and gcc versions and flags.
75110         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
75111         (gl_WCHAR_H): Invoke it.
75112         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
75113         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
75114         Reported by Karl Berry <karl@freefriends.org>.
75116 2009-12-22  Eric Blake  <ebb9@byu.net>
75118         math, unistd: avoid redundant includes
75119         * lib/math.in.h (isnan): No need to re-include <math.h>.
75120         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
75122         getsubopt: work around cygwin bug
75123         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
75124         avoid conflicting with system getsubopt.
75125         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
75126         bug.
75128         getopt: synchronize from glibc
75129         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
75130         parameter order.  Adjust all callers.
75131         (_getopt_internal_r, main): Adjust quoting in error messages.
75132         Drop considerations for outdated POSIX 1003.2 error message.
75133         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
75134         callers.
75135         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
75137         test-getopt: test stderr behavior
75138         * modules/getopt-posix-tests (Depends-on): Add dup2.
75139         * tests/test-getopt.c (ASSERT): Avoid stderr.
75140         (main): Move stderr to a temporary file.
75141         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
75142         Instead, add parameter to inform caller if output occurred.
75143         (test_getopt): Adjust all existing tests to expect silence, and
75144         add new tests of leading ":".
75145         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75146         glibc shortcomings with leading "-:" or "+:" in optstring.
75147         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75148         Likewise.
75149         * doc/posix-functions/getopt.texi (getopt): Likewise.
75151         test-getopt: enhance test
75152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
75153         supports optind=0.
75154         * tests/test-getopt.c (OPTIND_MIN): Move...
75155         * tests/test-getopt.h (OPTIND_MIN): ...here.
75156         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
75157         Require that optind=0 works, since modern BSD supports it in
75158         addition to optreset, and since coreutils expects it.
75159         (test_getopt_long_only): New test.
75160         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75161         glibc shortcomings with 'W;', and enforcement of optind=0.
75162         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75163         Likewise.
75165 2009-12-21  Bruno Haible  <bruno@clisp.org>
75167         localename: Improvements for MacOS X and Cygwin.
75168         * lib/localename.h (gl_locale_name_environ): New declaration.
75169         * lib/localename.c (gl_locale_name_environ): New function, extracted from
75170         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
75171         (gl_locale_name_posix): Invoke it.
75172         (gl_locale_name_default): Add comments. Use Windows native API also on
75173         Cygwin.
75175 2009-12-21  Bruno Haible  <bruno@clisp.org>
75177         Update list of Win32 locale ids.
75178         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
75179         (LANG_SAMI): Renamed from LANG_SAAMI.
75180         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
75181         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
75182         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
75183         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
75184         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
75185         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
75186         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
75187         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
75188         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
75189         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
75190         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
75191         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
75192         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
75193         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
75194         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
75195         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
75196         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
75197         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
75198         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
75199         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
75200         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
75201         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
75202         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
75203         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
75204         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
75205         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
75206         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
75207         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
75208         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
75209         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
75210         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
75211         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
75212         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
75213         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
75214         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
75215         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
75216         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
75217         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
75218         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
75219         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
75220         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
75221         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
75222         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
75223         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
75224         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
75225         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
75226         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
75227         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
75228         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
75229         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
75230         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
75231         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
75232         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
75233         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
75234         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
75235         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
75236         Add more languages and countries for Sami, Sorbian. Add more countries
75237         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
75238         for Pashto. Change country for Syriac, Tswana.
75240 2009-12-21  Eric Blake  <ebb9@byu.net>
75242         test-utimens: avoid spurious failure
75243         * tests/test-chown.h (nap): Factor...
75244         * tests/nap.h: ...into new file.
75245         * tests/test-lchown.h (nap): Avoid duplication.
75246         * tests/test-utimens-common.h (nap): Use shared implementation,
75247         necessary on file systems with 1-second resolution.
75248         * modules/chown-tests (Files): Include new file.
75249         * modules/fdutimensat-tests (Files): Likewise.
75250         * modules/futimens-tests (Files): Likewise.
75251         * modules/lchown-tests (Files): Likewise.
75252         * modules/openat-tests (Files): Likewise.
75253         * modules/utimens-tests (Files): Likewise.
75254         * modules/utimensat-tests (Files): Likewise.
75256 2009-12-19  Eric Blake  <ebb9@byu.net>
75258         futimens, utimensat: work around Linux bug
75259         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
75260         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75261         * lib/utimensat.c (rpl_utimensat): Work around it.
75262         * lib/futimens.c (rpl_futimens): Adjust comment.
75264         utimens: work around Linux ctime bug
75265         * lib/utimens.c (detect_ctime_bug): New helper function.
75266         (update_timespec): Differentiate between workaround needed for
75267         this bug vs. what is needed for systems that lack utimensat.
75268         (fdutimens, lutimens): Work around bug.
75270         utimens: check for ctime update
75271         * tests/test-utimens-common.h (check_ctime): Define.
75272         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
75273         * tests/test-futimens.h (test_futimens): Likewise.
75274         * tests/test-lutimens.h (test_lutimens): Likewise.
75275         * doc/posix-functions/futimens.texi (futimens): Document the bug.
75276         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75278 2009-12-19  Bruno Haible  <bruno@clisp.org>
75280         dprintf-posix: Check against memory leak fixed on 2009-12-15.
75281         * tests/test-dprintf-posix2.sh: New file.
75282         * tests/test-dprintf-posix2.c: New file.
75283         * modules/dprintf-posix-tests (Files): Add them.
75284         (configure.ac): Check for getrlimit and setrlimit.
75285         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75287 2009-12-19  Bruno Haible  <bruno@clisp.org>
75289         fprintf-posix: Check against memory leak fixed on 2009-12-15.
75290         * tests/test-fprintf-posix3.sh: New file.
75291         * tests/test-fprintf-posix3.c: New file.
75292         * modules/fprintf-posix-tests (Files): Add them.
75293         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75295 2009-12-19  Eric Blake  <ebb9@byu.net>
75297         dirfd: fix prototype
75298         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
75299         * lib/dirfd.c (dirfd): Likewise.
75301         canonicalize: reduce memory usage
75302         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
75303         allocation to size.
75304         Reported by Solar Designer <solar@openwall.com>.
75306 2009-12-19  Bruno Haible  <bruno@clisp.org>
75308         New module attribute 'Applicability'.
75309         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
75310         * gnulib-tool: New option --extract-applicability.
75311         (func_usage): Document it.
75312         (sed_extract_prog): Recognize it.
75313         (func_get_applicability): New function.
75314         (func_import): Generalize handling of 'link-warning' module.
75315         * modules/link-warning (Applicability): New section.
75316         * modules/arg-nonnull (Applicability): New section.
75317         Repoted by Simon Josefsson <simon@josefsson.org>.
75319 2009-12-19  Bruno Haible  <bruno@clisp.org>
75321         fflush: tweak
75322         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
75323         * lib/fseeko.c (rpl_fseeko): Likewise.
75325 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
75327         * lib/gl_list.h: Fix typo in comment.
75329 2009-12-16  Eric Blake  <ebb9@byu.net>
75331         fcntl: use to simplify other modules
75332         * modules/cloexec (Depends-on): Add fcntl.
75333         * modules/fchdir (Depends-on): Likewise.
75334         * modules/fd-safer-flag (Depends-on): Likewise.
75335         * modules/unistd-safer (Depends-on): Likewise.
75336         * modules/dup3 (configure.ac): Set module indicator.
75337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
75338         missing.
75339         * lib/fchdir.c (_gl_register_dup): Fix comment.
75340         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
75341         * lib/dup-safer.c (dup_safer): Likewise.
75342         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
75343         * lib/dup3.c (dup3): Likewise.
75344         * tests/test-fchdir.c (main): Enhance test.
75345         Fixes a dup_cloexec bug reported by Ondřej Vašík.
75347         fcntl: port portions of fcntl to mingw
75348         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
75349         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
75350         replacement for mingw.
75351         * modules/fcntl (Description): Update.
75352         (Depends-on): Add dup2.
75353         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
75354         * modules/fcntl-h (Makefile.am): Substitute it.
75355         * lib/fcntl.in.h (fcntl): Update declaration.
75356         (F_DUPFD, F_GETFD): New macros, when needed.
75357         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75358         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
75359         * tests/test-fcntl.c (check_flags, main): Enhance test for items
75360         we now guarantee.
75362         fcntl: work around cygwin bug in F_DUPFD
75363         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
75364         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
75365         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
75366         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
75367         * doc/posix-functions/fcntl.texi (fcntl): Document it.
75369         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
75370         * modules/fcntl (Files): List new files.
75371         (configure.ac): Run a test.
75372         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
75373         * lib/fcntl.c (rpl_fcntl): Likewise.
75374         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
75375         (gl_FCNTL_H): Always replace fcntl.h.
75376         * modules/fcntl-h (Makefile.am): Substitute witnesses.
75377         * lib/fcntl.in.h (fcntl): Declare replacement.
75378         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
75379         needed, plus a witness.
75380         * doc/posix-functions/fcntl.texi (fcntl): Document this.
75381         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
75382         * tests/test-fcntl.c: New file.
75383         * modules/fcntl-tests: Likewise.
75385         binary-io: avoid potential compilation warning
75386         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
75387         directives.
75389         fflush: avoid compilation error on NetBSD
75390         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
75391         between off_t and fpos_t, since the latter is sometimes a struct.
75392         * lib/fseeko.c (rpl_fseeko): Likewise.
75393         Reported by Alexander Nasonov <alnsn@yandex.ru>.
75395 2009-12-15  Eric Blake  <ebb9@byu.net>
75397         fcntl-h, stdio, sys_ioctl: fix declarations
75398         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
75399         function must not take arguments.
75400         * lib/sys_ioctl.in.h (ioctl): Likewise.
75401         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
75402         (open): Add a link warning.
75404 2009-12-15  Jim Meyering  <meyering@redhat.com>
75406         areadlink, areadlink-with-size: relax license to LGPLv2+
75407         * modules/areadlink (License): Relax to LGPLv2+.
75408         * modules/areadlink-with-size (License): Likewise.
75410 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
75411             Bruno Haible  <bruno@clisp.org>
75413         *printf: Fix memory leak.
75414         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
75415         * lib/vfprintf.c (vfprintf): Likewise.
75416         * lib/dprintf.c (dprintf): Likewise.
75417         * lib/vdprintf.c (vdprintf): Likewise.
75419 2009-12-14  Eric Blake  <ebb9@byu.net>
75421         accept4: adjust module dependencies
75422         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
75424         utimens: one more try at avoiding compiler warning
75425         * lib/utimens.c (lutimens): Lower scope of result.
75427 2009-12-13  Bruno Haible  <bruno@clisp.org>
75429         Move the malloc checking from module 'list' to new module 'xlist'.
75430         * modules/xlist: New file.
75431         * lib/gl_xlist.h: New file.
75432         * lib/gl_xlist.c: New file.
75433         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
75434         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
75435         gl_list_add_last, gl_list_add_before, gl_list_add_after,
75436         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
75437         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
75438         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
75439         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
75440         gl_sortedlist_nx_add): New declarations.
75441         (struct gl_list_implementation): Rename and change methods accordingly.
75442         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
75443         (gl_list_nx_create): Renamed from gl_list_create.
75444         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75445         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75446         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75447         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75448         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75449         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75450         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75451         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75452         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
75453         gl_list_create_empty.
75454         (gl_list_nx_create): Renamed from gl_list_create.
75455         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75456         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75457         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75458         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75459         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75460         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75461         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75462         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75463         * lib/gl_array_list.c: Don't include xalloc.h.
75464         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
75465         NULL upon out-of-memory.
75466         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
75467         out-of-memory.
75468         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
75469         Change return type to 'int'.
75470         (gl_array_nx_set_at): Renamed from gl_array_set_at.
75471         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75472         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
75473         upon out-of-memory.
75474         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
75475         upon out-of-memory.
75476         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
75477         upon out-of-memory.
75478         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
75479         upon out-of-memory.
75480         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
75481         out-of-memory.
75482         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
75483         Update.
75484         (gl_array_list_implementation): Update.
75485         * lib/gl_carray_list.c: Don't include xalloc.h.
75486         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
75487         Return NULL upon out-of-memory.
75488         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
75489         out-of-memory.
75490         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
75491         Change return type to 'int'.
75492         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
75493         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75494         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
75495         upon out-of-memory.
75496         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
75497         upon out-of-memory.
75498         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
75499         out-of-memory.
75500         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
75501         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
75502         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
75503         Update.
75504         (gl_carray_list_implementation): Update.
75505         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
75506         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
75507         gl_linked_create_empty. Return NULL upon out-of-memory.
75508         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
75509         out-of-memory.
75510         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
75511         Change return type to 'int'. Return -1 upon out-of-memory.
75512         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
75513         out-of-memory.
75514         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
75515         upon out-of-memory.
75516         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
75517         upon out-of-memory.
75518         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
75519         NULL upon out-of-memory.
75520         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
75521         upon out-of-memory.
75522         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
75523         out-of-memory.
75524         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
75525         Update.
75526         * lib/gl_linked_list.c: Don't include xalloc.h.
75527         (gl_linked_list_implementation): Update.
75528         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
75529         (add_to_bucket): Change return type to 'int'.
75530         (gl_linkedhash_list_implementation): Update.
75531         * lib/gl_anytree_list1.h (free_subtree): New function.
75532         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
75533         gl_tree_create_empty. Return NULL upon out-of-memory.
75534         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
75535         Change return type to 'int'. Return -1 upon out-of-memory.
75536         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
75537         out-of-memory.
75538         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
75539         (gl_tree_remove_node): New function, moved here from
75540         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
75541         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
75542         Update.
75543         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
75544         malloc, not xmalloc. Return NULL upon out-of-memory.
75545         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75546         out-of-memory.
75547         (gl_tree_remove_node_from_tree): New function, extracted from
75548         gl_tree_remove_node.
75549         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75550         upon out-of-memory.
75551         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75552         out-of-memory.
75553         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75554         upon out-of-memory.
75555         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75556         upon out-of-memory.
75557         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75558         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
75559         not xmalloc. Return NULL upon out-of-memory.
75560         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75561         out-of-memory.
75562         (gl_tree_remove_node_from_tree): New function, extracted from
75563         gl_tree_remove_node.
75564         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75565         upon out-of-memory.
75566         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75567         out-of-memory.
75568         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75569         upon out-of-memory.
75570         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75571         upon out-of-memory.
75572         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75573         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
75574         gl_anytree_list1.h before gl_anyavltree_list2.h.
75575         (gl_avltree_list_implementation): Update.
75576         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
75577         gl_anytree_list1.h before gl_anyavltree_list2.h.
75578         (gl_rbtree_list_implementation): Update.
75579         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
75580         Change return type to 'int'. Return -1 upon out-of-memory. Use
75581         __builtin_expect.
75582         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
75583         (gl_avltreehash_list_implementation): Update.
75584         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
75585         (gl_rbtreehash_list_implementation): Update.
75586         * modules/array-list (Depends-on): Remove xalloc.
75587         * modules/carray-list (Depends-on): Likewise.
75588         * modules/linked-list (Depends-on): Likewise.
75589         * modules/linkedhash-list (Depends-on): Likewise.
75590         * modules/avltree-list (Depends-on): Likewise.
75591         * modules/rbtree-list (Depends-on): Likewise.
75592         * modules/avltreehash-list (Depends-on): Likewise.
75593         * modules/rbtreehash-list (Depends-on): Likewise.
75595         * modules/xsublist: New file.
75596         * lib/gl_xsublist.h: New file.
75597         * lib/gl_xsublist.c: New file.
75598         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
75599         (gl_sublist_nx_create): New declaration.
75600         * lib/gl_sublist.c: Don't include xalloc.h.
75601         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
75602         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
75603         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
75604         Change return type to 'int'. Return -1 upon out-of-memory.
75605         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
75606         upon out-of-memory.
75607         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
75608         NULL upon out-of-memory.
75609         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
75610         upon out-of-memory.
75611         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
75612         NULL upon out-of-memory.
75613         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
75614         NULL upon out-of-memory.
75615         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
75616         upon out-of-memory.
75617         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
75618         (gl_sublist_list_implementation): Update.
75619         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
75620         upon out-of-memory.
75621         * modules/sublist (Depends-on): Remove xalloc.
75623         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
75624         * tests/test-carray_list.c: Likewise.
75625         * tests/test-linked_list.c: Likewise.
75626         * tests/test-linkedhash_list.c: Likewise.
75627         * tests/test-avltree_list.c: Likewise.
75628         * tests/test-rbtree_list.c: Likewise.
75629         * tests/test-avltreehash_list.c: Likewise.
75630         * tests/test-rbtreehash_list.c: Likewise.
75631         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
75632         * modules/carray-list-tests (Makefile.am): Likewise.
75633         * modules/linked-list-tests (Makefile.am): Likewise.
75634         * modules/linkedhash-list-tests (Makefile.am): Likewise.
75635         * modules/avltree-list-tests (Makefile.am): Likewise.
75636         * modules/rbtree-list-tests (Makefile.am): Likewise.
75637         * modules/avltreehash-list-tests (Makefile.am): Likewise.
75638         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
75640         * NEWS: Mention the changes.
75642         * lib/clean-temp.c: Include gl_xlist.h.
75643         * modules/clean-temp (Depends-on): Add xlist.
75645         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
75646         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
75648         * tests/test-array_oset.c: Include gl_xlist.h.
75649         * modules/array-oset-tests (Depends-on): Add xlist.
75651         Reported by José E. Marchesi <jemarch@gnu.org>.
75653 2009-12-13  Bruno Haible  <bruno@clisp.org>
75655         Move the malloc checking from module 'oset' to new module 'xoset'.
75656         * modules/xoset: New file.
75657         * lib/gl_xoset.h: New file.
75658         * lib/gl_xoset.c: New file.
75659         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
75660         declarations.
75661         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
75662         (struct gl_oset_implementation): Rename and change methods accordingly.
75663         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
75664         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75665         'int'. Mark as __warn_unused_result__.
75666         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
75667         gl_oset_create_empty.
75668         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75669         'int'.
75670         * lib/gl_array_oset.c: Don't include xalloc.h.
75671         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
75672         malloc, not xmalloc.
75673         (grow): Change return type to 'int'. Don't call xalloc_die.
75674         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
75675         to 'int'.
75676         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
75677         'int'.
75678         (gl_array_oset_implementation): Update.
75679         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
75680         gl_tree_create_empty.
75681         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
75682         'int'.
75683         * lib/gl_avltree_oset.c: Don't include xalloc.h.
75684         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75685         xmalloc.
75686         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75687         not xmalloc.
75688         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75689         xmalloc.
75690         (gl_avltree_oset_implementation): Update.
75691         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
75692         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75693         xmalloc.
75694         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75695         not xmalloc.
75696         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75697         xmalloc.
75698         (gl_rbtree_oset_implementation): Update.
75699         * modules/array-oset (Depends-on): Remove xalloc.
75700         * modules/avltree-oset (Depends-on): Likewise.
75701         * modules/rbtree-oset (Depends-on): Likewise.
75702         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
75703         * tests/test-avltree_oset.c: Likewise.
75704         * tests/test-rbtree_oset.c: Likewise.
75705         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75706         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
75707         * modules/rbtree-oset-tests (Makefile.am): Likewise.
75708         * NEWS: Mention the change.
75710 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
75712         maint.mk: allow a project to override release-prep commands
75713         * top/maint.mk (alpha, beta, stable): Move release-preparatory
75714         commands into a new rule.
75715         (release-prep): New rule.
75716         (release-prep-hook): New overridable variable.
75718 2009-12-13  Bruno Haible  <bruno@clisp.org>
75720         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
75722 2009-12-13  Jim Meyering  <meyering@redhat.com>
75724         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
75725         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
75727 2009-12-12  Bruno Haible  <bruno@clisp.org>
75729         duplocale: Tweak.
75730         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
75732 2009-12-12  Karl Berry  <karl@gnu.org>
75734         * config/srclist.txt (strtoll.c): tab changes, no more sync.
75736 2009-12-12  Bruno Haible  <bruno@clisp.org>
75738         * m4/po.m4: Undo incorrect untabification.
75740 2009-12-12  Bruno Haible  <bruno@clisp.org>
75742         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
75743         * modules/c-strtod (Depends-on): Add locale.
75744         * modules/c-strtold (Depends-on): Likewise.
75746 2009-12-12  Bruno Haible  <bruno@clisp.org>
75748         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
75750 2009-12-11  Eric Blake  <ebb9@byu.net>
75752         setenv: relax requirement in light of POSIX ruling
75753         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
75754         not NULL.
75755         * tests/test-setenv.c (main): Relax test.
75756         * tests/test-unsetenv.c (main): Likewise.
75757         * doc/posix-functions/setenv.texi (setenv): Document this.
75758         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
75760 2009-12-11  Bruno Haible  <bruno@clisp.org>
75762         New module 'fd-safer-flag'.
75763         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
75764         * lib/dup-safer.c (dup_safer_flag): Remove function.
75765         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
75766         * lib/fd-safer.c (fd_safer_flag): Remove function.
75767         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
75768         * modules/cloexec (configure.ac): Drop indicator macro.
75769         * modules/fd-safer-flag: New file.
75770         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
75771         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
75772         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
75774 2009-12-11  Bruno Haible  <bruno@clisp.org>
75776         Tests for module 'nl_langinfo'.
75777         * modules/nl_langinfo-tests: New file.
75778         * tests/test-nl_langinfo.sh: New file.
75779         * tests/test-nl_langinfo.c: New file.
75781         New module 'nl_langinfo'.
75782         * lib/nl_langinfo.c: New file.
75783         * m4/nl_langinfo.m4: New file.
75784         * modules/nl_langinfo: New file.
75785         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
75787 2009-12-11  Bruno Haible  <bruno@clisp.org>
75789         Tests for module 'langinfo'.
75790         * modules/langinfo-tests: New file.
75791         * tests/test-langinfo.c: New file.
75793         New module 'langinfo'.
75794         * lib/langinfo.in.h: New file.
75795         * m4/langinfo_h.m4: New file.
75796         * modules/langinfo: New file.
75797         * doc/posix-headers/langinfo.texi: Mention the new module.
75799 2009-12-11  Bruno Haible  <bruno@clisp.org>
75801         * lib/config.charset: Untabify.
75803 2009-12-11  Bruno Haible  <bruno@clisp.org>
75805         * modules/unistd-safer (configure.ac): Drop indicator macro.
75807 2009-12-11  Bruno Haible  <bruno@clisp.org>
75809         Move pipe2-safer code to its own file.
75810         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
75811         * lib/pipe-safer.c (pipe2_safer): Remove function.
75812         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
75813         (Makefile.am): Add it to lib_SOURCES.
75815 2009-12-10  Bruno Haible  <bruno@clisp.org>
75817         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
75819 2009-12-10  Bruno Haible  <bruno@clisp.org>
75821         Declare which arguments expect non-NULL values, for GCC and clang.
75822         * build-aux/arg-nonnull.h: New file.
75823         * modules/arg-nonnull: New file.
75824         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
75825         (inet_ntop, inet_pton): Use it.
75826         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
75827         (closedir, dirfd, opendir, scandir, alphasort): Use it.
75828         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
75829         (open, openat): Use it.
75830         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
75831         (fnmatch): Use it.
75832         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
75833         (getopt, getopt_long, getopt_long_only): Use it.
75834         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
75835         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
75836         Use it.
75837         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
75838         (iconv_open): Use it.
75839         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
75840         (strtoimax, strtoumax): Use it.
75841         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
75842         (duplocale): Use it.
75843         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
75844         (frexp, frexpl): Use it.
75845         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
75846         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
75847         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
75848         (tsearch, tfind, tdelete, twalk): Use it.
75849         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
75850         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
75851         sigpending): Use it.
75852         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
75853         (posix_spawn, posix_spawnp, posix_spawnattr_init,
75854         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
75855         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
75856         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
75857         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
75858         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
75859         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
75860         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
75861         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
75862         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
75863         Use it.
75864         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
75865         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
75866         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
75867         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
75868         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
75869         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
75870         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
75871         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
75872         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
75873         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
75874         strtoull, unsetenv): Use it.
75875         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
75876         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
75877         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
75878         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
75879         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
75880         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
75881         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
75882         (strcasecmp, strncasecmp): Use it.
75883         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
75884         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
75885         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
75886         rpl_setsockopt): Use it.
75887         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
75888         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
75889         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
75890         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
75891         (gettimeofday): Use it.
75892         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
75893         (times): Use it.
75894         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
75895         (uname): Use it.
75896         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
75897         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
75898         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
75899         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
75900         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
75901         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
75902         unlinkat, write): Use it.
75903         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
75904         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
75905         * lib/argv-iter.h: Include arg-nonnull.h.
75906         (_ATTRIBUTE_NONNULL_): Remove macro.
75907         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
75908         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
75909         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
75910         optimization.
75911         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
75912         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
75913         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
75914         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
75915         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
75916         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
75917         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
75918         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
75919         * modules/arpa_inet (Depends-on): Add arg-nonnull.
75920         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
75921         * modules/dirent (Depends-on): Add arg-nonnull.
75922         (Makefile.am): Insert arg-nonnull.h into dirent.h.
75923         * modules/fcntl-h (Depends-on): Add arg-nonnull.
75924         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
75925         * modules/fnmatch (Depends-on): Add arg-nonnull.
75926         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
75927         * modules/getopt-posix (Depends-on): Add arg-nonnull.
75928         (Makefile.am): Insert arg-nonnull.h into getopt.h.
75929         * modules/glob (Depends-on): Add arg-nonnull.
75930         (Makefile.am): Insert arg-nonnull.h into glob.h.
75931         * modules/iconv_open (Depends-on): Add arg-nonnull.
75932         (Makefile.am): Insert arg-nonnull.h into iconv.h.
75933         * modules/inttypes (Depends-on): Add arg-nonnull.
75934         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
75935         * modules/locale (Depends-on): Add arg-nonnull.
75936         (Makefile.am): Insert arg-nonnull.h into locale.h.
75937         * modules/math (Depends-on): Add arg-nonnull.
75938         (Makefile.am): Insert arg-nonnull.h into math.h.
75939         * modules/netdb (Depends-on): Add arg-nonnull.
75940         (Makefile.am): Insert arg-nonnull.h into netdb.h.
75941         * modules/search (Depends-on): Add arg-nonnull.
75942         (Makefile.am): Insert arg-nonnull.h into search.h.
75943         * modules/signal (Depends-on): Add arg-nonnull.
75944         (Makefile.am): Insert arg-nonnull.h into signal.h.
75945         * modules/spawn (Depends-on): Add arg-nonnull.
75946         (Makefile.am): Insert arg-nonnull.h into spawn.h.
75947         * modules/stdio (Depends-on): Add arg-nonnull.
75948         (Makefile.am): Insert arg-nonnull.h into stdio.h.
75949         * modules/stdlib (Depends-on): Add arg-nonnull.
75950         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
75951         * modules/string (Depends-on): Add arg-nonnull.
75952         (Makefile.am): Insert arg-nonnull.h into string.h.
75953         * modules/strings (Depends-on): Add arg-nonnull.
75954         (Makefile.am): Insert arg-nonnull.h into strings.h.
75955         * modules/sys_socket (Depends-on): Add arg-nonnull.
75956         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
75957         * modules/sys_stat (Depends-on): Add arg-nonnull.
75958         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
75959         * modules/sys_time (Depends-on): Add arg-nonnull.
75960         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
75961         * modules/sys_times (Depends-on): Add arg-nonnull.
75962         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
75963         * modules/sys_utsname (Depends-on): Add arg-nonnull.
75964         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
75965         * modules/time (Depends-on): Add arg-nonnull.
75966         (Makefile.am): Insert arg-nonnull.h into time.h.
75967         * modules/unistd (Depends-on): Add arg-nonnull.
75968         (Makefile.am): Insert arg-nonnull.h into unistd.h.
75969         * modules/wchar (Depends-on): Add arg-nonnull.
75970         (Makefile.am): Insert arg-nonnull.h into wchar.h.
75971         * modules/argv-iter (Depends-on): Add arg-nonnull.
75972         * tests/test-canonicalize.c (null_ptr): New function.
75973         (main): Use it.
75974         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
75975         (main): Use it.
75976         * tests/test-memmem.c (null_ptr): New function.
75977         (main): Use it.
75978         Reported by Jim Meyering.
75980 2009-12-10  Bruno Haible  <bruno@clisp.org>
75982         Use spaces for indentation, not tabs.
75983         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
75984         * m4/*.m4: Untabify.
75985         * build-aux/*.h: Untabify.
75986         * tests/**/*.[hc]: Untabify.
75987         * README: New section "Indent with spaces, not TABs", based on
75988         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
75989         * NEWS: Mention the change.
75991 2009-12-10  Bruno Haible  <bruno@clisp.org>
75993         pty test: Fix link error.
75994         * modules/pty-tests (Makefile.am): Add the default LDADD value to
75995         test_pty_LDADD.
75997 2009-12-07  Simon Josefsson  <simon@josefsson.org>
75999         * modules/pty: New file.
76000         * modules/pty-tests: New file.
76001         * m4/pty.m4: New file.
76002         * tests/test-pty.c: New file.
76003         * doc/glibc-headers/pty.texi: Modified.
76004         * doc/glibc-functions/forkpty.texi: Modified.
76005         * doc/glibc-functions/openpty.texi: Modified.
76007 2009-12-10  Bruno Haible  <bruno@clisp.org>
76009         Avoid syntax error in C++ mode.
76010         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
76012 2009-12-10  Bruno Haible  <bruno@clisp.org>
76014         Use sed with option -e.
76015         * gnulib-tool (func_version, func_emit_copyright_notice,
76016         func_emit_initmacro_end, func_import, func_create_testdir): Pass
76017         option -e to sed.
76018         * modules/link-warning (Makefile.am): Likewise.
76020 2009-12-10  Jim Meyering  <meyering@redhat.com>
76022         mgetgroups: do not write bytes beyond end of malloc'd buffer
76023         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
76024         username, we call getgroups with a one-element-shorter buffer,
76025         but still told it the length was original, max_n_groups.
76027 2009-12-09  Eric Blake  <ebb9@byu.net>
76029         cloexec: relax license
76030         * modules/cloexec (Maintainer): Add myself.
76031         (License): Use LGPL, not GPL.
76033         link-warning: optimize generation
76034         * modules/link-warning (Makefile.am): Reduce process usage.
76036 2009-12-09  Bruno Haible  <bruno@clisp.org>
76038         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
76039         workaround was added on 2009-11-17.
76041 2009-12-09  Jim Meyering  <meyering@redhat.com>
76042             Bruno Haible  <bruno@clisp.org>
76044         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
76045         * modules/link-warning (Makefile.am): Make the comment-removing sed
76046         command more robust in the face of bootstrap-prepended comment lines.
76048 2009-12-09  Bruno Haible  <bruno@clisp.org>
76050         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
76051         most one group.
76053 2009-12-09  Simon Josefsson  <simon@josefsson.org>
76054             Bruno Haible  <bruno@clisp.org>
76056         * build-aux/link-warning.h: Add copyright notice.
76057         * modules/link-warning (Makefile.am): Generate link-warning.h from
76058         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
76059         * NEWS: Mention change in link-warning module.
76060         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
76061         * modules/dirent (Makefile.am): Add dependency to dirent.h.
76062         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
76063         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
76064         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
76065         * modules/math (Makefile.am): Add dependency to math.h.
76066         * modules/search (Makefile.am): Add dependency to search.h.
76067         * modules/signal (Makefile.am): Add dependency to signal.h.
76068         * modules/spawn (Makefile.am): Add dependency to spawn.h.
76069         * modules/stdio (Makefile.am): Add dependency to stdio.h.
76070         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
76071         * modules/string (Makefile.am): Add dependency to string.h.
76072         * modules/strings (Makefile.am): Add dependency to strings.h.
76073         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
76074         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
76075         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
76076         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
76077         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
76078         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
76079         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
76080         * modules/unistd (Makefile.am): Add dependency to unistd.h.
76081         * modules/wchar (Makefile.am): Add dependency to wchar.h.
76083 2009-12-09  Bruno Haible  <bruno@clisp.org>
76085         fchdir: Optimize away rpl_fstat when possible.
76086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
76087         REPLACE_OPEN_DIRECTORY.
76088         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
76090 2009-12-09  Bruno Haible  <bruno@clisp.org>
76092         * lib/fchdir.c: Update comment.
76094 2009-12-09  Bruno Haible  <bruno@clisp.org>
76096         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
76098 2009-12-08  Eric Blake  <ebb9@byu.net>
76100         fchdir: avoid memory leak on re-registration.
76101         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
76103 2009-12-08  Jim Meyering  <meyering@redhat.com>
76105         init.sh: avoid Solaris 10 /bin/sh portability problem
76106         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
76107         sourced script:
76108           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
76109           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
76110           bar
76111         tests/init.sh relied on that, accepting a --set-path=DIR argument,
76112         and two tests used that idiom.
76113         * tests/init.sh: Update suggested usage comments.
76114         (path_prepend_): New function, to be used in place
76115         of the --src-path=DIR option.
76116         (setup_): Move PATH-prepending code into path_prepend_.
76117         * tests/test-pread.sh: Adapt to new usage.
76118         * tests/test-xalloc-die.sh: Likewise.
76120 2009-12-08  Simon Josefsson  <simon@josefsson.org>
76122         * doc/gnulib.texi (Glibc pty.h): Add.
76123         * doc/glibc-functions/forkpty.texi: Add.
76124         * doc/glibc-functions/openpty.texi: Add.
76125         Suggested by Bruno Haible.
76127 2009-12-08  Eric Blake  <ebb9@byu.net>
76129         fchdir: fix logic bugs
76130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
76131         * tests/test-fchdir.c (main): Enhance test.
76132         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
76133         is in use.
76135         dup2: fix logic bugs
76136         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
76137         REPLACE_DUP2 to decide when rpl_dup2 is needed.
76138         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
76139         exists.
76140         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
76142 2009-12-07  Eric Blake  <ebb9@byu.net>
76144         unlink: fix m4 detection
76145         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
76147         unistd-safer: add unit test
76148         * modules/unistd-safer-tests: New file.
76149         * tests/test-dup-safer.c: Likewise.
76150         * tests/test-cloexec.c (setmode): Avoid compiler warning.
76151         * tests/test-dup2.c (setmode): Likewise.
76152         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
76154         cloexec: preserve text vs. binary across dup_cloexec
76155         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
76156         mode.
76157         * modules/dup2-tests (Depends-on): Add binary-io.
76158         * modules/cloexec-tests (Depends-on): Likewise.
76159         * tests/test-dup2.c (setmode, is_mode): New helpers.
76160         (main): Add tests that translation mode is preserved.
76161         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
76162         Reported by Bruno Haible.
76164         mgetgroups: reduce duplicate listings
76165         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
76166         resulting array.
76167         * tests/test-chown.h (test_chown): Simplify client.
76168         * tests/test-lchown.h (test_lchown): Likewise.
76170 2009-12-06  Bruno Haible  <bruno@clisp.org>
76172         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
76173         value.
76175 2009-12-06  Bruno Haible  <bruno@clisp.org>
76177         * lib/progname.c: Include stdio.h, stdlib.h.
76178         (set_program_name): Reject a NULL argument.
76180 2009-12-05  Eric Blake  <ebb9@byu.net>
76182         pipe2-safer: new module
76183         * modules/pipe2-safer: New file.
76184         * lib/unistd-safer.h (pipe2_safer): New prototype.
76185         * lib/unistd--.h (pipe2): New wrapper.
76186         * lib/pipe-safer.c (pipe2_safer): New function.
76187         * modules/pipe (Depends-on): Add pipe2-safer.
76188         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
76190         stdlib-safer: preserve cloexec flag for mkostemp[s]
76191         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
76192         fd_safer_flag.
76194         unistd-safer: allow preservation of cloexec status via flag
76195         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
76196         prototypes.
76197         * lib/dup-safer.c (dup_safer_flag): New function.
76198         * lib/fd-safer.c (fd_safer_flag): Likewise.
76199         * modules/cloexec (configure.ac): Set witness.
76201         test-dup2: enhance test
76202         * modules/dup2-tests (Depends-on): Add cloexec.
76203         * tests/test-dup2.c (main): Enhance test.
76205         cloexec: add dup_cloexec
76206         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
76207         header and comments.
76208         * lib/cloexec.c (set_cloexec_flag): Add comments.
76209         (dup_cloexec): New function, with mingw implementation borrowed
76210         from...
76211         * lib/w32spawn.h (dup_noinherit): ...here.
76212         * modules/execute (Depends-on): Add cloexec.
76213         * modules/pipe (Depends-on): Likewise.
76214         * modules/cloexec (Depends-on): Add dup2.
76215         * modules/cloexec-tests (Files): New file.
76216         * tests/test-cloexec.c: Likewise.
76218         test-xalloc-die: fix test for mingw
76219         * modules/xalloc-die-tests (Files): Add tests/init.sh.
76220         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
76221         directory and .exe suffix off argv[0] output.
76223         test-fseeko: fix test for mingw
76224         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
76225         than undefining fseek, so test will pass on mingw.
76227 2009-12-05  Bruno Haible  <bruno@clisp.org>
76229         * lib/progname.h (set_program_name): Clarify specification.
76230         * lib/progname.c (set_program_name): Likewise.
76231         Reported by Jim Meyering.
76233 2009-12-05  Jim Meyering  <meyering@redhat.com>
76235         maint.mk: backslash-escape parens in default regexp
76236         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
76237         backslash-escape the literal parentheses.
76239         maint.mk: news-date-check: use grep -E
76240         * top/maint.mk (today): Define a Make variable, not a...
76241         (news-date-check): ...shell variable.
76242         (news-date-regexp): Use the Make variable.
76243         Use grep's -E option.  Change the failing diagnostic to mention
76244         the variable, $(news-date-regexp).
76246 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
76248         maintainer-makefile: allow customization of NEWS entry format
76249         * top/maint.mk (news-date-regexp): New overridable variable.
76250         (news-date-check): Use it.
76252 2009-12-04  Eric Blake  <ebb9@byu.net>
76254         mgetgroups: add xgetgroups, and avoid ENOSYS failures
76255         * lib/mgetgroups.h (xgetgroups): New prototype.
76256         * lib/mgetgroups.c (xgetgroups): New wrapper.
76257         (mgetgroups): Handle ENOSYS.
76258         * modules/mgetgroups (Depends-on): Add realloc.
76259         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
76261         mgetgroups: avoid argument promotion issues with -1
76262         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
76263         for invalid gid_t.
76264         * tests/test-chown.h (getegid, test_chown): Likewise.
76265         * tests/test-lchown.h (getegid, test_lchown): Likewise.
76267 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
76269         exclude: Fix header file problems.
76270         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
76272 2009-12-01  Jim Meyering  <meyering@redhat.com>
76274         fts: fts_open: do not let an empty string cause immediate failure
76275         This is required in support of GNU rm, for which the command
76276         "rm A '' B" must process and remove both A and B, in spite of
76277         the empty string argument.
76278         * lib/fts.c (fts_open): Do not let the presence of an empty string
76279         cause fts_open to fail immediately.  Most fts-using tools must be
76280         able to process all arguments, in order, and can be expected to
76281         diagnose such arguments themselves.
76283 2009-11-30  Eric Blake  <ebb9@byu.net>
76285         utimens: fix compilation error
76286         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
76287         Declare variable at right scope.
76289 2009-11-29  Jim Meyering  <meyering@redhat.com>
76291         bootstrap: handle perl-5.11's changed --version output
76292         * build-aux/bootstrap (get_version): Handle perl separately,
76293         since perl-5.11's --version output is different.
76295 2009-11-28  Jim Meyering  <meyering@redhat.com>
76297         userspec: depend on the inttostr module, too
76298         * modules/userspec (Depends-on): Add inttostr.
76300         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
76301         * lib/userspec.c (parse_with_separator): Do not accept a user ID
76302         number of MAXUID when it evaluates to (uid_t) -1.
76303         Likewise for group ID.  Reported by Matt McCutchen in
76304         <http://savannah.gnu.org/bugs/?28113>
76306         userspec: reformat to use spaces, not TABs
76307         * lib/userspec.c: Expand TABs to spaces.
76308         Add Emacs' "indent-tabs-mode: nil" hint.
76310 2009-11-27  Eric Blake  <ebb9@byu.net>
76312         getopt-gnu: flush out another BSD bug
76313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
76314         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
76315         flush out BSD bug.
76316         * tests/test-getopt.h (test_getopt): End lists with NULL.
76317         * tests/test-getopt_long.h (test_getopt_long): Likewise.
76318         (test_getopt_long_posix): Enhance test.
76319         * modules/getopt-posix-tests (Depends-on): Add stdbool.
76320         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
76321         getopt-gnu.
76322         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76323         Likewise.
76325 2009-11-27  Simon Josefsson  <simon@josefsson.org>
76327         * modules/idpriv-droptemp-tests (Notice): Fix text.
76329 2009-11-27  Jim Meyering  <meyering@redhat.com>
76331         test-xalloc-die: avoid spurious failure due to libtool argv difference
76332         In a libtool-enabled project, this test would fail due to a difference
76333         in the emitted program name, e.g.,
76334         -test-xalloc-die: memory exhausted
76335         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
76336         Use program to avoid that.
76337         * modules/xalloc-die-tests (Depends-on): Add progname.
76338         * tests/test-xalloc-die.c: Include progname.h".
76339         (program_name): Remove decl.
76340         (main): Call set_program_name.
76341         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
76343 2009-11-26  Richard Jones  <rjones@redhat.com>
76345         w32sock: leave win32 error in place.
76346         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
76348 2009-11-26  Eric Blake  <ebb9@byu.net>
76350         init.sh: suggest to use skip_ and fail_ functions in comments
76351         * tests/init.sh: Add a sentence.
76353 2009-11-25  Bruno Haible  <bruno@clisp.org>
76355         init.sh: add documentation in comments
76356         * tests/init.sh: Add some developer and user documentation.
76358 2009-11-26  Jim Meyering  <meyering@redhat.com>
76360         init.sh: accommodate even those who specify bogus srcdir manually
76361         * tests/init.sh: Normally, srcdir is guaranteed by automake and
76362         configure-time tests to be sanitized, so that there is no need to
76363         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
76364         (with no double quotes) suffices.  However, since tests may be
76365         invoked manually, and since you may explicitly set srcdir to the
76366         name of a directory containing spaces, do quote its uses here.
76367         * tests/test-pread.sh: Likewise.
76368         Suggested by Bruno Haible.
76370         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
76371         * tests/test-pread.sh: Write no data into the pipe, because
76372         test-pread actually reads none.  This avoids a diagnostic,
76373         "bash: echo: write error: Broken pipe", that arises in the unusual
76374         event something is ignoring SIGPIPE, and might be interpreted
76375         as some sort of failure.  Reported by Bruno Haible.
76377 2009-11-25  Jim Meyering  <meyering@redhat.com>
76379         test-pread: cover failure with ESPIPE and EINVAL
76380         * tests/test-pread.c (main): Test for failure, too.
76381         * tests/test-pread.sh: Invoke with stdin on a pipe.
76382         Suggested by Eric Blake.
76384         pread: improvement and fix
76385         * modules/pread (Depends-on): Depend on lseek, for portability to
76386         e.g., mingw.  Suggested by Eric Blake.
76387         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
76389         unistd.in.h: correct declaration of pread
76390         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
76391         Reported by Richard W.M. Jones.
76393         test-pread.sh: distribute the test script
76394         * modules/pread-tests (Files): Include test-pread.sh.
76396         test-pread.sh: clean up
76397         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
76398         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
76399         That is unnecessary, since it's always ".".
76400         Suggestion from Eric Blake.
76402         test-pread.sh: make executable
76403         * tests/test-pread.sh: Set executable bit.
76404         Reported by Eric Blake.
76406         correct typo in test-pread.sh
76407         * tests/test-pread.sh: Add #! line.
76409         test pread
76410         * tests/test-pread.c: New file.
76411         * tests/test-pread.sh: Likewise.
76412         * modules/pread-tests: Likewise.
76414         pread: new module
76415         * modules/pread: New file.
76416         * lib/unistd.in.h (pread): Define/declare.
76417         * lib/pread.c (pread): New file.
76418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
76419         * modules/unistd (Makefile.am): Substitute witnesses.
76420         * doc/posix-functions/pread.texi (pread): Update.
76421         * MODULES.html.sh: Add pread.
76423 2009-11-25  Jim Meyering  <meyering@redhat.com>
76425         tests/init.sh: new file to be used via most *.sh tests
76426         * tests/init.sh: New file.
76428 2009-11-25  Eric Blake  <ebb9@byu.net>
76430         utimens: work around older Linux failure with symlinks
76431         * lib/utimens.c (lutimensat_works_really): New variable.
76432         (fdutimens, lutimens): Use it to manage kernels that support
76433         nanosecond times on files, but not on symlinks.
76434         Reported by Ondřej Vašík.
76436         utimes: fix configure grammar
76437         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
76439 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
76441         regex: Fix fastmap for multibyte character ranges.
76442         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
76443         characters when a multibyte character range is included.
76445 2009-11-22  Andy Wingo  <wingo@pobox.com>
76447         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
76448         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
76450 2009-11-24  Bruno Haible  <bruno@clisp.org>
76452         doc: Most *_l functions exist in MacOS X 10.5.
76453         * doc/posix-functions/duplocale.texi: Update platforms list.
76454         * doc/posix-functions/freelocale.texi: Likewise.
76455         * doc/posix-functions/newlocale.texi: Likewise.
76456         * doc/posix-functions/uselocale.texi: Likewise.
76457         * doc/posix-functions/isalnum_l.texi: Likewise.
76458         * doc/posix-functions/isalpha_l.texi: Likewise.
76459         * doc/posix-functions/isblank_l.texi: Likewise.
76460         * doc/posix-functions/iscntrl_l.texi: Likewise.
76461         * doc/posix-functions/isdigit_l.texi: Likewise.
76462         * doc/posix-functions/isgraph_l.texi: Likewise.
76463         * doc/posix-functions/islower_l.texi: Likewise.
76464         * doc/posix-functions/isprint_l.texi: Likewise.
76465         * doc/posix-functions/ispunct_l.texi: Likewise.
76466         * doc/posix-functions/isspace_l.texi: Likewise.
76467         * doc/posix-functions/isupper_l.texi: Likewise.
76468         * doc/posix-functions/iswalnum_l.texi: Likewise.
76469         * doc/posix-functions/iswalpha_l.texi: Likewise.
76470         * doc/posix-functions/iswblank_l.texi: Likewise.
76471         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76472         * doc/posix-functions/iswctype_l.texi: Likewise.
76473         * doc/posix-functions/iswdigit_l.texi: Likewise.
76474         * doc/posix-functions/iswgraph_l.texi: Likewise.
76475         * doc/posix-functions/iswlower_l.texi: Likewise.
76476         * doc/posix-functions/iswprint_l.texi: Likewise.
76477         * doc/posix-functions/iswpunct_l.texi: Likewise.
76478         * doc/posix-functions/iswspace_l.texi: Likewise.
76479         * doc/posix-functions/iswupper_l.texi: Likewise.
76480         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76481         * doc/posix-functions/isxdigit_l.texi: Likewise.
76482         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
76483         * doc/posix-functions/strcasecmp_l.texi: Likewise.
76484         * doc/posix-functions/strcoll_l.texi: Likewise.
76485         * doc/posix-functions/strfmon_l.texi: Likewise.
76486         * doc/posix-functions/strftime_l.texi: Likewise.
76487         * doc/posix-functions/strncasecmp_l.texi: Likewise.
76488         * doc/posix-functions/strxfrm_l.texi: Likewise.
76489         * doc/posix-functions/tolower_l.texi: Likewise.
76490         * doc/posix-functions/toupper_l.texi: Likewise.
76491         * doc/posix-functions/towctrans_l.texi: Likewise.
76492         * doc/posix-functions/towlower_l.texi: Likewise.
76493         * doc/posix-functions/towupper_l.texi: Likewise.
76494         * doc/posix-functions/wcscoll_l.texi: Likewise.
76495         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76496         * doc/posix-functions/wctrans_l.texi: Likewise.
76497         * doc/posix-functions/wctype_l.texi: Likewise.
76498         * doc/glibc-functions/strptime_l.texi: Likewise.
76499         * doc/glibc-functions/strtod_l.texi: Likewise.
76500         * doc/glibc-functions/strtof_l.texi: Likewise.
76501         * doc/glibc-functions/strtol_l.texi: Likewise.
76502         * doc/glibc-functions/strtold_l.texi: Likewise.
76503         * doc/glibc-functions/strtoll_l.texi: Likewise.
76504         * doc/glibc-functions/strtoul_l.texi: Likewise.
76505         * doc/glibc-functions/strtoull_l.texi: Likewise.
76506         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76507         * doc/glibc-functions/wcstod_l.texi: Likewise.
76508         * doc/glibc-functions/wcstof_l.texi: Likewise.
76509         * doc/glibc-functions/wcstol_l.texi: Likewise.
76510         * doc/glibc-functions/wcstold_l.texi: Likewise.
76511         * doc/glibc-functions/wcstoll_l.texi: Likewise.
76512         * doc/glibc-functions/wcstoul_l.texi: Likewise.
76513         * doc/glibc-functions/wcstoull_l.texi: Likewise.
76515 2009-11-24  Bruno Haible  <bruno@clisp.org>
76517         duplocale: Fix logic bug.
76518         * lib/duplocale.c: Don't include <langinfo.h>.
76519         (_NL_LOCALE_NAME): Remove macro.
76520         (rpl_duplocale): Use setlocale instead of nl_langinfo.
76521         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
76523 2009-11-23  Jim Meyering  <meyering@redhat.com>
76525         test-update-copyright: don't hard-code /usr/bin/perl
76526         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
76527         perl to print the current year.  Gilles Espinasse reported that
76528         the replaced use of perl was hard-coded as /usr/bin/perl.
76530 2009-11-23  Bruno Haible  <bruno@clisp.org>
76532         duplocale: Add support for glibc 2.3.x.
76533         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
76535 2009-11-22  Bruno Haible  <bruno@clisp.org>
76537         vasnprintf: Tiny optimization.
76538         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
76539         MacOS X.
76541 2009-11-22  Bruno Haible  <bruno@clisp.org>
76543         Tests for module 'duplocale'.
76544         * modules/duplocale-tests: New file.
76545         * tests/test-duplocale.c: New file.
76547         New module 'duplocale'.
76548         * m4/duplocale.m4: New file.
76549         * lib/locale.in.h (duplocale): New declaration.
76550         * lib/duplocale.c: New file.
76551         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
76552         gl_LOCALE_H_DEFAULTS): New macros.
76553         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
76554         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
76555         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
76556         REPLACE_DUPLOCALE.
76557         * modules/duplocale: New file.
76558         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
76560 2009-11-22  Bruno Haible  <bruno@clisp.org>
76562         * modules/locale-tests (configure.ac): Test for newlocale function.
76563         * tests/test-locale.c: When the system has extended locale functions,
76564         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
76566         locale: Make locale_t available when possible.
76567         * lib/locale.in.h: Include <xlocale.h> when it exists.
76568         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
76569         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
76570         * modules/locale (Depends-on): Add extensions.
76571         (Makefile.am): Also substitute HAVE_XLOCALE_H.
76572         * doc/posix-headers/locale.texi: Document the problem with locale_t.
76574 2009-11-22  Bruno Haible  <bruno@clisp.org>
76576         Add comments.
76577         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
76578         invocation.
76579         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
76580         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
76581         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
76583 2009-11-22  Bruno Haible  <bruno@clisp.org>
76585         error: account for the possibility of freopen (stdout).
76586         * lib/error.c: Include <unistd.h>.
76587         (flush_stdout): New function, extracted from error and error_at_line.
76588         Determine stdout's fd dynamically.
76589         (error, error_at_line): Invoke flush_stdout.
76590         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
76591         * modules/error (Depends-on): Add unistd.
76593 2009-11-22  Bruno Haible  <bruno@clisp.org>
76595         diffseq: Add comment.
76596         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
76598 2009-11-22  Jim Meyering  <meyering@redhat.com>
76600         c-stack: avoid defining an unused static function
76601         * lib/c-stack.c (find_stack_direction): Do not define this function
76602         when it will not be used.
76604         diffseq: avoid spurious gcc warnings
76605         * lib/diffseq.h (IF_LINT2): Define.
76606         (compareseq): Use it to initialize two members of "part".
76607         This avoids two used-uninitialized warnings.
76609 2009-11-21  Jim Meyering  <meyering@redhat.com>
76611         c-stack: avoid "ignoring return value of `write'" warning
76612         * lib/c-stack.c: Include "ignore-value.h".
76613         (die): Explicitly ignore each write return value.
76614         * modules/c-stack (Depends-on): Add ignore-value.
76616 2009-11-21  Bruno Haible  <bruno@clisp.org>
76618         diffseq: reduce scope of variable 'best'.
76619         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
76620         variable, earlier used for two different purposes.
76622 2009-11-21  Jim Meyering  <meyering@redhat.com>
76624         diffseq: remove useless assignment to "best"
76625         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
76626         assignment.  At that point "best" is already guaranteed to be zero.
76628 2009-11-20  Eric Blake  <ebb9@byu.net>
76630         build: mention ftp redirector in release announcements
76631         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
76632         values that used to come from cfg.mk; mention FTP redirect URL.
76633         * build-aux/announce-gen: Mention the mirror list.
76634         Suggested by Karl Berry.
76636         nanosleep: improve port to mingw
76637         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
76638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
76639         LIB_NANOSLEEP, but only when needed.
76640         * modules/select (Link): Document LIBSOCKET.
76641         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
76642         enough.
76644         nanosleep: work around cygwin bug
76645         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
76646         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
76647         bug.
76648         (getnow): Delete, not needed.
76649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
76650         LIB_CLOCK_GETTIME.
76651         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
76652         clock-time, gettime.
76653         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
76654         bug.
76655         * modules/nanosleep-tests: New test.
76656         * tests/test-nanosleep.c: New file.
76658         sleep: work around cygwin bug
76659         * lib/sleep.c (rpl_sleep): Work around the bug.
76660         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
76661         (gl_PREREQ_SLEEP): Delete unused macro.
76662         * modules/sleep (Depends-on): Add verify.
76663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76664         * modules/unistd (Makefile.am): Substitute witness.
76665         * lib/unistd.in.h (sleep): Update prototype.
76666         * doc/posix-functions/sleep.texi (sleep): Document the bug.
76667         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
76668         * modules/sleep-tests (Depends-on): Check for alarm.
76670 2009-11-20  Jim Meyering  <meyering@redhat.com>
76672         maint.mk: improve sc_prohibit_magic_number_exit
76673         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
76674         so it does not match uses like System.exit(1).
76675         Add comments showing how to correct all offenders.
76677 2009-11-19  Eric Blake  <ebb9@byu.net>
76679         xalloc-die-tests: add missing library
76680         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
76682         test-xvasprintf: silence compiler warnings
76683         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
76684         empty string from gcc.
76686 2009-11-19  Jim Meyering  <meyering@redhat.com>
76688         xfreopen: new module, from coreutils
76689         * modules/xfreopen: New module.
76690         * lib/xfreopen.c: New file.
76691         * lib/xfreopen.h: New file.
76692         * MODULES.html.sh (File stream based Input/Output"): Add it.
76694 2009-11-19  Eric Blake  <ebb9@byu.net>
76696         manywarnings: depend on warnings
76697         * modules/manywarnings (Depends-on): Add warnings.
76699         build: avoid compiler warnings
76700         * lib/select.c (rpl_select): Delete unused variable.
76701         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
76703 2009-11-18  Eric Blake  <ebb9@byu.net>
76705         tests: avoid false negative with --with-packager
76706         * tests/test-version-etc.sh: Discard packager information.
76707         * tests/test-argp-version-etc-1.sh: Likewise.
76708         Reported by Mike Frysinger.
76710         utimens: fix regression on Solaris
76711         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
76712         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
76713         can only change fd timestamps via futimesat.  Instead, use an
76714         additional witness macro to avoid BSD bug.
76715         Reported by Jim Meyering.
76717 2009-11-17  Eric Blake  <ebb9@byu.net>
76719         usleep: use it to simplify tests
76720         * modules/stat-time-tests (Depends-on): Add usleep.
76721         (configure.ac): Drop usleep check.
76722         * modules/chown-tests (Depends-on, configure.ac): Likewise.
76723         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
76724         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
76725         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
76726         * modules/openat-tests (Depends-on, configure.ac): Likewise.
76727         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
76728         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
76729         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
76730         Likewise.
76731         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
76732         * tests/test-lchown.h (nap): Likewise.
76733         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
76734         * tests/test-stat-time.c (nap): Likewise.
76735         * tests/test-utimens-common.h (nap): Update comments.
76737         usleep: new module
76738         * modules/usleep: New file.
76739         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
76740         * lib/usleep.c (usleep): Likewise.
76741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76742         * modules/unistd (Makefile.am): Substitute witnesses.
76743         * lib/unistd.in.h (usleep): Add declaration.
76744         * doc/pastposix-functions/usleep.texi (usleep): Document this.
76745         * MODULES.html.sh (Date and time): Likewise.
76746         * modules/usleep-tests (Depends-on): New test.
76747         * tests/test-usleep.c: New file.
76749         chown: work around OpenBSD bug
76750         * lib/chown.c (rpl_chown): Work around the bug.
76751         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
76752         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
76753         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
76754         * modules/chown (Depends-on): Add stdbool.
76755         * modules/lchown (Depends-on): Likewise.
76756         * doc/posix-functions/chown.texi (chown): Document the bug.
76757         * doc/posix-functions/lchown.texi (lchown): Likewise.
76758         * tests/test-lchown.h (test_chown): Relax test.
76760         mkstemp: avoid conflict with C++ keyword template
76761         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
76762         * lib/mkostemp.c (mkostemp): Likewise.
76763         * lib/mkostemps.c (mkostemps): Likewise.
76764         * lib/mkstemp.c (mkstemp): Likewise.
76765         * lib/mkstemps.c (mkstemps): Likewise.
76767         xalloc-die-tests: optimize
76768         * tests/test-xalloc-die.sh: Reduce number of processes.
76770 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76772         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
76773         patch from ludo@gnu.org (Ludovic Courtès).
76775 2009-11-17  Jim Meyering  <meyering@redhat.com>
76777         version-etc: use proper license string
76778         * modules/version-etc (License): Use LGPL, not LGPLv3+.
76779         * modules/version-etc-fsf: Likewise.
76781 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76783         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
76784         printed to stdout.  Deal with EOL differences.
76786 2009-11-17  Eric Blake  <ebb9@byu.net>
76788         unsetenv: work around Solaris bug
76789         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
76790         * lib/unsetenv.c (rpl_unsetenv): Work around it.
76791         Reported by Jim Meyering.
76793         vasnprintf: avoid compiler warnings
76794         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
76795         variables.
76796         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
76798 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76800         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
76801         settings since xalloc-die is no longer the self test,
76802         xalloc-die.sh is.
76804 2009-11-17  Jim Meyering  <meyering@redhat.com>
76806         test-xalloc-die.sh: make the code agree with the commit log
76807         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
76808         at the end, just in case you happen to have a test-xalloc-die
76809         program in some other PATH directory.
76811         test-xalloc-die.sh: fix a portability bug
76812         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
76813         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
76814         Otherwise, argv[0] (as often seen in diagnostics) would be too
76815         system-dependent, sometimes with, and sometimes without the leading "./".
76817         version-etc-fsf: relax license to LGPLv3+
76818         * modules/version-etc-fsf (License): Relax license.
76820 2009-11-16  Eric Blake  <ebb9@byu.net>
76822         xalloc-die-tests: avoid printing null pointer
76823         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
76824         shell script.
76825         * tests/test-xalloc-die.c (program_name): Declare.
76826         * tests/test-xalloc-die.sh (tmpfiles): New file.
76828         setenv, unsetenv: work around various bugs
76829         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
76830         (setenv) [HAVE_SETENV]: Work around bugs.
76831         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
76832         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
76833         for bugs.
76834         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
76835         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
76836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
76837         * modules/stdlib (Makefile.am): Update substitutions.
76838         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
76839         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
76840         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76841         * modules/setenv-tests: New test.
76842         * modules/unsetenv-tests: Likewise.
76843         * tests/test-setenv.c: New file.
76844         * tests/test-unsetenv.c: Likewise.
76846 2009-11-16  Jim Meyering  <meyering@redhat.com>
76848         version-etc: relax license to LGPLv3+
76849         * modules/version-etc (License): Relax license.
76851         better AC_REQUIRE expanded-before-required-warning avoidance
76852         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
76853         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
76854         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
76855         which is no longer needed.
76857 2009-11-16  Eric Blake  <ebb9@byu.net>
76859         test-freading: clean up temporary file
76860         * tests/test-freading.c (main): Remove file on success, and use
76861         ASSERT more liberally.
76862         Reported by Jim Meyering.
76864 2009-11-16  Jim Meyering  <meyering@redhat.com>
76866         avoid new AC_REQUIRE expanded-before-required warnings
76867         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
76868         merely using it.
76869         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
76870         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
76872 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76874         * tests/test-xalloc-die.c: New file.
76875         * modules/xalloc-die-tests: New file.
76876         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
76877         XFAIL_TESTS so it can be appended by modules.
76879 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76881         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
76882         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
76884 2009-11-14  Eric Blake  <ebb9@byu.net>
76886         fnmatch: avoid compiler warning
76887         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
76888         to silence compiler warning about mismatch signedness in ?:.
76889         Reported by Robert Millan.
76891         intprops: add double-inclusion guard
76892         * lib/intprops.h: Allow idempotent includes.
76893         Suggested by Bruce Korb.
76895         openat: detect Solaris fchownat bug
76896         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
76897         penalizing glibc chownat when only lchownat is broken.
76898         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
76899         trailing slash bugs.
76900         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
76901         * modules/openat-tests (Files): Include more files.
76902         (Depends-on): Add mgetgroups, sleep, stat-time.
76903         (configure.ac): Add additional checks.
76904         (Makefile.am): Build new test.
76905         * tests/test-fchownat.c: New file.
76907         lchown: detect Solaris and FreeBSD bug
76908         * lib/lchown.c (rpl_lchown): Work around bug.
76909         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
76910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76911         * modules/unistd (Makefile.am): Populate it.
76912         * lib/unistd.in.h (lchown): Update declaration.
76913         * doc/posix-functions/lchown.texi (lchown): Document the bug.
76914         * modules/lchown-tests: New file.
76915         * tests/test-lchown.h (test_lchown): Likewise.
76916         * tests/test-lchown.c (main): Likewise.
76918         chown: detect Solaris and FreeBSD bug
76919         * lib/chown.c (rpl_chown): Work around bug.
76920         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
76921         (gl_PREREQ_CHOWN): Delete.
76922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76923         * modules/unistd (Makefile.am): Populate it.
76924         * lib/unistd.in.h (chown): Update declaration.
76925         * lib/lchown.c (chown): Update client.
76926         * modules/lchown (Depends-on): Add lstat.
76927         * doc/posix-functions/chown.texi (chown): Document the bug.
76928         * doc/posix-functions/getgroups.texi (getgroups): Document
76929         getgroups pitfall.
76930         * modules/chown-tests: New file.
76931         * tests/test-chown.h (test_chown): Likewise.
76932         * tests/test-chown.c (main): Likewise.
76934 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
76936         gnulib-tool: correctly detect absence of m4 directories
76937         * gnulib-tool: Avoid extra newline on data passed to wc -l.
76939 2009-11-14  Jim Meyering  <meyering@redhat.com>
76941         maint.mk: Prohibit inclusion of "xalloc.h" without use.
76942         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
76944 2009-11-14  John W. Eaton  <jwe@gnu.org>
76946         strftime.h: wrap function declaration in extern "C" block
76947         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
76949 2009-11-13  Eric Blake  <ebb9@byu.net>
76951         getgroups: avoid compiler warning
76952         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
76954         getgroups: work around FreeBSD bug
76955         * lib/getgroups.c (rpl_getgroups): Work around the bug.
76956         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
76957         * doc/posix-functions/getgroups.texi (getgroups): Document it.
76958         * tests/test-getgroups.c (main): Fix buffer overrun.
76960         getgroups: avoid compilation failure
76961         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
76962         * modules/getgroups (Depends-on): Add stdint.
76964 2009-11-13  Jim Meyering  <meyering@redhat.com>
76966         test-getgroups: avoid compilation failure
76967         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
76969 2009-11-13  Eric Blake  <ebb9@byu.net>
76971         mgetgroups: new module, taken from coreutils
76972         * modules/mgetgroups: New file.
76973         * lib/mgetgroups.h: Likewise.
76974         * lib/mgetgroups.c (mgetgroups): Likewise.
76975         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
76976         * MODULES.html.sh (Users and groups): Mention it.
76978         getgroups: don't expose GETGROUPS_T to user
76979         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
76980         an element at a time if GETGROUPS_T is wrong size.
76981         * lib/getugroups.h (getugroups): Change signature.
76982         * lib/unistd.in.h (getgroups): Likewise.
76983         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
76984         signature needs fixing.
76985         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
76986         AC_TYPE_GETGROUPS.
76987         * modules/group-member (Depends-on): Add getgroups.
76988         * lib/group-member.c (group_info, get_group_info): Use gid_t.
76989         (group_member): Rely on getgroups replacement.
76990         * lib/getugroups.c (getugroups): Use gid_t.
76991         * tests/test-getgroups.c (main): Likewise.
76992         * NEWS: Mention the signature change.
76993         * doc/posix-functions/getgroups.texi (getgroups): Mention the
76994         problem with signature.
76995         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
76996         GETGROUPS_T is still useful for setgroups.
76998         getgroups, getugroups: provide stubs for mingw
76999         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
77000         * lib/getugroups.c (getugroups): Likewise.
77001         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
77002         function.  Modernize replacement scheme.
77003         (gl_PREREQ_GETGROUPS): Delete.
77004         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
77005         * modules/getgroups (configure.ac): Declare witness.
77006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77007         * modules/unistd (Depends-on): Substitute witness.
77008         * lib/unistd.in.h (getgroups): Declare replacement.
77010         getgroups: avoid calling exit
77011         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
77012         drop xalloc.
77013         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
77014         dependencies.
77015         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
77016         exiting, in the rare case of malloc failure.
77018         getgroups: fix logic error
77019         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
77020         has more than 20 groups.
77021         * modules/getgroups-tests: New test.
77022         * tests/test-getgroups.c: New file.
77024 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77026         * tests/test-base64.c: Improve.
77028 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77030         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
77031         Blake <ebb9@byu.net>.
77033 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77035         * tests/test-xvasprintf.c: Add %s%s related checks.
77037 2009-11-12  Eric Blake  <ebb9@byu.net>
77039         version-etc: match standards.texi style
77040         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
77041         and use <> only for URLs.
77043 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
77045         fts: do not fail on a submount during traversal
77046         * lib/fts.c (fts_build): Read the stat info again after opening
77047         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
77048         Original report at http://bugzilla.redhat.com/501848.
77050 2009-11-12  Jim Meyering  <meyering@redhat.com>
77052         bootstrap: sync from coreutils
77053         * build-aux/bootstrap (bootstrap_epilogue): New function.
77054         Use git_modules_config in one more place.  This make bootstrap's
77055         --gnulib-srcdir option more useful for testing.
77057         bootstrap: generalize autoheader check
77058         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
77059         AC_CONFIG_HEADERS.
77061 2009-11-11  Eric Blake  <ebb9@byu.net>
77063         mkfifoat: use new modules for Solaris and BSD bugs
77064         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
77065         * lib/mkfifoat.c (mknodat): Split...
77066         * lib/mknodat.c (mknodat): ...into new file.
77067         * modules/mkfifoat (Files): Ship new file.
77068         (Depends-on): Add mkfifo, mknod.
77069         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
77070         (Depends-on): Add symlink.
77071         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
77072         redundant with test_mkfifo.h.
77073         (do_mkfifoat, do_mknodat): New helpers.
77075         mknod: new module
77076         * modules/mknod: New file.
77077         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
77078         * lib/mknod.c (mknod): Likewise.
77079         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77080         defaults.
77081         * modules/sys_stat (Makefile.am): Substitute them.
77082         * lib/sys_stat.in.h (mknod): Declare replacement.
77083         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77084         Document it.
77085         * doc/posix-functions/mknod.texi (mknod): Likewise.
77086         * modules/mknod-tests: New test.
77087         * tests/test-mknod.c: Likewise.
77089         mkfifo: new module
77090         * modules/mkfifo: New file.
77091         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
77092         * lib/mkfifo.c (mkfifo): Likewise.
77093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77094         defaults.
77095         * modules/sys_stat (Makefile.am): Substitute them.
77096         * lib/sys_stat.in.h (mkfifo): Declare replacement.
77097         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77098         Document it.
77099         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
77100         * modules/mkfifo-tests: New test.
77101         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
77102         from test-mkfifoat.c.
77103         * tests/test-mkfifo.c: New file.
77105         readlink: detect FreeBSD bug
77106         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
77107         slash on symlink.
77108         * doc/posix-functions/readlink.texi (readlink): Document the bug.
77109         * tests/test-readlink.h (test_readlink): Enhance test.
77111         symlink: detect FreeBSD bug
77112         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
77113         slash on symlink.
77114         * doc/posix-functions/symlink.texi (symlink): Document the bug.
77115         * tests/test-symlink.h (test_symlink): Enhance test.
77117 2009-11-10  Eric Blake  <ebb9@byu.net>
77119         link: detect FreeBSD bug
77120         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
77121         symlink.
77122         * doc/posix-functions/link.texi (link): Document the bug.
77123         * tests/test-link.h (test_link): Enhance test.
77124         * tests/test-linkat.c (main): Update caller.
77126         unlink, remove: detect FreeBSD bug
77127         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
77128         slash on symlink.
77129         * doc/posix-functions/unlink.texi (unlink): Document the bug.
77130         * doc/posix-functions/remove.texi (remove): Likewise.
77131         * tests/test-unlink.h (test_unlink): Enhance test.
77132         * tests/test-remove.c (main): Likewise.
77134 2009-11-09  Eric Blake  <ebb9@byu.net>
77136         rename: detect FreeBSD bug
77137         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
77138         slash on symlink.
77139         * modules/renameat-tests (Depends-on): Add filenamecat.
77140         * tests/test-rename.h (test_rename): Allow one more errno.
77141         * tests/test-renameat.c (main): Likewise.
77142         * doc/posix-functions/rename.texi (rename): Document the bug.
77144         open: detect FreeBSD bug
77145         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
77146         symlink.
77147         * doc/posix-functions/open.texi (open): Document the bug.
77148         * doc/posix-functions/utimes.texi (utimes): Likewise.
77149         * tests/test-open.h (test_open): Add parameters, and test symlink
77150         handling.
77151         * tests/test-open.c (main): Adjust caller.
77152         * tests/test-fcntl-safer.c (main): Likewise.
77153         * modules/open-tests (Depends-on): Add stdbool, symlink.
77154         * modules/fcntl-safer-tests (Depends-on): Likewise.
77155         * tests/test-openat.c (main): Add test-open tests.
77157         stat: detect FreeBSD bug
77158         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
77159         symlink.
77160         * doc/posix-functions/stat.texi (stat): Document the bug.
77161         * tests/test-stat.h (test_stat_func): Add argument.
77162         * tests/test-stat.c (main): Adjust caller.
77163         * tests/test-fstatat.c (main): Likewise.
77164         * modules/stat-tests (Depends-on): Add stdbool, symlink.
77165         Reported by Jim Meyering.
77167 2009-11-09  James Youngman  <jay@gnu.org>
77169         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
77170         * lib/strftime.c: Correct placement of #include "ignore-value.h".
77172 2009-11-08  Jim Meyering  <meyering@redhat.com>
77174         utimens: remove invalid futimesat call
77175         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
77176         It used the file descriptor of the target file as the DIR_FD
77177         parameter and NULL as the file name.  That caused failure with
77178         errno == EFAULT on FreeBSD-8.0-rc2
77180 2009-11-07  Eric Blake  <ebb9@byu.net>
77182         fflush, freadseek: use fseeko, not fseek
77183         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
77184         (clear_ungetc_buffer): Avoid potential problems on large files.
77185         * lib/freadseek.c (freadseek): Likewise.
77186         * modules/freadseek (Depends-on): Add fseeko.
77187         * modules/fseek (configure.ac): Set a witness.
77188         * tests/test-fflush.c (main): Use fseeko.
77189         * tests/test-fpurge.c (fseek): Disable link warning.
77190         * tests/test-freadable.c (fseek): Likewise.
77191         * tests/test-freading.c (fseek): Likewise.
77192         * tests/test-fseeko.c (fseek): Likewise.
77193         * tests/test-ftell.c (fseek): Likewise.
77194         * tests/test-ftello.c (fseek): Likewise.
77195         * tests/test-fwritable.c (fseek): Likewise.
77196         * tests/test-fwriting.c (fseek): Likewise.
77198 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77200         * modules/memchr (Depends-on): Drop getpagesize dependency.
77202 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77204         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
77205         Reported by Ludovic Courtès.
77206         * build-aux/pmccabe2html: Improve example usage.
77207         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
77209 2009-11-06  Jim Meyering  <meyering@redhat.com>
77211         do-release-commit-and-tag: New module.
77212         Automate the release-commit and tag process.
77213         * build-aux/do-release-commit-and-tag: New script, from coreutils.
77214         * modules/do-release-commit-and-tag: New file.
77215         * MODULES.html.sh (Support for maintaining and releasing): Add it.
77217 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77219         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
77220         because test-select.c uses inet_pton.
77222 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77224         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
77225         GETADDRINFO_LIB.  Bump serial number.
77226         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
77227         Suggested by Eric Blake <ebb9@byu.net>.
77229 2009-11-05  Eric Blake  <ebb9@byu.net>
77231         strtod: detect darwin bug
77232         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
77233         Reported by Leo Davis.
77235         freopen-safer: new module
77236         * modules/freopen-safer: New module.
77237         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
77238         * lib/freopen-safer.c (freopen_safer): New file.
77239         * lib/stdio-safer.h (freopen_safer): New declaration.
77240         * lib/stdio--.h (freopen): New override.
77241         * MODULES.html.sh (File stream based Input/Output): Mention it.
77242         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
77243         freopen-safer module.
77244         * doc/posix-functions/stderr.texi (stderr): Likewise.
77245         * doc/posix-functions/stdin.texi (stdin): Likewise.
77246         * doc/posix-functions/stdout.texi (stdout): Likewise.
77247         * modules/freopen-safer-tests: New test.
77248         * tests/test-reopen-safer.c: New file.
77250 2009-11-05  Jim Meyering  <meyering@redhat.com>
77252         maint.mk: Prohibit inclusion of "close-stream.h" without use.
77253         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77255 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77257         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
77259 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77261         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
77263 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77265         Fix link error.
77266         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77267         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77269 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77271         * tests/test-func.c: Also test value of __func__.
77273 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77275         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
77276         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
77278 2009-11-05  Bruno Haible  <bruno@clisp.org>
77280         Fix link error.
77281         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77282         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77283         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
77285 2009-11-05  Bruno Haible  <bruno@clisp.org>
77287         Tests for module 'inet_pton'.
77288         * modules/inet_pton-tests: New file.
77289         * tests/test-inet_pton.c: New file.
77291 2009-11-05  Bruno Haible  <bruno@clisp.org>
77293         Tests for module 'inet_ntop'.
77294         * modules/inet_ntop-tests: New file.
77295         * tests/test-inet_ntop.c: New file.
77297 2009-11-04  Eric Blake  <ebb9@byu.net>
77299         stdlib-safer: wrap all mkstemp variants
77300         * modules/mkostemp (configure.ac): Set witness.
77301         * modules/mkostemps (configure.ac): Likewise.
77302         * modules/mkstemps (configure.ac): Likewise.
77303         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
77304         (mkstemps_safer): Wrap more functions.
77305         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
77306         wrapping.
77307         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
77308         (mkstemps_safer): Implement the wrappers.
77310         mkstemps, mkostemps: new modules
77311         * modules/mkostemps: New module.
77312         * modules/mkstemps: Likewise.
77313         * lib/mkostemps.c (mkostemps): New file.
77314         * lib/mkstemps.c (mkstemps): Likewise.
77315         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
77316         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
77317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
77318         * modules/stdlib (Makefile.am): Substitute them.
77319         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
77320         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
77321         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
77322         * doc/gnulib.texi (Glibc stdlib.h): Include them.
77323         * MODULES.html.sh (File system functions): Mention them.
77325         tempname: resync from glibc
77326         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
77327         same values for __GT_FILE as glibc.  Abort even when assertions
77328         are disabled.
77329         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
77330         match its value otherwise.  Allow idempotent inclusion.
77331         * lib/mkdtemp.c (mkdtemp): Adjust caller.
77332         * lib/mkostemp.c (mkostemp): Likewise.
77333         * lib/mkstemp.c (mkstemp): Likewise.
77334         * lib/tmpfile.c (tmpfile): Likewise.
77335         * NEWS: Document this.
77337         utimens: fix use of futimens on older Linux
77338         * lib/utimens.c (fdutimens): Use updated, rather than original,
77339         timespec to avoid bug in older Linux kernel.
77340         Reported by Simon Josefsson.
77342 2009-11-04  Bruno Haible  <bruno@clisp.org>
77344         Make num_processors more flexible and consistent.
77345         * lib/nproc.h (enum nproc_query): New type.
77346         (num_processors): Add a 'query' argument.
77347         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
77348         (num_processors): Add a 'query' argument. Test the value of the
77349         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
77350         mingw, count the number of CPUs available for the current process.
77351         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
77352         Check for sched_getaffinity and sched_getaffinity_np.
77353         * modules/nproc (Depends-on): Add c-ctype, extensions.
77354         * NEWS: Mention the change.
77356 2009-11-03  Bruno Haible  <bruno@clisp.org>
77358         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
77360 2009-11-03  Jim Meyering  <meyering@redhat.com>
77362         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
77363         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
77364         if it is defined.
77366 2009-11-02  Eric Blake  <ebb9@byu.net>
77368         mktime, timegm: share common declaration
77369         * lib/mktime-internal.h: New file.
77370         * lib/mktime.c: Use it rather than open-coding a declaration.
77371         * lib/timegm.c: Likewise.
77372         * modules/mktime (Files): Ship it.
77373         * modules/timegm (Files): Likewise.
77374         Suggested by Bruno Haible.
77376         test-update-copyright: update test to match script changes
77377         * tests/test-update-copyright.sh: Avoid hard-coding perl
77378         location.  Don't update *.bak created by earlier runs.
77380 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77381             Simon Josefsson  <simon@josefsson.org>
77382             Bruno Haible  <bruno@clisp.org>
77384         Fix link error on Solaris 8.
77385         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
77386         also in libnsl. Define also INET_PTON_LIB.
77387         * modules/inet_pton (Link): New section.
77389 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77390             Bruno Haible  <bruno@clisp.org>
77392         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
77393         * modules/inet_ntop (Link): New section.
77394         Reported by Boyan Kasarov <bkasarov@gmail.com>.
77396 2009-11-02  Eric Blake  <ebb9@byu.net>
77398         maint: avoid compiler warnings in m4 macros
77399         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
77400         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
77402 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77404         * m4/pmccabe2html.m4: Remove file.
77405         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
77406         function.  Change maintainer.
77407         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
77408         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
77409         Courtès).
77411 2009-10-31  Eric Blake  <ebb9@byu.net>
77413         fseeko: fix m4 regression
77414         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
77415         regression from 2009-10-27.
77416         Reported by Ralf Wildenhues.
77418 2009-10-31  Jim Meyering  <meyering@redhat.com>
77420         inttostr: aesthetics and improved (compile-time) safety
77421         Define inttype_is_signed rather than inttype_is_unsigned,
77422         since the sole use is via "#if inttype_is_signed".
77423         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
77424         inttype_is_unsigned.
77425         * lib/offtostr.c (inttype_is_signed): Likewise.
77426         * lib/uinttostr.c (inttype_is_signed): Likewise.
77427         * lib/umaxtostr.c (inttype_is_signed): Likewise.
77428         * lib/inttostr.c (inttostr): Use verify to cross-check the
77429         inttype_is_signed value and the signedness of the actual type.
77430         * modules/inttostr (Depends-on): Add verify.
77432 2009-10-30  Eric Blake  <ebb9@byu.net>
77434         build: avoid compiler warnings
77435         * lib/fchmodat.c (lchmod): Mark unused variables.
77436         * lib/getopt.c (_getopt_initialize): Likewise.
77437         * lib/mktime.c (__mktime_internal): Provide prototype.
77438         * lib/inttostr.c (inttostr): Avoid compiler warning even with
77439         older gcc that do not understand #pragma GCC diagnostic.
77440         * lib/uinttostr.c (inttype_is_unsigned): Define.
77441         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
77443 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
77445         stat: fix compilation on AIX
77446         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
77447         only see struct stat64.
77449 2009-10-30  Eric Blake  <ebb9@byu.net>
77451         exclude: make more robust
77452         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
77453         rather than masking a coding bug.
77454         Suggested by Bruno Haible.
77456 2009-10-30  Jim Meyering  <meyering@redhat.com>
77458         perl scripts: remove #!/usr/bin/perl in favor of more portable...
77459         Rather than putting #!/usr/bin/perl on the first line,
77460         start with a variant of what's recommended by "man perlrun" that
77461         invokes the first "perl" program from your shell's search path.
77462         * build-aux/gitlog-to-changelog: Replace #!... as above.
77463         Add a "Local Variables" perl mode setting.
77464         Prompted by a patch from Ludovic Courtès.
77465         Improved by Eric Blake.
77466         * build-aux/useless-if-before-free: Likewise.
77467         * build-aux/announce-gen: Likewise.
77468         * build-aux/update-copyright: Likewise.
77470 2009-10-29  Eric Blake  <ebb9@byu.net>
77472         filenamecat-lgpl: adjust clients
77473         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
77474         filenamecat.
77475         * modules/renameat (Depends-on): Likewise.
77477         filenamecat: split into filenamecat-lgpl
77478         * modules/filenamecat-lgpl: New module.
77479         * modules/filenamecat (Files): Move library-safe files into
77480         filenamecat-lgpl.
77481         (Depends-on): Add filenamecat-lgpl.
77482         (configure.ac): Declare witness.
77483         * lib/filenamecat.h (file_name_concat): Only declare when using
77484         GPL module.
77485         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
77486         Move...
77487         * lib/filenamecat-lgpl.c: ...into new file.
77488         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
77489         (gl_FILE_NAME_CONCAT): Use it.
77490         * MODULES.html.sh (File system functions): Mention new module.
77492         argp: avoid memory leak
77493         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
77494         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
77495         base_name, since the latter malloc()s and can call exit().
77496         Leak introduced 2006-07-03.
77498         dirname-lgpl: adjust clients that don't need full dirname
77499         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
77500         * modules/filenamecat (Depends-on): Likewise.
77501         * modules/linkat (Depends-on): Likewise.
77502         * modules/mkancesdirs (Depends-on): Likewise.
77503         * modules/mkdir (Depends-on): Likewise.
77504         * modules/openat (Depends-on): Likewise.
77505         * modules/savewd (Depends-on): Likewise.
77506         * modules/rename (Depends-on): Likewise.
77507         (License): Relax license.
77508         * modules/mkdir-tests (Depends-on): Drop progname.
77509         (Makefile.am): Delete unneeded LDADD.
77510         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
77512         dirname: split into dirname-lgpl
77513         * modules/dirname-lgpl: New module.
77514         * modules/dirname (Files): Move library-safe files into
77515         dirname-lgpl.
77516         (Depends-on): Add dirname-lgpl.
77517         (configure.ac): Declare witness.
77518         * modules/double-slash-root (License): Relax license.
77519         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
77520         module.
77521         * lib/dirname.c (dir_len, mdir_name): Move...
77522         * lib/dirname-lgpl.c: ...into new file.
77523         * lib/basename.c (last_component, base_len): Move...
77524         * lib/basename-lgpl.c: ...into new file.
77525         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
77526         (gl_DIRNAME): Use it.
77527         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
77528         Mention new module.
77529         * modules/dirname-tests (Depends-on): Add progname.
77530         * tests/test-dirname.c (program_name): Delete.
77532         mkdir: make safe for libraries
77533         * modules/mkdir (Depends-on): Drop xalloc.
77534         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
77535         exit.
77537         tests: avoid some compiler warnings
77538         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
77539         literals.
77540         * tests/test-memchr.c (main): Avoid type mismatch.
77541         * tests/test-arpa_inet.c (main): Avoid unused parameters.
77542         * tests/test-base64.c (main): Likewise.
77543         * tests/test-getdelim.c (main): Likewise.
77544         * tests/test-gethostname.c (main): Likewise.
77545         * tests/test-getline.c (main): Likewise.
77546         * tests/test-netinet_in.c (main): Likewise.
77547         * tests/test-select.c (open_server_socket, main): Likewise.
77548         * tests/test-select-stdin.c (main): Likewise.
77549         * tests/test-sockets.c (main): Likewise.
77550         * tests/test-strsignal.c (main): Likewise.
77551         * tests/test-sys_select.c (main): Likewise.
77552         * tests/test-sys_socket.c (main): Likewise.
77553         * tests/test-u64.c (main): Likewise.
77554         * tests/test-xfprintf-posix.c (main): Likewise.
77555         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
77557         sockets: avoid compiler warning
77558         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
77560         maint: detect usage(1) and other suspicious exits
77561         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
77563 2009-10-29  Jim Meyering  <meyering@redhat.com>
77565         timespec: long-to-int truncation could make timespec_cmp malfunction
77566         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
77567         a multiple of 2^32 nanoseconds as no difference.
77569 2009-10-28  Jim Meyering  <meyering@redhat.com>
77571         fprintftime: wrap macro code argument in "do {...} while(0)"
77572         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
77573         cpy macro must be a statement that can be followed by a semicolon.
77574         Now that the else clause contains a comment and is hence longer
77575         than one line, I require curly braces.  That in turn requires
77576         that we wrap this code block in the standard do...while(0).
77578         fprintftime: remove stray semicolon from previous change
77579         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
77581         fprintftime: avoid a warning about ignored fwrite return value
77582         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
77583         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
77584         that is unsafe.
77585         * modules/fprintftime (Depends-on): Add ignore-value.
77587         exclude: avoid an unwarranted warning
77588         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
77590 2009-10-27  Eric Blake  <ebb9@byu.net>
77592         fseek: avoid compilation failure when fflush is replaced
77593         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
77594         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
77595         module is in use.
77596         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
77597         module is not in use; since REPLACE_FSEEK worked otherwise.
77598         (GNULIB_FTELLO): Likewise for ftell.
77599         Reported by Ian Beckwith and others.
77601 2009-10-27  Bruno Haible  <bruno@clisp.org>
77603         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
77604         Reported by Jim Meyering.
77606 2009-10-27  Jim Meyering  <jim@meyering.net>
77607             Bruno Haible  <bruno@clisp.org>
77609         Avoid warning despite dropping the return value of fwrite.
77610         * lib/unicodeio.c: Include ignore-value.h.
77611         (fwrite_success_callback): Explicitly ignore fwrite's return value.
77612         * modules/unicodeio (Depends-on): Add ignore-value.
77614 2009-10-26  Eric Blake  <ebb9@byu.net>
77616         areadlinkat: fix fallback path
77617         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
77618         pointer and zero.
77620 2009-10-22  Pádraig Brady  <P@draigBrady.com>
77622         Use a better IO block size for modern systems
77623         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
77624         * lib/md2.c: Likewise.
77625         * lib/md4.c: Likewise.
77626         * lib/md5.c: Likewise.
77627         * lib/sha1.c: Likewise.
77628         * lib/sha256.c: Likewise.
77629         * lib/sha512.c: Likewise.
77631 2009-10-22  Eric Blake  <ebb9@byu.net>
77633         tests: avoid several compiler warnings
77634         * tests/test-getcwd.c (main): Avoid buffer underflow.
77635         * tests/test-getdate.c (main): String literals are not safe with
77636         putenv, so use setenv.  Declare unused argument.
77637         * modules/getdate-tests (Depends-on): Add setenv.
77638         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
77639         problems with string literals in char *.
77640         * tests/test-hash.c (main): Avoid shadowing declaration.
77641         (insert_new): Treat string literals as char const *.
77642         * tests/test-getopt.h (test_getopt): Likewise.
77643         (getopt_loop): Alter types to minimize casting elsewhere.
77644         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
77645         (test_getopt_long_posix): Likewise.
77646         (do_getopt_long): Add wrapper to minimize casting.
77647         * tests/test-atexit.c (clear_temp_file): Use void.
77648         * tests/test-areadlink-with-size.c (main): Declare unused
77649         arguments.
77650         * tests/test-areadlink.c (main): Likewise.
77651         * tests/test-areadlinkat-with-size.c (main): Likewise.
77652         * tests/test-areadlinkat.c (main): Likewise.
77653         * tests/test-canonicalize-lgpl.c (main): Likewise.
77654         * tests/test-canonicalize.c (main): Likewise.
77655         * tests/test-dirent-safer.c (main): Likewise.
77656         * tests/test-dirname.c (main): Likewise.
77657         * tests/test-dup2.c (main): Likewise.
77658         * tests/test-fchdir.c (main): Likewise.
77659         * tests/test-fcntl-h.c (main): Likewise.
77660         * tests/test-fcntl-safer.c (main): Likewise.
77661         * tests/test-fdopendir.c (main): Likewise.
77662         * tests/test-fdutimensat.c (main): Likewise.
77663         * tests/test-fflush.c (main): Likewise.
77664         * tests/test-filenamecat.c (main): Likewise.
77665         * tests/test-filevercmp.c (main): Likewise.
77666         * tests/test-fopen-safer.c (main): Likewise.
77667         * tests/test-fopen.c (main): Likewise.
77668         * tests/test-fpending.c (main): Likewise.
77669         * tests/test-fpurge.c (main): Likewise.
77670         * tests/test-freading.c (main): Likewise.
77671         * tests/test-fstatat.c (main): Likewise.
77672         * tests/test-fsync.c (main): Likewise.
77673         * tests/test-futimens.c (main): Likewise.
77674         * tests/test-getndelim2.c (main): Likewise.
77675         * tests/test-gettimeofday.c (main): Likewise.
77676         * tests/test-getopt.c (main): Likewise.
77677         * tests/test-i-ring.c (main): Likewise.
77678         * tests/test-inttypes.c (main): Likewise.
77679         * tests/test-link.c (main): Likewise.
77680         * tests/test-lstat.c (main): Likewise.
77681         * tests/test-math.c (main): Likewise.
77682         * tests/test-md5.c (main): Likewise.
77683         * tests/test-memchr2.c (main): Likewise.
77684         * tests/test-memrchr.c (main): Likewise.
77685         * tests/test-mkdir.c (main): Likewise.
77686         * tests/test-mkdirat.c (main): Likewise.
77687         * tests/test-mkfifoat.c (main): Likewise.
77688         * tests/test-open.c (main): Likewise.
77689         * tests/test-openat-safer.c (main): Likewise.
77690         * tests/test-openat.c (main): Likewise.
77691         * tests/test-quotearg.c (main): Likewise.
77692         * tests/test-rawmemchr.c (main): Likewise.
77693         * tests/test-readlink.c (main): Likewise.
77694         * tests/test-remove.c (main): Likewise.
77695         * tests/test-rename.c (main): Likewise.
77696         * tests/test-renameat.c (main): Likewise.
77697         * tests/test-rmdir.c (main): Likewise.
77698         * tests/test-sha1.c (main): Likewise.
77699         * tests/test-signal.c (main): Likewise.
77700         * tests/test-sigaction.c (main): Likewise.
77701         * tests/test-stat.c (main): Likewise.
77702         * tests/test-stat-time.c (main): Likewise.
77703         * tests/test-stddef.c (main): Likewise.
77704         * tests/test-stdint.c (main): Likewise.
77705         * tests/test-stdio.c (main): Likewise.
77706         * tests/test-stdlib.c (main): Likewise.
77707         * tests/test-strchrnul.c (main): Likewise.
77708         * tests/test-strerror.c (main): Likewise.
77709         * tests/test-string.c (main): Likewise.
77710         * tests/test-strtod.c (main): Likewise.
77711         * tests/test-strverscmp.c (main): Likewise.
77712         * tests/test-symlink.c (main): Likewise.
77713         * tests/test-symlinkat.c (main): Likewise.
77714         * tests/test-sys_stat.c (main): Likewise.
77715         * tests/test-sys_time.c (main): Likewise.
77716         * tests/test-time.c (main): Likewise.
77717         * tests/test-unistd.c (main): Likewise.
77718         * tests/test-unlink.c (main): Likewise.
77719         * tests/test-unlinkat.c (main): Likewise.
77720         * tests/test-utimens.c (main): Likewise.
77721         * tests/test-utimensat.c (main): Likewise.
77722         * tests/test-version-etc.c (main): Likewise.
77723         * tests/test-wchar.c (main): Likewise.
77724         * tests/test-wctype.c (main): Likewise.
77725         * tests/test-xprintf-posix.c (main): Likewise.
77726         * tests/test-posixtm.c (main): Likewise.
77727         (STREQ): Delete unused macro.
77728         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
77729         shadowed variables.
77730         * tests/test-memchr.c (main): Likewise.
77732 2009-10-21  Eric Blake  <ebb9@byu.net>
77734         areadlinkat: avoid failure on older glibc
77735         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
77736         rather than mis-comparing 0 against FUNC_RESULT of char*.
77738 2009-10-21  Bruno Haible  <bruno@clisp.org>
77740         * modules/stpncpy (License): Relicense under LGPLv2+.
77741         Reported by David Lutterkort <lutter@redhat.com>.
77743 2009-10-20  Eric Blake  <ebb9@byu.net>
77745         utimensat: work around Solaris 9 bug
77746         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
77747         has trailing slash bugs.
77748         * tests/test-lutimens.h (test_lutimens): Enhance test.
77749         * tests/test-utimens.h (test_utimens): Likewise.
77750         * doc/posix-functions/utime.texi (utime): Enhance documentation.
77751         * doc/posix-functions/utimes.texi (utimes): Likewise.
77752         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77753         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
77754         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
77755         * doc/posix-functions/futimens.texi (futimens): Likewise.
77757         fdutimensat: new module
77758         * modules/fdutimensat: New file.
77759         * lib/fdutimensat.c (fdutimensat): Likewise.
77760         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
77761         * MODULES.html.sh (File system functions): Mention module.
77762         * modules/fdutimensat-tests: New test.
77763         * tests/test-fdutimensat.c: Likewise.
77765         doc: regenerate INSTALL
77766         * doc/INSTALL: Reflect recent autoconf update.
77767         * doc/INSTALL.ISO: Likewise.
77768         * doc/INSTALL.UTF-8: Likewise.
77770 2009-10-20  Pádraig Brady  <P@draigBrady.com>
77772         acl: warn if ACL support is not detected
77773         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
77775 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
77777         * lib/nproc.h: Add extern "C" block for C++.
77779 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
77780             Bruno Haible  <bruno@clisp.org>
77782         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
77783         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
77784         * doc/posix-functions/isalpha.texi: Likewise.
77785         * doc/posix-functions/isblank.texi: Likewise.
77786         * doc/posix-functions/iscntrl.texi: Likewise.
77787         * doc/posix-functions/isdigit.texi: Likewise.
77788         * doc/posix-functions/isgraph.texi: Likewise.
77789         * doc/posix-functions/islower.texi: Likewise.
77790         * doc/posix-functions/isprint.texi: Likewise.
77791         * doc/posix-functions/ispunct.texi: Likewise.
77792         * doc/posix-functions/isspace.texi: Likewise.
77793         * doc/posix-functions/isupper.texi: Likewise.
77794         * doc/posix-functions/isxdigit.texi: Likewise.
77796 2009-10-18  Bruno Haible  <bruno@clisp.org>
77798         Tests for module 'isblank'.
77799         * modules/isblank-tests: New file.
77800         * tests/test-isblank.c: New file.
77802         New module 'isblank'.
77803         * lib/isblank.c: New file.
77804         * m4/isblank.m4: New file.
77805         * modules/isblank: New file.
77806         * doc/posix-functions/isblank.texi: Mention the new module.
77808 2009-10-18  Bruno Haible  <bruno@clisp.org>
77810         New module 'ctype'.
77811         * lib/ctype.in.h: New file.
77812         * m4/ctype.m4: New file.
77813         * modules/ctype: New file.
77814         * doc/posix-headers/ctype.texi: Mention the new module.
77816 2009-10-18  Jim Meyering  <meyering@redhat.com>
77818         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
77819         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
77820         right after its initialization, rather than farther down.
77821         Keeping these in close proximity makes it easier to ensure
77822         that each such variable is initialized.  E.g.,
77824             LIB_CLOCK_GETTIME=
77825             AC_SUBST([LIB_CLOCK_GETTIME])
77827         This change also increments these serial numbers.
77828         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
77829         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77830         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77832 2009-10-18  Bruno Haible  <bruno@clisp.org>
77834         Don't let environment variables perturb build.
77835         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
77836         (gl_PREREQ_GETHRXTIME): ... not here.
77838 2009-10-18  Bruno Haible  <bruno@clisp.org>
77840         Avoid symlink attack in localcharset module.
77841         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
77842         (O_NOFOLLOW): Define fallback.
77843         (get_charset_aliases): Don't open the file if it is a symbolic link.
77844         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
77845         gl_FCNTL_H.
77846         (gl_FCNTL_H): Require it.
77847         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
77848         * modules/localcharset (Files): Add m4/fcntl_h.m4.
77849         Reported by Fergal Glynn <fglynn@veracode.com>.
77851 2009-10-18  Bruno Haible  <bruno@clisp.org>
77853         Implement nproc for mingw.
77854         * lib/nproc.c: Include <windows.h>
77855         (num_processors): On native Windows platforms, try GetSystemInfo.
77857 2009-10-18  Bruno Haible  <bruno@clisp.org>
77859         Implement nproc for IRIX.
77860         * lib/nproc.c: Include <sys/sysmp.h>.
77861         (num_processors): On IRIX systems, try sysmp.
77862         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
77864 2009-10-18  Bruno Haible  <bruno@clisp.org>
77866         Implement nproc for HP-UX.
77867         * lib/nproc.c: Include <sys/pstat.h>
77868         (num_processors): On HP-UX systems, try pstat_getdynamic.
77869         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
77870         pstat_getdynamic.
77872 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
77873             Bruno Haible  <bruno@clisp.org>
77875         Implement nproc for NetBSD, OpenBSD.
77876         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
77877         (ARRAY_SIZE): New macro.
77878         (num_processors): On BSD systems, try sysctl of HW_NCPU.
77879         * m4/nproc.m4: New file.
77880         * modules/nproc (Files): Add m4/nproc.m4.
77881         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
77882         (Makefile.am): Instead, augment lib_SOURCES.
77884 2009-10-18  Bruno Haible  <bruno@clisp.org>
77886         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
77887         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
77888         sys/param.h.
77890 2009-10-16  Eric Blake  <ebb9@byu.net>
77892         utimensat: new module
77893         * modules/utimensat: New file.
77894         * lib/utimensat.c (utimensat): Likewise.
77895         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
77896         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
77897         so we can work around Linux bugs.
77898         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77899         * modules/sys_stat (Makefile.am): Substitute them.
77900         * lib/sys_stat.in.h (utimensat): Declare it.
77901         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77902         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77903         * modules/utimensat-tests: New test.
77904         * tests/test-utimensat.c: Likewise.
77906         utimens: let lutimens work on non-symlinks
77907         * lib/utimens.c (lutimens): Fall back to utimens rather than
77908         failing with ENOSYS, when file is not a symlink.
77909         (utimens): Reduce redirection.
77910         * tests/test-lutimens.h (test_lutimens): Update test to cover
77911         non-symlinks.
77912         * tests/test-utimens.h (test_utimens): Update test to cover
77913         symlinks.
77914         * tests/test-utimens.c (main): Update caller.
77916         utimens: cache whether utimensat syscall works
77917         * lib/utimens.c (utimensat_works_really): New cache variable.
77918         (fdutimens, lutimens): Use it to avoid failing syscall.
77920         test-stat-time, test-utimens: improve portability
77921         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
77922         ext4 on alpha, and for cygwin.
77923         * tests/test-utimens-common.h: New file.
77924         (nap): Factor delays into single function.
77925         * tests/test-lutimens.h (test_lutimens): Use new header.
77926         * tests/test-futimens.h (test_futimens): Likewise.
77927         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
77928         timestamps to occur from same machine, as was done previously for
77929         test_utimens.
77930         * modules/utimens-tests (Files): Ship new file.
77931         * modules/futimens-tests (Files): Likewise.
77932         Reported in part by Jim Meyering.
77934         sys_stat: sort replacement declarations
77935         * lib/sys_stat.in.h: Sort declarations.
77936         * lib/futimens.c (futimens): Fix typo.
77938 2009-10-15  Jim Meyering  <meyering@redhat.com>
77940         don't let environment settings perturb build
77941         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
77942         could cause a configure-time and/or build-time malfunction.
77943         Typically, a configure-time function-in-library test is performed
77944         via code like this:
77946           LIB_VAR=
77947           AC_SUBST([LIB_VAR])
77948           prefix_saved_LIBS=$LIBS
77949             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
77950                        [test "$ac_cv_search_FUNC" = "none required" ||
77951                         LIB_VAR=$ac_cv_search_FUNC])
77952           LIBS=$prefix_saved_LIBS
77954         However, in each of the files affected by this change, the LIB_VAR=
77955         initialization was omitted.  Thus, when set in the environment, its
77956         value would propagate into generated Makefiles when FUNC is not found
77957         in LIB_NAME.
77958         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
77959         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77962 2009-10-14  Eric Blake  <ebb9@byu.net>
77964         fchdir: avoid infinite recursion in mingw
77965         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
77966         recursing.
77968         test-stat-time: port to mingw
77969         * tests/test-stat-time.c (force_unlink): Return a value.
77970         (test_ctime) [W32]: Fix compilation error.
77971         (nap): Don't call usleep with too large an argument.  Use
77972         force_unlink.
77973         * doc/pastposix-functions/usleep.texi (usleep): Document the
77974         portability issue.
77976 2009-10-13  Jim Meyering  <meyering@redhat.com>
77978         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
77979         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
77980         * modules/pipe-filter-ii: Likewise.
77981         * modules/sys_socket-tests: Likewise.
77982         * modules/tsearch-tests: Likewise.
77983         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
77984         (check): Depend on it.
77986 2009-10-12  Eric Blake  <ebb9@byu.net>
77988         utimens-tests: port to NFS file systems
77989         * tests/test-utimens.h (test_utimens): Refactor utimecmp
77990         comparisons to avoid spurious failures from timestamp drift
77991         between NFS machines.
77993 2009-10-12  Eric Blake  <ebb9@byu.net>
77995         stat-time-tests: minor cleanups
77996         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
77997         * tests/test-stat-time.c (nap): Separate assignment from call.
77998         Suggested by Paolo Bonzini and Bruno Haible.
78000         sys_stat: guarantee struct timespec
78001         * lib/sys_stat.in.h (includes): Always include <time.h>
78002         * modules/sys_stat (Depends-on): Add time.
78003         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
78004         mode_t permission values.
78005         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
78006         get at subsecond timestamps.
78008 2009-10-10  Eric Blake  <ebb9@byu.net>
78010         futimens: new module
78011         * modules/futimens: New file.
78012         * lib/futimens.c (futimens): Likewise.
78013         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
78014         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
78015         we can work around Linux bugs.
78016         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78017         * modules/sys_stat (Makefile.am): Substitute them.
78018         * lib/sys_stat.in.h (futimens): Declare it.
78019         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78020         * doc/posix-functions/futimens.texi (futimens): Likewise.
78021         * modules/futimens-tests: New test.
78022         * tests/test-futimens.c: Likewise.
78024         utimens: introduce fdutimens
78025         * lib/utimens.h (fdutimens): New prototype.
78026         * lib/utimens.c (gl_futimens): Move guts...
78027         (fdutimens): ...to new interface.
78028         * tests/test-utimens.c (do_fdutimens): Use it.
78030         utimens: add UTIME_NOW and UTIME_OMIT support
78031         * lib/utimens.c (validate_timespec, update_timespec): New helper
78032         functions.
78033         (gl_futimens, lutimens): Use them.
78034         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
78035         stdbool, sys_stat.
78036         (Link): Mention resulting library dependency.
78037         * modules/utimecmp (Link): Likewise.
78038         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
78039         (Makefile.am): Pick up library dependency.
78040         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
78041         definition.
78042         * tests/test-sys_stat.c: Test the definitions.
78043         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
78044         * NEWS: Document library dependency.
78046         utimecmp: support symlink timestamps
78047         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
78048         hashing when possible.  Use pathconf when available.
78049         (SYSCALL_RESOLUTION): Recognize tighter resolution.
78050         * modules/utimecmp (Depends-on): Add lstat.
78052         utimens: add lutimens interface
78053         * lib/utimens.c (lutimens): New function.
78054         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
78055         * lib/utimens.h (lutimens): Declare new interface.
78056         * tests/test-utimens.c (main): Enhance test.
78057         * tests/test-lutimens.h (test_lutimens): New file.
78058         * modules/utimens-tests (Files): Distribute it.
78059         (Depends-on): Add symlink.
78060         (configure.ac): Check for usleep.
78062         utimens: validate futimens usage
78063         * lib/utimens.c (gl_futimens): Require valid fd up front, using
78064         fewer syscalls on failure later on.  Avoid compiler warning on
78065         mingw.
78066         * modules/utimens (Depends-on): Add dup2.
78068         utimens: add test
78069         * modules/utimens-tests: New test.
78070         * tests/test-utimens.h: New file.
78071         * tests/test-futimens.h: Likewise.
78072         * tests/test-utimens.c: Likewise.
78074         doc: mention timestamp portability issues
78075         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
78076         instead.
78077         * doc/posix-functions/utime.texi (utime): Likewise.
78078         * doc/posix-functions/utimes.texi (utimes): Likewise.
78079         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
78080         instead.
78081         * doc/posix-functions/futimens.texi (futimens): Mention utimens
78082         module.
78083         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78084         Mention weakness with symlink timestamps.
78085         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
78086         to utimensat/futimens instead.
78087         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
78089         test-dup2: enhance test
78090         * tests/test-dup2.c (main): Also check AT_FDCWD.
78092         test-stat-time: avoid more spurious failures
78093         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
78094         xfs; and avoid race if the two timestamps cross quantization edge.
78096         relocatable: prefer 'file system' over 'filesystem'
78097         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
78098         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
78099         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
78100         * doc/relocatable.texi (Enabling Relocatability): Likewise.
78101         * lib/relocatable.c (compute_curr_prefix): Likewise.
78103 2009-10-10  Jim Meyering  <meyering@redhat.com>
78105         stat-time-tests: check for the usleep function
78106         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
78108 2009-10-10  Bruno Haible  <bruno@clisp.org>
78110         * modules/xnanosleep: Put the Link section after the Include section.
78112 2009-10-09  Eric Blake  <ebb9@byu.net>
78114         dup2: work around FreeBSD 6.1 bug
78115         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
78116         * doc/posix-functions/dup2.texi (dup2): Document it.
78117         Reported by Nelson H. F. Beebe and Jim Meyering.
78119         test-stat-time: port to buggy NFS clients
78120         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
78121         (test_ctime): Also skip test if mtime and ctime are skewed.
78123         maint: prefer 'file system' over 'filesystem'
78124         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78125         * doc/posix-functions/lstat.texi (lstat): Likewise.
78126         * lib/file-has-acl.c (file_has_acl): Likewise.
78127         * lib/fwriteerror.c [TEST]: Likewise.
78128         * tests/test-areadlink.h (test_areadlink): Likewise.
78129         * tests/test-areadlinkat-with-size.c (main): Likewise.
78130         * tests/test-areadlinkat.c (main): Likewise.
78131         * tests/test-canonicalize-lgpl.c (main): Likewise.
78132         * tests/test-canonicalize.c (main): Likewise.
78133         * tests/test-fstatat.c (main): Likewise.
78134         * tests/test-linkat.c (main): Likewise.
78135         * tests/test-lstat.h (test_lstat_func): Likewise.
78136         * tests/test-mkdir.h (test_mkdir): Likewise.
78137         * tests/test-readlink.h (test_readlink): Likewise.
78138         * tests/test-remove.c (main): Likewise.
78139         * tests/test-rename.h (test_rename): Likewise.
78140         * tests/test-renameat.c (main): Likewise.
78141         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78142         * tests/test-symlink.h (test_symlink): Likewise.
78143         * tests/test-symlinkat.c (main): Likewise.
78144         * tests/test-unlink.h (test_unlink_func): Likewise.
78145         * tests/test-unlinkat.c (main): Likewise.
78147         maint: make realtime library usage explicit
78148         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
78149         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
78150         * modules/settime (Link): Likewise.
78151         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
78153         test-stat-time: speed up execution
78154         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
78155         warning on mingw.
78156         (nap): New helper function.
78157         (prepare_test): Use it to reduce sleep time.
78158         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
78159         execution.
78160         * modules/stat-time-tests (configure.ac): Check for usleep.
78162 2009-10-09  Jim Meyering  <meyering@redhat.com>
78164         selinux-h: always use getfilecon wrappers
78165         * lib/getfilecon.c: New file.
78166         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
78167         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
78168         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
78169         (fgetfilecon): Provide a stub.
78170         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
78171         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
78172         file unconditionally.
78173         When <selinux/selinux.h> is found, arrange to use wrappers.
78174         * modules/selinux-h (Files): Add getfilecon.c.
78175         (Makefile.am): Substitute include-next-related bits
78176         into the now-always-generated selinux/selinux.h file.
78177         * doc/glibc-functions/lgetfilecon.texi: New file.
78178         * doc/glibc-functions/fgetfilecon.texi: New file.
78179         * doc/glibc-functions/getfilecon.texi: New file.
78180         * doc/glibc-functions/getfilecon-desc.texi: New file.
78181         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
78182         which to pull in the new files.
78183         * MODULES.html.sh (Misc): Add selinux-h.
78185 2009-10-08  Jim Meyering  <meyering@redhat.com>
78187         unistd: fix comment typo
78188         * lib/unistd.in.h (euidaccess): Fix a comment typo.
78190 2009-10-08  Eric Blake  <ebb9@byu.net>
78192         areadlink: use SIZE_MAX consistently
78193         * modules/areadlink (Depends-on): Add stdint.
78194         * modules/areadlink-with-size (Depends-on): Likewise.
78195         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
78196         gives NULL; drop sys/types, since unistd gives size_t; and add
78197         stdint for SIZE_MAX.
78198         (SIZE_MAX): Rely on headers.
78199         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
78200         and add stdint.
78201         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
78202         (SIZE_MAX): Likewise.
78203         (INITIAL_BUF_SIZE): Turn into enum.
78204         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
78206 2009-10-08  Jim Meyering  <meyering@redhat.com>
78208         areadlinkat: avoid compilation failure
78209         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
78210         Fix typo in comment.
78212 2009-10-07  Eric Blake  <ebb9@byu.net>
78214         areadlinkat-with-size: new module
78215         * modules/areadlinkat-with-size: New module.
78216         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
78217         * lib/areadlink.h (areadlinkat): Declare it.
78218         * MODULES.html.sh (File system functions): Mention it.
78219         * modules/areadlinkat-with-size-tests: New test.
78220         * tests/test-areadlinkat-with-size.c: New file.
78222         xreadlinkat: new module
78223         * modules/xreadlinkat: New module.
78224         * lib/xreadlinkat.c (xreadlinkat): New file.
78225         * lib/xreadlink.h (xreadlinkat): Declare it.
78226         * MODULES.html.sh (File system functions): Mention it.
78228         areadlinkat: new module
78229         * lib/at-func.c (FUNC_FAIL): New define.
78230         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
78231         * modules/areadlinkat: New module.
78232         * lib/linkat.c (areadlinkat): Move...
78233         * lib/areadlinkat.c (areadlinkat): ...to new file.
78234         * lib/areadlink.h (areadlinkat): Declare it.
78235         * modules/linkat (Depends-on): Add areadlinkat.
78236         * MODULES.html.sh (File system functions): Mention it.
78237         * modules/areadlinkat-tests: New test.
78238         * tests/test-areadlinkat.c: New file.
78240         areadlink, areadlink-with-size: add tests
78241         * modules/areadlink-tests: New test.
78242         * modules/areadlink-with-size-tests: Likewise.
78243         * tests/test-areadlink.h: New file.
78244         * tests/test-areadlink.c: Likewise.
78245         * tests/test-areadlink-with-size.c: Likewise.
78247         maint: minor cleanups
78248         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
78249         _UNUSED_PARAMETER_ instead.
78250         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
78251         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
78252         * modules/linkat-tests (Files): Distribute test-link.h.
78254         openat, utimens: whitespace cleanup
78255         * lib/openat.c: Prefer space throughout, rather than mix of 8
78256         spaces vs. tabs.
78257         * lib/at-func.c: Likewise.
78258         * lib/utimens.c: Likewise.
78260         openat: avoid using wrong fd
78261         * lib/openat.c (openat_permissive): Reject user's fd if saving the
78262         working directory chooses same fd.
78263         * lib/at-func.c (AT_FUNC_NAME): Likewise.
78265         mkdir, mkdirat: fix cygwin 1.5.x bug
78266         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
78267         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
78268         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
78269         bug.
78270         (gl_PREREQ_MKDIR): Delete unused macro.
78271         * modules/mkdir (Files): Track file rename.
78272         (configure.ac): Update macro name.
78273         * modules/openat (Depends-on): Add mkdir.
78274         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
78276         mkdir, mkdirat: add tests
78277         * modules/mkdir-tests: New test.
78278         * tests/test-mkdir.h: New file.
78279         * tests/test-mkdir.c: Likewise.
78280         * tests/test-mkdirat.c: Likewise.
78281         * modules/openat-tests (Files): Add new files.
78282         (Makefile.am): Run new test.
78284 2009-10-06  Eric Blake  <ebb9@byu.net>
78286         doc: tweak *at function documentation
78287         * doc/posix-functions/faccessat.texi (faccessat): Mention
78288         known issue with replacement.
78289         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
78290         * doc/posix-functions/linkat.texi (linkat): Likewise.
78291         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78292         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78293         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78294         * doc/posix-functions/renameat.texi (renameat): Likewise.
78295         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78297         openat: fix GNU/Hurd bug in unlinkat
78298         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
78299         broken.
78300         * doc/posix-functions/unlink.texi (unlink): Document this.
78301         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
78303         fdopendir: fix GNU/Hurd bug
78304         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
78305         allowing non-directory fds.
78306         * lib/fdopendir.c (rpl_fdopendir): Work around it.
78307         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
78308         * modules/dirent (Makefile.am): Substitute it.
78309         * lib/dirent.in.h (fdopendir): Declare replacement.
78310         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
78311         * tests/test-fdopendir.c (main): Test something other than
78312         /dev/null, since on Hurd that behaves like a directory.
78314         test-symlink: port to GNU/Hurd
78315         * tests/test-symlink.h (test_symlink): Relax expected errno.
78317         doc: tweak more cygwin information
78318         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
78319         now compatible with glibc.
78320         * doc/posix-functions/getopt.texi (getopt): Likewise.
78322         getopt-gnu: add another test
78323         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
78324         guarantee behavior relied on by m4.
78325         * tests/test-getopt.c (main): Use it.
78326         * modules/getopt-posix-tests (Depends-on): Add setenv.
78327         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
78329         getopt: fix compilation on darwin
78330         * lib/getopt.in.h (includes): Leave breadcrumbs during system
78331         include.
78332         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
78333         Reported by Ludovic Courtès.
78335 2009-10-06  Bruno Haible  <bruno@clisp.org>
78337         * modules/size_max (Description): Discourage its use.
78338         Reported by Simon Josefsson.
78340 2009-10-06  Jim Meyering  <meyering@redhat.com>
78342         linkat: avoid compilation failure
78343         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
78345 2009-10-05  Eric Blake  <ebb9@byu.net>
78347         linkat: support Linux 2.6.17
78348         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
78349         linkat on Linux, but allow cache variable override.
78350         * lib/linkat.c (rpl_linkat): Define override.
78351         * modules/linkat (Depends-on): Add symlinkat.
78352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
78353         * modules/unistd (Makefile.am): Substitute it.
78354         * lib/unistd.in.h (linkat): Declare replacement.
78355         Reported by Pádraig Brady.
78357         quotearg: port test to systems with C.UTF-8 locale
78358         * tests/test-quotearg.c (struct result_strings): Add another
78359         member, differentiating between C.ASCII and C.UTF-8 handling.
78360         (compare_strings): Add parameter.
78361         (main): Adjust all callers.
78363         getopt: avoid clash with FreeBSD _getopt_internal
78364         * lib/getopt.in.h (_getopt_internal): Override the name.
78365         * lib/getopt_int.h (includes): Pick up any overrides.
78366         Reported by Reuben Thomas.
78368         hash: allow C89 compilation
78369         * lib/hash.c (check_tuning): Move declaration before statement.
78370         Reported by Reuben Thomas.
78372 2009-10-05  Karl Berry  <karl@gnu.org>
78374         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
78376 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
78377             Bruno Haible  <bruno@clisp.org>
78379         * lib/uname.c (uname): Use a table-driven algorithm to compute
78380         Windows NT versions.
78382 2009-10-04  Bruno Haible  <bruno@clisp.org>
78384         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
78385         program_invocation_short_name.
78386         * modules/progname (configure.ac): Test for presence of
78387         program_invocation_short_name.
78388         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
78390 2009-10-04  Bruno Haible  <bruno@clisp.org>
78392         * lib/progname.c (set_program_name): Fix comment.
78393         Reported by Jim Meyering.
78395 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78396             Bruno Haible  <bruno@clisp.org>
78398         * lib/uname.c: Include <string.h>.
78399         (uname): Do only one call to GetVersionEx in the common case.
78401 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78402             Bruno Haible  <bruno@clisp.org>
78404         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
78405         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
78406         (uname): Add support for Windows CE and various non-x86 CPU types.
78408 2009-10-03  Bruno Haible  <bruno@clisp.org>
78410         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
78411         invocation to tests/configure.ac.
78412         Reported by Ian Beckwith <ianb@erislabs.net>.
78414 2009-10-02  Eric Blake  <ebb9@byu.net>
78416         fchdir: avoid compiler warning
78417         * lib/fchdir.c (canonicalize_file_name)
78418         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
78420         test-open: support mingw errno values
78421         * tests/test-open.h (test_open): Relax test.
78422         * tests/test-fopen.h (test_fopen): Likewise.
78423         * tests/test-openat-safer.c (main): Likewise.
78425         open: fix opening directory on mingw
78426         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
78428         test-open: on GNU/Hurd, /dev/null is a directory
78429         * tests/test-fopen.h (main): Rename...
78430         (test_fopen): ...to this.  Use a guaranteed non-directory when
78431         confirming open behavior on trailing slash.
78432         * tests/test-openat-safer.c (main): Likewise.
78433         * tests/test-open.h (main): Likewise....
78434         (test_open): ...to this.
78435         * tests/test-fopen.c (main): Adjust caller.
78436         * tests/test-fopen-safer.c (main): Likewise.
78437         * tests/test-open.c (main): Likewise.
78438         * tests/test-fcntl-safer.c (main): Likewise.
78439         Reported by Samuel Thibault.
78441         rename, fchdir: don't ignore chdir failure
78442         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
78443         * lib/rename.c (rpl_rename) [W32]: Likewise.
78444         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
78445         an empty destination directory if source cannot be renamed,
78446         although there is still possibility for failure.
78447         * doc/posix-functions/rename.texi (rename): Document the race.
78448         Reported by Jim Meyering.
78450         maint: cleanup whitespace in recent commits
78451         * lib/rename.c (rpl_rename): Remove tabs.
78452         * tests/test-link.h (test_link): Likewise.
78453         * lib/fchdir.c (get_name): Likewise.
78454         Reported by Jim Meyering.
78456 2009-10-02  Ben Pfaff  <blp@gnu.org>
78458         relocatable-prog-wrapper: Add missing dependency on
78459         double-slash-root.
78460         * modules/relocatable-prog-wrapper: Add dependency.
78461         Reported by Ian Beckwith <ianb@erislabs.net>.
78463 2009-10-02  Eric Blake  <ebb9@byu.net>
78465         renameat: fix Solaris bugs
78466         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
78467         needed fixing.
78468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
78469         * modules/stdio (Makefile.am): Substitute it.
78470         * lib/stdio.in.h (renameat): Declare replacement.
78471         * lib/renameat.c (rpl_renameat): Implement fix.
78473         renameat: new module
78474         * modules/renameat: New file.
78475         * lib/renameat.c (renameat): Likewise.
78476         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
78477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78478         * modules/stdio (Makefile.am): Substitute them.
78479         * lib/stdio.in.h (renameat): Declare it.
78480         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78481         * doc/posix-functions/renameat.texi (renameat): Likewise.
78482         * modules/renameat-tests: New test.
78483         * tests/test-renameat.c: Likewise.
78485         rename: fix mingw bugs
78486         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
78487         directory overwrite bugs.
78489         rename: fix another cygwin 1.5 bug
78490         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
78491         checks.
78492         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
78493         unnecessary cygwin workarounds.  Also work around bug with moving
78494         full directory onto an empty one.
78495         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
78497         rename-dest-slash: merge into rename module
78498         * modules/rename-dest-slash (Status): Mark obsolete.
78499         (Depends-on): Add rename.
78500         (Files): Let rename do it all.
78501         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
78502         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
78503         * m4/rename-dest-slash.m4: ...so this file can be deleted.
78504         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
78505         * lib/rename.c (rpl_rename): Update comments.
78507         rename: fix cygwin 1.5.x bugs
78508         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
78509         * lib/rename.c (rpl_rename): Work around them.
78510         * modules/rename (Depends-on): Add same-inode.
78512         rename: fix Solaris 10 bug
78513         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78514         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
78515         was the only bug.
78517         rename: fix Solaris 9 bug
78518         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
78519         on non-directory.  Avoid calling exit.
78520         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
78521         strdup.
78522         * modules/rename-tests (Depends-on): Drop lstat.
78523         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78524         (gl_PREREQ_RENAME): Delete unused macro.
78526         rename-dest-slash: fix NetBSD bug
78527         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
78528         links.
78529         * modules/rename-dest-slash (Depends-on): Add same-inode.
78531         rename-tests: new test, exposes several platform bugs
78532         * modules/rename-tests: New file.
78533         * tests/test-rename.h: Likewise.
78534         * tests/test-rename.c: Likewise.
78535         * doc/posix-functions/rename.texi (rename): Improve documentation,
78536         including bugs that will eventually be fixed in gnulib.
78538 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
78540         * lib/uname.c: Include <stdlib.h>
78541         (uname): Assume version info is available.
78543 2009-10-02  Jim Meyering  <meyering@redhat.com>
78545         gnu-web-doc-update: correct --help output
78546         * build-aux/gnu-web-doc-update: Make --help output relevant.
78548         gnu-web-doc-update: add standard options
78549         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
78551         gnu-web-doc-update: New module.
78552         Use this script to automatically update the on-line web documentation
78553         for your GNU project at http://www.gnu.org/software/$pkg/manual/
78554         * modules/gnu-web-doc-update: New file, from coreutils.
78555         * build-aux/gnu-web-doc-update: New script.
78557 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
78559         link: LoadLibrary is not needed.
78560         * lib/link.c: Use GetModuleHandle.
78562 2009-10-01  Eric Blake  <ebb9@byu.net>
78564         getopt: bump serial number
78565         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
78566         change.
78568         tests: tighten link, rmdir, and remove tests
78569         * tests/test-link.h (includes): No need to use <config.h> here.
78570         Clean up if directory hard link was created, otherwise test for
78571         trailing '.'.
78572         * tests/test-linkat.c (main): Simplify.
78573         * tests/test-remove.c (main): Enhance test for trailing '.'.
78574         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78576 2009-10-01  Jim Meyering  <meyering@redhat.com>
78578         maint.mk: requiring "make major" was annoying, for a "minor" release.
78579         What is intended is "stable", to contrast with alpha and beta,
78580         so require "make stable", not "make major".
78581         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
78582         (get_tool_versions): Likewise.
78583         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
78585 2009-09-30  Ben Pfaff  <blp@gnu.org>
78587         Fix broken build of replacement for Windows tmpfile().
78588         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
78589         flags argument added along with the 'mkostemp' module.
78591 2009-09-28  Bruno Haible  <bruno@clisp.org>
78593         Avoid identifier clash with POSIX function 'remove' defined as a macro.
78594         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
78595         to 'remove_elt'.
78596         (gl_list_remove): Update.
78597         * lib/gl_list.c (gl_list_remove): Update.
78598         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
78599         to 'remove_elt'.
78600         (gl_oset_remove): Update.
78601         * lib/gl_list.c (gl_oset_remove): Update.
78602         Reported by Eric Blake.
78604 2009-09-28  Eric Blake  <ebb9@byu.net>
78606         doc: mention yet more cygwin 1.7 status
78607         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
78608         cygwin.
78609         * doc/glibc-functions/execvpe.texi (execvpe): New file.
78610         * doc/gnulib.texi (Glibc unistd.h): Mention it.
78612         argp: fix test failure
78613         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
78614         that are not upper-case.  Pass correct range to tolower.
78616 2009-09-27  Jim Meyering  <meyering@redhat.com>
78618         test-yesno: work around sparc-dash here-document infelicity
78619         Without this change, the literal \177 byte in a here document
78620         would make dash 0.5.5.1-3 access uninitialized memory.
78621         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
78622         Instead, use a marker, "@", and filter through tr to create the desired
78623         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
78625 2009-09-27  Bruno Haible  <bruno@clisp.org>
78627         Disable untested support for new flavours of ACLs on AIX.
78628         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
78629         progress.
78630         * lib/set-mode-acl.c (qset_acl): Likewise.
78632 2008-12-07  Bruno Haible  <bruno@clisp.org>
78634         Add support for new flavours of ACLs on AIX. (Untested.)
78635         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
78636         (file_has_acl): Add support for newer AIX.
78637         * lib/set-mode-acl.c (qset_acl): Likewise.
78638         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
78639         Rainer Tammer <tammer@tammer.net>.
78641 2009-09-26  Eric Blake  <ebb9@byu.net>
78643         argp: fix compilation of getopt
78644         * lib/getopt.in.h (includes): Use different guard than glibc.
78645         Reported by Sergey Poznyakoff.
78647         doc: mention more cygwin 1.7 status
78648         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
78649         bug.
78650         * doc/posix-functions/execl.texi (execl): Likewise.
78651         * doc/posix-functions/execle.texi (execle): Likewise.
78652         * doc/posix-functions/execlp.texi (execlp): Likewise.
78653         * doc/posix-functions/execv.texi (execv): Likewise.
78654         * doc/posix-functions/execve.texi (execve): Likewise.
78655         * doc/posix-functions/execvp.texi (execvp): Likewise.
78656         * doc/glibc-functions/canonicalize_file_name.texi
78657         (canonicalize_file_name): Cygwin 1.7 now provides this.
78658         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
78659         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
78660         on AT_SYMLINK_NOFOLLOW.
78662 2009-09-24  Eric Blake  <ebb9@byu.net>
78664         test-linkat: make test more robust
78665         * tests/test-linkat.c (main): Avoid collision with EEXIST.
78667         getopt: fix inclusion guards for cygwin
78668         * modules/getopt-posix (Depends-on): Add include-next.
78669         (Makefile.am): Substitute more items in replacement header.
78670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
78671         <getopt.h>.
78672         * lib/getopt.in.h (includes): Use split inclusion guard, and
78673         prefer <getopt.h> over include <unistd.h> when one is present.
78674         (option): Also override name of 'struct option'.
78676         same-inode: revert prior change; it is not yet ready
78677         * NEWS: Undo mention of this change.
78678         * lib/same-inode.h (same-inode.h): Undo tri-state change.
78679         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78680         * lib/cycle-check.c (cycle_check): Likewise.
78681         * lib/same.c (same_name): Likewise.
78682         * lib/at-func2.c (at_func2): Likewise.
78684 2009-09-23  Eric Blake  <ebb9@byu.net>
78686         linkat: new module
78687         * modules/linkat: New file.
78688         * lib/at-func2.c (at_func2): Likewise.
78689         * lib/linkat.c (linkat): Likewise.
78690         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
78691         * lib/openat-priv.h (at_func2): Add declaration.
78692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78693         * modules/unistd (Makefile.am): Substitute them.
78694         * lib/unistd.in.h (linkat): Declare it.
78695         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78696         * doc/posix-functions/linkat.texi (linkat): Likewise.
78697         * doc/posix-functions/link.texi (link): Tweak wording.
78698         * tests/test-link.c (main): Move guts...
78699         * tests/test-link.h (test_link): ...into new file.
78700         * modules/linkat-tests: New test.
78701         * tests/test-linkat.c: Likewise.
78702         * modules/link-tests (Files): Ship new file.
78703         (Depends-on): Add stdbool.
78705         dirname: add library-safe mdir_name
78706         * lib/dirname.h (mdir_name): New prototype.
78707         * lib/dirname.c (dir_name): Move guts...
78708         (mdir_name): ...to new function that avoids xalloc_die.
78710         fchdir: another mingw fix
78711         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
78712         * lib/fchdir.c (get_name): New helper method; skips canonicalize
78713         on mingw (where it has not yet been ported), and make it optional
78714         elsewhere.
78715         (_gl_register_fd): Use it.
78717         same-inode: make SAME_INODE tri-state, to port to mingw
78718         * NEWS: Mention this change.
78719         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
78720         st_ino always being 0.
78721         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78722         * lib/cycle-check.c (cycle_check): Likewise.
78723         * lib/same.c (same_name): Likewise.
78725         lstat: avoid mingw compilation error
78726         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
78727         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
78728         lstat ourselves.
78729         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
78730         was adequate.
78731         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
78732         the checks for lstat.
78733         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
78735         link: fix test failure on Solaris 9
78736         * lib/link.c (rpl_link): Don't assume link will catch bogus
78737         trailing slash on source.
78739         test-symlinkat: enhance test
78740         * tests/test-readlink.c (main): Move guts...
78741         * tests/test-readlink.h (test_readlink): ...into new file.
78742         * tests/test-symlink.c (main): Move guts...
78743         * tests/test-symlink.h (test_symlink): ...into new file.
78744         * tests/test-symlinkat.c (main): Use new files for further
78745         coverage.
78746         (do_symlink, do_readlink): New helper functions.
78747         * modules/symlink-tests (Files): Ship new file.
78748         (Depends-on): Add stdbool.
78749         * modules/readlink-tests (Files): Ship new file.
78750         (Depends-on): Add stdbool.
78751         * modules/symlinkat-tests (Files): Use new files.
78753 2009-09-23  Eric Blake  <ebb9@byu.net>
78755         readlink: document portability issue with symlink length
78756         * doc/posix-functions/lstat.texi (lstat): Mention that some file
78757         systems have bogus st_size on symlinks, and mention the
78758         areadlink-with-size module.
78759         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78760         * doc/posix-functions/readlink.texi (readlink): Mention the
78761         areadlink module, and ERANGE failure.
78762         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78763         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
78765         readlink: fix Solaris 9 bug with trailing slash
78766         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
78767         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
78768         * doc/posix-functions/readlink.texi (readlink): Document this.
78769         * modules/readlink-tests: New test.
78770         * tests/test-readlink.c: Likewise.
78772         readlink: fix cygwin 1.5.x bug with return type
78773         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
78774         * lib/unistd.in.h (readlink): Use ssize_t.
78775         * lib/readlink.c (readlink): Likewise.
78776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78777         * modules/unistd (Makefile.am): Substitute it.
78778         * lib/unistd.in.h (readlink): Declare replacement.
78779         * doc/posix-functions/readlink.texi (readlink): Document this.
78781         symlink: use throughout gnulib
78782         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
78783         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
78784         symlink is not used.
78785         * modules/symlinkat (Depends-on): Add symlink.
78786         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
78787         * modules/canonicalize-tests (Depends-on): Likewise.
78788         * modules/lstat-tests (Depends-on): Likewise.
78789         * modules/openat-tests (Depends-on): Likewise.
78790         * modules/remove-tests (Depends-on): Likewise.
78791         * modules/rmdir-tests (Depends-on): Likewise.
78792         * modules/unlink-tests (Depends-on): Likewise.
78793         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
78794         * tests/test-canonicalize.c (symlink): Likewise.
78795         * tests/test-fstatat.c (symlink): Likewise.
78796         * tests/test-lstat.c (symlink): Likewise.
78797         * tests/test-remove.c (symlink): Likewise.
78798         * tests/test-rmdir.c (symlink): Likewise.
78799         * tests/test-unlink.c (symlink): Likewise.
78800         * tests/test-unlinkat.c (symlink): Likewise.
78802         symlink: new module, for Solaris 9 bug
78803         * modules/symlink: New file.
78804         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
78805         * lib/symlink.c: Likewise.
78806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78807         * modules/unistd (Makefile.am): Substitute them.
78808         * lib/unistd.in.h (symlink): Declare replacement.
78809         * MODULES.html.sh (File system functions): Mention it.
78810         * doc/posix-functions/symlink.texi (symlink): Likewise.
78811         * modules/symlink-tests: New test.
78812         * tests/test-symlink.c: Likewise.
78814 2009-09-23  Bruno Haible  <bruno@clisp.org>
78816         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
78817         when needed.
78818         Test case: gnulib-tool --import --with-tests atexit inttypes.
78819         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
78821 2009-09-23  Bruno Haible  <bruno@clisp.org>
78823         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
78824         subcommand, not in a subshell.
78826 2009-09-22  Eric Blake  <ebb9@byu.net>
78828         unistd: sort replacement declarations
78829         * lib/unistd.in.h: Sort declarations.
78831         open, openat: minor optimization
78832         * lib/open.c (open): If open succeeded, len is non-zero.
78833         * lib/openat.c (rpl_openat): Likewise.
78835         link-follow: ensure correct result
78836         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
78837         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
78838         distinguish between possible failures.
78840 2009-09-21  Eric Blake  <ebb9@byu.net>
78842         fts: avoid compiler warning
78843         * lib/fts.c (dirent_inode_sort_may_be_useful)
78844         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
78846 2009-09-19  Bruno Haible  <bruno@clisp.org>
78848         * lib/progreloc.c (canonicalize_file_name): New declaration.
78850 2009-09-19  Eric Blake  <ebb9@byu.net>
78852         link: fix quoting
78853         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
78855         openat: fix openat bugs on Solaris 9
78856         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
78857         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
78858         * modules/openat (Depends-on): Add open.
78859         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
78860         * modules/fcntl-h (Makefile.am): Substitute it.
78861         * lib/fcntl.in.h (openat): Declare replacement.
78862         * doc/posix-functions/openat.texi (openat): Document this.
78864         openat: move fstatat and unlinkat into correct files
78865         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
78866         compiled.
78867         * lib/openat.c (fstatat, unlinkat): Move...
78868         * lib/fstatat.c (fstatat): ...into correct files.
78869         * lib/unlinkat.c (unlinkat): Likewise.
78871         openat: fix unlinkat bugs on Solaris 9
78872         * lib/unlinkat.c (unlinkat): New file.
78873         * modules/openat (Depends-on): Add unlink.
78874         (Files): Distribute it.
78875         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
78876         trailing slash behavior is broken.
78877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78878         * modules/unistd (Makefile.am): Substitute it.
78879         * lib/unistd.in.h (unlinkat): Declare replacement.
78880         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
78882         openat: fix fstatat bugs on Solaris 9
78883         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
78884         stat.
78885         * doc/posix-functions/fstatat.texi (fstatat): Document this.
78887         test-unlinkat: enhance test, to expose Solaris 9 bug
78888         * tests/test-unlink.c (main): Factor guts...
78889         * tests/test-unlink.h (test_rmdir_func): ...into new file.
78890         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
78891         * tests/test-rmdir.c (main): Adjust caller.
78892         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
78893         (unlinker): New helper function.
78894         (rmdirat): Enhance check.
78895         * modules/rmdir-tests (Depends-on): Add stdbool.
78896         * modules/unlink-tests (Depends-on): Likewise.
78897         (Files): Add test-unlink.h.
78898         * modules/openat-tests (Files): Likewise.
78899         (Depends-on): Add unlinkdir.
78901         test-fstatat: new test, to expose Solaris 9 bugs
78902         * tests/test-stat.c (main): Factor guts...
78903         * tests/test-stat.h (test_stat_func): ...into new file.
78904         * tests/test-lstat.c (main): Factor guts...
78905         * tests/test-lstat.h (test_lstat_func): ...into new file.
78906         * tests/test-fstatat.c: New file.
78907         * modules/stat-tests (Files): Add test-stat.h.
78908         * modules/lstat-tests (Files): Add test-lstat.h.
78909         (Depends-on): Add stdbool.
78910         * modules/openat-tests (Depends-on): Add pathmax.
78911         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
78912         (Makefile.am): Run new test.
78914         remove: new module, for mingw and Solaris 9 bugs
78915         * modules/remove: New file.
78916         * lib/remove.c: Likewise.
78917         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
78918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78919         * modules/stdio (Makefile.am): Use them.
78920         * lib/stdio.in.h (remove): Declare replacement.
78921         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78922         * doc/posix-functions/remove.texi (remove): Likewise.
78923         * modules/remove-tests: New test.
78924         * tests/test-remove.c: Likewise.
78926         unlink: new module, for Solaris 9 bug
78927         * modules/unlink: New file.
78928         * lib/unlink.c: Likewise.
78929         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
78930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78931         * modules/unistd (Makefile.am): Use them.
78932         * lib/unistd.in.h (stat): Declare replacement.
78933         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78934         * doc/posix-functions/unlink.texi (unlink): Likewise.
78935         * modules/unlink-tests: New test.
78936         * tests/test-unlink.c: Likewise.
78938         lstat: fix Solaris 9 bug
78939         * lib/lstat.c (lstat): Also check for trailing slash on
78940         non-symlink, non-directories.  Use stat module to simplify logic.
78941         * doc/posix-functions/lstat.texi (lstat): Document it.
78942         * modules/lstat-tests (Depends-on): Add errno, same-inode.
78943         (configure.ac): Check for symlink.
78944         * tests/test-lstat.c (main): Add more tests.
78946         stat: add as dependency to other modules
78947         * modules/chown (Depends-on): Add stat.
78948         * modules/euidaccess (Depends-on): Likewise.
78949         * modules/fchdir (Depends-on): Likewise.
78950         * modules/isdir (Depends-on): Likewise.
78951         * modules/link (Depends-on): Likewise.
78952         * modules/lstat (Depends-on): Likewise.
78953         * modules/mkdir-p (Depends-on): Likewise.
78954         * modules/modechange (Depends-on): Likewise.
78955         * modules/open (Depends-on): Likewise.
78956         * modules/readlink (Depends-on): Likewise.
78957         * modules/same (Depends-on): Likewise.
78959         stat: fix Solaris 9 bug
78960         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
78961         slash.
78962         * lib/stat.c (rpl_stat): Work around it.
78963         * doc/posix-functions/stat.texi (stat): Update documentation.
78965         stat: new module, for mingw bug
78966         * modules/stat: New file.
78967         * lib/stat.c: Likewise.
78968         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
78969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78970         * modules/sys_stat (Makefile.am): Use them.
78971         * lib/sys_stat.in.h (stat): Declare replacement.
78972         * lib/openat.c (fstatat): Deal with lstat and stat being function
78973         macros.
78974         * modules/openat (Depends-on): Add inline.
78975         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78976         * doc/posix-functions/stat.texi (stat): Likewise.
78977         * modules/stat-tests: New test.
78978         * tests/test-stat.c: Likewise.
78980 2009-09-19  Jim Meyering  <meyering@redhat.com>
78982         syntax-check: detect unnecessary inclusion of canonicalize.h
78983         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
78985 2009-09-19  Eric Blake  <ebb9@byu.net>
78987         canonicalize-lgpl: adjust clients to use correct header
78988         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
78989         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
78990         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
78991         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
78992         * lib/progreloc.c (includes): Likewise.
78994 2009-09-19  Jim Meyering  <meyering@redhat.com>
78996         test-posixtm.c: correct a comment
78997         * tests/test-posixtm.c: Correct first-line comment.
78998         Spotted by Eric Blake.
79000 2009-09-16  Jim Meyering  <meyering@redhat.com>
79002         posixtm-tests: make T const-correct; add a test case
79003         * tests/test-posixtm.c (T): Declare const.
79004         Add a test for -(2^31+1).
79005         Remove useless can-succeed-only-in-2002 test.
79007         posixtm-tests: adjust the sole failing test
79008         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
79009         expected output matches what mktime now produces.  Cross-checked via
79010         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
79012         posixtm: move #ifdef'd tests into a new module
79013         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
79014         * tests/test-posixtm.c: ... this new file.
79015         * modules/posixtm-tests: New module.
79017 2009-09-19  Eric Blake  <ebb9@byu.net>
79019         openat: simplify use of at-func.c
79020         * lib/at-func.c (includes): Include prerequisites here, to
79021         simplify requirements on client files.
79022         * lib/openat-priv.h: Add double-inclusion guard.
79023         * lib/faccessat.c (includes): Simplify.
79024         * lib/fchmodat.c (includes): Likewise.
79025         * lib/fchownat.c (includes): Likewise.
79026         * lib/mkdirat.c (includes): Likewise.
79027         * lib/mkfifoat.c (includes): Likewise.
79028         * lib/symlinkat.c (includes): Likewise.
79030         openat: allow return of fd 0
79031         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
79032         * modules/save-cwd (Depends-on): Replace fcntl-safer with
79033         unistd-safer.
79034         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
79035         <fcntl.h>; this module does not leak fds.
79036         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
79037         must be allowed to return 0, leaving openat_safer to add the
79038         safety.
79039         (openat_permissive): Avoid writing to just-opened fd 2 if
79040         restoring the current directory fails.
79041         * lib/openat-die.c (openat_restore_fail): Add comment.
79042         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
79043         (save_cwd): Guarantee safe fd, but without use of open_safer.
79044         * tests/test-openat.c: New test.
79045         * modules/openat-tests (Files, Makefile.am): Distribute and build
79046         new file.
79048         relocatable-prog-wrapper: fix build
79049         * modules/relocatable-prog-wrapper (Files): Update name of
79050         canonicalize m4 file, broken on 2009-09-17.
79051         Reported by emad hajjar <aleppos@hotmail.com>.
79053 2009-09-19  Bruno Haible  <bruno@clisp.org>
79055         * lib/safe-alloc.h: Use the standard header with GPL copyright.
79056         * lib/safe-alloc.c: Likewise.
79057         Reported by Ian Beckwith <ianb@erislabs.net>.
79059 2009-09-18  Bruno Haible  <bruno@clisp.org>
79061         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
79062         Reported by <erobles@sensacd.com.mx>.
79064 2009-09-17  Eric Blake  <ebb9@byu.net>
79066         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
79067         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
79068         slashes when checking if last component is missing.
79069         * tests/test-canonicalize.c (main): Test this.
79071         canonicalize, canonicalize-lgpl: honor // if distinct from /
79072         * modules/canonicalize (Files): Add double-slash-root.m4.
79073         * modules/canonicalize-lgpl (Files): Likewise.
79074         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79075         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
79076         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
79077         fallback definition.
79078         (canonicalize_filename_mode): Use it to protect //.
79079         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
79080         (__realpath): Likewise.
79081         * tests/test-canonicalize.c (main): Test this.
79082         * tests/test-canonicalize-lgpl.c (main): Likewise.
79083         * modules/canonicalize-tests (Depends-on): Add same-inode.
79084         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79086         canonicalize-lgpl: fix glibc bug with trailing slash
79087         * m4/canonicalize-lgpl.m4: Move contents...
79088         * m4/canonicalize.m4: ...here.
79089         (gl_CANONICALIZE_LGPL): Factor realpath check...
79090         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
79091         glibc 2.3.5 bug, fixed 2005-04-27.
79092         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
79093         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
79094         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
79095         * modules/canonicalize-lgpl (Files): Manage file rename.
79096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79097         * modules/stdlib (Makefile.am): Substitute witness.
79098         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
79099         is needed.
79100         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
79101         replacement is required.
79102         * lib/canonicalize.c (canonicalize_file_name): Likewise.
79103         * doc/glibc-functions/canonicalize_file_name.texi
79104         (canonicalize_file_name): Document this.
79105         * doc/posix-functions/realpath.texi (realpath): Likewise.
79107         canonicalize-lgpl: reject non-directory with trailing slash
79108         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
79109         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
79110         catches failures in glibc 2.3.5.
79111         * tests/test-canonicalize.c (main): Likewise.
79113         canonicalize-lgpl: use native realpath if it works
79114         * lib/canonicalize-lgpl.c (realpath): Guard with
79115         FUNC_REALPATH_WORKS.
79116         * lib/stdlib.in.h (realpath): Make declaration optional based on
79117         HAVE_REALPATH.
79118         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
79119         native realpath works.
79120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79121         * modules/stdlib (Makefile.am): Substitute witness.
79123         canonicalize, canonicalize-lgpl: use <stdlib.h>
79124         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
79125         (Include): Mention <stdlib.h>.
79126         (configure.ac): Mention functions we provide.
79127         * modules/canonicalize (configure.ac): Likewise.
79128         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
79129         realpath if canonicalize_file_name is missing.
79130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
79131         * modules/stdlib (Makefile.am): Substitute witnesses.
79132         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
79133         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
79134         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
79135         * NEWS: Document this.
79136         * doc/glibc-functions/canonicalize_file_name.texi
79137         (canonicalize_file_name): Likewise.
79138         * doc/posix-functions/realpath.texi (realpath): Likewise.
79139         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
79141         test-canonicalize: consolidate into single C program
79142         * tests/test-canonicalize.sh: Delete; move setup into...
79143         * tests/test-canonicalize.c (main): ...the program, making it
79144         easier to run in debugger.  Add some tests.
79145         * modules/canonicalize-tests (Files): Remove unused file.
79146         (Depends-on): Add progname.
79147         (configure.ac, Makefile.am): Simplify.
79149         test-canonicalize-lgpl: consolidate into single C program
79150         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
79151         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
79152         easier to run in debugger.  Add some tests.
79153         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
79154         (configure.ac, Makefile.am): Simplify.
79156         canonicalize: avoid resolvepath
79157         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
79158         unnecessary checks.
79159         * lib/canonicalize.c (includes): Simplify.
79160         (canonicalize_file_name): Drop resolvepath implementation.
79161         * modules/canonicalize (Depends-on): Drop filenamecat.
79163         canonicalize: don't lose errno
79164         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
79165         over calls to free.
79167         canonicalize: simplify errno handling
79168         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
79169         assignment.
79171         canonicalize, canonicalize-lgpl: update module dependencies
79172         * modules/canonicalize (Depends-on): Add extensions, lstat,
79173         pathmax, stdlib.
79174         (Files): Drop pathmax.h.
79175         (configure.ac): Adjust macro name.
79176         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
79177         lstat, stdlib, sys_stat.
79178         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
79179         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
79180         extensions.
79181         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
79182         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
79183         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
79184         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
79185         declaration, if available.
79186         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
79187         we can rely on the readlink module.
79188         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
79189         (includes): Use <unistd.h> unconditionally.
79191 2009-09-17  Eric Blake  <ebb9@byu.net>
79193         maint: make Include sections of modules consistent
79194         * modules/alloca: Use only header name; no need to list #include.
79195         * modules/alloca-opt: Likewise.
79196         * modules/arpa_inet: Likewise.
79197         * modules/canon-host: Likewise.
79198         * modules/configmake: Likewise.
79199         * modules/dirent: Likewise.
79200         * modules/eealloc: Likewise.
79201         * modules/environ: Likewise.
79202         * modules/fchdir: Likewise.
79203         * modules/fcntl: Likewise.
79204         * modules/fcntl-h: Likewise.
79205         * modules/gethrxtime: Likewise.
79206         * modules/gettime: Likewise.
79207         * modules/ignore-value: Likewise.
79208         * modules/inet_ntop: Likewise.
79209         * modules/inet_pton: Likewise.
79210         * modules/inttypes: Likewise.
79211         * modules/isnand-nolibm: Likewise.
79212         * modules/isnanf-nolibm: Likewise.
79213         * modules/mbchar: Likewise.
79214         * modules/mbfile: Likewise.
79215         * modules/mbiter: Likewise.
79216         * modules/mbuiter: Likewise.
79217         * modules/netdb: Likewise.
79218         * modules/netinet_in: Likewise.
79219         * modules/nproc: Likewise.
79220         * modules/pagealign_alloc: Likewise.
79221         * modules/poll: Likewise.
79222         * modules/printf-frexp: Likewise.
79223         * modules/pthread: Likewise.
79224         * modules/putenv: Likewise.
79225         * modules/random_r: Likewise.
79226         * modules/relocatable-prog: Likewise.
79227         * modules/search: Likewise.
79228         * modules/select: Likewise.
79229         * modules/selinux-h: Likewise.
79230         * modules/settime: Likewise.
79231         * modules/signal: Likewise.
79232         * modules/size_max: Likewise.
79233         * modules/socklen: Likewise.
79234         * modules/ssize_t: Likewise.
79235         * modules/stdarg: Likewise.
79236         * modules/stdbool: Likewise.
79237         * modules/stddef: Likewise.
79238         * modules/stdint: Likewise.
79239         * modules/stdio: Likewise.
79240         * modules/stdlib: Likewise.
79241         * modules/string: Likewise.
79242         * modules/strings: Likewise.
79243         * modules/sys_file: Likewise.
79244         * modules/sys_ioctl: Likewise.
79245         * modules/sys_select: Likewise.
79246         * modules/sys_socket: Likewise.
79247         * modules/sys_stat: Likewise.
79248         * modules/sys_time: Likewise.
79249         * modules/sys_times: Likewise.
79250         * modules/sys_utsname: Likewise.
79251         * modules/sys_wait: Likewise.
79252         * modules/sysexits: Likewise.
79253         * modules/time: Likewise.
79254         * modules/times: Likewise.
79255         * modules/tmpfile: Likewise.
79256         * modules/trim: Likewise.
79257         * modules/unistd: Likewise.
79258         * modules/wchar: Likewise.
79259         * modules/wctype: Likewise.
79261 2009-09-17  Bruno Haible  <bruno@clisp.org>
79263         Make getdate.y compile on QNX and NetBSD 5 / i386.
79264         * m4/getdate.m4 (gl_GETDATE): Conditionally define
79265         TIME_T_FITS_IN_LONG_INT.
79266         * lib/getdate.y (long_time_t): New type.
79267         (relative_time): Change type of 'seconds' field to long_time_t.
79268         (get_date): Update types of local variables. Check against overflow
79269         during conversion from long_time_t to time_t.
79270         Reported by Matt Kraai <kraai@ftbfs.org>
79271         and Hasso Tepper <hasso@netbsd.org>.
79273 2009-09-17  Bruno Haible  <bruno@clisp.org>
79275         * modules/COPYING: Update copyright years.
79276         * modules/README: Likeiwse.
79277         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
79278         Reported by Ian Beckwith <ianb@erislabs.net>.
79280 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79282         * users.txt: Update references for gnuit package.
79284 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79286         * m4/getdelim.m4: Fix typo in copyright line.
79288 2009-09-17  Bruno Haible  <bruno@clisp.org>
79290         * lib/atoll.c: Use the standard header with GPL copyright.
79291         * lib/argz.in.h: Likewise.
79292         * lib/glob.c: Likewise.
79293         * lib/glob-libc.h: Likewise.
79294         * lib/random_r.c: Likewise.
79295         * lib/siglist.h: Likewise.
79296         * lib/strsignal.c: Likewise.
79297         Reported by Ian Beckwith <ianb@erislabs.net>.
79299 2009-09-17  Eric Blake  <ebb9@byu.net>
79301         rmdir: ensure correct dependency order
79302         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
79304 2009-09-17  Bruno Haible  <bruno@clisp.org>
79306         Disable assertion that fails on NetBSD 5 / i386.
79307         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
79308         Reported by Sam Steingold <sds@gnu.org>
79309         and Hasso Tepper <hasso@netbsd.org>.
79311 2009-09-16  Eric Blake  <ebb9@byu.net>
79313         unlinkdir: port to mingw
79314         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
79315         on which no one can unlink a directory.
79317         stdlib: sort witness names
79318         * modules/stdlib (Makefile.am): Sort replacements.
79319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79320         * lib/stdlib.in.h: Likewise.
79322         parse-duration-tests: avoid link failure
79323         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
79324         LIBINTL.
79325         Reported by Tom G. Christensen.
79327         openat-tests: ensure unlinkat behaves like rmdir
79328         * tests/test-rmdir.c (main): Factor guts...
79329         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
79330         * modules/rmdir-tests (Files): Ship new file.
79331         * modules/openat-tests: New test.
79332         * tests/test-unlinkat.c: Likewise.
79334         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
79335         * modules/rmdir-errno (Status, Notice): Now obsolete.
79337         rmdir: work around cygwin 1.5.x and mingw bugs
79338         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
79339         * lib/rmdir.c (rmdir): Work around it.
79340         * modules/rmdir (Status, Notice): No longer obsolete.
79341         (Files): Add dos.m4.
79342         (Depends-on): Add unistd.
79343         (configure.ac): Set witnesses.
79344         (License): Relax to LGPLv2+.
79345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
79346         * modules/unistd (Makefile.am): Substitute witnesses.
79347         * lib/unistd.in.h (rmdir): Declare replacement.
79348         * doc/posix-functions/rmdir.texi (rmdir): Document this.
79349         * modules/rmdir-tests: New tests.
79350         * tests/test-rmdir.c: Likewise.
79352 2009-09-15  Eric Blake  <ebb9@byu.net>
79354         fchdir: improve use of replacement functions
79355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
79356         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
79357         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
79358         REPLACE_CLOSEDIR.
79359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
79360         * modules/sys_stat (Makefile.am): Substitute correct witness.
79361         * modules/dirent (Makefile.am): Likewise.
79362         * modules/unistd (Makefile.am): Likewise.
79363         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
79364         * lib/unistd.in.h (dup): Likewise.
79365         * lib/sys_stat.in.h (fstat): Likewise.
79367         maint: ignore gnulib-tool temp files
79368         * .gitignore: Ignore files created during gnulib-tool --test.
79370 2009-09-13  Jim Meyering  <meyering@redhat.com>
79372         posixtm: don't reject a time that specify "60" as the number of seconds
79373         * lib/posixtm.c (posixtime): The code to reject invalid dates
79374         would also reject a time specified with the .60 suffix.
79375         But POSIX allows that, in order to accommodate leap seconds.
79376         So don't reject it.
79377         (main): Adjust tests accordingly.
79378         * modules/posixtm (Depends-on): Add stpcpy.
79380 2009-09-11  Jim Meyering  <meyering@redhat.com>
79382         announce-gen: include [$release_type] in emitted Subject:
79383         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
79384         e.g., [stable] in the emitted Subject: line.
79386 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79388         Remove obsolete macros from several modules.
79389         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
79390         obsolete Autoconf macros with their modern counterparts.
79391         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
79392         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
79393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
79394         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79395         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
79396         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79398         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
79399         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
79400         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
79401         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
79402         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
79403         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
79404         * m4/sockets.m4 (gl_SOCKETS): Likewise.
79405         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
79406         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
79407         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79408         * m4/time_r.m4 (gl_TIME_R): Likewise.
79409         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
79410         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
79411         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79413         Fix copyright header in build-aux scripts.
79414         * build-aux/git-version-gen: Fix copyright header to match GPLv3
79415         recommendation.
79416         * build-aux/ncftpput-ftp: Likewise.
79417         * build-aux/update-copyright: Likewise.
79419 2009-09-09  Eric Blake  <ebb9@byu.net>
79421         test-link: allow Linux choice of errno
79422         * tests/test-link.c (main): Relax test for alternate error.
79424         strndup: fix improper m4 caching
79425         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
79426         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
79427         (gl_PREREQ_STRNDUP): Delete.
79428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
79429         * modules/string (Makefile.am): Substitute it.
79430         * lib/string.in.h (strndup): Modernize prototype.
79432         getcwd: port to mingw
79433         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
79434         different from the POSIX assumptions made throughout the getcwd
79435         module; fortunately, the mingw getcwd does not need replacement.
79436         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
79437         * modules/getcwd-tests: New test.
79438         * tests/test-getcwd.c: Likewise.
79440         link: fix platform bugs
79441         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
79442         * lib/link.c (link): Work around them.  Fix related mingw bug.
79443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
79444         * modules/unistd (Makefile.am): Substitute it.
79445         * lib/unistd.in.h (link): Declare replacement.
79446         * doc/posix-functions/link.texi (link): Document this.
79447         * modules/link (Depends-on): Add strdup-posix, sys_stat.
79449         test-link: consolidate into single C program, test more cases
79450         * tests/test-link.sh: Delete.
79451         * tests/test-link.c: Test more error conditions.  Exposes bugs on
79452         at least Cygwin and Solaris.
79453         * modules/link-tests (Files): Remove unused file.
79454         (Depends-on): Add errno, sys_stat.
79455         (Makefile.am): Simplify.
79457 2009-09-08  Bruno Haible  <bruno@clisp.org>
79459         Work around towlower, towupper bug on mingw.
79460         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
79461         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
79462         * doc/posix-functions/towlower.texi: Mention the mingw bug.
79463         * doc/posix-functions/towupper.texi: Likewise.
79464         Reported by Eric Blake.
79466 2009-09-08  Jim Meyering  <meyering@redhat.com>
79468         build: don't try to run autoheader if we don't use it
79469         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
79470         is not used in configure.ac.
79472 2009-09-08  Eric Blake  <ebb9@byu.net>
79474         euidaccess: fix compilation error
79475         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
79477         rawmemchr: relax license
79478         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
79479         okay.
79480         Reported by Jim Meyering.
79482         mkfifoat: new module
79483         * modules/mkfifoat: New file.
79484         * lib/mkfifoat.c: Likewise.
79485         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
79486         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79487         * modules/sys_stat (Makefile.am): Use them.
79488         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
79489         * MODULES.html.sh (File system functions): Mention module.
79490         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79491         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79492         * modules/mkfifoat-tests: New test.
79493         * tests/test-mkfifoat.c: Likewise.
79495         strchrnul: relax license
79496         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
79497         okay.
79498         Reported by Jim Meyering.
79500 2009-09-08  Eric Blake  <ebb9@byu.net>
79502         fstatat: fix compilation on Solaris
79503         * lib/fstatat.c (includes): Add fcntl.h.
79504         Reported by Pádraig Brady.
79506 2009-09-07  Eric Blake  <ebb9@byu.net>
79508         rename: modernize replacement
79509         * modules/rename (Depends-on): Add stdio.
79510         (configure.ac): Declare witness.
79511         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
79512         stdio take care of replacement.
79513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
79514         * modules/stdio (Makefile.am): Substitute them.
79515         * lib/stdio.in.h (rename): Declare replacement.
79516         * lib/rename.c (includes): Allow cross-compilation to non-windows
79517         machines.
79518         * doc/posix-functions/rename.texi (rename): Improve
79519         documentation.
79521         stdio: sort witness names
79522         * modules/stdio (Makefile.am): Sort replacements.
79523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79524         * lib/stdio.in.h: Likewise.
79526         getcwd: minor cleanups
79527         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
79528         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
79530         openat: provide more convenience names
79531         * modules/faccessat (configure.ac): Add C witness.
79532         * lib/unistd.in.h (readlinkat): Fix typo.
79533         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
79534         convenience wrappers.
79535         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
79536         wrappers in syntax checks.
79538 2009-09-06  Eric Blake  <ebb9@byu.net>
79540         doc: fix comments in recent patches
79541         * lib/faccessat.c: Mention correct function.
79542         * lib/fchmodat.c: Likewise.
79543         * lib/fchownat.c: Likewise.
79544         * lib/symlinkat.c: Likewise.
79545         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
79546         constants.
79548         faccessat, symlinkat: continue cleanup of previous patch
79549         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
79550         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79551         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
79552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
79553         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
79554         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
79555         set.
79557 2009-09-06  Bruno Haible  <bruno@clisp.org>
79559         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
79560         (fstatat): Declare if GNULIB_FSTATAT is set.
79561         (mkdirat): Declare if GNULIB_MKDIRAT is set.
79562         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
79563         (unlinkat): Declare if GNULIB_UNLINKAT is set.
79564         * modules/fcntl-h (Files): Remove m4/openat.m4.
79565         * modules/sys_stat (Files): Remove m4/openat.m4.
79566         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
79567         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
79568         * modules/unistd (Files): Remove m4/openat.m4.
79569         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
79570         GNULIB_OPENAT.
79571         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
79572         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
79573         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
79574         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
79575         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
79576         gl_OPENAT_DEFAULTS.
79577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
79578         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
79579         Don't require gl_OPENAT_DEFAULTS.
79580         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
79581         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
79582         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
79583         (gl_OPENAT_DEFAULTS): Remove macro.
79585 2009-09-06  Bruno Haible  <bruno@clisp.org>
79587         * modules/openat (configure.ac): Remove unneeded witness.
79589 2009-09-06  Bruno Haible  <bruno@clisp.org>
79591         Set errno to ENOSYS when a function is entirely unsupported.
79592         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
79593         EOPNOTSUPP.
79594         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79595         * modules/chown (Depends-on): Remove errno.
79597 2009-09-06  Bruno Haible  <bruno@clisp.org>
79599         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
79601 2009-09-06  Bruno Haible  <bruno@clisp.org>
79603         * lib/sys_stat.in.h: Fix preprocessor command indentation.
79605 2009-09-06  Ben Pfaff  <blp@gnu.org>
79606             Bruno Haible  <bruno@clisp.org>
79608         Work around a glibc bug in strtok_r.
79609         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
79610         Undefine if UNDEFINE_STRTOK_R is set.
79611         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
79612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79613         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
79614         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
79615         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
79616         UNDEFINE_STRTOK_R.
79617         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
79619 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
79621         exclude: minor fix
79622         * lib/exclude.c: Include wctype.h
79624 2009-09-06  Akim Demaille  <demaille@gostai.com>
79626         bootstrap: improve error message
79627         * build-aux/bootstrap (find_tool): Upon failure, report the list
79628         of candidates.
79629         Honor the initial value of the envvar.
79631 2009-09-05  Eric Blake  <ebb9@byu.net>
79633         symlinkat: new module
79634         * modules/symlinkat: New file.
79635         * lib/symlinkat.c: Likewise.
79636         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
79637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79638         * modules/unistd (Makefile.am): Use them.
79639         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
79640         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
79641         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
79642         * MODULES.html.sh (File system functions): Mention module.
79643         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79644         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79645         * modules/symlinkat-tests: New test.
79646         * tests/test-symlinkat.c: Likewise.
79648         test-openat-safer: add more checks
79649         * tests/test-openat-safer.c (main): Check more code paths.
79651 2009-09-05  Jim Meyering  <meyering@redhat.com>
79653         syntax-check: detect unnecessary inclusion of openat.h
79654         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
79656 2009-09-05  Bruno Haible  <bruno@clisp.org>
79658         Support towlower, towupper.
79659         * doc/posix-functions/towlower.texi: Mention module wctype.
79660         * doc/posix-functions/towupper.texi: Likewise.
79661         * lib/wctype.in.h (towlower, towupper): New functions.
79662         * tests/test-wctype.c: Include stdio.h, stdlib.h.
79663         (ASSERT): New macro.
79664         (e): New variable.
79665         (main): Test also towlower, towupper. Test WEOF argument.
79666         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79668 2009-09-05  Bruno Haible  <bruno@clisp.org>
79670         Fix conversion behaviour when the input is invalid.
79671         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
79672         mark occurring in first pass of indirect conversion.
79673         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
79674         input.
79675         Found by clang's static analyzer.
79677 2009-09-05  Bruno Haible  <bruno@clisp.org>
79679         * tests/test-striconveh.c (main): Test indirect conversion on platforms
79680         where direct conversion is possible.
79682 2009-09-04  Eric Blake  <ebb9@byu.net>
79684         openat: fail with ENOENT on empty name
79685         * lib/openat-proc.c (openat_proc_name): Special-case the empty
79686         buffer.
79688         link-follow: fix logic bug in prior patch
79689         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
79690         reversed sense of yes and no in prior patch.  Avoid confusing
79691         compilation failure with desired semantics.
79693         link-follow: accommodate mingw and cross-compilation
79694         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
79695         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
79696         cross-compilation results to -1, to make linkat easier to
79697         implement when cross-compiling.  Trivially support mingw.
79698         * modules/link-follow (configure.ac): Call new name.
79699         * NEWS: Mention this.
79701 2009-09-03  Eric Blake  <ebb9@byu.net>
79703         faccessat: compile replacement
79704         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
79705         needed.
79707         fts: fix compilation error
79708         * lib/fts.c (includes): Re-add "openat.h", for
79709         openat_needs_fchdir.
79711         faccessat: new module
79712         * modules/faccessat: New file.
79713         * lib/faccessat.c: Likewise.
79714         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79716         * modules/unistd (Makefile.am): Use it.
79717         * lib/unistd.in.h (faccessat): Declare it.
79718         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
79719         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
79720         * MODULES.html.sh (File system functions): Mention it.
79721         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
79722         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
79724         euidaccess: prefer POSIX over non-standard implementation
79725         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
79726         * lib/euidaccess.c (euidaccess): Use it if available.
79728         openat: make template easier to use
79729         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
79730         AT_FUNC_F2 to be undefined.
79731         (VALIDATE_FLAG): New macro; use it to reject bad flags.
79732         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
79733         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
79734         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
79735         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
79736         Likewise.
79737         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
79738         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
79739         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
79740         Likewise.
79742         openat: declare in POSIX headers
79743         * NEWS: Mention this.
79744         * modules/openat (configure.ac): Declare witnesses.
79745         (Depends-on): Add fcntl-h, sys_stat, unistd.
79746         (Include): Mention correct headers.
79747         * modules/fcntl-h (Depends-on): Add link-warning.
79748         (Files): Add openat.m4.
79749         (Makefile.am): Substitute witnesses.
79750         * modules/sys_stat (Files, Makefile.am): Likewise.
79751         * modules/unistd (Files, Makefile.am): Likewise.
79752         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
79753         (gl_OPENAT_DEFAULTS): New macro.
79754         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
79755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
79756         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
79757         (SYS_STAT_H): Remove unused variable.
79758         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
79759         * lib/fcntl--.h (includes): Remove unneeded header.
79760         * lib/openat-safer.c (includes): Likewise.
79761         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
79762         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
79763         appropriate headers.
79764         (__OPENAT_PREFIX): Delete.
79765         * lib/fcntl.in.h (openat): Provide declaration.
79766         (AT_FDCWD): Fix Solaris bug.
79767         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
79768         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
79769         * lib/fchmodat.c (includes):  Adjust to find declaration.
79770         * lib/fchownat.c (includes): Likewise.
79771         * lib/mkdirat.c (includes): Likewise.
79772         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
79773         still visible.
79775 2009-09-02  Eric Blake  <ebb9@byu.net>
79777         errno: use consistently
79778         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
79779         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
79780         * lib/canonicalize.c (ELOOP): Likewise.
79781         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
79782         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
79783         * lib/lchown.c (EOPNOTSUPP): Likewise.
79784         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
79785         * lib/savewd.c (ESTALE): Likewise.
79786         * lib/settime.c (ENOSYS): Likewise.
79787         * lib/utimens.c (ENOSYS): Likewise.
79788         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
79789         * lib/chdir-safer.c (ELOOP): Likewise.
79790         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
79791         * modules/c-stack (Depends-on): Add errno.
79792         * modules/canonicalize (Depends-on): Likewise.
79793         * modules/chdir-safer (Depends-on): Likewise.
79794         * modules/fdopendir (Depends-on): Likewise.
79795         * modules/inet_ntop (Depends-on): Likewise.
79796         * modules/inet_pton (Depends-on): Likewise.
79797         * modules/lchown (Depends-on): Likewise.
79798         * modules/openat (Depends-on): Likewise.
79799         * modules/savewd (Depends-on): Likewise.
79800         * modules/settime (Depends-on): Likewise.
79801         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
79803         fts: avoid leaking fds
79804         * modules/fts (Depends-on): Add cloexec.
79805         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
79806         flag.
79808         fts: make directory fds more robust
79809         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
79810         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
79812         backupfile, chdir-long, fts, savedir: make safer
79813         * lib/backupfile.c (includes): Use "dirent--.h", since
79814         numbered_backup can write to stderr during readdir.
79815         * lib/savedir.c (includes): Likewise.
79816         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
79817         emulation can write to stderr on failure.
79818         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
79819         * lib/getcwd.c: Document why opendir_safer is unused.
79820         * lib/glob.c: Likewise.
79821         * lib/scandir.c: Likewise.
79822         * lib/openat-proc.c: Likewise, for open_safer.
79823         * modules/backupfile (Depends-on): Add dirent-safer.
79824         * modules/savedir (Depends-on): Likewise.
79825         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
79826         * modules/chdir-long (Depends-on): Add openat-safer.
79828         openat-safer: new module
79829         * modules/openat-safer: New file.
79830         * lib/openat-safer.c: Likewise.
79831         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
79832         * lib/fcntl-safer.h (openat_safer): Declare.
79833         * lib/fcntl--.h (openat): Override.
79834         * MODULES.html.sh (File descriptor based I/O): Mention it.
79835         * lib/openat.h: Add double-inclusion guards.
79836         * lib/openat.c (includes): Only include "fcntl-safer.h", not
79837         "fcntl--.h", so we can implement openat.
79838         * modules/openat-safer-tests: New test.
79839         * tests/test-openat-safer.c: New file.
79841         dirent-safer: new module
79842         * modules/dirent-safer: New file.
79843         * lib/dirent--.h: Likewise.
79844         * lib/dirent-safer.h: Likewise.
79845         * lib/opendir-safer.c: Likewise.
79846         * m4/dirent-safer.m4: Likewise.
79847         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
79848         * modules/dirent-safer-tests: New test.
79849         * tests/test-dirent-safer.c: New file.
79850         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
79852         fdopendir: optimize on mingw
79853         * lib/unistd.in.h (_gl_directory_name): New prototype.
79854         * lib/fchdir.c (_gl_directory_name): Implement it.
79855         (fchdir): Use it to simplify implementation.
79856         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
79857         fchdir, when available, to avoid calling [f]chdir().
79859         fdopendir: split into its own module
79860         * lib/openat.c (fdopendir): Move...
79861         * lib/fdopendir.c: ...into new file.
79862         * modules/fdopendir: New module.
79863         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
79864         * modules/openat (Depends-on): Add fdopendir.
79865         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
79866         fdopendir here.
79867         * modules/savedir (Depends-on): Only need fdopendir, not full
79868         openat.
79869         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
79870         * lib/openat.h (fdopendir): Drop prototype.
79871         * lib/dirent.in.h (fdopendir): Provide prototype.
79872         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
79873         * modules/dirent (Makefile.am): Substitute them.
79874         * MODULES.html.sh (File system functions): Mention it.
79875         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
79876         * modules/fdopendir-tests: New file.
79877         * tests/test-fdopendir.c: Likewise.
79879         fchdir: use more consistent macro convention
79880         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
79881         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
79882         REPLACE_FCHDIR, rather than relying on config.h macros.
79883         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
79884         inside a single make-time REPLACE_FCHDIR block, rather than using
79885         the config.h FCHDIR_REPLACEMENT.
79886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
79887         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
79888         Manage fstat replacement.
79889         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
79890         REPLACE_FCHDIR.
79891         * modules/sys_stat (Files): Add m4/unistd_h.m4.
79892         (Makefile.am): Substitute REPLACE_FCHDIR.
79893         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
79894         FCHDIR_REPLACEMENT.
79895         * lib/dup-safer.c (dup_safer): Likewise.
79896         * lib/dup2.c (rpl_dup2): Likewise.
79897         * lib/dup3.c (rpl_dup3): Likewise.
79898         * lib/open.c (rpl_open): Likewise.
79900         fchdir: simplify error handling, and support dup3
79901         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
79902         stdbool, malloc-posix, realloc-posix.
79903         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
79904         (ensure_dirs_slot): Return false on allocation failure.
79905         (rpl_dup2): Delete.
79906         (_gl_register_dup): New function.
79907         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
79908         (_gl_register_fd): Close fd on allocation failure.
79909         * lib/fcntl.in.h (_gl_register_fd): Update signature.
79910         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
79911         prototype.
79912         (rpl_dup2_fchdir): Delete prototype.
79913         * lib/open.c (open): Update caller.
79914         * lib/dup2.c (dup2): Track fchdir metadata.
79915         * lib/dup3.c (dup3): Likewise.
79916         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
79917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
79919 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79921         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
79922         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
79923         don't pass arguments to AC_OUTPUT.
79925 2009-09-02  Bruno Haible  <bruno@clisp.org>
79927         * modules/mkdtemp (License): Relicense under LGPLv2+.
79928         Reported by Paolo Bonzini.
79930 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79932         Replace uses of obsolete autoconf macros in Jim's modules.
79933         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
79934         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
79935         can evoke a warning from autoconf when run with -Wobsolete
79936         enabled.  They were declared obsolete for good reasons (see
79937         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
79938         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
79939         should not continue using the deprecated macros.
79940         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
79941         obsolete Autoconf macros with modern counterparts.
79942         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79943         * m4/dos.m4 (gl_AC_DOS): Likewise.
79944         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
79945         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
79946         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
79947         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
79948         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
79949         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
79950         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
79951         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
79952         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
79953         Likewise.
79954         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
79955         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79956         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
79957         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
79958         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
79959         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79961 2009-09-01  Eric Blake  <ebb9@byu.net>
79963         fchdir: fix off-by-one bug in previous patch
79964         * lib/fchdir.c (rpl_fstat): Use correct bounds.
79965         (_gl_unregister_fd): Delete useless if.
79967 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
79969         maint.mk: sort the list of syntax-check rules
79970         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
79971         easier to get a sense of progress when the rules are run sequentially
79972         and take a long time.
79974 2009-09-01  Simon Josefsson  <simon@josefsson.org>
79976         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
79977         * modules/netinet_in: Likewise.
79978         * modules/sys_file: Likewise.
79979         * modules/sys_ioctl: Likewise.
79980         * modules/sys_select: Likewise.
79981         * modules/sys_socket: Likewise.
79982         * modules/sys_stat: Likewise.
79983         * modules/sys_time: Likewise.
79984         * modules/sys_times: Likewise.
79985         * modules/sys_utsname: Likewise.
79986         * modules/sys_wait: Likewise.
79988 2009-09-01  Jim Meyering  <meyering@redhat.com>
79990         fts: help ensure that return values are not ignored
79991         * lib/fts_.h (__GNUC_PREREQ): Define.
79992         (__attribute_warn_unused_result__): Define.
79993         (fts_children, fts_close, fts_open, fts_read): Declare with
79994         __attribute_warn_unused_result__.
79996         fts: fts_close now fails also when closing a dir file descriptor fails
79997         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
79998         and propagate to caller, along with errno.
80000         announce-gen: correct formatting in --help output
80001         * build-aux/announce-gen (usage): Move the one-line description in
80002         --help output "up", to where it belongs, just after Usage:.
80004 2009-08-31  Eric Blake  <ebb9@byu.net>
80006         fchdir: port to mingw
80007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
80008         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
80009         opened, then use a substitute.
80010         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
80011         replacement.
80012         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
80013         (_gl_register_fd): No need to check stat if open already filters
80014         all directories.
80015         (fchdir): Fix error condition to match POSIX.
80016         * modules/fchdir (Depends-on): Add sys_stat.
80017         * doc/posix-functions/open.texi (open): Document the limitation.
80018         * modules/fchdir-tests: New file.
80019         * tests/test-fchdir.c: Likewise.
80021         canonicalize: allow cross-testing from cygwin to mingw
80022         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
80023         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
80024         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
80025         Likewise.
80026         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
80027         target does not support symlinks.
80028         * tests/test-canonicalize-lgpl.sh: Likewise.
80030         chown: avoid compilation warning on mingw
80031         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
80032         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
80033         mingw.
80034         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80035         * modules/chown (Depends-on): Add errno.
80037 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
80039         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
80040         command.
80042 2009-08-31  Jim Meyering  <meyering@redhat.com>
80044         canonicalize: remove useless initialization
80045         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
80046         initialization of local, "end".
80048 2009-08-30  Bruno Haible  <bruno@clisp.org>
80050         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
80051         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
80052         ENOSYS.
80054 2009-08-30  Bruno Haible  <bruno@clisp.org>
80056         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
80057         /usr/xpg4/bin/tr when it exists.
80058         * tests/test-pipe-filter-gi1.sh: Likewise.
80060 2009-08-30  Bruno Haible  <bruno@clisp.org>
80062         Work around deficient /usr/bin/id program on Solaris.
80063         * tests/test-file-has-acl.sh (ID): New variable.
80064         * tests/test-set-mode-acl.sh (ID): Likewise.
80065         * tests/test-copy-acl.sh (ID): Likewise.
80066         * tests/test-copy-file.sh (ID): Likewise.
80068 2009-08-30  Bruno Haible  <bruno@clisp.org>
80070         New module 'xstriconveh'.
80071         * lib/xstriconveh.h: New file.
80072         * lib/xstriconveh.c: New file.
80073         * modules/xstriconveh: New file.
80075 2009-08-30  Bruno Haible  <bruno@clisp.org>
80077         Make it easier to use mem_cd_iconveh.
80078         * lib/striconveh.h (iconveh_t): New type.
80079         (iconveh_open, iconveh_close): New declarations.
80080         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80081         with a single 'const iconveh_t *' argument.
80082         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
80083         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80084         with a single 'const iconveh_t *' argument.
80085         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
80086         * tests/test-striconveh.c (main): Update.
80087         * NEWS: Mention the change.
80089 2009-08-30  Bruno Haible  <bruno@clisp.org>
80091         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
80092         problem.
80094 2009-08-30  Bruno Haible  <bruno@clisp.org>
80096         Work around iconv_open problem on Solaris.
80097         * lib/iconv_open-solaris.gperf: New file.
80098         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
80099         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
80100         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
80101         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
80102         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
80103         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
80105 2009-08-29  Jim Meyering  <meyering@redhat.com>
80107         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
80108         * top/maint.mk (cvs-check): Remove target; it was just an alias
80109         to the better-named vc-diff-check.
80110         (maintainer-distcheck): Remove rule.  It was used only from
80111         the (alpha/beta/major) target, and all of its commands but one
80112         were coreutils-specific.
80113         (vc-dist): Remove rule.
80114         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
80115         Run vc-diff-check, not vc-dist.
80116         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
80118 2009-08-27  Bruno Haible  <bruno@clisp.org>
80120         * tests/test-bitrotate.c (main): Remove test that uses a shift count
80121         of 0.
80123 2009-08-27  Bruno Haible  <bruno@clisp.org>
80125         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
80126         compilers.
80127         * doc/func.texi: Document the SunPRO C bug.
80129 2009-08-27  Bruno Haible  <bruno@clisp.org>
80131         Fix link error on Solaris.
80132         * tests/test-parse-duration.c (xstrdup): Remove function.
80134 2009-08-26  Pádraig Brady  <P@draigbrady.com>
80136         ignore-value: handle pointer types, too
80137         * lib/ignore-value.h (__attribute__): Remove definition.
80138         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
80139         of a more concise and more-often effective "(void) i" statement.
80140         (ignore_ptr): New function to suppress warnings from functions that
80141         return pointers, and to make it explicit that one function doesn't
80142         handle all cases.
80144 2009-08-25  Bruno Haible  <bruno@clisp.org>
80146         dup2: work around a Linux bug.
80147         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
80148         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
80149         * doc/posix-functions/dup2.texi: Mention the Linux bug.
80150         Reported by Simon Josefsson.
80152 2009-08-25  Jim Meyering  <meyering@redhat.com>
80154         libguestfs uses gnulib
80155         * users.txt: Add libguestfs.
80157 2009-08-24  Eric Blake  <ebb9@byu.net>
80159         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
80160         * lib/pipe2.c (includes): Add binary-io.h.
80161         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
80163 2009-08-24  Bruno Haible  <bruno@clisp.org>
80165         Tolerate declared but missing accept4 syscall.
80166         * lib/accept4.c (accept4): Invoke original accept4 function first, if
80167         available.
80168         * lib/sys_socket.in.h (accept4): If the function is already present,
80169         override it.
80170         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
80171         * modules/accept4 (Makefile.am): Compile accept4.c always.
80172         Reported by Paolo Bonzini and Eric Blake.
80174 2009-08-23  Bruno Haible  <bruno@clisp.org>
80176         New module 'accept4'.
80177         * lib/sys_socket.in.h (accept4): New declaration.
80178         * lib/accept4.c: New file.
80179         * m4/accept4.m4: New file.
80180         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80181         GNULIB_ACCEPT4, HAVE_ACCEPT4.
80182         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
80183         HAVE_ACCEPT4.
80184         * modules/accept4: New file.
80185         * doc/glibc-functions/accept4.texi: Mention the new module.
80187 2009-08-24  Jim Meyering  <meyering@redhat.com>
80189         progname: also set global program_invocation_name, when possible
80190         Before this change, a libtool-enabled program that calls glibc's
80191         error function would report the program name as
80192         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
80193         * modules/progname (configure.ac): Check for a declaration of
80194         program_invocation_name.
80195         * lib/progname.c:  Include <errno.h>.
80196         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
80197         Set program_invocation_name.
80199 2009-08-23  Bruno Haible  <bruno@clisp.org>
80201         * lib/dup3.c: Include <string.h>.
80203 2009-08-23  Bruno Haible  <bruno@clisp.org>
80205         * lib/dup3.c (dup3): Test only once whether the system actually exists.
80206         * lib/pipe2.c (pipe2): Likewise.
80207         Suggested by Eric Blake.
80209 2009-08-23  Bruno Haible  <bruno@clisp.org>
80211         Tolerate declared but missing dup3 syscall.
80212         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
80213         * lib/unistd.in.h (dup3): If the function is already present,
80214         override it.
80215         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
80216         * modules/dup3 (Makefile.am): Compile dup3.c always.
80217         Reported by Paolo Bonzini.
80219 2009-08-23  Bruno Haible  <bruno@clisp.org>
80221         Tolerate declared but missing pipe2 syscall.
80222         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
80223         available.
80224         * lib/unistd.in.h (pipe2): If the function is already present,
80225         override it.
80226         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
80227         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
80228         Reported by Paolo Bonzini.
80230 2009-08-23  Bruno Haible  <bruno@clisp.org>
80232         * lib/pipe2.c (pipe2): Move #ifs inside function.
80234 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80236         quotearg: document limitations of quote_these_too
80237         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
80238         those limitations are created.
80239         * lib/quotearg.h (set_char_quoting): Document that digits and
80240         letters that are special after backslash are not permitted.
80241         (quotearg_char): Cross-reference set_char_quoting documentation.
80243 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
80245         quotearg: implement custom_quoting_style
80246         * lib/quotearg.c: (struct quoting_options): Add left_quote and
80247         right_quote fields.
80248         (set_custom_quoting): New public function.
80249         (quotearg_buffer_restyled): Add left_quote and right_quote
80250         arguments, handle them very much like locale quoting, and update
80251         all uses.
80252         (quotearg_n_custom): New public function.
80253         (quotearg_n_custom_mem): New public function.
80254         (quotearg_custom): New public function.
80255         (quotearg_custom_mem): New public function.
80256         * lib/quotearg.h: Prototype and document new public functions.
80257         (enum quoting_style): For escape_quoting_style and
80258         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
80259         ignored even though they're otherwise like c_quoting_style.
80260         Add custom_quoting_style member and document with comparison to
80261         clocale_quoting_style.
80262         * tests/test-quotearg.c (custom_quotes): New array.
80263         (custom_results): New array.
80264         (main): Extend to test custom quoting.
80266 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80268         quotearg: fix right quote escaping when it's in quote_these_too
80269         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
80270         quote, be sure to prepend only one backslash.
80271         * tests/test-quotearg.c (use_quote_double_quotes): New function.
80272         (main): Test it.
80274 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80276         quotearg-tests: test escaping of embedded locale quotes
80277         * tests/test-quotearg.c (struct result_strings): Add member for
80278         new input.
80279         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
80280         (inputs): Add new input.
80281         (results_g): Add expected results.
80282         (flag_results): Likewise.
80283         (locale_results): Likewise.
80284         (compare_strings): Check those.
80286 2009-08-23  Bruno Haible  <bruno@clisp.org>
80288         Tests for module 'dup3'.
80289         * modules/dup3-tests: New file.
80290         * tests/test-dup3.c: New file.
80292         New module 'dup3'.
80293         * lib/unistd.in.h (dup3): New declaration.
80294         * lib/dup3.c: New file.
80295         * m4/dup3.m4: New file.
80296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
80297         HAVE_DUP3.
80298         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
80299         * modules/dup3: New file.
80300         * doc/glibc-functions/dup3.texi: Mention the new module.
80302 2009-08-23  Bruno Haible  <bruno@clisp.org>
80304         Tweak the dup2 test.
80305         * tests/test-dup2.c (main): Create the test file empty. Verify that an
80306         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
80307         the test file is still empty. Fix argument order of lseek.
80309 2009-08-23  Bruno Haible  <bruno@clisp.org>
80311         Avoid test link errors when the modules getopt-gnu, gettext are used.
80312         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
80313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80315 2009-08-23  Bruno Haible  <bruno@clisp.org>
80317         Fix getdtablesize() on mingw.
80318         * lib/getdtablesize.c (getdtablesize): Implement differently.
80319         * lib/unistd.in.h (getdtablesize): Improve comment.
80321 2009-08-23  Bruno Haible  <bruno@clisp.org>
80323         New module 'mkostemp'.
80324         Based on Ulrich Drepper's 2007-08-10 change in glibc.
80325         * lib/stdlib.in.h (mksotemp): New declaration.
80326         * lib/mkostemp.c: New file, from glibc with modifications.
80327         * lib/tempname.h (GT_FILE): Remove outdated comment.
80328         (gen_tempname): Add flags argument.
80329         * lib/tempname.c (__GT_BIGFILE): Remove macro.
80330         (__GT_FILE): Map to 1.
80331         (small_open, large_open): Remove macros.
80332         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
80333         * lib/mkstemp.c (mkstemp): Update.
80334         * lib/mkdtemp.c (mkdtemp): Likewise.
80335         * m4/mkostemp.m4: New file.
80336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
80337         HAVE_MKOSTEMP.
80338         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
80339         HAVE_MKOSTEMP.
80340         * modules/mkostemp: New file, based on modules/mkstemp.
80341         * doc/glibc-functions/mkostemp.texi: Mention the new module.
80342         * NEWS: Mention the change.
80344 2009-08-23  Bruno Haible  <bruno@clisp.org>
80346         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
80347         Reported by Eric Blake.
80349 2009-08-23  Bruno Haible  <bruno@clisp.org>
80351         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
80352         Reported by Eric Blake.
80354 2009-08-23  Bruno Haible  <bruno@clisp.org>
80356         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
80357         * modules/pipe2 (Depends-on): Likewise.
80359 2009-08-23  Eric Blake  <ebb9@byu.net>
80361         fcntl-h: add O_TTY_INIT support
80362         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
80363         * tests/test-fcntl-h.c (o): Test it.
80364         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80366         fcntl-h: rename from fcntl, in preparation for fcntl(2)
80367         * modules/fcntl: Move <fcntl.h> header replacement...
80368         * modules/fcntl-h: ...to new name, so as not to collide with
80369         like-named function.
80370         * tests/test-fcntl.c: Rename...
80371         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
80372         * modules/fcntl-tests: Rename...
80373         * modules/fcntl-h-tests: ...to this.  Update test file name.
80374         * modules/chdir-long (Depends-on): Update clients.
80375         * modules/chdir-safer (Depends-on): Likewise.
80376         * modules/fcntl-safer (Depends-on): Likewise.
80377         * modules/fts (Depends-on): Likewise.
80378         * modules/mkancesdirs (Depends-on): Likewise.
80379         * modules/mkdir-p (Depends-on): Likewise.
80380         * modules/open (Depends-on): Likewise.
80381         * modules/savewd (Depends-on): Likewise.
80382         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
80383         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80385 2009-08-22  Bruno Haible  <bruno@clisp.org>
80387         * modules/binary-io (License): Relicense under LGPL.
80388         * modules/pipe2 (License): Likewise.
80390 2009-08-22  Bruno Haible  <bruno@clisp.org>
80392         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
80393         return value.
80394         * lib/pipe-filter-gi.c (filter_init): Likewise.
80395         Reported by Eric Blake.
80397 2009-08-22  Bruno Haible  <bruno@clisp.org>
80399         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
80400         * modules/pipe (Depends-on): Add pipe2.
80402 2009-08-22  Bruno Haible  <bruno@clisp.org>
80404         Tests for module 'pipe2'.
80405         * modules/pipe2-tests: New file.
80406         * tests/test-pipe2.c: New file.
80408         New module 'pipe2'.
80409         * lib/unistd.in.h (pipe2): New declaration.
80410         * lib/pipe2.c: New file.
80411         * m4/pipe2.m4: New file.
80412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
80413         HAVE_PIPE2.
80414         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
80415         * modules/pipe2: New file.
80416         * doc/glibc-functions/pipe2.texi: Mention the new module.
80418 2009-08-22  Bruno Haible  <bruno@clisp.org>
80420         Reference some new glibc functions.
80421         * doc/glibc-functions/accept4.texi: New file.
80422         * doc/glibc-functions/dup3.texi: New file.
80423         * doc/glibc-functions/mkostemp.texi: New file.
80424         * doc/glibc-functions/pipe2.texi: New file.
80425         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
80426         (Glibc sys/socket.h): Refer to accept4.
80427         (Glibc unistd.h): Refer to dup3, pipe2.
80428         Reported by Eric Blake.
80430 2009-08-22  Jim Meyering  <meyering@redhat.com>
80431             Bruno Haible  <bruno@clisp.org>
80433         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
80434         This makes it so packages using automake-1.11's silent-rules option
80435         can print e.g., a single "GEN    configmake.h" line, rather than
80436         the 30+ statements that perform the job.  If you want to see the
80437         actual commands, you can still run "make V=1".
80438         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
80439         so that make output is abbreviated when those variables are defined
80440         appropriately.
80441         * modules/argz: Likewise.
80442         * modules/arpa_inet: Likewise.
80443         * modules/byteswap: Likewise.
80444         * modules/configmake: Likewise.
80445         * modules/dirent: Likewise.
80446         * modules/errno: Likewise.
80447         * modules/fcntl: Likewise.
80448         * modules/float: Likewise.
80449         * modules/fnmatch: Likewise.
80450         * modules/getopt-posix: Likewise.
80451         * modules/glob: Likewise.
80452         * modules/iconv_open: Likewise.
80453         * modules/inttypes: Likewise.
80454         * modules/localcharset: Likewise.
80455         * modules/locale: Likewise.
80456         * modules/math: Likewise.
80457         * modules/netdb: Likewise.
80458         * modules/netinet_in: Likewise.
80459         * modules/poll: Likewise.
80460         * modules/posix_spawnp-tests: Likewise.
80461         * modules/sched: Likewise.
80462         * modules/search: Likewise.
80463         * modules/selinux-h: Likewise.
80464         * modules/signal: Likewise.
80465         * modules/spawn: Likewise.
80466         * modules/stdarg: Likewise.
80467         * modules/stdbool: Likewise.
80468         * modules/stddef: Likewise.
80469         * modules/stdint: Likewise.
80470         * modules/stdio: Likewise.
80471         * modules/stdlib: Likewise.
80472         * modules/string: Likewise.
80473         * modules/strings: Likewise.
80474         * modules/sys_file: Likewise.
80475         * modules/sys_ioctl: Likewise.
80476         * modules/sys_select: Likewise.
80477         * modules/sys_socket: Likewise.
80478         * modules/sys_stat: Likewise.
80479         * modules/sys_time: Likewise.
80480         * modules/sys_times: Likewise.
80481         * modules/sys_utsname: Likewise.
80482         * modules/sys_wait: Likewise.
80483         * modules/sysexits: Likewise.
80484         * modules/time: Likewise.
80485         * modules/unistd: Likewise.
80486         * modules/wchar: Likewise.
80487         * modules/wctype: Likewise.
80489 2009-08-22  Jim Meyering  <meyering@redhat.com>
80491         announce-gen: detect write failure
80492         * build-aux/announce-gen: Add Coda at end.
80493         Remove equivalent-but-more-verbose block at top.
80495 2009-08-19  Akim Demaille  <demaille@gostai.com>
80497         bootstrap: --help to stdout.
80498         * bootstrap (usage): Don't send --help to stderr.
80499         Use a here doc instead of a long string.
80501 2009-08-21  Eric Blake  <ebb9@byu.net>
80503         test-popen-safer: split from test-popen
80504         * tests/test-popen.c (main): Move...
80505         * tests/test-popen.h: ...into new file.
80506         * tests/test-popen-safer2.c: New file.
80507         * modules/popen-tests (Files): Add test-popen.h.
80508         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
80509         Suggested by Bruno Haible.
80511         test-fcntl-safer: split from test-open
80512         * tests/test-open.c (main): Move...
80513         * tests/test-open.h: ...into new file.
80514         * tests/test-fcntl-safer.c: New file.
80515         * modules/open-tests (Files): Add test-open.h.
80516         * modules/fcntl-safer-tests: New file.
80517         Suggested by Bruno Haible.
80519         test-fopen-safer: split from test-fopen
80520         * tests/test-fopen.c (main): Move...
80521         * tests/test-fopen.h: ...into new file.
80522         * tests/test-fopen-safer.c: New file.
80523         * modules/fopen-tests (Files): Add test-fopen.h.
80524         * modules/fopen-safer-tests: New file.
80525         Suggested by Bruno Haible.
80527 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80529         popen-safer: test O_CLOEXEC at run-time.
80530         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
80532 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80534         fcntl: move more flags to the header
80535         * lib/cloexec.c: Do not define FD_CLOEXEC here.
80536         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
80537         * lib/fcntl.in.h: Do both things here.
80539 2009-08-21  Jim Meyering  <meyering@redhat.com>
80541         consistently remove $@-t before redirecting to it
80542         * modules/argz: Remove $@-t and $@ before redirecting to the former.
80543         * modules/alloca-opt: Likewise.
80544         * modules/byteswap: Likewise.
80545         * modules/fnmatch: Likewise.
80546         * modules/getopt-posix: Likewise.
80547         * modules/glob: Likewise.
80548         * modules/poll: Likewise.
80549         * modules/posix_spawnp-tests: Likewise.
80550         * modules/sys_socket: Likewise.
80551         * modules/sysexits: Likewise.
80553 2009-08-21  Eric Blake  <ebb9@byu.net>
80555         popen: simplify access to original popen
80556         * lib/popen.c (rpl_popen): No need to worry about popen being a
80557         macro.
80558         Reported by Bruno Haible.
80560 2009-08-20  Eric Blake  <ebb9@byu.net>
80562         build: avoid some compiler warnings
80563         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
80564         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
80565         type.
80566         (new_exclude_segment, excluded_file_pattern_p)
80567         (excluded_file_name_p): Reduce scope.
80568         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
80569         old-style declaration.
80571 2009-08-20  Simon Josefsson  <simon@josefsson.org>
80573         * tests/test-exclude1.sh: Handle Windows EOL.
80574         * tests/test-exclude2.sh: Likewise.
80575         * tests/test-exclude3.sh: Likewise.
80576         * tests/test-exclude4.sh: Likewise.
80577         * tests/test-exclude5.sh: Likewise.
80578         * tests/test-exclude6.sh: Likewise.
80579         * tests/test-exclude7.sh: Likewise.
80581 2009-08-19  Akim Demaille  <demaille@gostai.com>
80583         bootstrap: find sha1sum when named gsha1sum.
80584         * bootstrap (find_tool): New.
80585         ($SHA1SUM): New.
80586         Use it.
80588 2009-08-20  Jim Meyering  <meyering@redhat.com>
80590         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
80591         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
80592         expression that converts "." in a file name to "\." in the resulting
80593         regexp.  Start with a dummy statement, so that prior shell variable
80594         definitions are expanded portably.  Reported by Simon Josefsson.
80596 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
80598         Fix polling for writeability of a screen buffer.
80599         * lib/poll.c: Distinguish input and screen buffers for the
80600         Win32 implementation.
80601         * lib/select.c: Likewise.
80603 2009-08-19  Eric Blake  <ebb9@byu.net>
80605         popen-safer: prevent popen from clobbering std descriptors
80606         * modules/popen-safer: New file.
80607         * lib/popen-safer.c: Likewise.
80608         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
80609         * lib/stdio--.h (popen): Provide override.
80610         * lib/stdio-safer.h (popen_safer): Provide declaration.
80611         * tests/test-popen.c (includes): Partially test this.
80612         * modules/popen-safer-tests: New file, for more tests.
80613         * tests/test-popen-safer.c: Likewise.
80614         * MODULES.html.sh (file stream based Input/Output): Mention it.
80616         tests: test some of the *-safer modules
80617         * modules/fopen-safer (Depends-on): Add fopen.
80618         * modules/fcntl-safer (Depends-on): Add fcntl.
80619         * modules/stdlib-safer (Depends-on): Add stdlib.
80620         (configure.ac): Set indicator.
80621         * modules/unistd-safer (configure.ac): Likewise.
80622         * modules/tmpfile-safer (configure.ac): Likewise.
80623         (Depends-on): Add tmpfile.
80624         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
80625         active.
80626         * tests/test-fopen.c (includes): Test safer versions when they are
80627         in use.
80628         * tests/test-open.c (includes): Likewise.
80630         popen: fix cygwin 1.5 bug when stdin closed
80631         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
80632         * modules/popen: New file.
80633         * modules/popen-tests: Likewise.
80634         * tests/test-popen.c: Likewise.
80635         * m4/popen.m4: Likewise.
80636         * lib/popen.c: Likewise.
80637         * lib/stdio.in.h (popen): New declaration.
80638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
80639         * modules/stdio (Makefile.am): Likewise.
80640         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
80642 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
80644         maint.mk: give full control over update-copyright exclusions
80645         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
80646         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
80647         (update-copyright): Don't force inclusion of top-level
80648         ChangeLog.  Don't force exclusion of all COPYING files, but make
80649         them the default exclusion instead.
80651 2009-08-16  Bruno Haible  <bruno@clisp.org>
80653         Fix test failures on Solaris 10.
80654         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
80655         tests when Solaris iconv() is used.
80656         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
80657         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
80658         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
80659         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
80660         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
80662 2009-08-16  Bruno Haible  <bruno@clisp.org>
80664         Fix test failures on Solaris 10.
80665         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
80666         'tr' program and pass it as first argument.
80667         * tests/test-pipe-filter-gi1.sh: Likewise.
80668         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
80669         program as first argument.
80670         * tests/test-pipe-filter-gi1.c (main): Likewise.
80672 2009-08-16  Eric Blake  <ebb9@byu.net>
80674         fpurge: fix previous commits
80675         * modules/fpurge (Makefile.am): Make replacement conditional,
80676         partially reverting 2007-04-29 change; missed in previous
80677         attempt.
80678         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
80679         is missing.
80681 2009-08-16  Bruno Haible  <bruno@clisp.org>
80683         Clarify fpurge's effect on the file position.
80684         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
80685         * tests/test-fpurge.c (main): Make a second pass for checking the file
80686         position.
80688 2009-08-16  Bruno Haible  <bruno@clisp.org>
80690         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
80691         declaration of fpurge is missing.
80692         * tests/test-fpurge.c (main): Check that the file has not more contents
80693         than expected. Close the file before removing it.
80695 2009-08-15  Eric Blake  <ebb9@byu.net>
80697         fpurge: don't wrap working cygwin implementation
80698         * lib/fpurge.c (fpurge): Fix comment typo.
80699         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
80700         1.7 to avoid replacement.
80701         * tests/test-fpurge.c (main): Enhance test.
80703 2009-08-15  Eric Blake  <ebb9@byu.net>
80704         and Jim Meyering  <meyering@redhat.com>
80706         test-update-copyright: skip if perl is insufficient
80707         * tests/test-update-copyright.sh: Failure to run maintainer tool
80708         should not cause testsuite failure on cygwin 1.5.
80710 2009-08-14  Eric Blake  <ebb9@byu.net>
80712         doc: mention more functions added in cygwin 1.7.0
80713         * doc/posix-headers/limits.texi (limits.h): Update for recent
80714         cygwin additions.
80715         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
80716         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
80717         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
80718         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
80719         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
80721 2009-08-14  Eric Blake  <ebb9@byu.net>
80723         maint.mk: simplify update-copyright rule
80724         * top/maint.mk (update-copyright-local): Delete, and document how
80725         to do it in cfg.mk instead.
80726         (update-copyright-exclude-regexp): Delete, and document how to do
80727         it in .x-update-copyright instead.
80728         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
80729         exclude ChangeLog.
80731 2009-08-14  Bruno Haible  <bruno@clisp.org>
80733         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
80735 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80737         maint.mk: support update-copyright-env
80738         * top/maint.mk (update-copyright-env): Define place-holder.
80739         (update-copyright): Expand $(update-copyright-env) before
80740         invoking update-copyright.
80742 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80744         update-copyright: implement forced reformatting
80745         * build-aux/update-copyright: Implement and document
80746         UPDATE_COPYRIGHT_FORCE.
80747         * tests/test-update-copyright.sh: Test it.
80749 2009-08-14  Eric Blake  <ebb9@byu.net>
80750         and Bruno Haible  <bruno@clisp.org>
80752         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
80753         * tests/test-locale.c: Revert previous patch related to NULL.
80754         * tests/test-stdio.c: Likewise.
80755         * tests/test-stdlib.c: Likewise.
80756         * tests/test-string.c: Likewise.
80757         * tests/test-unistd.c: Likewise.
80758         * modules/time-tests (Depends-on): Add verify.
80759         * modules/wchar-tests (Depends-on): Likewise.
80760         * tests/test-time.c: Test for NULL compliance.
80761         * tests/test-wchar.c: Likewise.
80762         * modules/locale (Depends-on): Add stddef.
80763         * modules/stdio (Depends-on): Likewise.
80764         * modules/stdlib (Depends-on): Likewise.
80765         * modules/string (Depends-on): Likewise.
80766         * modules/time (Depends-on): Likewise.
80767         * modules/unistd (Depends-on): Likewise.
80768         * modules/wchar (Depends-on): Likewise.
80769         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
80770         * lib/stdlib.in.h (includes): Likewise.
80771         * lib/string.in.h (includes): Likewise.
80772         * lib/time.in.h (includes): Likewise.
80773         * lib/unistd.in.h (includes): Likewise.
80774         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
80775         replaced.
80776         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
80777         * m4/stddef_h.m4: New file.
80778         * modules/stddef: Likewise.
80779         * lib/stddef.in.h: Likewise.
80780         * modules/stddef-tests: Likewise.
80781         * tests/test-stddef.c: Likewise.
80782         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
80783         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
80784         * doc/posix-headers/locale.texi (locale.h): Likewise.
80785         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
80786         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
80787         * doc/posix-headers/string.texi (string.h): Likewise.
80788         * doc/posix-headers/time.texi (time.h): Likewise.
80789         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
80790         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
80792 2009-08-14  Eric Blake  <ebb9@byu.net>
80794         doc: improve git diff of texinfo files
80795         * .gitattributes: Add rule for *.texi files, with hint on how to
80796         use it.
80797         Copied from m4, and based on a report by Bruno Haible.
80799 2009-08-14  Bruno Haible  <bruno@clisp.org>
80801         Disable multithread support by default on Cygwin 1.5.x for real.
80802         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
80804 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80806         update-copyright: much ado about intervals
80807         * build-aux/update-copyright: Implement and document
80808         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
80809         of copyright year intervals.
80810         Also, document UPDATE_COPYRIGHT_YEAR.
80811         * tests/test-update-copyright.sh: Test it.
80813         update-copyright: convert 2-digit to 4-digit years
80814         * build-aux/update-copyright: Implement and document.
80815         * tests/test-update-copyright.sh: Update.
80817 2009-08-14  Jim Meyering  <meyering@redhat.com>
80819         test-exclude: avoid coreutils "make check" failure
80820         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
80821         just as in test-argmatch.c.
80823 2009-08-13  Eric Blake  <ebb9@byu.net>
80825         test-dup2: fix bad assumption
80826         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
80827         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
80829         test-version-etc: fix CRLF portability issue
80830         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
80831         recognize \r.
80832         * tests/test-argp-version-etc-1.sh: Likewise.
80834         getopt: update client modules
80835         * modules/argp (Depends-on): Use getopt-gnu.
80836         * modules/git-merge-changelog (Depends-on): Likewise.
80837         * modules/long-options (Depends-on): Likewise.
80838         * modules/xstrtol (Depends-on): Likewise.
80840 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80842         * tests/test-version-etc.sh: Don't fail on different
80843         project/version.  Don't fail on CRLF differences.  Rewrite to use
80844         multiple -e instead of multiple sed forks, suggested by Eric Blake
80845         <ebb9@byu.net>.
80846         * tests/test-argp-version-etc-1.sh: Likewise.
80848 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80850         * tests/test-version-etc.sh: Don't fail on different
80851         project/version.
80853 2009-08-12  Bruno Haible  <bruno@clisp.org>
80855         Tests for modules 'getopt-posix', 'getopt-gnu'.
80856         * modules/getopt-posix-tests: New file.
80857         * tests/test-getopt.c: New file.
80858         * tests/test-getopt.h: New file.
80859         * tests/test-getopt_long.h: New file.
80861         New modules 'getopt-posix', 'getopt-gnu'.
80862         * modules/getopt-gnu: New file, renamed from modules/getopt.
80863         * modules/getopt-posix: New file.
80864         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
80865         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
80866         (gl_GETOPT): Remove macro.
80867         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
80868         Disable the test against BSD systems that declare optreset. Test
80869         against mingw bug. Test against lack of support of optional arguments
80870         on many platforms.
80871         * doc/glibc-headers/getopt.texi: Update module name and list of
80872         relevant platforms.
80873         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
80874         'getopt-gnu' and more portability problems.
80875         * NEWS: Mention the changes.
80877 2009-08-12  Bruno Haible  <bruno@clisp.org>
80879         Ensure that optarg etc. get declared by <unistd.h>.
80880         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
80881         AC_USE_SYSTEM_EXTENSIONS.
80882         * modules/getopt (Depends-on): Add 'extensions'.
80884 2009-08-12  Bruno Haible  <bruno@clisp.org>
80886         Avoid test link errors.
80887         * modules/pipe-filter-ii-tests (Makefile.am): Define
80888         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
80889         * modules/pipe-filter-gi-tests (Makefile.am): Define
80890         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
80891         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80893 2009-08-12  Bruno Haible  <bruno@clisp.org>
80895         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
80896         gl_GETOPT_SUBSTITUTE before.
80897         (gl_GETOPT): Use it.
80898         * m4/argp.m4 (gl_ARGP): Update.
80899         Reported by Sergey Poznyakoff.
80901         * m4/getopt.m4: Reorder macros.
80902         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
80903         (gl_GETOPT_SUBSTITUTE): Remove macro.
80905 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80907         Minor improvement in gitlog-to-changelog
80909         * build-aux/gitlog-to-changelog: New option `--format' makes
80910         output format string configurable.
80912 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80914         Optimize exclude: use hash tables for non-wildcard patterns.
80916         * lib/exclude.c: Include hash.h and mbuiter.h
80917         (struct exclude_pattern, exclude_segment): New data types.
80918         (struct exclude): Rewrite.
80919         (fnmatch_pattern_has_wildcards): New function.
80920         (new_exclude_segment, free_exclude_segment): New functions.
80921         (excluded_file_pattern_p, excluded_file_name_p): New functions.
80922         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
80923         * lib/exclude.h (is_fnmatch_pattern): New prototype.
80924         * modules/exclude: Depend on hash and mbuiter.
80926         * modules/exclude-tests: New file.
80927         * tests/test-exclude.c: New file.
80928         * tests/test-exclude1.sh: New file.
80929         * tests/test-exclude2.sh: New file.
80930         * tests/test-exclude3.sh: New file.
80931         * tests/test-exclude4.sh: New file.
80932         * tests/test-exclude5.sh: New file.
80933         * tests/test-exclude6.sh: New file.
80934         * tests/test-exclude7.sh: New file.
80936 2009-08-12  Bruno Haible  <bruno@clisp.org>
80938         Ensure that getopt() gets declared by <unistd.h>.
80939         * lib/unistd.in.h: Conditionally include getopt.h.
80940         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
80941         Set GNULIB_UNISTD_H_GETOPT.
80942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80943         GNULIB_UNISTD_H_GETOPT.
80944         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
80946 2009-08-12  Bruno Haible  <bruno@clisp.org>
80948         Clarify logic.
80949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
80950         gl_replace_getopt instead of GETOPT_H.
80952 2009-08-12  Bruno Haible  <bruno@clisp.org>
80954         * m4/getopt.m4: Add comments.
80956 2009-08-12  Bruno Haible  <bruno@clisp.org>
80958         Disable multithread support by default on Cygwin 1.5.x.
80959         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
80960         set gl_use_threads=no if not specified otherwise.
80962 2009-08-11  Bruno Haible  <bruno@clisp.org>
80964         Avoid compilation error on NetBSD 5.0.
80965         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
80966         * tests/test-stdio.c: Likewise.
80967         * tests/test-stdlib.c: Likewise.
80968         * tests/test-string.c: Likewise.
80969         * tests/test-unistd.c: Likewise.
80970         Reported by Greg Troxel <gdt@ir.bbn.com>
80971         at <https://savannah.gnu.org/support/?106973>.
80973 2009-08-11  Bruno Haible  <bruno@clisp.org>
80975         * modules/dup2-tests (Depends-on): Remove close.
80977         Undo 2009-07-19 commit.
80978         * modules/acl-tests (Depends-on): Remove close.
80979         * modules/binary-io-tests (Depends-on): Likewise.
80980         * modules/closein-tests (Depends-on): Likewise.
80981         * modules/flock-tests (Depends-on): Likewise.
80982         * modules/fsync-tests (Depends-on): Likewise.
80983         * modules/lseek-tests (Depends-on): Likewise.
80984         * modules/pipe-tests (Depends-on): Likewise.
80985         * modules/posix_spawn-tests (Depends-on): Likewise.
80986         * modules/posix_spawnp-tests (Depends-on): Likewise.
80987         * modules/stat-time-tests (Depends-on): Likewise.
80988         * modules/yesno-tests (Depends-on): Likewise.
80990 2009-08-10  Bruno Haible  <bruno@clisp.org>
80992         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
80994 2009-08-10  Bruno Haible  <bruno@clisp.org>
80996         Fix a gcc warning.
80997         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
80999 2009-08-10  Bruno Haible  <bruno@clisp.org>
81001         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
81002         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
81003         not only the first time.
81004         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
81005         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
81006         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
81007         is 1, not only the first time.
81009 2009-08-10  Bruno Haible  <bruno@clisp.org>
81011         Make it possible to use module 'gethostname' without module 'close'.
81012         * lib/unistd.in.h (close): Evoke a link error only if
81013         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81015         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81016         * modules/unistd (Makefile.am): Substitute
81017         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81018         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
81019         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81020         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
81021         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81022         * modules/sys_ioctl (Makefile.am): Substitute
81023         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81024         * modules/socket (configure.ac): On native Windows, set
81025         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
81026         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81027         Reported by Sam Steingold <sds@gnu.org>.
81029 2009-08-10  Bruno Haible  <bruno@clisp.org>
81031         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
81032         * modules/ioctl (configure.ac): Likewise.
81034 2009-08-10  Bruno Haible  <bruno@clisp.org>
81036         Avoid collision between gnulib wrapper and libintl wrapper.
81037         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
81038         already defined in intl/printf.c.
81039         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
81040         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
81042 2009-08-09  Bruno Haible  <bruno@clisp.org>
81044         Make <sys/select.h> really self-contained, also on Solaris 10.
81045         * lib/sys_select.in.h: Include <string.h>.
81046         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
81047         Solaris 10 problem.
81048         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
81049         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
81050         Reported by Jim Meyering.
81052 2009-08-09  Bruno Haible  <bruno@clisp.org>
81054         Avoid warnings from 'aclocal' that are due to a use of macro name
81055         AM_XGETTEXT_OPTION that is not defined in automake.
81056         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
81057         automake.
81058         * modules/error (configure.ac): Likewise.
81059         * modules/propername (configure.ac): Likewise.
81060         * modules/vasprintf (configure.ac): Likewise.
81061         * modules/verror (configure.ac): Likewise.
81062         * modules/xprintf (configure.ac): Likewise.
81063         * modules/xvasprintf (configure.ac): Likewise.
81065 2009-08-08  Bruno Haible  <bruno@clisp.org>
81067         Avoid compilation error in C++ mode.
81068         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
81069         Reported by Sam Steingold <sds@gnu.org>.
81071 2009-08-08  Bruno Haible  <bruno@clisp.org>
81073         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
81074         for the various Unix platforms.
81075         * doc/posix-headers/limits.texi: Update platforms list regarding
81076         HOST_NAME_MAX.
81077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81079 2009-08-07  Jim Meyering  <meyering@redhat.com>
81081         selinux-at: fix typo in a comment
81082         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
81083         Spotted by Paolo Bonzini.
81085         selinux-at: remove redundant m4 code, add documentation
81086         * modules/selinux-at (configure.ac): Remove redundant code.
81087         LIB_SELINUX is already set via the dependent module, selinux-h.
81088         (Include): Add quotes around selinux-at.h.
81089         * lib/selinux-at.h: Add documentation.
81090         Reported by Bruno Haible in
81091         http://marc.info/?l=gnulib-bug&m=124958988300749
81093 2009-08-07  Bruno Haible  <bruno@clisp.org>
81095         Avoid link error on MacOS X 10.3 and 10.4.
81096         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
81097         on non-ELF systems.
81098         * lib/argp-pv.c (argp_program_version): Likewise.
81099         Reported by Simon Josefsson.
81101 2009-08-07  Simon Josefsson  <simon@josefsson.org>
81103         * tests/test-version-etc.sh: Use $EXEEXT.
81105 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
81107         update-copyright: update documentation to point to maint.mk
81108         * build-aux/update-copyright: Here.
81110 2009-08-06  Jim Meyering  <meyering@redhat.com>
81112         maint.mk: support update-copyright-local
81113         * top/maint.mk (update-copyright-local): Define place-holder.
81114         (update-copyright): Depend on $(update-copyright-local).
81116 2009-08-06  Jim Meyering  <meyering@redhat.com>
81118         selinux-at: new module
81119         Initially written for coreutils, this module will soon be
81120         used by findutils, too.
81121         * MODULES.html.sh [Misc]: Add selinux-at.
81122         * lib/selinux-at.h: New file, from coreutils.
81123         * lib/selinux-at.c: Likewise.
81124         * modules/selinux-at: Likewise.
81125         (License): Change from LGPL to GPL, since it depends
81126         on the GPL'd openat module.
81128         doc: update README
81129         * README: Remove references to cogito.
81130         Remove cvs-repo-updating instructions from 2007.
81131         Don't imply that CVS is better if you have limited disk space.
81133 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81135         update-copyright: support C-style comments
81136         * build-aux/update-copyright: Implement and document.
81137         * tests/test-update-copyright.sh: Test.
81139 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81141         update-copyright: support omitted "(C)"
81142         * build-aux/update-copyright: Implement and document.  Also,
81143         allow variable whitespace before "(C)".
81144         * tests/test-update-copyright.sh: Test.
81146 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81148         update-copyright: don't trip on non-FSF copyright statements
81149         * build-aux/update-copyright: Fix so that the first correctly
81150         formatted FSF copyright statement is recognized no matter what
81151         appears before it.  Update documentation.
81152         * tests/test-update-copyright.sh: Test that.
81154 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81156         update-copyright: clean up code a little
81157         * build-aux/update-copyright: Append "_re" to the name of any
81158         variable holding a regular expression.
81159         Replace "old" and "new" with "stmt" in variable names.
81160         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
81161         handled correctly.
81162         Format code more consistently.
81164 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81166         update-copyright-tests: improve portability
81167         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
81168         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
81170 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81172         update-copyright: support @copyright{} and &copy;
81173         * build-aux/update-copyright: Implement and document.
81174         * tests/test-update-copyright.sh: Test.
81176 2009-08-04  Jim Meyering  <meyering@redhat.com>
81178         update-copyright-tests: correctly test EOL=\r\n handling
81179         * tests/test-update-copyright.sh: Put \r at the end of some lines
81180         for the dos-eol tests.  Based on a patch by Joel E. Denny.
81182         maint.mk: make update-copyright exclusion list more configurable
81183         * top/maint.mk (update-copyright): Default to excluding COPYING,
81184         but allow an override, in case someone does want to update that file.
81186         maint.mk: don't update copyright date in COPYING
81187         * top/maint.mk (update-copyright): Exclude COPYING.
81189         maint.mk: add a copyright-updating rule
81190         * top/maint.mk (update-copyright): New rule.
81191         Derived from coreutils/Makefile.am.
81193         update-copyright: rename some variables
81194         * build-aux/update-copyright: Rename a few variables for clarity.
81195         Tweak syntax.  List Joel E. Denny as coauthor.
81197 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81199         update-copyright: fix bug for 2-digit last year and add tests
81200         * build-aux/update-copyright: Fix bug.
81201         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
81202         specified.
81203         * modules/update-copyright-tests: New
81204         * tests/test-update-copyright.sh: New.
81206 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81208         update-copyright: handle leading tabs in line prefix
81209         * build-aux/update-copyright: Count leading tabs as 8 spaces
81210         when computing margin.  This helps with the formatting of
81211         ChangeLogs, for example.
81212         Fix documentation a little.
81214 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81216         update-copyright: support EOL=\r\n
81217         * build-aux/update-copyright: Implement that.
81219 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81221         update-copyright: automatically format copyright statements
81222         * build-aux/update-copyright: Implement that.
81223         Also, be a little more predictable and safer by always failing
81224         when the full copyright format is not perfectly recognized as an
81225         unbroken whole.  Discussed at
81226         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
81227         Rewrite documentation.
81229 2009-08-03  Bruno Haible  <bruno@clisp.org>
81231         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
81233 2009-08-02  Bruno Haible  <bruno@clisp.org>
81235         Tests for module 'uname'.
81236         * modules/uname-tests: New file.
81237         * tests/test-uname.c: New file.
81239         New module 'uname'.
81240         * lib/uname.c: New file.
81241         * m4/uname.m4: New file.
81242         * modules/uname: New file.
81243         * doc/posix-functions/uname.texi: Mention the new module.
81245 2009-08-02  Bruno Haible  <bruno@clisp.org>
81247         Tests for module 'sys_utsname'.
81248         * modules/sys_utsname-tests: New file.
81249         * tests/test-sys_utsname.c: New file.
81251         New module 'sys_utsname'.
81252         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
81253         * m4/sys_utsname_h.m4: New file.
81254         * modules/sys_utsname: New file.
81255         * doc/posix-headers/sys_utsname.texi: Mention the new module.
81257 2009-08-02  Bruno Haible  <bruno@clisp.org>
81259         Implicitly initialize the sockets library.
81260         * lib/gethostname.c: Include sockets.h.
81261         (rpl_gethostname): Invoke gl_sockets_startup.
81262         * lib/socket.c: Include sockets.h.
81263         (rpl_socket): Invoke gl_sockets_startup.
81264         * modules/gethostname (Depends-on): Add sockets.
81265         * modules/socket (Depends-on): Likewise.
81266         * tests/test-poll.c: Don't include sockets.h.
81267         (main): Don't invoke gl_sockets_startup.
81268         * tests/test-select.c: Don't include sockets.h.
81269         (main): Don't invoke gl_sockets_startup.
81271 2009-08-02  Bruno Haible  <bruno@clisp.org>
81273         Allow multiple calls to gl_sockets_startup.
81274         * lib/sockets.c (initialized_sockets_version): New variable.
81275         (gl_sockets_startup): Do nothing if already called for this or a higher
81276         version.
81277         (gl_sockets_cleanup): Reset initialized_sockets_version.
81279 2009-08-03  Simon Josefsson  <simon@josefsson.org>
81281         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
81282         different project/version.
81284 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
81285             Bruno Haible  <bruno@clisp.org>
81287         Tests for module 'pipe-filter-gi'.
81288         * modules/pipe-filter-gi-tests: New file.
81289         * tests/test-pipe-filter-gi1.sh: New file.
81290         * tests/test-pipe-filter-gi1.c: New file.
81291         * tests/test-pipe-filter-gi2.sh: New file.
81292         * tests/test-pipe-filter-gi2-main.c: New file.
81293         * tests/test-pipe-filter-gi2-child.c: New file.
81295         New module 'pipe-filter-gi'.
81296         * lib/pipe-filter-gi.c: New file.
81297         * modules/pipe-filter-gi: New file.
81299 2009-08-02  Bruno Haible  <bruno@clisp.org>
81300             Paolo Bonzini  <bonzini@gnu.org>
81302         Tests for module 'pipe-filter-ii'.
81303         * modules/pipe-filter-ii-tests: New file.
81304         * tests/test-pipe-filter-ii1.sh: New file.
81305         * tests/test-pipe-filter-ii1.c: New file.
81306         * tests/test-pipe-filter-ii2.sh: New file.
81307         * tests/test-pipe-filter-ii2-main.c: New file.
81308         * tests/test-pipe-filter-ii2-child.c: New file.
81310         New module 'pipe-filter-ii'.
81311         * lib/pipe-filter.h: New file.
81312         * lib/pipe-filter-ii.c: New file.
81313         * lib/pipe-filter-aux.h: New file.
81314         * modules/pipe-filter-ii: New file.
81316 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81318         * lib/gc-libgcrypt.c: Change copyright to FSF.
81319         * lib/gc-gnulib.c: Likewise.
81321 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
81323         * lib/gethostname.c: Include limits.h.
81325 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81326             Bruno Haible  <bruno@clisp.org>
81328         Ensure HOST_NAME_MAX as part of the gethostname module.
81329         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
81330         define also HOST_NAME_MAX.
81331         * tests/test-gethostname.c: Include <limits.h>.
81332         (main): Check also HOST_NAME_MAX.
81333         * doc/posix-headers/limits.texi: Document the mingw problem.
81335 2009-08-02  Bruno Haible  <bruno@clisp.org>
81337         * lib/gethostname.c (gethostname): Fix handling of large len argument.
81338         Add comments.
81340 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81342         * lib/gethostname.c: Add Windows wrapper.
81343         * m4/gethostname.m4: Look for gethostname in -lws2_32.
81344         * modules/gethostname: Depend on sys_socket & errno, for also
81345         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
81346         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
81348 2009-07-31  Jim Meyering  <meyering@redhat.com>
81350         getloadavg: fix symbol name in comment
81351         * lib/getloadavg.c: Correct a typo I introduced when adding
81352         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
81353         Matt Kraai spotted the problem.
81355 2009-07-29  Matt Kraai  <mkraai@beckman.com>
81357         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
81358         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
81359         code also if ! defined N_NAME_POINTER.
81360         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
81361         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
81362         but the n_name member is a 12-byte array.
81364 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
81366         update-copyright: generalize comment handling
81367         * build-aux/update-copyright: Handle copyright statements
81368         within more comment styles.
81369         Document usage.
81370         Report any file with an external copyright holder or parse failure.
81372 2009-07-29  Jim Meyering  <meyering@redhat.com>
81374         mktime: correct setting of REPLACE_MKTIME
81375         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
81377         update-copyright: new module
81378         * modules/update-copyright: New file.
81379         * build-aux/update-copyright: New file.
81380         * MODULES.html.sh (maint+release support): Add update-copyright.
81382 2009-07-27  Bruno Haible  <bruno@clisp.org>
81384         Fix compilation error when <ctime> is used and mktime is replaced.
81385         * lib/time.in.h (mktime): New declaration.
81386         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
81387         REPLACE_MKTIME instead of defining mktime in config.h.
81388         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
81389         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
81390         Reported by Ross McFarland <rwmcfa1@neces.com>.
81392 2009-07-27  Bruno Haible  <bruno@clisp.org>
81394         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
81395         Reported by Matt Kraai <mkraai@beckman.com>.
81397 2009-07-25  Jim Meyering  <meyering@redhat.com>
81399         maint.mk: avoid warnings about missing files
81400         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
81401         diagnostic when .prev-version does not exist.
81402         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
81403         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
81404         nonexistent cfg.mk.
81405         Suggestions from Simon Josefsson.
81407 2009-07-25  Bruno Haible  <bruno@clisp.org>
81409         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
81410         defined as macros. Needed on QNX 6.4.1.
81411         Reported by Matt Kraai <mkraai@beckman.com>.
81413 2009-07-23  Jim Meyering  <meyering@redhat.com>
81415         maint.mk: invoke "make dist" with a working value of XZ_OPT
81416         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
81418 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
81420         Make fseeko.c compile on QNX.
81421         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
81423 2009-07-22  Peter Simons  <simons@cryp.to>
81425         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
81426         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
81427         * lib/md4.h: Likewise.
81428         * lib/md5.h: Likewise.
81429         * lib/sha1.h: Likewise.
81430         * lib/sha256.h: Likewise.
81431         * lib/sha512.h: Likewise.
81433         tests-sha1: don't assign literal string to 'char *' variable
81434         * tests/test-sha1.c (main): Declare locals with "const" to match
81435         attributes of the right hand side.
81437 2009-07-21  Eric Blake  <ebb9@byu.net>
81439         dup2: fix more mingw problems
81440         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
81441         fd to itself.
81442         * doc/posix-functions/dup2.texi (dup2): Document the bug.
81443         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
81444         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
81445         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
81446         care of mingw bugs.
81448 2009-07-21  Jim Meyering  <meyering@redhat.com>
81450         vc-list-files: avoid failure when /bin/sh is dash
81451         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
81452         On some Debian based systems, /bin/sh is a symlink to dash, and running
81453         this command would omit the "/" following each 'tests' prefix:
81454           dash -x build-aux/vc-list-files -C . tests
81455         That is because bash and dash work differently:
81456           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
81457           bash ok
81458           dash odd
81460 2009-07-21  Eric Blake  <ebb9@byu.net>
81462         dup2-tests: test previous patch
81463         * modules/dup2-tests: New file.
81464         * tests/test-dup2.c: Likewise.
81465         * tests/test-open.c (main): Avoid unspecified behavior.
81466         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
81467         test.
81469         dup2: work around mingw and cygwin 1.5 bug
81470         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
81471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81472         * modules/unistd (Makefile.am): Substitute it.
81473         * lib/unistd.in.h (dup2): Declare the replacement.
81474         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
81475         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
81476         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
81477         * modules/execute (Depends-on): Add dup2.
81478         * modules/fseterr (Depends-on): Likewise.
81479         * modules/pipe (Depends-on): Likewise.
81480         * modules/posix_spawn-internal (Depends-on): Likewise.
81482 2009-07-21  Bruno Haible  <bruno@clisp.org>
81484         * modules/.gitattributes: New file.
81486 2009-07-20  Bruno Haible  <bruno@clisp.org>
81488         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
81489         (main): Use it.
81491 2009-07-20  Eric Blake  <ebb9@byu.net>
81493         test-pipe: make a bit more robust.
81494         * tests/test-pipe.c (myerr): Allow error messages regardless of
81495         what we do to stderr.
81496         (test_pipe): Rearrange to avoid deadlock.
81497         (child_main): Try a larger read, to ensure we avoided deadlock.
81498         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
81499         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
81500         if misused.
81502 2009-07-19  Jim Meyering  <meyering@redhat.com>
81504         fts: avoid false-positive cycle-detection
81505         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
81506         for each new command line argument.
81508 2009-07-19  Bruno Haible  <bruno@clisp.org>
81510         Fix build error on mingw with the modules sys_select and unistd.
81511         * modules/acl-tests (Depends-on): Add close.
81512         * modules/binary-io-tests (Depends-on): Likewise.
81513         * modules/closein-tests (Depends-on): Likewise.
81514         * modules/flock-tests (Depends-on): Likewise.
81515         * modules/fsync-tests (Depends-on): Likewise.
81516         * modules/lseek-tests (Depends-on): Likewise.
81517         * modules/pipe-tests (Depends-on): Likewise.
81518         * modules/posix_spawn-tests (Depends-on): Likewise.
81519         * modules/posix_spawnp-tests (Depends-on): Likewise.
81520         * modules/stat-time-tests (Depends-on): Likewise.
81521         * modules/yesno-tests (Depends-on): Likewise.
81523 2009-07-19  Bruno Haible  <bruno@clisp.org>
81525         Unify conditionals.
81526         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
81527         macros, not at the compiler macros.
81528         * lib/pipe.c: Likewise.
81529         * lib/execute.c: Likewise.
81530         * lib/spawni.c: Likewise.
81532 2009-07-19  Bruno Haible  <bruno@clisp.org>
81534         Fix handling of closed stdin/stdout/stderr on mingw.
81535         * lib/w32spawn.h: Include unistd.h.
81536         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
81537         file descriptor with O_NOINHERIT flag.
81538         (fd_safer_noinherit): New function, based on fd-safer.c.
81539         (dup_safer_noinherit): New function, based on dup-safer.c.
81540         (undup_safer_noinherit): New function.
81541         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
81542         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
81543         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
81544         instead of fd_safer.
81545         * tests/test-pipe.c: Include <windows.h>.
81546         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
81547         result.
81549         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
81550         from main.
81551         (test_pipe): Pass an extra argument for disambiguation.
81552         (main): Invoke parent_main or child_main.
81554         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
81555         consistently.
81557 2009-07-18  Eric Blake  <ebb9@byu.net>
81559         test-pipe: fix mingw build
81560         * tests/test-pipe.c (main): Avoid fcntl on mingw.
81562 2009-07-18  Bruno Haible  <bruno@clisp.org>
81564         * modules/pipe-tests (Makefile.am): Fix typo.
81566 2009-07-18  Eric Blake  <ebb9@byu.net>
81568         error: fix mingw build
81569         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
81570         Reported by Bruno Haible.
81572         error: avoid undefined use of stdout
81573         * lib/error.c (error, error_at_line): Check that fd 1 is open
81574         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
81575         is handling faults and the close_stdout module wants to report the
81576         detection of closed stdout as an error.
81578 2009-07-17  Eric Blake  <ebb9@byu.net>
81580         pipe: be robust in face of closed fds
81581         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
81582         should cause child to misbehave.
81583         * modules/pipe-tests: New module.
81584         * tests/test-pipe.c: New file.
81585         * tests/test-pipe.sh: New file.
81586         Reported by Akim Demaille.
81588 2009-07-14  Bruno Haible  <bruno@clisp.org>
81590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
81591         Reported by anonymous kc.
81593 2009-07-07  Jim Meyering  <meyering@redhat.com>
81595         maint.mk: don't look for translatable strings in *.m4 or *.mk
81596         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
81597         when searching for translatable strings.
81599 2009-07-05  Jim Meyering  <meyering@redhat.com>
81601         remove superfluous parentheses in STREQ definition
81602         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
81603         * lib/getugroups.c (STREQ): Likewise.
81604         * lib/fnmatch.c (STREQ): Likewise.
81605         Spotted by Bruno Haible.
81607 2009-07-04  Jim Meyering  <meyering@redhat.com>
81609         argv-iter: new module
81610         * MODULES.html.sh: Add argv-iter.
81611         * lib/argv-iter.c, lib/argv-iter.h: New files.
81612         * modules/argv-iter: New file.
81613         * modules/argv-iter-tests: New file.
81614         * tests/test-argv-iter.c: Test it.
81616 2009-07-04  Bruno Haible  <bruno@clisp.org>
81618         Fix assertion.
81619         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
81620         contains more exact copies of a given entry than file2, leave the extra
81621         copies unpaired rather than aborting.
81622         Reported by Eric Blake.
81624 2009-07-02  Bruno Haible  <bruno@clisp.org>
81626         Speedup git-merge-changelog for git cherry-pick.
81627         * lib/git-merge-changelog.c (struct entries_mapping): New type.
81628         (entries_mapping_get): New function, extracted from compute_mapping.
81629         (entries_mapping_reverse_get): New function.
81630         (compute_mapping): Add a 'full' argument. Return the result in a
81631         'struct entries_mapping'.
81632         (main): Update. Access the mappings through entries_mapping_get.
81633         Reported by Eric Blake.
81635 2009-07-02  Bruno Haible  <bruno@clisp.org>
81637         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
81638         best_i.
81640 2009-07-02  Bruno Haible  <bruno@clisp.org>
81642         Speed up approximate search for matching ChangeLog entries.
81643         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
81644         argument. Call fstrcmp_bounded instead of fstrcmp.
81645         (compute_mapping, try_split_merged_entry, main): Update callers.
81647 2009-07-02  Bruno Haible  <bruno@clisp.org>
81649         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
81651 2009-06-30  Bruno Haible  <bruno@clisp.org>
81653         Reduce the number of uc_is_cased calls.
81654         * lib/unicase.h (casing_suffix_context_t): Add
81655         'first_char_except_ignorable' field.
81656         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
81657         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
81658         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
81659         Update initializer.
81660         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
81661         case-ignorable characters.
81662         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
81663         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
81664         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
81665         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
81666         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
81668 2009-06-30  Bruno Haible  <bruno@clisp.org>
81670         Tests for module 'unicase/ignorable'.
81671         * modules/unicase/ignorable-tests: New file.
81672         * tests/unicase/test-ignorable.c: New file, generated by
81673         gen-uni-tables.
81675         Tests for module 'unicase/cased'.
81676         * modules/unicase/cased-tests: New file.
81677         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
81678         * tests/unicase/test-predicate-part1.h: New file, derived from
81679         tests/unictype/test-predicate-part1.h.
81680         * tests/unicase/test-predicate-part2.h: New file, same as
81681         tests/unictype/test-predicate-part2.h.
81683         Fix evaluation of "Before C" condition of FINAL_SIGMA.
81684         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
81685         (output_casing_properties): New function.
81686         (main): Call it.
81687         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
81688         * lib/unicase/cased.c: Include unictype/bitmap.h.
81689         (uc_is_cased): Define through a bitmap lookup.
81690         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
81691         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
81692         (uc_is_case_ignorable): Define through a bitmap lookup.
81693         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
81694         lib/unictype/bitmap.h.
81695         (Depends-on): Add inline. Clean up.
81696         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
81697         lib/unictype/bitmap.h.
81698         (Depends-on): Add inline. Clean up.
81699         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
81700         recognition.
81701         * tests/unicase/test-u16-tolower.c (main): Likewise.
81702         * tests/unicase/test-u32-tolower.c (main): Likewise.
81704 2009-06-30  Bruno Haible  <bruno@clisp.org>
81706         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
81707         * lib/unicase/u16-casemap.c: Likewise.
81708         * lib/unicase/u32-casemap.c: Likewise.
81710 2009-06-29  Bruno Haible  <bruno@clisp.org>
81712         Define u32_casefold as a wrapper around u32_ct_casefold.
81713         * lib/unicase/u32-casefold.c: Update.
81714         * modules/unicase/u32-casefold (Depends-on): Add
81715         unicase/u32-ct-casefold, unicase/empty-prefix-context,
81716         unicase/empty-suffix-context. Clean up.
81718         Define u16_casefold as a wrapper around u16_ct_casefold.
81719         * lib/unicase/u16-casefold.c: Update.
81720         * modules/unicase/u16-casefold (Depends-on): Add
81721         unicase/u16-ct-casefold, unicase/empty-prefix-context,
81722         unicase/empty-suffix-context. Clean up.
81724         Define u8_casefold as a wrapper around u8_ct_casefold.
81725         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
81726         * lib/unicase/u8-casefold.c: Update.
81727         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
81728         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81730         Define u32_totitle as a wrapper around u32_ct_totitle.
81731         * lib/unicase/u32-totitle.c: Update.
81732         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
81733         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81735         Define u16_totitle as a wrapper around u16_ct_totitle.
81736         * lib/unicase/u16-totitle.c: Update.
81737         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
81738         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81740         Define u8_totitle as a wrapper around u8_ct_totitle.
81741         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
81742         functions.
81743         (FUNC): Delegate to U_CT_TOTITLE.
81744         * lib/unicase/u8-totitle.c: Update.
81745         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
81746         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81748         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
81749         invocation.
81750         * modules/unicase/u32-tolower (Depends-on): Add
81751         unicase/empty-prefix-context, unicase/empty-suffix-context.
81753         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
81754         invocation.
81755         * modules/unicase/u16-tolower (Depends-on): Add
81756         unicase/empty-prefix-context, unicase/empty-suffix-context.
81758         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
81759         * modules/unicase/u8-tolower (Depends-on): Add
81760         unicase/empty-prefix-context, unicase/empty-suffix-context.
81762         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
81763         invocation.
81764         * modules/unicase/u32-toupper (Depends-on): Add
81765         unicase/empty-prefix-context, unicase/empty-suffix-context.
81767         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
81768         invocation.
81769         * modules/unicase/u16-toupper (Depends-on): Add
81770         unicase/empty-prefix-context, unicase/empty-suffix-context.
81772         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
81773         * modules/unicase/u8-toupper (Depends-on): Add
81774         unicase/empty-prefix-context, unicase/empty-suffix-context.
81776         New module 'unicase/u32-ct-casefold'.
81777         * lib/unicase/u32-ct-casefold.c: New file.
81778         * modules/unicase/u32-ct-casefold: New file.
81780         New module 'unicase/u16-ct-casefold'.
81781         * lib/unicase/u16-ct-casefold.c: New file.
81782         * modules/unicase/u16-ct-casefold: New file.
81784         New module 'unicase/u8-ct-casefold'.
81785         * lib/unicase/u8-ct-casefold.c: New file.
81786         * lib/unicase/u-ct-casefold.h: New file, derived from
81787         lib/unicase/u-casefold.h.
81788         * modules/unicase/u8-ct-casefold: New file.
81790         New module 'unicase/u32-ct-totitle'.
81791         * lib/unicase/u32-ct-totitle.c: New file.
81792         * modules/unicase/u32-ct-totitle: New file.
81794         New module 'unicase/u16-ct-totitle'.
81795         * lib/unicase/u16-ct-totitle.c: New file.
81796         * modules/unicase/u16-ct-totitle: New file.
81798         New module 'unicase/u8-ct-totitle'.
81799         * lib/unicase/u8-ct-totitle.c: New file.
81800         * lib/unicase/u-ct-totitle.h: New file, derived from
81801         lib/unicase/u-totitle.h.
81802         * modules/unicase/u8-ct-totitle: New file.
81804         New module 'unicase/u32-ct-tolower'.
81805         * lib/unicase/u32-ct-tolower.c: New file.
81806         * modules/unicase/u32-ct-tolower: New file.
81808         New module 'unicase/u16-ct-tolower'.
81809         * lib/unicase/u16-ct-tolower.c: New file.
81810         * modules/unicase/u16-ct-tolower: New file.
81812         New module 'unicase/u8-ct-tolower'.
81813         * lib/unicase/u8-ct-tolower.c: New file.
81814         * modules/unicase/u8-ct-tolower: New file.
81816         New module 'unicase/u32-ct-toupper'.
81817         * lib/unicase/u32-ct-toupper.c: New file.
81818         * modules/unicase/u32-ct-toupper: New file.
81820         New module 'unicase/u16-ct-toupper'.
81821         * lib/unicase/u16-ct-toupper.c: New file.
81822         * modules/unicase/u16-ct-toupper: New file.
81824         New module 'unicase/u8-ct-toupper'.
81825         * lib/unicase/u8-ct-toupper.c: New file.
81826         * modules/unicase/u8-ct-toupper: New file.
81828         Add context arguments to u*_casemap functions.
81829         * lib/unicase/unicasemap.h: Include unicase.h.
81830         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
81831         suffix_context arguments.
81832         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
81833         functions.
81834         (FUNC): Add prefix_context and suffix_context arguments. Use
81835         uc_is_cased and uc_is_case_ignorable.
81836         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
81837         * lib/unicase/u16-casemap.c: Likewise.
81838         * lib/unicase/u32-casemap.c: Likewise.
81839         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
81840         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81841         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
81842         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81843         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
81844         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81846         New module 'unicase/u32-suffix-context'.
81847         * lib/unicase/u32-suffix-context.c: New file.
81848         * modules/unicase/u32-suffix-context: New file.
81850         New module 'unicase/u16-suffix-context'.
81851         * lib/unicase/u16-suffix-context.c: New file.
81852         * modules/unicase/u16-suffix-context: New file.
81854         New module 'unicase/u8-suffix-context'.
81855         * lib/unicase/u8-suffix-context.c: New file.
81856         * lib/unicase/u-suffix-context.h: New file.
81857         * modules/unicase/u8-suffix-context: New file.
81859         New module 'unicase/empty-suffix-context'.
81860         * lib/unicase/empty-suffix-context.c: New file.
81861         * modules/unicase/empty-suffix-context: New file.
81863         New module 'unicase/u32-prefix-context'.
81864         * lib/unicase/u32-prefix-context.c: New file.
81865         * modules/unicase/u32-prefix-context: New file.
81867         New module 'unicase/u16-prefix-context'.
81868         * lib/unicase/u16-prefix-context.c: New file.
81869         * modules/unicase/u16-prefix-context: New file.
81871         New module 'unicase/u8-prefix-context'.
81872         * lib/unicase/u8-prefix-context.c: New file.
81873         * lib/unicase/u-prefix-context.h: New file.
81874         * lib/unicase/context.h: New file.
81875         * modules/unicase/u8-prefix-context: New file.
81877         New module 'unicase/empty-prefix-context'.
81878         * lib/unicase/empty-prefix-context.c: New file.
81879         * modules/unicase/empty-prefix-context: New file.
81881         New module 'unicase/ignorable'.
81882         * lib/unicase/ignorable.c: New file.
81883         * modules/unicase/ignorable: New file.
81885         New module 'unicase/cased'.
81886         * lib/unicase/caseprop.h: New file.
81887         * lib/unicase/cased.c: New file.
81888         * modules/unicase/cased: New file.
81890         New functions for case mapping of substrings.
81891         * lib/unicase.h (casing_prefix_context_t): New type.
81892         (unicase_empty_prefix_context): New variable.
81893         (u8_casing_prefix_context, u16_casing_prefix_context,
81894         u32_casing_prefix_context, u8_casing_prefixes_context,
81895         u16_casing_prefixes_context, u32_casing_prefixes_context): New
81896         declarations.
81897         (casing_suffix_context_t): New type.
81898         (unicase_empty_suffix_context): New variable.
81899         (u8_casing_suffix_context, u16_casing_suffix_context,
81900         u32_casing_suffix_context, u8_casing_suffixes_context,
81901         u16_casing_suffixes_context, u32_casing_suffixes_context,
81902         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
81903         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
81904         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
81905         declarations.
81907 2009-06-28  Jim Meyering  <meyering@redhat.com>
81909         boostrap: indent only with spaces
81910         * build-aux/bootstrap: Indent only with spaces, never TABs.
81912         bootstrap: split long lines
81913         * build-aux/bootstrap: Keep line length < 80.
81915         bootstrap: sync from coreutils
81916         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
81917         just as autoreconf does.  Verify a list of prerequisite
81918         package-name,version-number pairs if defined in bootstrap.conf.
81919         Refer to README-prereq, if prerequisites are not satisfied.
81921 2009-06-27  Eric Blake  <ebb9@byu.net>
81923         tests: add test for bogus NULL definition
81924         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
81925         * tests/test-stdlib.c: Likewise.
81926         * tests/test-string.c: Likewise.
81927         * tests/test-locale.c: Likewise.
81928         * tests/test-unistd.c: Likewise.
81929         * modules/stdio-tests (Depends-on): Add verify.
81930         * modules/stdlib-tests (Depends-on): Likewise.
81931         * modules/string-tests (Depends-on): Likewise.
81932         * modules/locale-tests (Depends-on): Likewise.
81933         * modules/unistd-tests (Depends-on): Likewise.
81935 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
81937         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
81938         self-explaining comment.
81939         * m4/selinux-selinux-h: Update serial.
81940         (gl_LIBSELINUX): New macro, adding a warning for missing development
81941         packages to code extracted from...
81942         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
81943         Add warning for missing development packages here, too.
81945 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
81947         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
81949 2009-06-25  Eric Blake  <ebb9@byu.net>
81951         version-etc: fix regression
81952         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
81953         gcc.
81954         (version_etc): Use it, to catch bugs with trailing NULL.
81955         * lib/version-etc.c (version_etc_arn): Delete unused argument.
81956         (version_etc_va): Fix logic bug.
81957         * modules/version-etc-tests: Add test.
81958         * tests/test-version-etc.c: New file.
81959         * tests/test-version-etc.sh: Likewise.
81961 2009-06-25  Sam Steingold  <sds@gnu.org>
81963         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
81964         mbtowc declaration.
81966 2009-06-25  Eric Blake  <ebb9@byu.net>
81968         fpurge: migrate into <stdio.h>
81969         * lib/fpurge.h: Delete...
81970         * lib/stdio.in.h (fpurge): ...and declare here, instead.
81971         * lib/fpurge.c (fpurge): Change declaring header.
81972         * modules/fpurge (Files): Drop deleted file.
81973         (Depends-on): Add stdio.
81974         (configure.ac): Set witness.
81975         * modules/stdio (Makefile.am): Support fpurge macros.
81976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81977         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
81978         * lib/fflush.c: Update client.
81979         * tests/test-fpurge.c: Likewise.
81980         * NEWS: Mention the change.
81982 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81984         * lib/argp-version-etc.c (program_authors): Add const
81985         qualifier.
81986         * lib/version-etc.c: Fix typos in the comments.
81987         * modules/argp-version-etc: Depends on version-etc.
81989 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81991         argp-version-etc: new module.
81993         * lib/argp-version-etc.c: New file.
81994         * lib/argp-version-etc.h: New file.
81995         * modules/argp-version-etc: New file.
81996         * modules/argp-version-etc-tests: New file.
81997         * tests/test-argp-version-etc.c: New test.
81998         * tests/test-argp-version-etc-1.sh: New test.
82000 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82002         Provide additional interfaces and documentation for version-etc
82003         module.
82005         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
82006         interfaces.
82007         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
82008         prototypes.
82010 2009-06-24  Bruno Haible  <bruno@clisp.org>
82012         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
82013         HAVE_LIB${NAME} macro.
82014         Reported by Sam Steingold <sds@gnu.org>.
82016 2009-06-23  Simon Josefsson  <simon@josefsson.org>
82018         * modules/hash-tests (test_hash_LDADD): Link to libintl when
82019         needed.
82021 2009-06-21  Bruno Haible  <bruno@clisp.org>
82023         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
82024         work.
82025         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
82026         together with LIB${NAME}, LTLIB${NAME}.
82027         Reported by Sam Steingold <sds@gnu.org>.
82029 2009-06-20  Jim Meyering  <meyering@redhat.com>
82031         tests: make sc_require_test_exit_idiom more generic
82032         * top/maint.mk (Exit_witness_file): New overridable variable.
82033         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
82034         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
82036 2009-06-19  Jim Meyering  <meyering@redhat.com>
82038         hash: reverse order of src/dst parameters in an internal interface
82039         * lib/hash.c (transfer_entries): Reverse order of parameters to
82040         put DST before SRC.  Adjust callers.
82042         tests: test-hash: avoid wholesale duplication
82043         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
82044         Instead, use a loop and add a single conditional.
82046         tests: test-hash: allow seed selection via a command line argument
82047         * tests/test-hash.c (get_seed): New function.
82048         (main): Use it.
82050 2009-06-19  Eric Blake  <ebb9@byu.net>
82052         hash: avoid memory leak on allocation failure
82053         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
82054         failure.  Factor repeated algorithm...
82055         (transfer_entries): ...into new helper routine.
82056         (hash_delete): React to hash_rehash return value.
82058         hash: reduce memory pressure in hash_rehash no-op case
82059         * lib/hash.c (next_prime): Avoid overflow.
82060         (hash_initialize): Factor bucket size computation...
82061         (compute_bucket_size): ...into new helper function.
82062         (hash_rehash): Use new function and open coding to reduce memory
82063         pressure, and avoid a memory leak in USE_OBSTACK code.
82064         Reported by Jim Meyering.
82066 2009-06-18  Eric Blake  <ebb9@byu.net>
82068         hash: make rotation more obvious
82069         * modules/hash (Depends-on): Add bitrotate and stdint.
82070         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
82071         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
82072         (SIZE_MAX): Rely on headers for definition.
82073         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
82074         (raw_hasher): Use rotr_sz.
82075         Suggested by Jim Meyering.
82077         hash: fix memory leak in last patch
82078         * lib/hash.c (hash_rehash): Avoid memory leak.
82080         hash: avoid no-op rehashing
82081         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
82083         hash: provide default callback functions
82084         * lib/hash.c (raw_hasher, raw_comparator): New functions.
82085         (hash_initialize): Use them as defaults.
82086         * tests/test-hash.c (main): Test this.
82088         hash: minor optimization
82089         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
82090         when possible.
82091         (hash_initialize): Document this promise.
82092         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
82093         * tests/test-hash.c (hash_compare_strings): Test this.
82095 2009-06-18  Bruno Haible  <bruno@clisp.org>
82097         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
82098         going to be replaced anyway.
82100 2009-06-18  Bruno Haible  <bruno@clisp.org>
82102         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
82103         in one place.
82104         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
82105         be replaced anyway.
82107 2009-06-18  Eric Blake  <ebb9@byu.net>
82109         hash: check for resize before insertion
82110         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
82111         threshold before insertion, so that a pathological hash_rehash
82112         that fills every bucket can still trigger another rehash.
82114 2009-06-18  Jim Meyering  <meyering@redhat.com>
82116         hash-tests: add a loop around the small tests
82117         * tests/test-hash.c (main): Repeat small tests with selected
82118         small initial table sizes.
82120 2009-06-17  Eric Blake  <ebb9@byu.net>
82122         hash: minor cleanups
82123         * lib/hash.h (hash_entry): Make opaque, by moving...
82124         * lib/hash.c (hash_entry): ...here.
82125         (hash_insert): Clarify restrictions on what can be inserted.
82126         (hash_get_next): Clarify when it is safe to remove an element
82127         during traversal.
82128         (check_tuning): Skip verification when tuning is known safe.
82129         (hash_initialize): Clarify restrictions on tuning.
82131 2009-06-17  Jim Meyering  <jim@meyering.net>
82132         and Eric Blake  <ebb9@byu.net>
82134         hash-tests: new module
82135         * modules/hash-tests: New file.
82136         * tests/test-hash.c: New file.
82138 2009-06-17  Eric Blake  <ebb9@byu.net>
82140         strstr-simple: document new module
82141         * MODULES.html.sh: Document new module.
82143         strstr, strcasestr: replace on platforms with broken memchr
82144         * modules/strstr: Split into...
82145         * modules/strstr-simple: ...new module that does not care about
82146         performance, but does care about glibc bug.
82147         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
82148         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
82149         if platform memchr is broken, per Debian bug 521737.
82150         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
82151         memchr.
82152         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
82153         * doc/posix-functions/strstr.texi (strstr): Document the fix.
82154         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
82155         * modules/mountlist (Depends-on): Add strstr-simple.
82156         * modules/gen-uni-tables (Depends-on): Likewise.
82157         * modules/argz (Depends-on): Add strstr.
82159 2009-06-17  Bruno Haible  <bruno@clisp.org>
82161         * modules/posix_spawn-internal (Depends-on): Add errno.
82163 2009-06-17  Bruno Haible  <bruno@clisp.org>
82165         Define missing ESTALE on Interix 3.5.
82166         * lib/errno.in.h (ESTALE): Assign a value if missing.
82167         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
82168         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
82169         missing.
82170         * doc/posix-headers/errno.texi: Mention the Interix bug.
82171         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
82173 2009-06-15  Eric Blake  <ebb9@byu.net>
82175         memchr, memchr2: add valgrind exception
82176         * lib/memchr.valgrind: New file.
82177         * lib/memchr2.valgrind: New file.
82178         * modules/memchr (Files): Distribute valgrind file.
82179         * modules/memchr2 (Files): Likewise.
82181         docs: memchr is no longer obsolete
82182         * MODULES.html.sh: Move memchr from obsolete to string.h section.
82183         * lib/string.in.h (memchr): Simplify logic.
82185 2009-06-14  Jim Meyering  <meyering@redhat.com>
82187         link-follow: fix the "checking..." message to not mention trailing slash
82188         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
82189         never considered trailing slashes.
82191 2009-06-14  Bruno Haible  <bruno@clisp.org>
82193         * m4/memchr.m4: Mention also the bug on IA-64.
82194         * doc/posix-functions/memchr.texi: Likewise.
82196 2009-06-12  Eric Blake  <ebb9@byu.net>
82198         memchr: detect broken x86_64 and alpha implementations
82199         * modules/memchr-tests (Depends-on): Move mmap detection...
82200         * modules/memchr (Depends-on): ...here.
82201         (configure.ac): Set indicator.
82202         * lib/string.in.h (memchr): Declare replacement.
82203         * modules/string (Makefile.am): Trigger replacement.
82204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
82205         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
82206         bugs.
82207         * doc/posix-functions/memchr.texi (memchr): Document the bug.
82208         * modules/getpagesize (License): Relax license.
82210 2009-06-11  Bruno Haible  <bruno@clisp.org>
82212         * lib/idpriv.h: Add more references.
82214 2009-06-08  Bruno Haible  <bruno@clisp.org>
82216         Tests for module 'idpriv-droptemp'.
82217         * modules/idpriv-droptemp-tests: New file.
82218         * tests/test-idpriv-droptemp.sh: New file.
82219         * tests/test-idpriv-droptemp.su.sh: New file.
82220         * tests/test-idpriv-droptemp.c: New file.
82222         New module 'idpriv-droptemp'.
82223         * lib/idpriv-droptemp.c: New file.
82224         * modules/idpriv-droptemp: New file.
82226 2009-06-08  Bruno Haible  <bruno@clisp.org>
82228         Tests for module 'idpriv-drop'.
82229         * modules/idpriv-drop-tests: New file.
82230         * tests/test-idpriv-drop.sh: New file.
82231         * tests/test-idpriv-drop.su.sh: New file.
82232         * tests/test-idpriv-drop.c: New file.
82234         New module 'idpriv-drop'.
82235         * lib/idpriv.h: New file.
82236         * lib-idpriv-drop.c: New file.
82237         * m4/idpriv.m4: New file.
82238         * modules/idpriv-drop: New file.
82240 2009-06-08  Bruno Haible  <bruno@clisp.org>
82242         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
82243         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82244         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82245         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82246         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82247         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82248         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82250 2009-06-08  Eric Blake  <ebb9@byu.net>
82252         test-strstr: use memory fence, when possible
82253         * tests/test-strstr.c (main): Use memory fence, in order to be
82254         more likely to trigger Debian bug 521737.
82255         * modules/strstr-tests (Files): Pull in additional files.
82257         memchr: no longer obsolete, for wider field testing
82258         * modules/memchr (Status, Notice): Delete, this module is no
82259         longer obsolete.
82260         * modules/vasnprintf (Depends-on): Add memchr.
82262 2009-06-07  Jim Meyering  <meyering@redhat.com>
82264         hash: declare some functions with the warn_unused_result attribute
82265         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
82267 2009-06-07  Bruno Haible  <bruno@clisp.org>
82269         * tests/test-alignof.c: Don't test int64_t if it does not exist.
82270         Reported by Eric Blake.
82272 2009-06-06  Eric Blake  <ebb9@byu.net>
82274         test-alignof: fix typo with long double
82275         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
82276         compiler error.
82278 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
82280         Escape non-texinfo { and }s.
82281         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
82282         markup error.
82284 2009-06-04  Jim Meyering  <meyering@redhat.com>
82286         gitlog-to-changelog: don't infloop on an empty commit log
82287         * build-aux/gitlog-to-changelog: Warn about an empty log message.
82288         Reported by Boris Petersen <transacid@centerim.org>.
82290 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
82292         version-etc: extend for packagers
82293         Add three new configure options, intended for packagers:
82294           --with-packager="packager name"
82295           --with-packager-version="packager-specific version"
82296           --with-packager-bug-reports="packager bug reporting"
82297         An example with coreutils:
82298           $ ./configure \
82299             --with-packager=Gentoo \
82300             --with-packager-bug-report=http://bugs.gentoo.org/ \
82301             --with-packager-version="patchset 1.6"
82302           $ ./src/ls --version | head -n2
82303           ls (GNU coreutils) 7.1-dirty
82304           Packaged by Gentoo (patchset 1.6)
82305         Note that the bug reporting info via --help doesn't show up because
82306         coreutils uses its own custom emit_bug_reporting_address() implementation
82307         in src/system.h.  If it didn't, it'd look like:
82308           $ ./src/ls --help | tail -n4
82309           Report bugs to <bug-coreutils@gnu.org>.
82310           Report Gentoo bugs to <http://bugs.gentoo.org/>.
82311           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
82312           General help using GNU software: <http://www.gnu.org/gethelp/>.
82313         * lib/version-etc.c: Print new information, if provided.
82314         * m4/version-etc.m4: New file.
82315         * modules/version-etc (Files): Add m4/version-etc.m4.
82316         (configure.ac): Add gl_VERSION_ETC.
82318 2009-05-31  Bruno Haible  <bruno@clisp.org>
82320         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
82321         and 'int64_t'.
82322         * modules/alignof-tests (Dependencies): Add stdint.
82323         Reported by Eric Blake.
82325 2009-05-31  Bruno Haible  <bruno@clisp.org>
82327         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
82328         restriction due to compiler bugs.
82329         Reported by Eric Blake.
82331 2009-05-31  Simon Josefsson  <simon@josefsson.org>
82332             Bruno Haible  <bruno@clisp.org>
82334         Fix test-alignof failure.
82335         * lib/alignof.h (alignof_slot): New macro.
82336         (alignof_type): New macro, with the same semantics as the previous
82337         'alignof'.
82338         (alignof): Alias to alignof_slot.
82339         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
82340         check that the results are usable as constant expressions.
82342 2009-05-31  Bruno Haible  <bruno@clisp.org>
82344         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
82345         * tests/test-memchr.c (main): Check that memchr does not read past the
82346         first occurrence of the byte.
82347         * tests/test-strstr.c (main): Update comment.
82348         Suggested by Eric Blake.
82350 2009-05-30  Bruno Haible  <bruno@clisp.org>
82352         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
82353         detail how to use dumpbin.
82354         Reported by David Byron <dbyron@dbyron.com>.
82356 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82358         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
82360 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82362         * m4/manywarnings.m4: Add GCC 4.4 warnings.
82364 2009-05-28  Bruno Haible  <bruno@clisp.org>
82366         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
82367         build-aux/ files.
82369 2009-05-28  Simon Josefsson  <simon@josefsson.org>
82371         * gnulib-tool (func_import): Transform license on build-aux/ files too.
82373 2009-05-27  Simon Josefsson  <simon@josefsson.org>
82375         * gnulib-tool (sed_transform_main_lib_file)
82376         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
82377         regexps.
82379 2009-05-26  Simon Josefsson  <simon@josefsson.org>
82381         * tests/test-strstr.c: Add another self-test.
82382         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
82383         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
82385 2009-05-23  Bruno Haible  <bruno@clisp.org>
82387         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
82388         change.
82390 2009-05-21  Bruno Haible  <bruno@clisp.org>
82392         Simplify use of mode_t varargs.
82393         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
82394         uses 'mode_t' or 'int'.
82395         * lib/openat.c (openat): Likewise.
82396         * lib/open-safer.c (open_safer): Likewise.
82397         * m4/mode_t.m4: New file.
82398         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
82399         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
82400         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
82401         * modules/open (Files): Add m4/mode_t.m4.
82402         * modules/openat (Files): Likewise.
82403         * modules/fcntl-safer (Files): Likewise.
82404         Suggested by Eric Blake.
82406 2009-05-21  Pádraig Brady  <P@draigbrady.com>
82408         * doc/glibc-functions/fallocate.texi: New file.
82409         * doc/gnulib.texi: Include it.
82411 2009-05-21  Eric Blake  <ebb9@byu.net>
82412             Bruno Haible  <bruno@clisp.org>
82414         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
82415         invocations.
82416         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
82418 2009-05-21  Eric Blake  <ebb9@byu.net>
82419             Bruno Haible  <bruno@clisp.org>
82421         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
82422         include_next. Fix of 2008-11-20 commit.
82423         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
82424         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
82425         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
82426         NEXT_MATH_H.
82427         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
82428         instead of NEXT_MATH_H.
82430 2009-05-21  Bruno Haible  <bruno@clisp.org>
82432         Avoid redefinition warnings for SIZE_MAX.
82433         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
82434         Reported by Simon Josefsson.
82436 2009-05-21  Bruno Haible  <bruno@clisp.org>
82438         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
82439         AC_CACHE_VAL.
82441 2009-05-20  Bruno Haible  <bruno@clisp.org>
82443         Make zeroptr.h work on mingw.
82444         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
82445         mprotect.
82446         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
82447         * modules/memchr2-tests (configure.ac): Likewise.
82448         * modules/memcmp-tests (configure.ac): Likewise.
82449         * modules/memmem-tests (configure.ac): Likewise.
82450         * modules/memrchr-tests (configure.ac): Likewise.
82451         Reported by Simon Josefsson.
82453 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82455         * tests/test-glob.c: Include string.h for strcmp prototype.
82457 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82459         * modules/getdelim (Depends-on): Add explicit stdint, although it
82460         was implicitly already pulled in via realloc-posix.
82461         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
82463 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82465         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
82466         G. Christensen" <tgc@jupiterrise.com>.
82467         * m4/sys_socket_h.m4: Check for sa_family_t.
82468         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
82469         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
82470         * tests/test-sys_socket.c: Check that sa_family_t works.
82472 2009-05-18  Eric Blake  <ebb9@byu.net>
82474         maint.mk: allow gnulib_dir in VPATH build
82475         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
82477 2009-05-15  Jim Meyering  <meyering@redhat.com>
82479         maint.mk: Give gnulib_dir a default definition.
82480         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
82481         Thus, most packages no longer need to specify this variable in cfg.mk
82483 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
82485         rename.m4: fix typos that would make non-mingw cross-configure fail
82486         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
82488 2009-05-13  Eric Blake  <ebb9@byu.net>
82490         mmap-anon: avoid out-of-order autoconf expansion
82491         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
82492         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
82493         * modules/memchr-tests (Depends-on): Add extensions.
82494         * modules/memchr2-tests (Depends-on): Add extensions.
82495         * modules/memcmp-tests (Depends-on): Add extensions.
82496         * modules/memmem-tests (Depends-on): Add extensions.
82497         * modules/memrchr-tests (Depends-on): Add extensions.
82499 2009-05-13  Bruno Haible  <bruno@clisp.org>
82501         Make some tests ISO C 99 compliant.
82502         * tests/zerosize-ptr.h: New file.
82503         * tests/test-memchr.c: Include zerosize-ptr.h.
82504         (main): Use a zero-size object pointer instead of NULL.
82505         * tests/test-memchr2.c: Include zerosize-ptr.h.
82506         (main): Use a zero-size object pointer instead of NULL.
82507         * tests/test-memcmp.c: Include zerosize-ptr.h.
82508         (main): Use a zero-size object pointer instead of NULL.
82509         * tests/test-memmem.c: Include zerosize-ptr.h.
82510         (main): Use a zero-size object pointer instead of NULL.
82511         * tests/test-memrchr.c: Include zerosize-ptr.h.
82512         (main): Use a zero-size object pointer instead of NULL.
82513         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
82514         m4/mmap-anon.m4.
82515         (Depends-on): Add getpagesize.
82516         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82517         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
82518         m4/mmap-anon.m4.
82519         (Depends-on): Add getpagesize.
82520         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82521         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
82522         m4/mmap-anon.m4.
82523         (Depends-on): Add getpagesize.
82524         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82525         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
82526         m4/mmap-anon.m4.
82527         (Depends-on): Add getpagesize.
82528         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82529         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
82530         m4/mmap-anon.m4.
82531         (Depends-on): Add getpagesize.
82532         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82534 2009-05-12  Bruno Haible  <bruno@clisp.org>
82536         Tests for module 'alignof'.
82537         * modules/alignof-tests: New file.
82538         * tests/test-alignof.c: New file.
82540 2009-05-12  Bruno Haible  <bruno@clisp.org>
82542         Fix alignof macro.
82543         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
82544         vendor compilers that are always correct.
82546 2009-05-12  Bruno Haible  <bruno@clisp.org>
82548         Make the MAP_ANONYMOUS detection work on HP-UX 11.
82549         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
82550         not whether its fully works.
82552 2009-05-12  Bruno Haible  <bruno@clisp.org>
82554         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
82556 2009-05-12  Jim Meyering  <meyering@redhat.com>
82558         * top/maint.mk: Adjust backslash alignment.
82560 2009-05-11  Simon Josefsson  <simon@josefsson.org>
82562         * top/maint.mk: Make $(srcdir)/build-aux configurable.
82564 2009-05-11  Eric Blake  <ebb9@byu.net>
82566         argp: avoid undefined behavior
82567         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
82568         macros.
82570 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82572         * tests/test-vc-list-files-git.sh: Do git config of user.email and
82573         user.name to prevent git commit from complaining.
82575 2009-05-10  Bruno Haible  <bruno@clisp.org>
82577         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
82578         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
82579         it rewrites every file name only once.
82580         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
82582 2009-05-08  Bruno Haible  <bruno@clisp.org>
82584         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
82585         instead of 'max'.
82587 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82589         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
82590         sockaddr_storage test.
82592 2009-05-07  Simon Josefsson  <simon@josefsson.org>
82594         * modules/sys_socket (Makefile.am): Substitute
82595         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
82596         * m4/sys_socket_h.m4: Check for sockaddr_storage.
82597         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
82598         * tests/test-sys_socket.c: Check sockaddr_storage.
82600 2009-05-08  Bruno Haible  <bruno@clisp.org>
82602         New module 'alignof'.
82603         * lib/alignof.h: New file.
82604         * modules/alignof: New file.
82606 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82607             Bruno Haible  <bruno@clisp.org>
82609         Fix test-file-has-acl on FreeBSD.
82610         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
82611         mask is implicitly added.
82612         * tests/test-file-has-acl.c: Include <signal.h>.
82613         (main): Terminate the test after 5 seconds.
82614         * modules/acl-tests (configure.ac): Check for alarm function.
82616 2009-05-04  Bruno Haible  <bruno@clisp.org>
82618         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
82619         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
82620         * modules/errno (configure.ac): Drop AC_REQUIRE.
82621         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
82622         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
82624 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82626         * modules/glob-tests: New module.
82627         * tests/test-glob.c: Add.
82629 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82631         * modules/fnmatch-tests: New module.
82632         * tests/test-fnmatch.c: Add.
82634 2009-05-04  Eric Blake  <ebb9@byu.net>
82636         maint: make the new no-submodule-changes rule VPATH-safe
82637         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
82639 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82640             Bruno Haible  <bruno@clisp.org>
82642         acl: Fix infinite loop on FreeBSD.
82643         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
82644         of return value from acl_get_entry.
82645         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
82646         Likewise.
82648 2009-05-03  Bruno Haible  <bruno@clisp.org>
82650         * lib/acl-internal.h (acl_entries): Clarify return value.
82651         * lib/acl_entries.c (acl_entries): Likewise.
82653 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82655         Bug fix in acl module.
82656         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
82658 2009-05-03  Bruno Haible  <bruno@clisp.org>
82660         Create gperf-generated file in the source dir, not in the build dir.
82661         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
82662         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
82663         * modules/unicase/locale-language (unicase/locale-languages.h):
82664         Likewise.
82665         * modules/unicase/special-casing (unicase/special-casing-table.h):
82666         Likewise.
82667         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
82668         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
82669         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
82670         Reported by Ralf Wildenhues.
82672 2009-05-03  Bruno Haible  <bruno@clisp.org>
82674         * modules/fnmatch (Description, configure.ac): Taken from
82675         fnmatch-posix.
82676         * modules/fnmatch-posix: Turn into a symbolic reference to the
82677         'fnmatch' module, and deprecate.
82678         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
82680 2009-05-03  Bruno Haible  <bruno@clisp.org>
82682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
82683         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
82684         Reported by Ralf Wildenhues.
82686 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82688         * m4/fnmatch.m4: Fix fnmatch re-define.
82690 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82692         priv-set: new module and tests; adapt write-any-file
82693         * lib/priv-set.c: New file.
82694         * lib/priv-set.h: New file.
82695         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
82696         * lib/write-any-file.c: Simplify by using priv-set module.
82697         * m4/priv-set.m4: New file.
82698         * modules/priv-set: New file.
82699         * modules/unlinkdir: Add dependency on priv-set module.
82700         * modules/write-any-file: Likewise.
82702         Tests for module 'priv-set'.
82703         * modules/priv-set-tests: New file.
82704         * tests/test-priv-set.c: New file.
82706 2009-05-03  Jim Meyering  <meyering@redhat.com>
82707             Bruno Haible  <bruno@clisp.org>
82709         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
82710         use the converted UTF-8 variant of the name instead.
82712 2009-05-03  Jim Meyering  <meyering@redhat.com>
82714         tests: tighten some getdate tests
82715         * tests/test-getdate.c (main): Tighten tests: require equality,
82716         not just greater than.  Set TZ envvar to UTC0.
82718 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
82720         getdate: correctly interpret "next monday" when run on a Monday
82721         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
82722         that e.g., "next tues" (when run on a tuesday) results in a date
82723         that is one week in the future, and not today's date.
82724         I.e., add a week when the wday is the same as the current one.
82725         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
82726         and earlier by Martin Bernreuther and Jan Minář.
82727         * tests/test-getdate.c (main): Check that "next DAY" is always in
82728         the future and that "last DAY" is always in the past.
82730 2009-05-02  Jim Meyering  <meyering@redhat.com>
82732         build: ensure that a release build fails when a submodule is unclean
82733         * top/maint.mk (no-submodule-changes): New rule.
82734         (alpha beta major): Depend on it.
82736 2009-05-02  Bruno Haible  <bruno@clisp.org>
82738         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
82739         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
82740         shell variable gl_fnmatch_required to detect which variant is
82741         requested.
82742         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
82743         gl_FUNC_FNMATCH_POSIX.
82744         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
82745         exclude fnmatch-posix.
82747 2009-05-02  Bruno Haible  <bruno@clisp.org>
82749         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
82750         * modules/mbsrtowcs (License): Change to LGPLv2+.
82751         * modules/strnlen1 (License): Likewise.
82752         Reported by Simon Josefsson.
82754 2009-05-02  Bruno Haible  <bruno@clisp.org>
82756         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
82757         "cross".
82758         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
82759         gnulib-tool was called with option --source-base=lib.
82761 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82763         Use automake *-local hooks without commands, for extensibility.
82764         * modules/localcharset (Makefile.am): Rename install-exec-local
82765         rule to install-exec-localcharset, and make it a prerequisite of
82766         install-exec-local.  Likewise, rename the uninstall-local rule to
82767         uninstall-localcharset, and make it a prerequisite of the former.
82769 2009-05-01  Bruno Haible  <bruno@clisp.org>
82771         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
82772         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82773         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
82774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
82775         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
82776         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82777         m4/locale-zh.m4, m4/codeset.m4.
82779         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82780         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
82781         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82782         m4/locale-zh.m4.
82784         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
82785         REPLACE_WCRTOMB if mbstate_t must be replaced.
82786         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
82787         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
82789 2009-05-01  Bruno Haible  <bruno@clisp.org>
82791         Avoid compiler warnings when redefining macros defined by <libintl.h>.
82792         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
82793         dngettext, dcngettext, textdomain, bindtextdomain,
82794         bind_textdomain_codeset): Undefine before redefining.
82796 2009-04-30  Bruno Haible  <bruno@clisp.org>
82798         Fix bug introduced on 2009-04-25.
82799         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
82800         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
82801         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
82802         is defined.
82803         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
82804         is defined.
82805         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
82806         is defined.
82807         Reported by Elbert_Pol <elbert.pol@gmail.com>.
82809 2009-04-28  Bruno Haible  <bruno@clisp.org>
82811         Comment tweaks.
82812         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
82813         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
82814         * lib/unicase.h (u*_casexfrm): Likewise.
82815         Reported by Paolo Bonzini.
82817 2009-04-28  Bruno Haible  <bruno@clisp.org>
82819         Fix a compilation error.
82820         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
82821         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82822         Reported by Jim Meyering.
82824 2009-04-27  Bruno Haible  <bruno@clisp.org>
82826         New module 'libunistring'.
82827         * modules/libunistring: New file.
82828         * m4/libunistring.m4: New file.
82829         * MODULES.html.sh (Unicode string functions): Add it.
82831 2009-04-27  Eric Blake  <ebb9@byu.net>
82833         maint.mk: allow package-specific header to provide <config.h>
82834         * top/maint.mk (sc_require_config_h): New variable.
82835         (sc_require_config_h, sc_require_config_h_first): Use it.
82837 2009-04-27  Simon Josefsson  <simon@josefsson.org>
82839         * top/maint.mk (sc_avoid_if_before_free): Except
82840         useless-if-before-free script.
82842 2009-04-27  Eric Blake  <ebb9@byu.net>
82844         maintainer-makefile: depend on all required helper scripts
82845         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
82846         useless-if-before-free.
82847         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
82848         version, rather than assuming gnulib checkout is available.
82849         Reported by Simen Josefsson.
82851 2009-04-26  Bruno Haible  <bruno@clisp.org>
82853         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
82854         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
82855         "../" or "..".
82857 2009-04-26  Bruno Haible  <bruno@clisp.org>
82859         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
82860         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
82861         AC_LIB_HAVE_LINKFLAGS.
82863 2009-04-26  Bruno Haible  <bruno@clisp.org>
82865         Simplify calling convention of u*_conv_from_encoding.
82866         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
82867         u32_conv_from_encoding): Expect a resultbuf argument and return the
82868         result directly as a pointer.
82869         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
82870         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
82871         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
82872         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
82873         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
82874         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82875         Update.
82876         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
82877         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
82878         * lib/vasnprintf.c (VASNPRINTF): Update.
82879         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
82880         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
82881         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
82882         * NEWS: Mention the change.
82884 2009-04-26  Bruno Haible  <bruno@clisp.org>
82886         Simplify calling convention of u*_conv_to_encoding.
82887         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
82888         u32_conv_to_encoding): Expect a resultbuf argument and return the
82889         result directly as a pointer.
82890         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82891         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
82892         freeing scaled_offsets if mem_iconveha failed.
82893         * lib/unicase/u-casexfrm.h (FUNC): Update.
82894         * lib/uninorm/u-normxfrm.h (FUNC): Update.
82895         * lib/vasnprintf.c (VASNPRINTF): Update.
82896         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
82897         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
82898         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
82899         * NEWS: Mention the change.
82901 2009-04-26  Bruno Haible  <bruno@clisp.org>
82903         Avoid test failures on AIX and OSF/1.
82904         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
82905         malloc(0).
82906         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82907         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82908         Likewise.
82909         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
82910         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
82911         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
82912         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
82913         * doc/posix-functions/malloc.texi: Document the portability problem
82914         related to malloc(0).
82916 2009-04-26  Bruno Haible  <bruno@clisp.org>
82918         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
82919         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
82920         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
82922 2009-04-25  Bruno Haible  <bruno@clisp.org>
82924         Avoid link error when creating a namespace clean library.
82925         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
82926         as macro with arguments if already defined as an alias.
82927         * lib/signbitf.c (gl_signbitf): Don't undefine.
82928         * lib/signbitd.c (gl_signbitd): Don't undefine.
82929         * lib/signbitl.c (gl_signbitl): Don't undefine.
82931 2009-04-25  Jim Meyering  <meyering@redhat.com>
82933         vc-list-files: fix another quoting bug
82934         * build-aux/vc-list-files: Avoid sed backslash expansion
82935         of pathological directory names.
82937 2009-04-25  Eric Blake  <ebb9@byu.net>
82939         vc-list-files: fix shell quoting error
82940         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
82941         timestamp.
82943 2009-04-25  Jim Meyering  <meyering@redhat.com>
82945         vc-list-files: restore lost functionality with subdir argument
82946         * build-aux/vc-list-files: When given a non-"." sub-directory
82947         argument, substitute the $dir/ prefix back onto each resulting name.
82948         Otherwise, coreutils' root_tests check would fail.
82950 2009-04-24  Eric Blake  <ebb9@byu.net>
82952         vc-list-files: ignore git symlinks
82953         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
82954         than ls-files, to ignore git symlinks.
82956         maint.mk: import improvements from m4
82957         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
82958         (move_if_change): Delete unused macro.
82959         (news-date-check, vc-diff-check): Support VPATH builds.
82960         (announcement): Likewise.  Split --bootstrap-tools list...
82961         (boostrap-tools): ...into separate list, which can be overridden
82962         in cfg.mk.
82963         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
82964         requiring dependency on useless-if-before-free module.
82965         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
82966         Support VPATH builds.
82968 2009-04-24  Jim Meyering  <meyering@redhat.com>
82970         maint.mk: remove coreutils-specific rules and variables
82971         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
82972         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
82973         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
82975         maint.mk: remove obsolete rule
82976         * top/maint.mk (rel-check): Remove rule.
82977         (WGET, WGETFLAGS): Remove now-unused variables.
82979 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82981         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
82982         consistency.
82984         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
82985         '$(PATH_SEPARATOR)' instead of ':'.
82987 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82989         * lib/getopt1.c (main): Use 'const' for static array.
82991 2009-04-24  Simon Josefsson  <simon@josefsson.org>
82993         * top/maint.mk: Sync with coreutils.
82994         * NEWS: Explain incompatibilities.
82996 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82997             Bruno Haible  <bruno@clisp.org>
82999         Fix cross-compilation results.
83000         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
83001         statement, as third argument of AC_TRY_RUN.
83002         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
83003         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
83004         Likewise.
83005         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
83006         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
83007         Likewise.
83008         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
83009         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
83010         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
83012 2009-04-20  Bruno Haible  <bruno@clisp.org>
83014         Avoid test failure on mingw.
83015         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
83017 2009-04-20  Bruno Haible  <bruno@clisp.org>
83019         Avoid compilation error on mingw.
83020         * modules/localename-tests (Depends-on): Add locale.
83022 2009-04-19  Bruno Haible  <bruno@clisp.org>
83024         Support for building a shared library on Windows platforms.
83025         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
83026         (main): Test the presence of UNINORM_NFC here.
83027         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
83028         (main): Test the presence of UNINORM_NFD here.
83029         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
83030         (main): Test the presence of UNINORM_NFKC here.
83031         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
83032         (main): Test the presence of UNINORM_NFKD here.
83034 2009-04-19  Bruno Haible  <bruno@clisp.org>
83036         Avoid a compiler warning.
83037         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
83038         Change type of variable 'sequence'.
83040 2009-04-19  Bruno Haible  <bruno@clisp.org>
83042         * modules/configmake (Makefile.am): When the contents of configmake.h
83043         does not change, arrange to preserve its modification time.
83045 2009-04-17  Simon Josefsson  <simon@josefsson.org>
83047         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
83048         gettext domain.
83050 2009-04-16  Jim Meyering  <meyering@redhat.com>
83052         useless-if-before-free: improve conversion code
83053         * build-aux/useless-if-before-free: Adjust code-in-comment to match
83054         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
83056 2009-04-14  Bruno Haible  <bruno@clisp.org>
83058         * modules/fcntl (Depends-on): Add extensions.
83059         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
83061 2009-04-12  Ben Pfaff  <blp@gnu.org>
83063         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
83064         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
83066 2009-03-20  Ben Pfaff  <blp@gnu.org>
83068         Make rename replace existing destinations on Windows.
83069         * m4/rename.m4: Add test for Mingw.
83070         * lib/rename.c: Add rename replacement that uses MoveFileEx with
83071         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
83072         * doc/posix-functions/rename.texi: Document.
83074 2009-04-10  Bruno Haible  <bruno@clisp.org>
83076         New include file "iconveh.h".
83077         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
83078         * lib/striconveh.h: Include it.
83079         (enum iconv_ilseq_handler): Remove definition.
83080         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
83081         striconveh.h.
83082         * lib/striconveha.c: Include striconveh.h.
83083         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
83084         * modules/striconveh (Files): Add lib/iconveh.h.
83085         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
83086         lib/striconveh.h.
83088 2009-04-10  Bruno Haible  <bruno@clisp.org>
83090         * lib/uniconv.h: Update comment.
83092 2009-04-10  Bruno Haible  <bruno@clisp.org>
83094         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
83095         always.
83096         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83097         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83098         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83099         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
83100         "unistring-notinline.h", so that the function gets defined always.
83101         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83102         * lib/unistr/u8-uctomb.c: Likewise.
83103         * lib/unistr/u16-mbtouc.c: Likewise.
83104         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83105         * lib/unistr/u16-uctomb.c: Likewise.
83106         * lib/unistr/u32-mbtouc.c: Likewise.
83107         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83108         * lib/unistr/u32-uctomb.c: Likewise.
83110 2009-04-10  Bruno Haible  <bruno@clisp.org>
83112         Mark 'utime' obsolete.
83113         * modules/utime (Status, Notice): New sections.
83114         Suggested by Jim Meyering.
83116         Fix cross-compile guess for utime test.
83117         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
83118         autoconf.
83119         * doc/posix-functions/utime.texi: Give more precisions.
83120         Reported by Jan <ipif@ymail.com>.
83122 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
83124         filevercmp: correct today's change
83125         * lib/filevercmp.c: Also handle coreutils' test inputs.
83126         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
83128         Fix regression in 'filevercmp' module. Thanks Sven Joachim
83129         for reporting it.
83130         * lib/filevercmp.c: Special handle for "", "." and "..".
83131         * tests/test-filevercmp.c: Enlarge the set suite.
83133 2009-04-07  Jim Meyering  <meyering@redhat.com>
83135         useless-if-before-free: show how to remove braced useless free, too
83136         * build-aux/useless-if-before-free: still only in a comment, though.
83138 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
83140         maint.mk: import changes to syntax-check macros from coreutils
83141         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
83142         Use them in the relevant macros.
83144 2009-04-06  Bruno Haible  <bruno@clisp.org>
83146         Fix unportable use of bit-fields.
83147         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
83148         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
83149         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
83151 2009-04-06  Bruno Haible  <bruno@clisp.org>
83153         Avoid test failures on AIX and OSF/1.
83154         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
83155         that malloc(0) = NULL.
83156         * tests/unicase/test-u8-tolower.c (check): Likewise.
83157         * tests/unicase/test-u8-totitle.c (check): Likewise.
83158         * tests/unicase/test-u8-toupper.c (check): Likewise.
83159         * tests/unicase/test-u16-casefold.c (check): Likewise.
83160         * tests/unicase/test-u16-tolower.c (check): Likewise.
83161         * tests/unicase/test-u16-totitle.c (check): Likewise.
83162         * tests/unicase/test-u16-toupper.c (check): Likewise.
83163         * tests/unicase/test-u32-casefold.c (check): Likewise.
83164         * tests/unicase/test-u32-tolower.c (check): Likewise.
83165         * tests/unicase/test-u32-totitle.c (check): Likewise.
83166         * tests/unicase/test-u32-toupper.c (check): Likewise.
83167         * tests/uninorm/test-u8-nfc.c (check): Likewise.
83168         * tests/uninorm/test-u8-nfd.c (check): Likewise.
83169         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
83170         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
83171         * tests/uninorm/test-u16-nfc.c (check): Likewise.
83172         * tests/uninorm/test-u16-nfd.c (check): Likewise.
83173         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
83174         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
83175         * tests/uninorm/test-u32-nfc.c (check): Likewise.
83176         * tests/uninorm/test-u32-nfd.c (check): Likewise.
83177         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
83178         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
83180 2009-04-05  Bruno Haible  <bruno@clisp.org>
83182         Work around an autoconf limitation.
83183         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
83184         comment line if it would be longer than 3 KB.
83186 2009-04-05  Bruno Haible  <bruno@clisp.org>
83188         Avoid test failure with libiconv-1.13.
83189         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
83190         of the expected test results.
83192 2009-04-05  Bruno Haible  <bruno@clisp.org>
83194         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
83195         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
83196         that it should be installed.
83198 2009-04-05  Bruno Haible  <bruno@clisp.org>
83200         * gnulib-tool: New option --copy-file.
83201         (func_usage): Document it.
83202         (func_dest_tmpfilename): Moved out of func_import.
83203         (func_add_file, func_update_file): New functions, extracted from
83204         func_import.
83205         (func_import): Update.
83207 2009-04-05  Karl Berry  <karl@gnu.org>
83209         * README: prominently mention gnulib-tool.
83210         Rearrange sections so getting the code is near the top.
83212 2009-04-05  Bruno Haible  <bruno@clisp.org>
83214         * lib/unicase.h: Mention u*_cmp2.
83215         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83216         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
83217         * lib/unicase/ulc-casecmp.c: Likewise.
83218         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
83219         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
83220         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
83221         unistr/u8-cmp.
83222         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
83223         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
83224         unistr/u16-cmp.
83225         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
83226         unistr/u32-cmp.
83228         * lib/uninorm.h: Mention u*_cmp2.
83229         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83230         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
83231         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
83232         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
83233         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
83234         unistr/u8-cmp.
83235         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
83236         unistr/u16-cmp.
83237         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
83238         unistr/u32-cmp.
83240         New module 'unistr/u32-cmp2'.
83241         * lib/unistr/u32-cmp2.c: New file.
83242         * modules/unistr/u32-cmp2: New file.
83244         New module 'unistr/u16-cmp2'.
83245         * lib/unistr/u16-cmp2.c: New file.
83246         * modules/unistr/u16-cmp2: New file.
83248         New module 'unistr/u8-cmp2'.
83249         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
83250         * lib/unistr/u8-cmp2.c: New file.
83251         * lib/unistr/u-cmp2.h: New file.
83252         * modules/unistr/u8-cmp2: New file.
83254 2009-04-05  Bruno Haible  <bruno@clisp.org>
83256         * lib/unictype.h (uc_property_is_valid): New macro.
83257         * tests/unictype/test-pr_byname.c (main): Use it.
83259         * lib/unistr.h: Doc fixes.
83260         * lib/uniconv.h: Doc fixes.
83261         * lib/unictype.h: Doc fixes.
83263 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
83265         Port coreutils 7.2 to Solaris 8.
83267         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
83268         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
83269         for Solaris 8.  This is a bit of a hack, as it means it's the
83270         caller's responsibility to add -lnsl if needed, but most likely it
83271         won't be needed since only getaddrinfo uses this and getaddrinfo
83272         isn't needed on Solaris 8.
83274         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
83275         problem to Solaris 8 encountered with coreutils 7.2, which
83276         resulted in a message "fnmatch.c:292: warning: passing argument 4
83277         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
83278         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
83280 2009-04-03  Simon Josefsson  <simon@josefsson.org>
83282         * m4/ld-version-script.m4: Add FIXME comment.
83284 2009-04-02  Simon Josefsson  <simon@josefsson.org>
83286         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
83287         SOVERSION variable.
83289 2009-04-02  Bruno Haible  <bruno@clisp.org>
83291         * Makefile (info, html, dvi, pdf): Combine the rules.
83292         Suggested by Jim Meyering.
83294 2009-04-01  Bruno Haible  <bruno@clisp.org>
83296         * Makefile (info, html, dvi, pdf): New targets.
83297         Reported by Reuben Thomas <rrt@sc3d.org>.
83299 2009-04-01  Bruno Haible  <bruno@clisp.org>
83301         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
83302         can be put into PATH.
83303         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
83305 2009-04-01  Bruno Haible  <bruno@clisp.org>
83307         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
83309 2009-04-01  Bruno Haible  <bruno@clisp.org>
83311         Rename module 'visibility'.
83312         * modules/lib-symbol-visibility: Renamed from modules/visibility.
83313         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
83314         * doc/gnulib.texi: Update.
83315         * MODULES.html.sh (Misc): Update.
83316         * NEWS: Mention the change.
83318 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83320         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
83321         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
83322         Eric Blake <ebb9@byu.net> for review.
83323         * MODULES.html.sh: Add lib-msvc-compat.
83324         * doc/gnulib.texi: Link to new section.
83325         * m4/ld-output-def.m4: New file.
83326         * doc/ld-output-def.texi: New file.
83328 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83330         Rename ld-version-script to lib-symbol-versions.  Suggested by
83331         Bruno Haible <bruno@clisp.org>.
83332         * modules/ld-version-script: Renamed to lib-symbol-versions.
83333         * doc/ld-version-script.texi: Fix module name.
83334         * MODULES.html.sh: Add lib-symbol-versions.
83336 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83338         * modules/u64-tests: New file.
83339         * tests/test-u64.c: New file.
83341 2009-03-04  Simon Josefsson  <simon@josefsson.org>
83343         * MODULES.html.sh: Mention u64.
83344         * modules/u64: New module.
83345         * modules/crypto/sha512: Depend on u64 module instead of providing
83346         u64.h.
83348 2009-03-27  Eric Blake  <ebb9@byu.net>
83350         test-strerror: make debugging EAI_SYSTEM easier
83351         * modules/getaddrinfo-tests (Depends-on): Add strerror.
83352         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
83353         failure was EAI_SYSTEM.
83355 2009-03-25  Bruno Haible  <bruno@clisp.org>
83357         Fix a problem with --enable-relocatable on Solaris 7.
83358         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
83359         since 2008-02-24.
83361 2009-03-25  Eric Blake  <ebb9@byu.net>
83363         test-sockets: avoid gcc warning
83364         * tests/test-sockets.c (main): Silence compiler warning.
83366 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83368         New modules nproc, pthread, contributed by Glen Lenker.
83370         * MODULES.html.sh: Add pthread, nproc.
83371         * lib/nproc.c: New file.
83372         * lib/nproc.h: New file.
83373         * lib/pthread.in.h: New file.
83374         * m4/pthread.m4: New file.
83375         * modules/nproc: New file.
83376         * modules/pthread: New file.
83378 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83380         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
83381         New variable.
83383 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
83385         filevercmp: handle simple~ and numbered.~3~ backup suffixes
83386         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
83387         * tests/test-filevercmp.c: Add tests for backup suffixes.
83389 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83391         * modules/stdlib (Depends-on): Add stdint, needed when defining
83392         struct random_data on, for example, HP-UX 10.20.  Reported by
83393         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83395 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83397         * lib/readline.c (readline): Call fflush on stdout after printing
83398         prompt.
83400 2009-03-20  Bruno Haible  <bruno@clisp.org>
83402         Remove dependency from 'close' module to -lws2_32 on native Windows.
83403         * lib/close-hook.h: New file.
83404         * lib/close-hook.c: New file.
83405         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
83406         w32sock.h.
83407         (_gl_close_fd_maybe_socket): Remove function.
83408         (rpl_close): Invoke execute_all_close_hooks instead of
83409         _gl_close_fd_maybe_socket.
83410         * lib/sockets.c: Include close-hook.h, w32sock.h.
83411         (close_fd_maybe_socket): New function, essentially from lib/close.c.
83412         (close_sockets_hook): New variable.
83413         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
83414         (gl_sockets_cleanup): Unregister it.
83415         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
83416         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
83417         * modules/close-hook: New file.
83418         * modules/close (Files): Remove lib/w32sock.h.
83419         (Depends-on): Add close-hook.
83420         (Link): Remove section.
83421         * modules/sockets (Files): Add lib/w32sock.h.
83422         (Depends-on): Add close-hook.
83423         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
83424         invocation.
83425         * NEWS: Mention that LIB_CLOSE is gone.
83427 2009-03-23  Eric Blake  <ebb9@byu.net>
83429         signal-tests: test previous patch
83430         * tests/test-signal.c: New file.
83431         * modules/signal-tests: Likewise.
83433         signal.h: always support 'volatile sig_atomic_t'
83434         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
83435         (gl_SIGNAL_H_DEFAULTS): Add a default.
83436         * modules/signal (Makefile.am): Substitute if needed.
83437         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
83438         users can blindly add volatile.
83439         * doc/posix-headers/signal.texi (signal.h): Document it.
83440         Reported by Matthew Woehlke.
83442 2009-03-23  Jim Meyering  <meyering@redhat.com>
83444         pathmax: PATH_MAX: use pathconf only when available
83445         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
83446         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
83447         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
83448         This avoids a link failure in a PSP cross-compilation environment
83449         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
83451         * lib/vasnprintf.c (divide): Fix typo in comment.
83453 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83455         * gnulib-tool (func_filter_filelist): Fix comment.
83457 2009-03-20  Bruno Haible  <bruno@clisp.org>
83459         Make sockets.h self-contained.
83460         * lib/sockets.c: Include sockets.h first.
83461         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
83463 2009-03-19  Eric Blake  <ebb9@byu.net>
83465         doc: mention more functions added in cygwin 1.7.0
83466         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
83467         addition.
83468         * doc/posix-functions/log2f.texi: Likewise.
83470 2009-03-19  Jim Meyering  <meyering@redhat.com>
83472         fsusage: avoid syntax error due to statement-before-declaration
83473         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
83474         after all declarations.  Reported by Matthew Woehlke in
83475         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
83477 2009-03-18  Eric Blake  <ebb9@byu.net>
83479         build-aux/compile: sync from automake
83480         * build-aux/compile: New file, from automake.
83481         * config/srclist.txt: Mention build-aux/compile.
83483 2009-03-17  Bruno Haible  <bruno@clisp.org>
83485         * lib/git-merge-changelog.c: Fix typo in comment.
83486         Reported by Reuben Thomas <rrt@sc3d.org>.
83488 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
83490         * m4/regex.m4: update and improve help for
83491         --without-included-regex.
83493 2009-03-17  Simon Josefsson  <simon@josefsson.org>
83495         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
83496         failure on missing include files.
83498 2009-03-17  Eric Blake  <ebb9@byu.net>
83500         doc: mention more functions added in cygwin 1.7.0
83501         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
83502         addition.
83503         * doc/posix-functions/fwscanf.texi: Likewise.
83504         * doc/posix-functions/swprintf.texi: Likewise.
83505         * doc/posix-functions/swscanf.texi: Likewise.
83506         * doc/posix-functions/vfwprintf.texi: Likewise.
83507         * doc/posix-functions/vfwscanf.texi: Likewise.
83508         * doc/posix-functions/vswprintf.texi: Likewise.
83509         * doc/posix-functions/vswscanf.texi: Likewise.
83510         * doc/posix-functions/vwprintf.texi: Likewise.
83511         * doc/posix-functions/vwscanf.texi: Likewise.
83512         * doc/posix-functions/wcscasecmp.texi: Likewise.
83513         * doc/posix-functions/wcsdup.texi: Likewise.
83514         * doc/posix-functions/wcsftime.texi: Likewise.
83515         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83516         * doc/posix-functions/wprintf.texi: Likewise.
83517         * doc/posix-functions/wscanf.texi: Likewise.
83518         * doc/glibc-functions/gethostbyname2.texi: Likewise.
83520 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83522         maint.mk: really add $(AM_MAKEFLAGS)
83523         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
83524         was inadvertently omitted in the last commit.
83525         Spotted by Bruno Haible.
83527         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
83528         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
83529         $(AM_MAKEFLAGS)' rather than plain `make'.
83531         gnulib-tool: execute $MAKE not make
83532         * gnulib-tool: Default $MAKE to 'make'.
83533         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
83534         than make.  Initialize $MAKE in the do-autobuild script.
83536         gnulib-tool: use $MAKE not make in generated files
83537         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
83538         make, in generated files.  Initialize $MAKE in the do-autobuild
83539         script.
83541         * top/GNUmakefile (_have-git-version-gen): Fix typo.
83543         GNUmakefile: disable parallelism only for multiple, recursive targets
83544         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
83545         additions in the Makefile.
83546         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
83547         by Automake.
83548         (.NOTPARALLEL): Only disable parallel builds if multiple targets
83549         are listed on the command line and at least one of them is
83550         listed in $(ALL_RECURSIVE_TARGETS).
83552 2009-03-14  Bruno Haible  <bruno@clisp.org>
83554         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
83555         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
83556         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
83557         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
83558         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
83559         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
83560         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
83561         unistr/u8-uctomb.
83562         * modules/unistr/u8-strchr (Depends-on): Likewise.
83563         * modules/unistr/u8-strrchr (Depends-on): Likewise.
83564         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
83565         unistr/u16-uctomb.
83566         * modules/unistr/u16-strchr (Depends-on): Likewise.
83567         * modules/unistr/u16-strrchr (Depends-on): Likewise.
83569 2009-03-12  Bruno Haible  <bruno@clisp.org>
83571         Work around select() bug on Interix 3.5.
83572         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
83573         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
83574         * m4/select.m4: New file.
83575         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
83576         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
83577         * modules/select (Files): Add m4/select.m4.
83578         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
83579         * modules/nanosleep (Depends-on): Add select.
83580         * modules/poll (Depends-on): Likewise.
83581         * doc/posix-functions/select.texi: Mention the Interix bug.
83582         Reported by Markus Duft <mduft@gentoo.org>.
83584         * lib/select.c: Renamed from lib/winsock-select.c.
83585         * modules/select (Files): Add lib/select.c, remove
83586         lib/winsock-select.c.
83587         (configure.ac): Update.
83589 2009-03-12  Jim Meyering  <meyering@redhat.com>
83591         avoid gcc warnings about unused macro definitions
83592         * lib/readtokens.c (STREQ): Remove unused definition.
83593         * lib/xmalloc.c (SIZE_MAX): Likewise.
83594         * lib/openat-die.c (N_): Likewise.
83595         * lib/mountlist.c (SIZE_MAX): Remove definition.
83596         Instead, include <stdint.h>.
83597         * lib/readutmp.c: Likewise.
83598         * modules/readutmp (Depends-on): Add stdint.
83599         * modules/mountlist (Depends-on): Add stdint.
83600         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
83602 2009-03-10  Bruno Haible  <bruno@clisp.org>
83604         Tests for module 'mbmemcasecoll'.
83605         * modules/mbmemcasecoll-tests: New file.
83606         * tests/test-mbmemcasecoll1.sh: New file.
83607         * tests/test-mbmemcasecoll2.sh: New file.
83608         * tests/test-mbmemcasecoll3.sh: New file.
83609         * tests/test-mbmemcasecoll.c: New file.
83611         New module 'mbmemcasecoll'.
83612         * lib/mbmemcasecoll.h: New file.
83613         * lib/mbmemcasecoll.c: New file.
83614         * modules/mbmemcasecoll: New file.
83616         * tests/test-mbmemcasecmp.h: New file, extracted from
83617         tests/test-mbmemcasecmp.c.
83618         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
83619         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
83620         (main): Update.
83621         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
83623 2009-03-09  Bruno Haible  <bruno@clisp.org>
83625         Tests for module 'mbmemcasecmp'.
83626         * modules/mbmemcasecmp-tests: New file.
83627         * tests/test-mbmemcasecmp1.sh: New file.
83628         * tests/test-mbmemcasecmp2.sh: New file.
83629         * tests/test-mbmemcasecmp3.sh: New file.
83630         * tests/test-mbmemcasecmp.c: New file.
83632         New module 'mbmemcasecmp'.
83633         * lib/mbmemcasecmp.h: New file.
83634         * lib/mbmemcasecmp.c: New file.
83635         * modules/mbmemcasecmp: New file.
83637 2009-03-09  Bruno Haible  <bruno@clisp.org>
83639         Tests for module 'unicase/ulc-casecoll'.
83640         * modules/unicase/ulc-casecoll-tests: New file.
83641         * tests/unicase/test-ulc-casecoll1.sh: New file.
83642         * tests/unicase/test-ulc-casecoll2.sh: New file.
83643         * tests/unicase/test-ulc-casecoll.c: New file.
83645         New module 'unicase/ulc-casecoll'.
83646         * lib/unicase.h (ulc_casecoll): New declaration.
83647         * lib/unicase/ulc-casecoll.c: New file.
83648         * modules/unicase/ulc-casecoll: New file.
83650         New module 'unicase/ulc-casexfrm'.
83651         * lib/unicase.h (ulc_casexfrm): New declaration.
83652         * lib/unicase/ulc-casexfrm.c: New file.
83653         * modules/unicase/ulc-casexfrm: New file.
83655 2009-03-09  Bruno Haible  <bruno@clisp.org>
83657         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
83658         invocations.
83660         * m4/mbscasecmp.m4: Remove file.
83661         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
83662         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
83664         * m4/mbscasestr.m4: Remove file.
83665         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
83666         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
83668         * m4/mbschr.m4: Remove file.
83669         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
83670         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
83672         * m4/mbscspn.m4: Remove file.
83673         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
83674         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
83676         * m4/mbslen.m4: Remove file.
83677         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
83678         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
83680         * m4/mbsncasecmp.m4: Remove file.
83681         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
83682         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
83684         * m4/mbsnlen.m4: Remove file.
83685         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
83686         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
83688         * m4/mbspbrk.m4: Remove file.
83689         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
83690         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
83692         * m4/mbspcasecmp.m4: Remove file.
83693         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
83694         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
83696         * m4/mbsrchr.m4: Remove file.
83697         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
83698         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
83700         * m4/mbssep.m4: Remove file.
83701         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
83702         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
83704         * m4/mbsspn.m4: Remove file.
83705         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
83706         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
83708         * m4/mbsstr.m4: Remove file.
83709         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
83710         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
83712         * m4/mbstok_r.m4: Remove file.
83713         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
83714         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
83716         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
83718         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
83719         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
83721         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
83723 2009-03-08  Bruno Haible  <bruno@clisp.org>
83725         Tests for module 'unicase/ulc-casecmp'.
83726         * modules/unicase/ulc-casecmp-tests: New file.
83727         * tests/unicase/test-ulc-casecmp1.sh: New file.
83728         * tests/unicase/test-ulc-casecmp2.sh: New file.
83729         * tests/unicase/test-ulc-casecmp.c: New file.
83731         New module 'unicase/ulc-casecmp'.
83732         * lib/unicase.h (ulc_casecmp): New declaration.
83733         * lib/unicase/ulc-casecmp.c: New file.
83734         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
83735         'const SRC_UNIT *'.
83736         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
83737         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
83738         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
83739         * modules/unicase/ulc-casecmp: New file.
83741         Tests for module 'unicase/u32-is-cased'.
83742         * modules/unicase/u32-is-cased-tests: New file.
83743         * tests/unicase/test-u32-is-cased.c: New file.
83745         Tests for module 'unicase/u16-is-cased'.
83746         * modules/unicase/u16-is-cased-tests: New file.
83747         * tests/unicase/test-u16-is-cased.c: New file.
83749         Tests for module 'unicase/u8-is-cased'.
83750         * modules/unicase/u8-is-cased-tests: New file.
83751         * tests/unicase/test-u8-is-cased.c: New file.
83752         * tests/unicase/test-is-cased.h: New file.
83754         New module 'unicase/u32-is-cased'.
83755         * lib/unicase/u32-is-cased.c: New file.
83756         * modules/unicase/u32-is-cased: New file.
83758         New module 'unicase/u16-is-cased'.
83759         * lib/unicase/u16-is-cased.c: New file.
83760         * modules/unicase/u16-is-cased: New file.
83762         New module 'unicase/u8-is-cased'.
83763         * lib/unicase/u8-is-cased.c: New file.
83764         * lib/unicase/u-is-cased.h: New file.
83765         * modules/unicase/u8-is-cased: New file.
83767         Tests for module 'unicase/u32-is-casefolded'.
83768         * modules/unicase/u32-is-casefolded-tests: New file.
83769         * tests/unicase/test-u32-is-casefolded.c: New file.
83771         Tests for module 'unicase/u16-is-casefolded'.
83772         * modules/unicase/u16-is-casefolded-tests: New file.
83773         * tests/unicase/test-u16-is-casefolded.c: New file.
83775         Tests for module 'unicase/u8-is-casefolded'.
83776         * modules/unicase/u8-is-casefolded-tests: New file.
83777         * tests/unicase/test-u8-is-casefolded.c: New file.
83778         * tests/unicase/test-is-casefolded.h: New file.
83780         New module 'unicase/u32-is-casefolded'.
83781         * lib/unicase/u32-is-casefolded.c: New file.
83782         * modules/unicase/u32-is-casefolded: New file.
83784         New module 'unicase/u16-is-casefolded'.
83785         * lib/unicase/u16-is-casefolded.c: New file.
83786         * modules/unicase/u16-is-casefolded: New file.
83788         New module 'unicase/u8-is-casefolded'.
83789         * lib/unicase/u8-is-casefolded.c: New file.
83790         * modules/unicase/u8-is-casefolded: New file.
83792         Tests for module 'unicase/u32-is-titlecase'.
83793         * modules/unicase/u32-is-titlecase-tests: New file.
83794         * tests/unicase/test-u32-is-titlecase.c: New file.
83796         Tests for module 'unicase/u16-is-titlecase'.
83797         * modules/unicase/u16-is-titlecase-tests: New file.
83798         * tests/unicase/test-u16-is-titlecase.c: New file.
83800         Tests for module 'unicase/u8-is-titlecase'.
83801         * modules/unicase/u8-is-titlecase-tests: New file.
83802         * tests/unicase/test-u8-is-titlecase.c: New file.
83803         * tests/unicase/test-is-titlecase.h: New file.
83805         New module 'unicase/u32-is-titlecase'.
83806         * lib/unicase/u32-is-titlecase.c: New file.
83807         * modules/unicase/u32-is-titlecase: New file.
83809         New module 'unicase/u16-is-titlecase'.
83810         * lib/unicase/u16-is-titlecase.c: New file.
83811         * modules/unicase/u16-is-titlecase: New file.
83813         New module 'unicase/u8-is-titlecase'.
83814         * lib/unicase/u8-is-titlecase.c: New file.
83815         * modules/unicase/u8-is-titlecase: New file.
83817         Tests for module 'unicase/u32-is-lowercase'.
83818         * modules/unicase/u32-is-lowercase-tests: New file.
83819         * tests/unicase/test-u32-is-lowercase.c: New file.
83821         Tests for module 'unicase/u16-is-lowercase'.
83822         * modules/unicase/u16-is-lowercase-tests: New file.
83823         * tests/unicase/test-u16-is-lowercase.c: New file.
83825         Tests for module 'unicase/u8-is-lowercase'.
83826         * modules/unicase/u8-is-lowercase-tests: New file.
83827         * tests/unicase/test-u8-is-lowercase.c: New file.
83828         * tests/unicase/test-is-lowercase.h: New file.
83830         New module 'unicase/u32-is-lowercase'.
83831         * lib/unicase/u32-is-lowercase.c: New file.
83832         * modules/unicase/u32-is-lowercase: New file.
83834         New module 'unicase/u16-is-lowercase'.
83835         * lib/unicase/u16-is-lowercase.c: New file.
83836         * modules/unicase/u16-is-lowercase: New file.
83838         New module 'unicase/u8-is-lowercase'.
83839         * lib/unicase/u8-is-lowercase.c: New file.
83840         * modules/unicase/u8-is-lowercase: New file.
83842         Tests for module 'unicase/u32-is-uppercase'.
83843         * modules/unicase/u32-is-uppercase-tests: New file.
83844         * tests/unicase/test-u32-is-uppercase.c: New file.
83846         Tests for module 'unicase/u16-is-uppercase'.
83847         * modules/unicase/u16-is-uppercase-tests: New file.
83848         * tests/unicase/test-u16-is-uppercase.c: New file.
83850         Tests for module 'unicase/u8-is-uppercase'.
83851         * modules/unicase/u8-is-uppercase-tests: New file.
83852         * tests/unicase/test-u8-is-uppercase.c: New file.
83853         * tests/unicase/test-is-uppercase.h: New file.
83855         New module 'unicase/u32-is-uppercase'.
83856         * lib/unicase/u32-is-uppercase.c: New file.
83857         * modules/unicase/u32-is-uppercase: New file.
83859         New module 'unicase/u16-is-uppercase'.
83860         * lib/unicase/u16-is-uppercase.c: New file.
83861         * modules/unicase/u16-is-uppercase: New file.
83863         New module 'unicase/u8-is-uppercase'.
83864         * lib/unicase/u8-is-uppercase.c: New file.
83865         * modules/unicase/u8-is-uppercase: New file.
83867         New module 'unicase/u32-is-invariant'.
83868         * lib/unicase/u32-is-invariant.c: New file.
83869         * modules/unicase/u32-is-invariant: New file.
83871         New module 'unicase/u16-is-invariant'.
83872         * lib/unicase/u16-is-invariant.c: New file.
83873         * modules/unicase/u16-is-invariant: New file.
83875         New module 'unicase/u8-is-invariant'.
83876         * lib/unicase/u8-is-invariant.c: New file.
83877         * lib/unicase/invariant.h: New file.
83878         * lib/unicase/u-is-invariant.h: New file.
83879         * modules/unicase/u8-is-invariant: New file.
83881         Tests for module 'unicase/u32-casecoll'.
83882         * modules/unicase/u32-casecoll-tests: New file.
83883         * tests/unicase/test-u32-casecoll.c: New file.
83885         Tests for module 'unicase/u16-casecoll'.
83886         * modules/unicase/u16-casecoll-tests: New file.
83887         * tests/unicase/test-u16-casecoll.c: New file.
83889         Tests for module 'unicase/u8-casecoll'.
83890         * modules/unicase/u8-casecoll-tests: New file.
83891         * tests/unicase/test-u8-casecoll.c: New file.
83893         New module 'unicase/u32-casecoll'.
83894         * lib/unicase/u32-casecoll.c: New file.
83895         * modules/unicase/u32-casecoll: New file.
83897         New module 'unicase/u16-casecoll'.
83898         * lib/unicase/u16-casecoll.c: New file.
83899         * modules/unicase/u16-casecoll: New file.
83901         New module 'unicase/u8-casecoll'.
83902         * lib/unicase/u8-casecoll.c: New file.
83903         * lib/unicase/u-casecoll.h: New file.
83904         * modules/unicase/u8-casecoll: New file.
83906         New module 'unicase/u32-casexfrm'.
83907         * lib/unicase/u32-casexfrm.c: New file.
83908         * modules/unicase/u32-casexfrm: New file.
83910         New module 'unicase/u16-casexfrm'.
83911         * lib/unicase/u16-casexfrm.c: New file.
83912         * modules/unicase/u16-casexfrm: New file.
83914         New module 'unicase/u8-casexfrm'.
83915         * lib/unicase/u8-casexfrm.c: New file.
83916         * lib/unicase/u-casexfrm.h: New file.
83917         * modules/unicase/u8-casexfrm: New file.
83919         Tests for module 'unicase/u32-casecmp'.
83920         * modules/unicase/u32-casecmp-tests: New file.
83921         * tests/unicase/test-u32-casecmp.c: New file.
83923         Tests for module 'unicase/u16-casecmp'.
83924         * modules/unicase/u16-casecmp-tests: New file.
83925         * tests/unicase/test-u16-casecmp.c: New file.
83927         Tests for module 'unicase/u8-casecmp'.
83928         * modules/unicase/u8-casecmp-tests: New file.
83929         * tests/unicase/test-u8-casecmp.c: New file.
83930         * tests/unicase/test-casecmp.h: New file.
83932         New module 'unicase/u32-casecmp'.
83933         * lib/unicase/u32-casecmp.c: New file.
83934         * modules/unicase/u32-casecmp: New file.
83936         New module 'unicase/u16-casecmp'.
83937         * lib/unicase/u16-casecmp.c: New file.
83938         * modules/unicase/u16-casecmp: New file.
83940         New module 'unicase/u8-casecmp'.
83941         * lib/unicase/u8-casecmp.c: New file.
83942         * lib/unicase/u-casecmp.h: New file.
83943         * modules/unicase/u8-casecmp: New file.
83945         Tests for module 'unicase/u32-casefold'.
83946         * modules/unicase/u32-casefold-tests: New file.
83947         * tests/unicase/test-u32-casefold.c: New file.
83949         Tests for module 'unicase/u16-casefold'.
83950         * modules/unicase/u16-casefold-tests: New file.
83951         * tests/unicase/test-u16-casefold.c: New file.
83953         Tests for module 'unicase/u8-casefold'.
83954         * modules/unicase/u8-casefold-tests: New file.
83955         * tests/unicase/test-u8-casefold.c: New file.
83957         New module 'unicase/u32-casefold'.
83958         * lib/unicase/u32-casefold.c: New file.
83959         * modules/unicase/u32-casefold: New file.
83961         New module 'unicase/u16-casefold'.
83962         * lib/unicase/u16-casefold.c: New file.
83963         * modules/unicase/u16-casefold: New file.
83965         New module 'unicase/u8-casefold'.
83966         * lib/unicase/u8-casefold.c: New file.
83967         * lib/unicase/u-casefold.h: New file.
83968         * modules/unicase/u8-casefold: New file.
83970         New module 'unicase/tocasefold'.
83971         * lib/unicase/casefold.h: New file.
83972         * lib/unicase/tocasefold.c: New file.
83973         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
83974         * modules/unicase/tocasefold: New file.
83976         Tests for module 'unicase/u32-totitle'.
83977         * modules/unicase/u32-totitle-tests: New file.
83978         * tests/unicase/test-u32-totitle.c: New file.
83980         Tests for module 'unicase/u16-totitle'.
83981         * modules/unicase/u16-totitle-tests: New file.
83982         * tests/unicase/test-u16-totitle.c: New file.
83984         Tests for module 'unicase/u8-totitle'.
83985         * modules/unicase/u8-totitle-tests: New file.
83986         * tests/unicase/test-u8-totitle.c: New file.
83988         New module 'unicase/u32-totitle'.
83989         * lib/unicase/u32-totitle.c: New file.
83990         * modules/unicase/u32-totitle: New file.
83992         New module 'unicase/u16-totitle'.
83993         * lib/unicase/u16-totitle.c: New file.
83994         * modules/unicase/u16-totitle: New file.
83996         New module 'unicase/u8-totitle'.
83997         * lib/unicase/u8-totitle.c: New file.
83998         * lib/unicase/u-totitle.h: New file.
83999         * modules/unicase/u8-totitle: New file.
84001         Tests for module 'unicase/u32-tolower'.
84002         * modules/unicase/u32-tolower-tests: New file.
84003         * tests/unicase/test-u32-tolower.c: New file.
84005         Tests for module 'unicase/u16-tolower'.
84006         * modules/unicase/u16-tolower-tests: New file.
84007         * tests/unicase/test-u16-tolower.c: New file.
84009         Tests for module 'unicase/u8-tolower'.
84010         * modules/unicase/u8-tolower-tests: New file.
84011         * tests/unicase/test-u8-tolower.c: New file.
84013         New module 'unicase/u32-tolower'.
84014         * lib/unicase/u32-tolower.c: New file.
84015         * modules/unicase/u32-tolower: New file.
84017         New module 'unicase/u16-tolower'.
84018         * lib/unicase/u16-tolower.c: New file.
84019         * modules/unicase/u16-tolower: New file.
84021         New module 'unicase/u8-tolower'.
84022         * lib/unicase/u8-tolower.c: New file.
84023         * modules/unicase/u8-tolower: New file.
84025         Tests for module 'unicase/u32-toupper'.
84026         * modules/unicase/u32-toupper-tests: New file.
84027         * tests/unicase/test-u32-toupper.c: New file.
84029         Tests for module 'unicase/u16-toupper'.
84030         * modules/unicase/u16-toupper-tests: New file.
84031         * tests/unicase/test-u16-toupper.c: New file.
84033         Tests for module 'unicase/u8-toupper'.
84034         * modules/unicase/u8-toupper-tests: New file.
84035         * tests/unicase/test-u8-toupper.c: New file.
84037         New module 'unicase/u32-toupper'.
84038         * lib/unicase/u32-toupper.c: New file.
84039         * modules/unicase/u32-toupper: New file.
84041         New module 'unicase/u16-toupper'.
84042         * lib/unicase/u16-toupper.c: New file.
84043         * modules/unicase/u16-toupper: New file.
84045         New module 'unicase/u8-toupper'.
84046         * lib/unicase/u8-toupper.c: New file.
84047         * modules/unicase/u8-toupper: New file.
84049         New module 'unicase/u32-casemap'.
84050         * lib/unicase/u32-casemap.c: New file.
84051         * modules/unicase/u32-casemap: New file.
84053         New module 'unicase/u16-casemap'.
84054         * lib/unicase/u16-casemap.c: New file.
84055         * modules/unicase/u16-casemap: New file.
84057         New module 'unicase/u8-casemap'.
84058         * lib/unicase/unicasemap.h: New file.
84059         * lib/unicase/u8-casemap.c: New file.
84060         * lib/unicase/u-casemap.h: New file.
84061         * modules/unicase/u8-casemap: New file.
84063         New module 'unicase/special-casing'.
84064         * lib/unicase/special-casing.h: New file.
84065         * lib/unicase/special-casing.c: New file.
84066         * lib/unicase/special-casing-table.gperf: New file, generated by
84067         gen-uni-tables.c.
84068         * modules/unicase/special-casing: New file.
84070         Tests for module 'unicase/locale-language'.
84071         * modules/unicase/locale-language-tests: New file.
84072         * tests/unicase/test-locale-language.sh: New file.
84073         * tests/unicase/test-locale-language.c: New file.
84075         New module 'unicase/locale-language'.
84076         * lib/unicase/locale-language.c: New file.
84077         * lib/unicase/locale-languages.gperf: New file.
84078         * modules/unicase/locale-language: New file.
84080         Generate more tables for case conversion and case folding.
84081         * lib/gen-uni-tables.c (SCC_*): New enum items.
84082         (struct special_casing_rule): New type.
84083         (casing_rules, num_casing_rules, allocated_casing_rules): New
84084         variables.
84085         (add_casing_rule, fill_casing_rules): New functions.
84086         (struct casefold_rule): New type.
84087         (casefolding_rules, num_casefolding_rules,
84088         allocated_casefolding_rules): New variables.
84089         (fill_casefolding_rules): New function.
84090         (unicode_casefold): New variable.
84091         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
84092         sort_casing_rules, output_casing_rules): New functions.
84093         (main): Accept to more arguments: SpecialCasing.txt and
84094         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
84095         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
84096         Output mapping for casefolding.
84098         * lib/unicase.h: Include stdbool.h, uninorm.h.
84099         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
84100         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
84101         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
84102         arguments.
84103         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
84104         resultp arguments.
84105         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
84106         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
84107         resultp arguments.
84108         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
84109         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
84110         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
84111         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
84112         declarations.
84113         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
84115 2009-03-08  Bruno Haible  <bruno@clisp.org>
84117         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84118         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
84119         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
84120         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84122 2009-03-07  Bruno Haible  <bruno@clisp.org>
84124         Adjust u*_normcmp, u*_normcoll API.
84125         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84126         u16_normcoll, u32_normcoll): Change failure conventions.
84127         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
84128         errno and return -1.
84129         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84131 2009-03-07  Bruno Haible  <bruno@clisp.org>
84133         Tests for module 'uninorm/u32-normcoll'.
84134         * modules/uninorm/u32-normcoll-tests: New file.
84135         * tests/uninorm/test-u32-normcoll.c: New file.
84137         Tests for module 'uninorm/u16-normcoll'.
84138         * modules/uninorm/u16-normcoll-tests: New file.
84139         * tests/uninorm/test-u16-normcoll.c: New file.
84141         Tests for module 'uninorm/u8-normcoll'.
84142         * modules/uninorm/u8-normcoll-tests: New file.
84143         * tests/uninorm/test-u8-normcoll.c: New file.
84145 2009-03-07  Bruno Haible  <bruno@clisp.org>
84147         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
84148         tests/uninorm/test-u32-normcmp.c.
84149         * tests/uninorm/test-u32-normcmp.c: Include it.
84150         (test_nonascii): New function, extracted from main. Add some more
84151         tests.
84152         (main): Invoke test_ascii and test_nonascii.
84153         * modules/uninorm/u32-normcmp-tests (Files): Add
84154         tests/uninorm/test-u32-normcmp.h.
84155         (Depends-on): Remove uninorm/u32-normcmp.
84157         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
84158         tests/uninorm/test-u16-normcmp.c.
84159         * tests/uninorm/test-u16-normcmp.c: Include it.
84160         (test_nonascii): New function, extracted from main. Add some more
84161         tests.
84162         (main): Invoke test_ascii and test_nonascii.
84163         * modules/uninorm/u16-normcmp-tests (Files): Add
84164         tests/uninorm/test-u16-normcmp.h.
84165         (Depends-on): Remove uninorm/u16-normcmp.
84167         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
84168         tests/uninorm/test-u8-normcmp.c.
84169         * tests/uninorm/test-u8-normcmp.c: Include it.
84170         (test_nonascii): New function, extracted from main. Add some more
84171         tests.
84172         (main): Invoke test_ascii and test_nonascii.
84173         * modules/uninorm/u8-normcmp-tests (Files): Add
84174         tests/uninorm/test-u8-normcmp.h.
84175         (Depends-on): Remove uninorm/u8-normcmp.
84177 2009-03-07  Bruno Haible  <bruno@clisp.org>
84179         New module 'uninorm/u32-normcoll'.
84180         * lib/uninorm/u32-normcoll.c: New file.
84181         * modules/uninorm/u32-normcoll: New file.
84183         New module 'uninorm/u16-normcoll'.
84184         * lib/uninorm/u16-normcoll.c: New file.
84185         * modules/uninorm/u16-normcoll: New file.
84187         New module 'uninorm/u8-normcoll'.
84188         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
84189         declarations.
84190         * lib/uninorm/u8-normcoll.c: New file.
84191         * lib/uninorm/u-normcoll.h: New file.
84192         * modules/uninorm/u8-normcoll: New file.
84194         New module 'uninorm/u32-normxfrm'.
84195         * lib/uninorm/u32-normxfrm.c: New file.
84196         * modules/uninorm/u32-normxfrm: New file.
84198         New module 'uninorm/u16-normxfrm'.
84199         * lib/uninorm/u16-normxfrm.c: New file.
84200         * modules/uninorm/u16-normxfrm: New file.
84202         New module 'uninorm/u8-normxfrm'.
84203         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
84204         declarations.
84205         * lib/uninorm/u8-normxfrm.c: New file.
84206         * lib/uninorm/u-normxfrm.h: New file.
84207         * modules/uninorm/u8-normxfrm: New file.
84209 2009-03-07  Bruno Haible  <bruno@clisp.org>
84211         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
84212         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
84213         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
84215 2009-03-07  Bruno Haible  <bruno@clisp.org>
84217         New module 'memxfrm'.
84218         * lib/memxfrm.h: New file.
84219         * lib/memxfrm.c: New file.
84220         * modules/memxfrm: New file.
84222 2009-03-07  Bruno Haible  <bruno@clisp.org>
84224         New module 'memcmp2'.
84225         * lib/memcmp2.h: New file.
84226         * lib/memcmp2.c: New file.
84227         * modules/memcmp2: New file.
84229 2009-03-07  Bruno Haible  <bruno@clisp.org>
84231         Tests for module 'uninorm/decomposing-form'.
84232         * modules/uninorm/decomposing-form-tests: New file.
84233         * tests/uninorm/test-decomposing-form.c: New file.
84235         New module 'uninorm/decomposing-form'.
84236         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
84237         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
84238         Add 'decomposing_variant' field.
84239         * lib/uninorm/decomposing-form.c: New file.
84240         * lib/uninorm/nfc.c (uninorm_nfc): Update.
84241         * lib/uninorm/nfd.c (uninorm_nfd): Update.
84242         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
84243         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
84244         * modules/uninorm/decomposing-form: New file.
84245         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
84246         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
84248 2009-03-07  Bruno Haible  <bruno@clisp.org>
84250         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
84251         strings.
84253 2009-03-06  Bruno Haible  <bruno@clisp.org>
84255         Tests for module 'uninorm/u32-normcmp'.
84256         * tests/uninorm/test-u32-normcmp.c: New file.
84257         * modules/uninorm/u32-normcmp-tests: New file.
84259         Tests for module 'uninorm/u16-normcmp'.
84260         * tests/uninorm/test-u16-normcmp.c: New file.
84261         * modules/uninorm/u16-normcmp-tests: New file.
84263         Tests for module 'uninorm/u8-normcmp'.
84264         * tests/uninorm/test-u8-normcmp.c: New file.
84265         * modules/uninorm/u8-normcmp-tests: New file.
84267         New module 'uninorm/u32-normcmp'.
84268         * lib/uninorm/u32-normcmp.c: New file.
84269         * modules/uninorm/u32-normcmp: New file.
84271         New module 'uninorm/u16-normcmp'.
84272         * lib/uninorm/u16-normcmp.c: New file.
84273         * modules/uninorm/u16-normcmp: New file.
84275         New module 'uninorm/u8-normcmp'.
84276         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
84277         declarations.
84278         * lib/uninorm/u8-normcmp.c: New file.
84279         * lib/uninorm/u-normcmp.h: New file.
84280         * modules/uninorm/u8-normcmp: New file.
84282 2009-03-06  Bruno Haible  <bruno@clisp.org>
84284         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
84285         Reported by Eric Blake.
84287 2009-03-06  Eric Blake  <ebb9@byu.net>
84288             Bruno Haible  <bruno@clisp.org>
84290         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
84291         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
84292         condition.
84293         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84294         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
84295         condition.
84296         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84298 2009-03-06  Eric Blake  <ebb9@byu.net>
84300         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
84301         to avoid compiler warnings.
84302         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
84304 2009-03-05  Bruno Haible  <bruno@clisp.org>
84306         * tests/test-ftell.c (main): Disable test beyond end of file on
84307         FreeMiNT.
84308         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84310 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
84312         * lib/filevercmp.c: Move hidden files up in ordering.
84313         * tests/test-filevercmp.c: Add tests for hidden files.
84315 2009-03-04  Bruno Haible  <bruno@clisp.org>
84317         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
84318         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
84319         AM_CFLAGS.
84320         Reported by Simon Josefsson.
84322 2009-03-03  Bruno Haible  <bruno@clisp.org>
84324         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
84325         Reported by Simon Josefsson.
84327         * doc/ld-version-script.texi: Update node reference.
84329 2009-03-03  Bruno Haible  <bruno@clisp.org>
84331         * modules/visibility (License): Change to 'unlimited'.
84332         Suggested by Simon Josefsson.
84334 2009-03-03  Jim Meyering  <meyering@redhat.com>
84336         unlinkdir: cannot_unlink_dir may modify process state
84337         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
84338         it's neither thread-safe nor appropriate for use in a library.
84340 2009-03-03  Eric Blake  <ebb9@byu.net>
84342         test-closein: silence test under Darwin
84343         * tests/test-closein.sh: Ignore stderr from cat, since we don't
84344         care if it dies from EPIPE or EBADF.
84346 2009-03-03  Bruno Haible  <bruno@clisp.org>
84348         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
84349         earlier.
84350         * doc/visibility.texi: Fix @node and @section.
84352 2009-03-03  Simon Josefsson  <simon@josefsson.org>
84354         * doc/gnulib.texi: Link to sections for ld version script and
84355         visibility.
84356         * doc/visibility.texi: Add @node and @section.
84357         * modules/ld-version-script: New module.
84358         * m4/ld-version-script.m4: New file.
84359         * doc/ld-version-script.texi: New file.
84361 2009-03-02  David Lutterkort  <lutter@redhat.com>
84363         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
84364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84366 2009-03-02  Bruno Haible  <bruno@clisp.org>
84368         * doc/visibility.texi: Mention libtool's -export-symbols option.
84370 2009-03-02  Jim Meyering  <meyering@redhat.com>
84372         announce-gen: new option: --no-print-checksums
84373         * build-aux/announce-gen (usage): Describe it.
84374         (print_checksums): Print a newline here, not in the [*] footnote.
84375         (main): Honor it.
84377 2009-03-01  Bruno Haible  <bruno@clisp.org>
84379         Use socklen_t in the native Windows replacements prototypes.
84380         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
84381         instead of 'int'.
84382         * lib/getsockopt.c (rpl_getsockopt): Likewise.
84383         * lib/setsockopt.c (rpl_setsockopt): Likewise.
84384         * modules/getsockopt (Depends-on): Add socklen.
84385         * modules/setsockopt (Depends-on): Add socklen.
84387 2009-03-01  Bruno Haible  <bruno@clisp.org>
84389         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
84390         least 4.2.
84392 2009-03-01  Eric Blake  <ebb9@byu.net>
84393             Bruno Haible  <bruno@clisp.org>
84395         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
84396         error messages.
84397         * lib/wait-process.c (wait_subprocess): Omit error message about
84398         deadly signal sent to the child of termsigp != NULL.
84400 2009-03-01  Eric Blake  <ebb9@byu.net>
84402         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
84404 2009-03-01  Bruno Haible  <bruno@clisp.org>
84406         Avoid a gcc warning.
84407         * tests/test-sched.c (b): Make global.
84408         Reported by Eric Blake.
84410 2009-01-19  Martin Lambers  <marlam@marlam.de>
84412         Provide POSIX semantics for socket timeout options on W32.
84413         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
84414         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
84415         * modules/setsockopt: Depend on sys_time module for struct timeval.
84416         * modules/getsockopt: Depend on sys_time module for struct timeval.
84418 2009-03-01  Simon Josefsson  <simon@josefsson.org>
84420         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
84421         __USE_GNU, for consistency with netdb.in.h.
84422         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84424 2009-03-01  Bruno Haible  <bruno@clisp.org>
84426         More support for FreeMiNT.
84427         * lib/fseeko.c (rpl_fseeko): Complete last commit.
84428         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84430 2009-03-01  Bruno Haible  <bruno@clisp.org>
84432         More support for FreeMiNT.
84433         * lib/fpurge.c (fpurge): Correct last commit.
84434         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84436 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84438         Fix unportable awk script in vc-list-files.
84439         * build-aux/vc-list-files: In the replacement awk script, use
84440         substr with a second argument of 1, not zero.
84441         Report by Simon Josefsson.
84443 2009-02-28  Bruno Haible  <bruno@clisp.org>
84445         More support for FreeMiNT.
84446         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
84447         to FreeMiNT today.
84448         * lib/fwriting.c (fwriting): Likewise.
84449         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
84451 2009-02-28  Bruno Haible  <bruno@clisp.org>
84453         * tests/test-freadseek.c (main): Disable test beyond end of file on
84454         FreeMiNT.
84455         * tests/test-ftello.c (main): Likewise.
84456         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84458 2009-02-28  Bruno Haible  <bruno@clisp.org>
84460         Add tentative support for FreeMiNT.
84461         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
84462         * lib/fpurge.c (fpurge): Likewise.
84463         * lib/freadable.c (freadable): Likewise.
84464         * lib/freading.c (freading): Likewise.
84465         * lib/freadptr.c (freadptr): Likewise.
84466         * lib/freadseek.c (freadptrinc): Likewise.
84467         * lib/fseeko.c (rpl_fseeko): Likewise.
84468         * lib/fseterr.c (fseterr): Likewise.
84469         * lib/fwritable.c (fwritable): Likewise.
84470         * lib/fwriting.c (fwriting): Likewise.
84471         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
84472         Hourihane.
84473         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84475 2009-02-28  Bruno Haible  <bruno@clisp.org>
84477         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
84478         SIGCHLD.
84479         Reported by Jim Meyering.
84481 2009-02-28  Bruno Haible  <bruno@clisp.org>
84483         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
84484         Mention the results of these tests on various platforms.
84485         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
84486         order.
84487         * doc/posix-functions/printf.texi: Likewise.
84488         * doc/posix-functions/snprintf.texi: Likewise.
84489         * doc/posix-functions/sprintf.texi: Likewise.
84490         * doc/posix-functions/vfprintf.texi: Likewise.
84491         * doc/posix-functions/vprintf.texi: Likewise.
84492         * doc/posix-functions/vsnprintf.texi: Likewise.
84493         * doc/posix-functions/vsprintf.texi: Likewise.
84494         * doc/glibc-functions/obstack_printf.texi: Likewise.
84495         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
84497 2009-02-28  Bruno Haible  <bruno@clisp.org>
84499         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
84500         Reported by Loïc Minier <lool@dooz.org>.
84502 2009-02-27  Bruno Haible  <bruno@clisp.org>
84504         * gnulib-tool (func_import): Make the sed expression used to create the
84505         sed script for updating the .gitignore file POSIX compliant.
84506         Reported by Eric Blake.
84508 2009-02-27  Bruno Haible  <bruno@clisp.org>
84510         * gnulib-tool (sed): Don't alias as "sed --posix".
84511         Reported by Eric Blake.
84513 2009-02-27  Bruno Haible  <bruno@clisp.org>
84515         Avoid test link errors.
84516         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
84517         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
84518         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
84519         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
84520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84522 2009-02-27  Bruno Haible  <bruno@clisp.org>
84524         Avoid spurious "(cached)" in configure output.
84525         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
84526         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
84527         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
84528         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
84529         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
84530         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
84531         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
84532         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
84533         Reported by Eric Blake.
84535 2009-02-27  Eric Blake  <ebb9@byu.net>
84537         printf: fix regression in previous patch
84538         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
84540 2009-02-27  Bruno Haible  <bruno@clisp.org>
84542         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
84543         value.
84544         * lib/stdint.in.h: Likewise.
84545         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
84547 2009-02-27  Eric Blake  <ebb9@byu.net>
84549         doc: mention more functions added in cygwin 1.7.0
84550         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
84551         addition.
84552         * doc/posix-functions/open_wmemstream.texi: Likewise.
84553         * doc/posix-functions/wcsnlen.texi: Likewise.
84554         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84555         * doc/posix-functions/wcstod.texi: Likewise.
84556         * doc/posix-functions/wcstof.texi: Likewise.
84557         * doc/posix-functions/wcstoimax.texi: Likewise.
84558         * doc/posix-functions/wcstok.texi: Likewise.
84559         * doc/posix-functions/wcstoumax.texi: Likewise.
84561         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
84562         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
84563         * doc/posix-functions/fprintf.texi: Update.
84564         * doc/posix-functions/printf.texi: Update.
84565         * doc/posix-functions/snprintf.texi: Update.
84566         * doc/posix-functions/sprintf.texi: Update.
84567         * doc/posix-functions/vfprintf.texi: Update.
84568         * doc/posix-functions/vprintf.texi: Update.
84569         * doc/posix-functions/vsnprintf.texi: Update.
84570         * doc/posix-functions/vsprintf.texi: Update.
84571         * doc/glibc-functions/obstack_printf.texi: Update.
84572         * doc/glibc-functions/obstack_vprintf.texi: Update.
84574 2009-02-26  Eric Blake  <ebb9@byu.net>
84576         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
84577         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
84578         compilation bug by using runtime conversion.
84579         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
84580         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
84581         * modules/ceill-tests (Files): Use nan.h.
84582         * modules/floorl-tests (Files): Likewise.
84583         * modules/frexpl-tests (Files): Likewise.
84584         * modules/isnanl-tests (Files): Likewise.
84585         * modules/ldexpl-tests (Files): Likewise.
84586         * modules/roundl-tests (Files): Likewise.
84587         * modules/truncl-tests (Files): Likewise.
84588         * tests/test-ceill.c (main): Use a working NaN.
84589         * tests/test-floorl.c (main): Likewise.
84590         * tests/test-frexpl.c (main): Likewise.
84591         * tests/test-isnan.c (test_long_double): Likewise.
84592         * tests/test-isnanl.h (main): Likewise.
84593         * tests/test-ldexpl.h (main): Likewise.
84594         * tests/test-roundl.h (main): Likewise.
84595         * tests/test-truncl.h (main): Likewise.
84596         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
84598 2009-02-26  Eric Blake  <ebb9@byu.net>
84599             Bruno Haible  <bruno@clisp.org>
84601         Work around a *printf bug with %ls on Solaris.
84602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
84603         precision is specified, sprintf stops converting the wide string
84604         argument when the number of bytes that have been produced by this
84605         conversion equals or exceeds the precision.
84606         * doc/posix-functions/fprintf.texi: Update.
84607         * doc/posix-functions/printf.texi: Update.
84608         * doc/posix-functions/snprintf.texi: Update.
84609         * doc/posix-functions/sprintf.texi: Update.
84610         * doc/posix-functions/vfprintf.texi: Update.
84611         * doc/posix-functions/vprintf.texi: Update.
84612         * doc/posix-functions/vsnprintf.texi: Update.
84613         * doc/posix-functions/vsprintf.texi: Update.
84614         * doc/glibc-functions/obstack_printf.texi: Update.
84615         * doc/glibc-functions/obstack_vprintf.texi: Update.
84617 2009-02-26  Eric Blake  <ebb9@byu.net>
84619         stdlib: favor compiler check of random.h
84620         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
84621         to avoid an ObjC random.h installed by Swarm.
84623 2009-02-26  Bruno Haible  <bruno@clisp.org>
84625         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
84626         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
84627         Reported by Gary V. Vaughan <gary@gnu.org>.
84629 2009-02-26  Bruno Haible  <bruno@clisp.org>
84631         Fix *printf behaviour regarding the %ls directive.
84632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
84633         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
84634         NEED_PRINTF_DIRECTIVE_LS.
84635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
84636         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
84637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84638         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
84639         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
84640         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
84641         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
84642         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84643         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84644         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84645         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84646         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
84647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84650         * doc/posix-functions/fprintf.texi: Update.
84651         * doc/posix-functions/printf.texi: Update.
84652         * doc/posix-functions/snprintf.texi: Update.
84653         * doc/posix-functions/sprintf.texi: Update.
84654         * doc/posix-functions/vfprintf.texi: Update.
84655         * doc/posix-functions/vprintf.texi: Update.
84656         * doc/posix-functions/vsnprintf.texi: Update.
84657         * doc/posix-functions/vsprintf.texi: Update.
84658         * doc/glibc-functions/obstack_printf.texi: Update.
84659         * doc/glibc-functions/obstack_vprintf.texi: Update.
84660         Reported by Eric Blake.
84662 2009-02-25  Bruno Haible  <bruno@clisp.org>
84664         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
84665         with known value.
84666         Reported by Gary V. Vaughan <gary@gnu.org>.
84668 2009-02-25  Bruno Haible  <bruno@clisp.org>
84670         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
84671         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
84672         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
84673         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
84674         Reported by Gary V. Vaughan <gary@gnu.org>.
84676 2009-02-25  Bruno Haible  <bruno@clisp.org>
84678         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
84679         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
84680         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
84681         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
84682         Reported by Gary V. Vaughan <gary@gnu.org>.
84684 2009-02-25  Eric Blake  <ebb9@byu.net>
84686         tests: skip fseek/ftell tests if ungetc is broken
84687         * m4/ungetc.m4: New file.
84688         * modules/fseek-tests: Split test, so ungetc dependency is
84689         separate from rest of test.
84690         * modules/fseeko-tests: Likewise.
84691         * modules/ftell-tests: Likewise.
84692         * modules/ftello-tests: Likewise.
84693         * tests/test-fseek.c (main): Isolate ungetc dependency.
84694         * tests/test-fseeko.c (main): Likewise.
84695         * tests/test-ftell.c (main): Likewise.
84696         * tests/test-ftello.c (main): Likewise.
84697         * tests/test-fseek2.sh: New file.
84698         * tests/test-fseeko2.sh: Likewise.
84699         * tests/test-ftell2.sh: Likewise.
84700         * tests/test-ftello2.sh: Likewise.
84702 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
84704         test-getaddrinfo: fix usage of skip return code 77
84705         * tests/test-gettaddrinfo.c: Return skip code 77 only
84706         for first occurrence of skip (4x77 is not 77)
84708 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
84710         strtod: avoid C99 decl-after-statement
84711         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
84713 2009-02-24  Eric Blake  <ebb9@byu.net>
84715         strtod: detect HP-UX 11.31 bug
84716         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
84717         Reported by Gary V. Vaughan.
84719 2009-02-23  Bruno Haible  <bruno@clisp.org>
84721         Fix invalid read past end of memory block.
84722         * lib/vasnprintf.c (DCHAR_SET): Define.
84723         (local_wcslen): Define only when needed.
84724         (local_strnlen, local_wcsnlen): New functions.
84725         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
84726         directives that involve a conversion ourselves.
84727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
84728         wcsnlen, mbrtowc, wcrtomb.
84729         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
84730         * tests/test-vasprintf-posix.c (test_function): Likewise.
84731         * tests/test-snprintf-posix.h (test_function): Likewise.
84732         * tests/test-sprintf-posix.h (test_function): Likewise.
84733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84735 2009-02-22  Bruno Haible  <bruno@clisp.org>
84737         Implement new clarified decomposition of Hangul syllables.
84738         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
84739         of type LTV, return only a pairwise decomposition.
84740         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
84741         Likewise.
84742         * tests/uninorm/test-decomposition.c (main): Updated expected result.
84743         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
84744         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
84746 2009-02-22  Bruno Haible  <bruno@clisp.org>
84748         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
84749         zero-length results and shrink excess allocated memory.
84750         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
84751         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
84752         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
84753         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
84754         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
84755         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
84756         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
84757         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
84758         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
84759         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
84760         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
84761         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
84763 2009-02-21  Bruno Haible  <bruno@clisp.org>
84765         * doc/gnulib.texi: Include safe-alloc.texi earlier.
84766         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
84767         spaces after a period. Put a space between a macro name and its
84768         argument list. Trivial rewordings.
84769         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
84770         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
84771         (main): Return 0 explicitly.
84773 2009-02-21  Bruno Haible  <bruno@clisp.org>
84775         Tests for module 'uninorm/filter'.
84776         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
84777         * modules/uninorm/filter-tests: New file.
84779         New module 'uninorm/filter'.
84780         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
84781         uninorm_filter_flush, uninorm_filter_free): New declarations.
84782         * lib/uninorm/uninorm-filter.c: New file.
84783         * modules/uninorm/filter: New file.
84785 2009-02-21  Bruno Haible  <bruno@clisp.org>
84787         Tests for module 'uninorm/nfkc'.
84788         * tests/uninorm/test-nfkc.c: New file.
84789         * tests/uninorm/test-u8-nfkc.c: New file.
84790         * tests/uninorm/test-u16-nfkc.c: New file.
84791         * tests/uninorm/test-u32-nfkc.c: New file.
84792         * tests/uninorm/test-u32-nfkc-big.sh: New file.
84793         * tests/uninorm/test-u32-nfkc-big.c: New file.
84794         * modules/uninorm/nfkc-tests: New file.
84796         New module 'uninorm/nfkc'.
84797         * lib/uninorm/nfkc.c: New file.
84798         * modules/uninorm/nfkc: New file.
84800         Tests for module 'uninorm/nfkd'.
84801         * tests/uninorm/test-nfkd.c: New file.
84802         * tests/uninorm/test-u8-nfkd.c: New file.
84803         * tests/uninorm/test-u16-nfkd.c: New file.
84804         * tests/uninorm/test-u32-nfkd.c: New file.
84805         * tests/uninorm/test-u32-nfkd-big.sh: New file.
84806         * tests/uninorm/test-u32-nfkd-big.c: New file.
84807         * modules/uninorm/nfkd-tests: New file.
84809         New module 'uninorm/nfkd'.
84810         * lib/uninorm/nfkd.c: New file.
84811         * modules/uninorm/nfkd: New file.
84813         Tests for module 'uninorm/nfc'.
84814         * tests/uninorm/test-nfc.c: New file.
84815         * tests/uninorm/test-u8-nfc.c: New file.
84816         * tests/uninorm/test-u16-nfc.c: New file.
84817         * tests/uninorm/test-u32-nfc.c: New file.
84818         * tests/uninorm/test-u32-nfc-big.sh: New file.
84819         * tests/uninorm/test-u32-nfc-big.c: New file.
84820         * modules/uninorm/nfc-tests: New file.
84822         New module 'uninorm/nfc'.
84823         * lib/uninorm/nfc.c: New file.
84824         * modules/uninorm/nfc: New file.
84826         Tests for module 'uninorm/nfd'.
84827         * tests/uninorm/test-nfd.c: New file.
84828         * tests/uninorm/test-u8-nfd.c: New file.
84829         * tests/uninorm/test-u16-nfd.c: New file.
84830         * tests/uninorm/test-u32-nfd.c: New file.
84831         * tests/uninorm/test-u32-nfd-big.sh: New file.
84832         * tests/uninorm/test-u32-nfd-big.c: New file.
84833         * tests/uninorm/test-u32-normalize-big.h: New file.
84834         * tests/uninorm/test-u32-normalize-big.c: New file.
84835         * tests/uninorm/NormalizationTest.txt: New file, created from
84836         Unicode 5.1.0 NormalizationTest.txt.
84837         * modules/uninorm/nfd-tests: New file.
84839         New module 'uninorm/nfd'.
84840         * lib/uninorm/nfd.c: New file.
84841         * modules/uninorm/nfd: New file.
84843         New module 'uninorm/u32-normalize'.
84844         * lib/uninorm/u32-normalize.c: New file.
84845         * modules/uninorm/u32-normalize: New file.
84847         New module 'uninorm/u16-normalize'.
84848         * lib/uninorm/u16-normalize.c: New file.
84849         * modules/uninorm/u16-normalize: New file.
84851         New module 'uninorm/u8-normalize'.
84852         * lib/uninorm/u8-normalize.c: New file.
84853         * lib/uninorm/normalize-internal.h: New file.
84854         * lib/uninorm/u-normalize-internal.h: New file.
84855         * modules/uninorm/u8-normalize: New file.
84857         New module 'uninorm/decompose-internal'.
84858         * lib/uninorm/decompose-internal.c: New file.
84859         * modules/uninorm/decompose-internal: New file.
84861         Tests for module 'uninorm/composition'.
84862         * tests/uninorm/test-composition.c: New file.
84863         * modules/uninorm/composition-tests: New file.
84865         New module 'uninorm/composition'.
84866         * lib/uninorm/composition.c: New file.
84867         * lib/uninorm/composition-table.gperf: New file, generated by
84868         gen-uni-tables.
84869         * modules/uninorm/composition: New file.
84871         Tests for module 'uninorm/compat-decomposition'.
84872         * tests/uninorm/test-compat-decomposition.c: New file.
84873         * modules/uninorm/compat-decomposition-tests: New file.
84875         New module 'uninorm/compat-decomposition'.
84876         * lib/uninorm/decompose-internal.h: New file.
84877         * lib/uninorm/compat-decomposition.c: New file.
84878         * modules/uninorm/compat-decomposition: New file.
84880         Tests for module 'uninorm/canonical-decomposition'.
84881         * tests/uninorm/test-canonical-decomposition.c: New file.
84882         * modules/uninorm/canonical-decomposition-tests: New file.
84884         New module 'uninorm/canonical-decomposition'.
84885         * lib/uninorm/canonical-decomposition.c: New file.
84886         * modules/uninorm/canonical-decomposition: New file.
84888         Tests for module 'uninorm/decomposition'.
84889         * tests/uninorm/test-decomposition.c: New file.
84890         * modules/uninorm/decomposition-tests: New file.
84892         New module 'uninorm/decomposition'.
84893         * lib/uninorm/decomposition.c: New file.
84894         * modules/uninorm/decomposition: New file.
84896         New module 'uninorm/decomposition-table'.
84897         * lib/uninorm/decomposition-table.h: New file.
84898         * lib/uninorm/decomposition-table.c: New file.
84899         * lib/uninorm/decomposition-table1.h: New file, generated by
84900         gen-uni-tables.
84901         * lib/uninorm/decomposition-table2.h: New file, generated by
84902         gen-uni-tables.
84903         * modules/uninorm/decomposition-table: New file.
84905         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
84906         (UC_DECOMP_*): New enumeration items.
84907         (get_decomposition): New function.
84908         (struct decomp_table): New type.
84909         (output_decomposition, output_decomposition_tables): New functions.
84910         (unicode_composition_exclusions): New variable.
84911         (fill_composition_exclusions, debug_output_composition_tables): New
84912         functions.
84913         (main): Accept one more argument. Invoke fill_composition_exclusions.
84914         Output decomposition and composition tables.
84916         New module 'uninorm/base'.
84917         * lib/uninorm.h: New file.
84918         * lib/unictype.h: Update comment.
84919         * modules/uninorm/base: New file.
84921 2009-02-21  David Lutterkort  <lutter@redhat.com>
84923         Tests for module 'safe-alloc'.
84924         * tests/test-safe-alloc.c: New file.
84925         * modules/safe-alloc-tests: New file.
84927         New module 'safe-alloc'.
84928         * lib/safe-alloc.h: New file.
84929         * lib/safe-alloc.c: New file.
84930         * m4/safe-alloc.m4: New file.
84931         * modules/safe-alloc: New file.
84932         * doc/safe-alloc.texi: New file.
84933         * doc/gnulib.texi: Include it.
84934         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
84935         safe-alloc.
84937 2009-02-18  Bruno Haible  <bruno@clisp.org>
84939         Fix link error on non-glibc systems.
84940         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
84941         variable.
84942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84944 2009-02-18  Jim Meyering  <meyering@redhat.com>
84946         fts: avoid used-uninitialized error due to recent change
84947         * lib/fts.c (fts_read): Guard uses of the new member,
84948         parent->fts_n_dirs_remaining, since it's not relevant for
84949         the parent of a directory specified on the command-line.
84951 2009-02-17  James Youngman  <jay@gnu.org>
84952             Bruno Haible  <bruno@clisp.org>
84954         * m4/include_next.m4: Reformulate comment.
84956 2009-02-16  Jim Meyering  <meyering@redhat.com>
84958         fts: add #if guards so that the fts_lgpl module still builds
84959         * lib/fts.c: Guard just-added hash-table-using parts with
84960         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
84961         Reported by Simon Josefsson.
84963 2009-02-15  Bruno Haible  <bruno@clisp.org>
84965         * modules/array-mergesort-tests: New file.
84966         * tests/test-array-mergesort.c: New file.
84968         New module 'array-mergesort'.
84969         * modules/array-mergesort: New file.
84970         * lib/array-mergesort.h: New file.
84972 2009-02-15  Bruno Haible  <bruno@clisp.org>
84974         Fix 2009-02-07 commit.
84975         * lib/gen-uni-tables.c (output_predicate, output_category,
84976         output_combclass, output_bidi_category, output_decimal_digit,
84977         output_digit, output_numeric, output_mirror, output_scripts,
84978         output_ident_category, output_simple_mapping): Fix format directives.
84979         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
84981 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
84983         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
84984         fixes are available from IBM.
84986 2009-02-13  Jim Meyering  <meyering@redhat.com>
84988         fts: arrange not to stat non-directories in more cases
84989         This makes GNU find (when it doesn't need to stat each file)
84990         *much* more efficient at traversing reiserfs file systems.
84991         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
84992         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
84993         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
84994         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
84995         (leaf_optimization_applies): New function.
84996         (LCO_hash, LCO_compare): New helper functions.
84997         (link_count_optimize_ok): New function.
84998         (fts_stat): Initialize new member (if dir).
84999         (fts_read): Decrement parent's fts_n_dirs_remaining count if
85000         we've just stat'ed a directory.  Skip the stat call when possible.
85001         ---
85002         Note this AFS-related exchange:
85003         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
85004         and note find's pioctl call in find/fstype.c.
85005         But that is necessary only if you want to enable the
85006         optimization for AFS, and for now, I don't.
85008         fts: move a function definition "up" (no semantic change)
85009         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
85010         "up" to precede upcoming use of a related function.
85012 2009-02-11  Jim Meyering  <meyering@redhat.com>
85014         fts: correct internal computation of nlinks (optimization-related)
85015         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
85016         whether the current entry is a directory, so don't test it.
85018 2009-02-10  Bruno Haible  <bruno@clisp.org>
85020         Tests for module 'uniwbrk/ulc-wordbreaks'.
85021         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
85022         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
85023         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
85025         Tests for module 'uniwbrk/u32-wordbreaks'.
85026         * modules/uniwbrk/u32-wordbreaks-tests: New file.
85027         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
85029         Tests for module 'uniwbrk/u16-wordbreaks'.
85030         * modules/uniwbrk/u16-wordbreaks-tests: New file.
85031         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
85033         Tests for module 'uniwbrk/u8-wordbreaks'.
85034         * modules/uniwbrk/u8-wordbreaks-tests: New file.
85035         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
85037 2009-02-10  Bruno Haible  <bruno@clisp.org>
85039         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
85040         property.
85041         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
85042         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
85043         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
85045 2009-02-10  Simon Josefsson  <simon@josefsson.org>
85047         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
85048         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
85050 2009-02-10  Bruno Haible  <bruno@clisp.org>
85052         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
85053         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
85054         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
85055         * lib/unilbrk/u8-possible-linebreaks.c: Update.
85056         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
85057         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
85059 2009-02-09  Simon Josefsson  <simon@josefsson.org>
85061         * lib/sockets.h (gl_fd_to_handle): New function.
85063         * tests/test-sockets.c: Call gl_fd_to_handle.
85065 2009-02-09  Bruno Haible  <bruno@clisp.org>
85067         * doc/havelib.texi: Document the conventions on bi-arch systems.
85069 2009-02-08  Bruno Haible  <bruno@clisp.org>
85071         Document the AC_LIB_LINKFLAGS macro.
85072         * doc/havelib.texi: New file, mostly written on 2005-05-24.
85073         * doc/gnulib.texi: Include it.
85075 2009-02-08  Bruno Haible  <bruno@clisp.org>
85077         Fix wrong order of sections, compared to TOC.
85078         * doc/gnulib.texi: Include relocatable-maint.texi after the
85079         "Regular expressions" node, not before.
85081 2009-02-08  Bruno Haible  <bruno@clisp.org>
85083         Tests for module 'unicase/totitle'.
85084         * modules/unicase/totitle-tests: New file.
85086         Tests for module 'unicase/tolower'.
85087         * modules/unicase/tolower-tests: New file.
85089         Tests for module 'unicase/toupper'.
85090         * modules/unicase/toupper-tests: New file.
85091         * tests/unicase/test-mapping-part1.h: New file.
85092         * tests/unicase/test-mapping-part2.h: New file.
85094         New module 'unicase/totitle'.
85095         * modules/unicase/totitle: New file.
85096         * lib/unicase/totitle.c: New file.
85098         New module 'unicase/tolower'.
85099         * modules/unicase/tolower: New file.
85100         * lib/unicase/tolower.c: New file.
85102         New module 'unicase/toupper'.
85103         * modules/unicase/toupper: New file.
85104         * lib/unicase/toupper.c: New file.
85105         * lib/unicase/simple-mapping.h: New file.
85107         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
85108         (mapping_table): New structure.
85109         (output_simple_mapping): New function.
85110         (main): Invoke output_simple_mapping_test and output_simple_mapping.
85111         * modules/gen-uni-tables (Description): Update.
85112         * lib/unicase/toupper.h: New file, automatically generated by
85113         gen-uni-tables.
85114         * lib/unicase/tolower.h: New file, automatically generated by
85115         gen-uni-tables.
85116         * lib/unicase/totitle.h: New file, automatically generated by
85117         gen-uni-tables.
85118         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
85119         gen-uni-tables.
85120         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
85121         gen-uni-tables.
85122         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
85123         gen-uni-tables.
85125         New module 'unicase/base'.
85126         * modules/unicase/base: New file.
85127         * lib/unicase.h: New file.
85129 2009-02-08  Bruno Haible  <bruno@clisp.org>
85131         New module 'uniwbrk/ulc-wordbreaks'.
85132         * modules/uniwbrk/ulc-wordbreaks: New file.
85133         * lib/uniwbrk/ulc-wordbreaks.c: New file.
85135         New module 'uniwbrk/u32-wordbreaks'.
85136         * modules/uniwbrk/u32-wordbreaks: New file.
85137         * lib/uniwbrk/u32-wordbreaks.c: New file.
85139         New module 'uniwbrk/u16-wordbreaks'.
85140         * modules/uniwbrk/u16-wordbreaks: New file.
85141         * lib/uniwbrk/u16-wordbreaks.c: New file.
85143         New module 'uniwbrk/u8-wordbreaks'.
85144         * modules/uniwbrk/u8-wordbreaks: New file.
85145         * lib/uniwbrk/u8-wordbreaks.c: New file.
85146         * lib/uniwbrk/u-wordbreaks.h: New file.
85148         New module 'uniwbrk/table'.
85149         * modules/uniwbrk/table: New file.
85150         * lib/uniwbrk/wbrktable.h: New file.
85151         * lib/uniwbrk/wbrktable.c: New file.
85153         New module 'uniwbrk/wordbreak-property'.
85154         * modules/uniwbrk/wordbreak-property: New file.
85155         * lib/uniwbrk/wordbreak-property.c: New file.
85157         * lib/gen-uni-tables.c (WBP_*): New enum items.
85158         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
85159         (unicode_org_wbp): New variable.
85160         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
85161         New functions.
85162         (wbp_table): New structure.
85163         (output_wbp, output_wbrk_tables): New functions.
85164         (main): Accept additional argument. Invoke fill_org_wbp,
85165         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
85166         output_wbrk_tables.
85167         * modules/gen-uni-tables (Description): Update.
85168         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
85169         gen-uni-tables.
85171         New module 'uniwbrk/base'.
85172         * modules/uniwbrk/base: New file.
85173         * lib/uniwbrk.h: New file.
85175 2009-02-08  Bruno Haible  <bruno@clisp.org>
85177         Update to Unicode 5.1.0.
85178         * lib/gen-uni-tables.c (is_property_alphabetic): Include
85179         U+2185..U+2188.
85180         (is_property_default_ignorable_code_point): Don't include characters
85181         of category Cc or Cs and not-a-characters.
85182         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
85183         U+0D79, U+109E, U+109F, U+A60C.
85184         * lib/unictype/bidi_of.h: Regenerated.
85185         * lib/unictype/blocks.h: Regenerated.
85186         * lib/unictype/categ_C.h: Regenerated.
85187         * lib/unictype/categ_Cf.h: Regenerated.
85188         * lib/unictype/categ_Cn.h: Regenerated.
85189         * lib/unictype/categ_L.h: Regenerated.
85190         * lib/unictype/categ_Ll.h: Regenerated.
85191         * lib/unictype/categ_Lm.h: Regenerated.
85192         * lib/unictype/categ_Lo.h: Regenerated.
85193         * lib/unictype/categ_Lu.h: Regenerated.
85194         * lib/unictype/categ_M.h: Regenerated.
85195         * lib/unictype/categ_Mc.h: Regenerated.
85196         * lib/unictype/categ_Me.h: Regenerated.
85197         * lib/unictype/categ_Mn.h: Regenerated.
85198         * lib/unictype/categ_N.h: Regenerated.
85199         * lib/unictype/categ_Nd.h: Regenerated.
85200         * lib/unictype/categ_Nl.h: Regenerated.
85201         * lib/unictype/categ_No.h: Regenerated.
85202         * lib/unictype/categ_P.h: Regenerated.
85203         * lib/unictype/categ_Pd.h: Regenerated.
85204         * lib/unictype/categ_Pe.h: Regenerated.
85205         * lib/unictype/categ_Pf.h: Regenerated.
85206         * lib/unictype/categ_Pi.h: Regenerated.
85207         * lib/unictype/categ_Po.h: Regenerated.
85208         * lib/unictype/categ_Ps.h: Regenerated.
85209         * lib/unictype/categ_S.h: Regenerated.
85210         * lib/unictype/categ_Sk.h: Regenerated.
85211         * lib/unictype/categ_Sm.h: Regenerated.
85212         * lib/unictype/categ_So.h: Regenerated.
85213         * lib/unictype/categ_of.h: Regenerated.
85214         * lib/unictype/combining.h: Regenerated.
85215         * lib/unictype/ctype_alnum.h: Regenerated.
85216         * lib/unictype/ctype_alpha.h: Regenerated.
85217         * lib/unictype/ctype_graph.h: Regenerated.
85218         * lib/unictype/ctype_lower.h: Regenerated.
85219         * lib/unictype/ctype_print.h: Regenerated.
85220         * lib/unictype/ctype_punct.h: Regenerated.
85221         * lib/unictype/ctype_upper.h: Regenerated.
85222         * lib/unictype/decdigit.h: Regenerated.
85223         * lib/unictype/digit.h: Regenerated.
85224         * lib/unictype/mirror.h: Regenerated.
85225         * lib/unictype/numeric.h: Regenerated.
85226         * lib/unictype/pr_alphabetic.h: Regenerated.
85227         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
85228         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
85229         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
85230         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
85231         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
85232         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
85233         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
85234         * lib/unictype/pr_combining.h: Regenerated.
85235         * lib/unictype/pr_dash.h: Regenerated.
85236         * lib/unictype/pr_decimal_digit.h: Regenerated.
85237         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
85238         * lib/unictype/pr_deprecated.h: Regenerated.
85239         * lib/unictype/pr_diacritic.h: Regenerated.
85240         * lib/unictype/pr_extender.h: Regenerated.
85241         * lib/unictype/pr_format_control.h: Regenerated.
85242         * lib/unictype/pr_grapheme_base.h: Regenerated.
85243         * lib/unictype/pr_grapheme_extend.h: Regenerated.
85244         * lib/unictype/pr_grapheme_link.h: Regenerated.
85245         * lib/unictype/pr_id_continue.h: Regenerated.
85246         * lib/unictype/pr_id_start.h: Regenerated.
85247         * lib/unictype/pr_ideographic.h: Regenerated.
85248         * lib/unictype/pr_ignorable_control.h: Regenerated.
85249         * lib/unictype/pr_lowercase.h: Regenerated.
85250         * lib/unictype/pr_math.h: Regenerated.
85251         * lib/unictype/pr_numeric.h: Regenerated.
85252         * lib/unictype/pr_other_alphabetic.h: Regenerated.
85253         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
85254         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
85255         * lib/unictype/pr_other_id_continue.h: Regenerated.
85256         * lib/unictype/pr_other_lowercase.h: Regenerated.
85257         * lib/unictype/pr_other_math.h: Regenerated.
85258         * lib/unictype/pr_punctuation.h: Regenerated.
85259         * lib/unictype/pr_sentence_terminal.h: Regenerated.
85260         * lib/unictype/pr_soft_dotted.h: Regenerated.
85261         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
85262         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
85263         * lib/unictype/pr_unified_ideograph.h: Regenerated.
85264         * lib/unictype/pr_uppercase.h: Regenerated.
85265         * lib/unictype/pr_xid_continue.h: Regenerated.
85266         * lib/unictype/pr_xid_start.h: Regenerated.
85267         * lib/unictype/pr_zero_width.h: Regenerated.
85268         * lib/unictype/scripts.h: Regenerated.
85269         * lib/unictype/scripts_byname.gperf: Regenerated.
85270         * lib/unictype/sy_java_ident.h: Regenerated.
85271         * lib/unilbrk/lbrkprop1.h: Regenerated.
85272         * lib/unilbrk/lbrkprop2.h: Regenerated.
85273         * tests/unictype/test-categ_C.c: Regenerated.
85274         * tests/unictype/test-categ_Cf.c: Regenerated.
85275         * tests/unictype/test-categ_Cn.c: Regenerated.
85276         * tests/unictype/test-categ_L.c: Regenerated.
85277         * tests/unictype/test-categ_Ll.c: Regenerated.
85278         * tests/unictype/test-categ_Lm.c: Regenerated.
85279         * tests/unictype/test-categ_Lo.c: Regenerated.
85280         * tests/unictype/test-categ_Lu.c: Regenerated.
85281         * tests/unictype/test-categ_M.c: Regenerated.
85282         * tests/unictype/test-categ_Mc.c: Regenerated.
85283         * tests/unictype/test-categ_Me.c: Regenerated.
85284         * tests/unictype/test-categ_Mn.c: Regenerated.
85285         * tests/unictype/test-categ_N.c: Regenerated.
85286         * tests/unictype/test-categ_Nd.c: Regenerated.
85287         * tests/unictype/test-categ_Nl.c: Regenerated.
85288         * tests/unictype/test-categ_No.c: Regenerated.
85289         * tests/unictype/test-categ_P.c: Regenerated.
85290         * tests/unictype/test-categ_Pd.c: Regenerated.
85291         * tests/unictype/test-categ_Pe.c: Regenerated.
85292         * tests/unictype/test-categ_Pf.c: Regenerated.
85293         * tests/unictype/test-categ_Pi.c: Regenerated.
85294         * tests/unictype/test-categ_Po.c: Regenerated.
85295         * tests/unictype/test-categ_Ps.c: Regenerated.
85296         * tests/unictype/test-categ_S.c: Regenerated.
85297         * tests/unictype/test-categ_Sk.c: Regenerated.
85298         * tests/unictype/test-categ_Sm.c: Regenerated.
85299         * tests/unictype/test-categ_So.c: Regenerated.
85300         * tests/unictype/test-ctype_alnum.c: Regenerated.
85301         * tests/unictype/test-ctype_alpha.c: Regenerated.
85302         * tests/unictype/test-ctype_graph.c: Regenerated.
85303         * tests/unictype/test-ctype_lower.c: Regenerated.
85304         * tests/unictype/test-ctype_print.c: Regenerated.
85305         * tests/unictype/test-ctype_punct.c: Regenerated.
85306         * tests/unictype/test-ctype_upper.c: Regenerated.
85307         * tests/unictype/test-decdigit.h: Regenerated.
85308         * tests/unictype/test-digit.h: Regenerated.
85309         * tests/unictype/test-numeric.h: Regenerated.
85310         * tests/unictype/test-pr_alphabetic.c: Regenerated.
85311         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
85312         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
85313         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
85314         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
85315         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
85316         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
85317         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
85318         * tests/unictype/test-pr_combining.c: Regenerated.
85319         * tests/unictype/test-pr_dash.c: Regenerated.
85320         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
85321         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
85322         * tests/unictype/test-pr_deprecated.c: Regenerated.
85323         * tests/unictype/test-pr_diacritic.c: Regenerated.
85324         * tests/unictype/test-pr_extender.c: Regenerated.
85325         * tests/unictype/test-pr_format_control.c: Regenerated.
85326         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
85327         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
85328         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
85329         * tests/unictype/test-pr_id_continue.c: Regenerated.
85330         * tests/unictype/test-pr_id_start.c: Regenerated.
85331         * tests/unictype/test-pr_ideographic.c: Regenerated.
85332         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
85333         * tests/unictype/test-pr_lowercase.c: Regenerated.
85334         * tests/unictype/test-pr_math.c: Regenerated.
85335         * tests/unictype/test-pr_numeric.c: Regenerated.
85336         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
85337         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
85338         Regenerated.
85339         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
85340         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
85341         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
85342         * tests/unictype/test-pr_other_math.c: Regenerated.
85343         * tests/unictype/test-pr_punctuation.c: Regenerated.
85344         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
85345         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
85346         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
85347         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
85348         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
85349         * tests/unictype/test-pr_uppercase.c: Regenerated.
85350         * tests/unictype/test-pr_xid_continue.c: Regenerated.
85351         * tests/unictype/test-pr_xid_start.c: Regenerated.
85352         * tests/unictype/test-pr_zero_width.c: Regenerated.
85354         Update to Unicode 5.1.0.
85355         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
85356         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
85357         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
85358         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
85359         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
85360         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
85361         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
85362         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
85363         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
85364         (nonspacing_table_ind): Update.
85365         * tests/uniwidth/test-uc_width2.sh: Update expected result.
85367         Update to Unicode 5.1.0.
85368         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
85369         code transform.
85370         * lib/uniname/uniname.c (unicode_character_name,
85371         unicode_name_character): Add the range 0x1Fxxx to the code transform.
85372         * lib/uniname/uninames.h: Regenerated.
85373         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
85375 2009-02-07  Bruno Haible  <bruno@clisp.org>
85377         Merge gen-ctype and gen-lbrk into a single program.
85378         * lib/gen-uni-tables.c: New file, incorporating
85379         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
85380         Add directory prefixes to the names of the generated files.
85381         * lib/unictype/gen-ctype.c: Remove file.
85382         * lib/unilbrk/gen-lbrk.c: Remove file.
85383         * modules/gen-uni-tables: New file.
85384         * modules/unictype/gen-ctype: Remove file.
85385         * modules/unilbrk/gen-lbrk: Remove file.
85387 2009-02-07  Bruno Haible  <bruno@clisp.org>
85389         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
85391         New module 'unistr/u32-strcoll'.
85392         * modules/unistr/u32-strcoll: New file.
85393         * lib/unistr/u32-strcoll.c: New file.
85395         New module 'unistr/u16-strcoll'.
85396         * modules/unistr/u16-strcoll: New file.
85397         * lib/unistr/u16-strcoll.c: New file.
85399         New module 'unistr/u8-strcoll'.
85400         * modules/unistr/u8-strcoll: New file.
85401         * lib/unistr/u8-strcoll.c: New file.
85402         * lib/unistr/u-strcoll.h: New file.
85404 2009-02-07  Bruno Haible  <bruno@clisp.org>
85406         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
85407         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85408         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85409         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
85410         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
85411         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
85413 2009-02-07  Bruno Haible  <bruno@clisp.org>
85415         Make 64-bit clean.
85416         * lib/unictype/gen-ctype.c (output_predicate, output_category,
85417         output_combclass, output_bidi_category, output_decimal_digit,
85418         output_digit, output_numeric, output_mirror, output_scripts,
85419         output_ident_category): Use proper width specifier in format strings.
85421 2009-02-07  Bruno Haible  <bruno@clisp.org>
85423         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
85424         failure behaviour.
85426 2009-02-07  Jim Meyering  <meyering@redhat.com>
85428         regex: avoid compilation failure with upcoming gcc-4.4
85429         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
85430         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
85431         "... error: integer overflow in preprocessor expression".
85433 2009-02-05  Ben Pfaff  <blp@gnu.org>
85435         Fix link errors on Windows when close module is used.
85436         * modules/close: Add $(LIB_CLOSE) to Link section.
85437         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
85438         $(LIB_CLOSE) on Windows.
85440 2009-02-05  Jim Meyering  <meyering@redhat.com>
85442         still avoid unused-parameter warnings, but do it cleanly
85443         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
85444         (get_fs_usage): Cast to void instead.
85445         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
85446         (dev_from_mount_options, read_file_system_list): Cast to void.
85447         Prompted by Bruno Haible.
85449 2009-02-04  Jim Meyering  <meyering@redhat.com>
85451         fsusage.c: correct copyright year
85452         * lib/fsusage.c: Reflect year in which the change is pushed into
85454         avoid misc. warnings
85455         * lib/fsusage.c (UNUSED_PARAM): Define.
85456         (get_fs_usage): Mark parameter "disk" as unused.
85457         * lib/getugroups.c (getgrent): Use "void" in prototype.
85458         * lib/mountlist.c: Mark unused parameters.
85459         (read_file_system_list): Declare a local with "const".
85460         * lib/nanosleep.c (getnow): Declare static.
85461         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
85463         dirfd: set errno upon failure
85464         * lib/dirfd.c: Include <errno.h>.
85465         Set errno to ENOTSUP when returning -1.
85466         * modules/dirfd (Depends-on): Add errno.
85467         Suggested by John Kodis <kodis@comcast.net>.
85469 2009-02-01  Bruno Haible  <bruno@clisp.org>
85471         Don't assume sizeof (long) >= sizeof (void *).
85472         * lib/memcmp.c: Include stdint.h.
85473         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
85474         srcp2 to 'const byte *'.
85475         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
85476         types to uintptr_t.
85477         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
85478         * modules/memcmp (Depends-on): Add stdint.
85479         Reported by Ozkan Sezer <sezeroz@gmail.com>.
85481 2009-01-30  Eric Blake  <ebb9@byu.net>
85483         fix more require-before-expand issues
85484         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
85485         expand, AC_PROG_AWK.
85486         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
85488 2009-01-28  Eric Blake  <ebb9@byu.net>
85490         version-etc: use consistent URL formatting
85491         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
85492         Improve formatting.  Use fputs for string without %.
85494 2009-01-28  Jim Meyering  <meyering@redhat.com>
85496         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
85497         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
85498         "underquoted definition of NAME" from autoconf-2.59.
85500 2009-01-28  Bruno Haible  <bruno@clisp.org>
85502         * doc/gnulib.texi: Add "Obsolete modules" to index.
85504 2009-01-28  Jim Meyering  <meyering@redhat.com>
85506         useless-if-before-free: recognize more variants
85507         * build-aux/useless-if-before-free: Also recognize e.g.,
85508         if (NULL != p) free (p);
85510 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
85512         test-getaddrinfo: skip (don't fail) this test when there's no network
85513         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
85514         on the presumption that it means you lack network access.
85516 2009-01-26  Jim Meyering  <meyering@redhat.com>
85518         fflush: avoid warnings on modern systems
85519         * lib/fflush.c (rpl_fflush): Move declarations of locals,
85520         pos and result, into scopes where they're used.
85522 2009-01-26  Eric Blake  <ebb9@byu.net>
85524         Silence warning reintroduced by recent extensions patch.
85525         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
85526         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
85527         autoconf.
85529         Backport improved autoconf semantics of AC_DEFUN_ONCE.
85530         * m4/00gnulib.m4: New file.
85531         * gnulib-tool (func_get_filelist): Always use it.
85532         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
85533         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
85535 2009-01-25  Bruno Haible  <bruno@clisp.org>
85537         Make test-quotearg work on MacOS X and AIX.
85538         * tests/test-quotearg.sh: New file.
85539         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
85540         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
85541         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
85542         include <libintl.h>.
85543         (fake_locale): Remove variable.
85544         (gettext, dgettext, dcgettext): Remove functions.
85545         (main): Instead of setting a fake locale, set a real locale. Call
85546         textdomain and bindtextdomain.
85547         * modules/quotearg-tests (Files): Add the new files.
85548         (Depends-on): Add gettext, setenv, unsetenv.
85549         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85550         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
85551         Augment TESTS_ENVIRONMENT.
85553 2009-01-25  Bruno Haible  <bruno@clisp.org>
85555         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
85556         fr_FR.ISO8859-1 locale on MacOS X.
85557         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
85558         ja_JP.eucJP locale on MacOS X.
85559         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
85560         zh_CN.GB18030 locale on MacOS X.
85562 2009-01-25  Bruno Haible  <bruno@clisp.org>
85564         Avoid link errors on MacOS X 10.3.
85565         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
85566         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
85568 2009-01-25  Bruno Haible  <bruno@clisp.org>
85570         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85571         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
85572         * modules/pipe (Files): Remove m4/posix_spawn.m4.
85573         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85574         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
85575         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85576         posix_spawnattr_init, posix_spawnattr_setsigmask,
85577         posix_spawnattr_setflags, posix_spawnattr_destroy.
85579         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85580         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
85581         * modules/execute (Files): Remove m4/posix_spawn.m4.
85582         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85583         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85584         posix_spawnattr_init, posix_spawnattr_setsigmask,
85585         posix_spawnattr_setflags, posix_spawnattr_destroy.
85587 2009-01-25  Bruno Haible  <bruno@clisp.org>
85589         * lib/glthread/threadlib.c: Include <stdlib.h>.
85591 2009-01-25  Bruno Haible  <bruno@clisp.org>
85593         * lib/glthread/threadlib.c (dummy): New declaration.
85595 2009-01-25  Bruno Haible  <bruno@clisp.org>
85597         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
85598         multibyte characters also for the GB18030 encoding. Don't crash when
85599         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
85601 2009-01-25  Bruno Haible  <bruno@clisp.org>
85603         Avoid redefining 'struct random_data' on OSF/1 5.1.
85604         * lib/stdlib.in.h: Include <random.h> if it exists.
85605         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
85606         HAVE_RANDOM_H. Include <random.h> when testing whether
85607         'struct random_data' exists.
85608         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
85610 2009-01-25  Bruno Haible  <bruno@clisp.org>
85612         Don't install charset.alias on MacOS X >= 10.3.
85613         * lib/localcharset.c (DARWIN7): New macro.
85614         (get_charset_aliases): Hardcode the result for Darwin7.
85615         * modules/localcharset (install-exec-local): Don't install
85616         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
85618 2009-01-25  Bruno Haible  <bruno@clisp.org>
85620         Don't install charset.alias on mingw and Cygwin.
85621         * modules/localcharset (install-exec-local): Don't install
85622         charset.alias on mingw and Cygwin, if the file does not yet exist.
85623         The result for these platforms is hardcoded in localcharset.c.
85625 2009-01-25  Bruno Haible  <bruno@clisp.org>
85627         Make it possible again to use AC_GNU_SOURCE together with gnulib.
85628         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
85629         before requiring AC_USE_SYSTEM_EXTENSIONS.
85631 2009-01-25  Jim Meyering  <meyering@redhat.com>
85633         c-strtod: avoid warnings
85634         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
85635         "assignment discards qualifiers from pointer target type" warnings.
85637 2009-01-24  Bruno Haible  <bruno@clisp.org>
85639         Add support for non-UTF-8 locales on MacOS X.
85640         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
85641         canonical encodings. For Darwin 7 and newer, don't map traditional
85642         encodings to UTF-8.
85643         Reported by Vincent Lefevre <vincent@vinc17.org>
85644         at <http://savannah.gnu.org/bugs/?25235>.
85646 2009-01-24  Bruno Haible  <bruno@clisp.org>
85648         * doc/gnulib.texi (Obsolete modules): New section.
85649         Reported by Mike Frysinger <vapier@gentoo.org>.
85651 2009-01-24  Bruno Haible  <bruno@clisp.org>
85653         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
85654         (%.dvi): New rule.
85656 2009-01-24  Bruno Haible  <bruno@clisp.org>
85658         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
85659         Reported by Eric Blake.
85661 2009-01-24  Bruno Haible  <bruno@clisp.org>
85663         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
85664         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
85665         Reported by Gary V. Vaughan <gary@gnu.org>.
85667 2009-01-24  Bruno Haible  <bruno@clisp.org>
85669         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
85671 2009-01-23  Bruno Haible  <bruno@clisp.org>
85673         Make c-strtod, c-strtold usable in libraries.
85674         * lib/c-strtod.c: Include string.h instead of xalloc.h.
85675         (C_STRTOD): Call strdup instead of xstrdup.
85676         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
85677         * modules/c-strtold (Depends-on): Likewise.
85678         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
85679         * NEWS: Mention the change.
85680         Reported by Michael Gold <mgold@ncf.ca>.
85682 2009-01-23  Jim Meyering  <meyering@redhat.com>
85684         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
85685         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
85686         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
85688 2009-01-23  Simon Josefsson  <simon@josefsson.org>
85690         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
85691         GNU CoreUtils.
85692         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
85693         * modules/version-etc (Description): Update.
85695 2009-01-22  Bruno Haible  <bruno@clisp.org>
85697         Cache the C locale object.
85698         * lib/c-strtod.c (c_locale_cache): New variable.
85699         (c_locale): New function.
85700         (C_STRTOD): Use it, and don't call freelocale.
85701         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
85702         Suggested by Paolo Bonzini.
85704 2009-01-21  Bruno Haible  <bruno@clisp.org>
85706         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
85707         conditions other than overflow.
85709 2009-01-21  Bruno Haible  <bruno@clisp.org>
85711         * lib/c-strtod.c: Include errno.h.
85712         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
85713         value from STRTOD_L and STRTOD.
85715 2009-01-21  Bruno Haible  <bruno@clisp.org>
85716         and Jim Meyering  <meyering@redhat.com>
85718         nanosleep: skip configure test (fail it) for apple universal builds
85719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
85720         universal builds, assume that nanosleep does not work.
85721         * modules/nanosleep (Depends-on): Add multiarch.
85723         mktime: skip configure test (fail it) for apple universal builds
85724         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
85725         universal builds, assume that mktime does not work.
85726         * modules/mktime (Depends-on): Add multiarch.
85728 2009-01-21  Eric Blake  <ebb9@byu.net>
85730         multiarch: avoid expand-before-require warning
85731         * modules/multiarch (configure.ac): Require, rather than expand,
85732         gl_MULTIARCH.
85733         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
85734         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
85735         enforce that all clients require it.  Partial reversion of
85736         2008-12-29 patch.
85738         error: avoid expand-before-require warning
85739         * modules/errno (configure.ac): Require, rather than expand,
85740         gl_HEADER_ERRNO_H.
85741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
85742         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
85743         enforce that all clients require it.
85745         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
85746         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
85747         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
85748         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
85750 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
85752         Revert:
85753         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85755         regex: do not depend on obsolete modules.
85756         * modules/regex: Remove memcmp and memmove.
85758 2009-01-20  Bruno Haible  <bruno@clisp.org>
85760         Make the 'link' module link on Windows NT 4.
85761         * lib/link.c (_WIN32_WINNT): Don't define.
85762         (CreateHardLinkFuncType): New type.
85763         (CreateHardLinkFunc, initialized): New variables.
85764         (initialize): New function.
85765         (link): Invoke CreateHardLink indirectly through the function pointer.
85767 2009-01-20  Bruno Haible  <bruno@clisp.org>
85769         Fix compilation failure on mingw.
85770         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
85772 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
85774         * doc/c-strtod.texi: Mention a couple of restrictions.
85776 2009-01-20  Jim Meyering  <meyering@redhat.com>
85778         gettimeofday: move more declarations out of functions
85779         * lib/gettimeofday.c: Move extern declarations of tzset and
85780         gmtime out of containing functions.  Prompted by Bruno Haible.
85782 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85784         regex: do not depend on obsolete modules.
85785         * modules/regex: Remove memcmp and memmove.
85787 2009-01-19  Bruno Haible  <bruno@clisp.org>
85789         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85790         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
85791         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85792         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
85793         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
85795 2009-01-19  Bruno Haible  <bruno@clisp.org>
85797         * tests/test-link.c: Include <errno.h>.
85798         (main): Exit with code 77 when a hard link cannot be created due to
85799         the file system.
85800         * tests/test-link.sh: Skip test when a hard link cannot be created due
85801         to the file system.
85802         Suggested by Eric Blake.
85804 2009-01-19  Martin Lambers  <marlam@marlam.de>
85806         * modules/link-tests: New file.
85807         * tests/test-link.sh: New file.
85808         * tests/test-link.c: New file.
85810 2009-01-19  Eric Blake  <ebb9@byu.net>
85812         doc: mention another function added in cygwin 1.7.0
85813         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
85814         Another new function in cygwin 1.7.
85816 2009-01-19  Bruno Haible  <bruno@clisp.org>
85818         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85819         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
85820         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
85821         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85822         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
85823         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
85824         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
85825         * m4/md4.m4 (gl_MD4): Likewise.
85826         * m4/md5.m4 (gl_MD5): Likewise.
85827         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
85828         * m4/sha1.m4 (gl_SHA1): Likewise.
85829         * m4/sha256.m4 (gl_SHA256): Likewise.
85830         * m4/sha512.m4 (gl_SHA512): Likewise.
85832 2009-01-19  Bruno Haible  <bruno@clisp.org>
85834         * modules/uniname/uniname-tests (Depends-on): Add progname.
85835         * tests/uniname/test-uninames.c: Include progname.h.
85836         (main): Call set_program_name.
85838         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
85839         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
85840         (main): Call set_program_name.
85842         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
85843         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
85844         (main): Call set_program_name.
85846         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
85847         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
85848         (main): Call set_program_name.
85850         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
85851         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
85852         (main): Call set_program_name.
85854         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
85855         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
85856         (main): Call set_program_name.
85858         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
85859         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
85860         (main): Call set_program_name.
85862         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
85863         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
85864         (main): Call set_program_name.
85866         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
85867         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
85868         (main): Call set_program_name.
85870 2009-01-19  Eric Blake  <ebb9@byu.net>
85872         test-unistd: test previous patch
85873         * tests/test-unistd.c: Test *_FILENO macros.
85875         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
85876         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85877         Guarantee a definition.
85878         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
85879         * modules/unistd-safer (Depends-on): Add dependency on unistd.
85880         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
85881         * lib/dup-safer.c (STDERR_FILENO): Likewise.
85882         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85883         Likewise.
85884         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
85885         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
85886         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85887         Likewise.
85888         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
85889         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
85890         (STDERR_FILENO): Likewise.
85891         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
85892         (STDERR_FILENO): Likewise.
85893         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
85894         (STDERR_FILENO): Likewise.
85895         Reported by Elbert Pol.
85897 2009-01-19  Eric Blake  <ebb9@byu.net>
85899         doc: mention more functions added in cygwin 1.7.0
85900         * doc/posix-functions/abort.texi (abort): Update wording related
85901         to cygwin.
85902         * doc/posix-functions/daylight.texi (daylight): Likewise.
85903         * doc/posix-functions/optarg.texi (optarg): Likewise.
85904         * doc/posix-functions/optarg.texi (opterr): Likewise.
85905         * doc/posix-functions/optarg.texi (optind): Likewise.
85906         * doc/posix-functions/optarg.texi (optopt): Likewise.
85907         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
85908         worked in 1.5.x, and was withdrawn in 1.7.
85909         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
85910         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
85911         cygwin versions.
85912         * doc/posix-functions/perror.texi (perror): Likewise.
85913         * doc/posix-functions/printf.texi (printf): Likewise.
85914         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
85915         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
85916         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
85917         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
85918         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
85919         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
85920         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
85921         Likewise.
85922         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
85923         Likewise.
85924         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
85925         this function.
85926         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
85927         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
85928         Likewise.
85929         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
85930         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
85931         * doc/posix-functions/confstr.texi (confstr): Likewise.
85932         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
85933         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
85934         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
85935         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
85936         * doc/posix-functions/fputws.texi (fputws): Likewise.
85937         * doc/posix-functions/fwide.texi (fwide): Likewise.
85938         * doc/posix-functions/getwc.texi (getwc): Likewise.
85939         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
85940         * doc/posix-functions/putwc.texi (putwc): Likewise.
85941         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
85942         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
85943         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
85944         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
85945         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
85946         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
85947         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
85948         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
85949         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
85950         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
85951         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
85953 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
85955         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
85956         * lib/ioctl.c: Include <sys/ioctl.h>.
85958 2009-01-19  Simon Josefsson  <simon@josefsson.org>
85960         * modules/getdate-tests (Depends-on): Add progname.
85961         * tests/test-getdate.c: Use progname module, to avoid link errors
85962         on non-glibc systems.
85964 2009-01-18  Simon Josefsson  <simon@josefsson.org>
85966         * modules/filenamecat-tests (Depends-on): Add progname.
85967         * modules/fstrcmp-tests (Depends-on): Likewise.
85969         * tests/test-filenamecat.c: Use progname module, to avoid link
85970         errors on non-glibc systems.
85971         * tests/test-fstrcmp.c: Likewise.
85973 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
85975         gettimeofday: avoid warning: nested extern declaration of 'localtime'
85976         * lib/gettimeofday.c: Move extern declaration out of function.
85978 2009-01-18  Bruno Haible  <bruno@clisp.org>
85980         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
85981         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
85982         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
85984 2009-01-18  Bruno Haible  <bruno@clisp.org>
85986         * lib/strftime.c (MEMPCPY): Remove unused macro.
85987         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
85989 2009-01-18  Martin Lambers  <marlam@marlam.de>
85991         New module 'link'.
85992         * lib/unistd.in.h (link): New declaration.
85993         * lib/link.c: New file.
85994         * m4/link.m4: New file.
85995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
85996         HAVE_LINK.
85997         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
85998         * modules/link: New file.
85999         * doc/posix-functions/link.texi: Mention the new module.
86001 2009-01-18  Bruno Haible  <bruno@clisp.org>
86003         * tests/test-avltree_list.c (main): Call set_program_name.
86004         * tests/test-avltree_oset.c (main): Likewise.
86005         * tests/test-obstack-printf.c: Include progname.h.
86006         (main): Call set_program_name.
86007         * tests/test-quotearg.c: Include progname.h.
86008         (main): Call set_program_name.
86009         * tests/test-xmemdup0.c: Include progname.h.
86010         (main): Call set_program_name.
86012 2009-01-18  Bruno Haible  <bruno@clisp.org>
86014         New module 'alphasort'.
86015         * lib/dirent.in.h (alphasort): New declaration.
86016         * lib/alphasort.c: New file, from glibc with modifications.
86017         * m4/alphasort.m4: New file.
86018         * modules/alphasort: New file.
86019         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
86020         HAVE_ALPHASORT.
86021         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
86022         HAVE_ALPHASORT.
86023         * doc/posix-functions/alphasort.texi: Mention the new module and the
86024         portability problems.
86026 2009-01-18  Bruno Haible  <bruno@clisp.org>
86028         New module 'scandir'.
86029         * lib/dirent.in.h (scandir): New declaration.
86030         * lib/scandir.c: New file, from glibc with modifications.
86031         * m4/scandir.m4: New file.
86032         * modules/scandir: New file.
86033         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
86034         HAVE_SCANDIR.
86035         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
86036         HAVE_SCANDIR.
86037         * doc/posix-functions/scandir.texi: Mention the new module and the
86038         portability problems.
86040 2009-01-17  Bruno Haible  <bruno@clisp.org>
86042         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
86043         Update documentation.
86044         (func_remove_suffix): Escape all dots in the suffix. Update
86045         documentation.
86046         (func_filter_filelist): Update documentation.
86047         Reported by Ralf Wildenhues.
86049 2009-01-17  Bruno Haible  <bruno@clisp.org>
86051         * modules/dprintf-posix-tests: New file.
86052         * tests/test-dprintf-posix.sh: New file.
86053         * tests/test-dprintf-posix.c: New file.
86055         New modules 'dprintf', 'dprintf-posix'.
86056         * lib/stdio.in.h (dprintf): New declaration.
86057         * lib/dprintf.c: New file.
86058         * m4/dprintf.m4: New file.
86059         * m4/dprintf-posix.m4: New file.
86060         * modules/dprintf: New file.
86061         * modules/dprintf-posix: New file.
86062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
86063         HAVE_DPRINTF, REPLACE_DPRINTF.
86064         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
86065         HAVE_DPRINTF, REPLACE_DPRINTF.
86066         * doc/posix-functions/dprintf.texi: Mention the new modules.
86068 2009-01-17  Bruno Haible  <bruno@clisp.org>
86070         * modules/vdprintf-posix-tests: New file.
86071         * tests/test-vdprintf-posix.sh: New file.
86072         * tests/test-vdprintf-posix.c: New file.
86074         New modules 'vdprintf', 'vdprintf-posix'.
86075         * lib/stdio.in.h (vdprintf): New declaration.
86076         * lib/vdprintf.c: New file.
86077         * m4/vdprintf.m4: New file.
86078         * m4/vdprintf-posix.m4: New file.
86079         * modules/vdprintf: New file.
86080         * modules/vdprintf-posix: New file.
86081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
86082         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86083         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
86084         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86085         * doc/posix-functions/vdprintf.texi: Mention the new modules.
86087 2009-01-17  Bruno Haible  <bruno@clisp.org>
86089         Fix replacement of fopen on mingw.
86090         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
86091         mingw.
86093 2009-01-17  Bruno Haible  <bruno@clisp.org>
86095         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
86096         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
86098 2009-01-17  Bruno Haible  <bruno@clisp.org>
86100         Avoid test-fflush2.sh failure on mingw.
86101         * tests/test-fflush2.c: Include binary-io.h.
86102         (main): Put standard input into binary mode.
86103         * modules/fflush-tests (Depends-on): Add binary-io.
86105 2009-01-17  Bruno Haible  <bruno@clisp.org>
86107         * lib/wchar.in.h: In another particular situation, include only the
86108         system's <wchar.h> file.
86109         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
86110         Reported by Albert Chin-A-Young <china@thewrittenword.com>
86111         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
86113 2009-01-17  Bruno Haible  <bruno@clisp.org>
86115         Support for stripping executables in --enable-relocatable.
86116         * build-aux/install-reloc: Expect one more argument, or an environment
86117         variable RELOC_STRIP_PROG. If set, strip the destination program and
86118         its wrapper.
86119         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
86120         RELOC_STRIP_PROG.
86121         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
86122         to set RELOCATABLE_STRIP.
86123         * NEWS: Mention the new Makefile requirement.
86125 2009-01-17  Bruno Haible  <bruno@clisp.org>
86127         * build-aux/install-reloc: Remove debugging information left over by
86128         C compiler on MacOS X.
86130 2009-01-17  Bruno Haible  <bruno@clisp.org>
86132         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
86133         * lib/progreloc.c (find_executable): Fix type of pointer passed to
86134         _NSGetExecutablePath.
86136 2009-01-16  Jim Meyering  <meyering@redhat.com>
86138         strerror: avoid warnings about discarding "const"
86139         * lib/strerror.c (rpl_strerror): Instead of returning a const
86140         string from each and every "case", use a variable, and add a single
86141         cast after the switch.
86143 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
86145         * lib/arpa_inet.in.h: Add extern "C" block for C++.
86147 2009-01-16  Bruno Haible  <bruno@clisp.org>
86149         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
86150         array initializer syntax that also works in C++ mode.
86151         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86153 2009-01-16  Jim Meyering  <meyering@redhat.com>
86155         poll: suppress a warning
86156         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
86157         to ignore "...unsigned expression < 0 is always false" warnings.
86159 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
86161         poll: remove declarations of unused variables
86162         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
86163         sockbuf and optlen.
86165 2009-01-15  Bruno Haible  <bruno@clisp.org>
86167         Make fflush-after-ungetc POSIX compliant on BSD systems.
86168         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
86169         (clear_ungetc_buffer): Implement also for other systems.
86170         (rpl_fflush): On glibc systems, invoke
86171         clear_ungetc_buffer_preserving_position. Otherwise, invoke
86172         clear_ungetc_buffer after fetching the stream's position, not before.
86174 2009-01-15  Bruno Haible  <bruno@clisp.org>
86176         Make fflush-after-ungetc POSIX compliant on glibc systems.
86177         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
86178         after ungetc.
86179         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
86180         (rpl_fflush): On glibc systems, simply call the system's fflush
86181         function after clearing the ungetc buffer.
86182         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
86183         Instead, lseek only to the end of file, then use the system's fseeko
86184         for the rest. On glibc systems, reset the EOF indicator bit.
86186 2009-01-15  Jim Meyering  <meyering@redhat.com>
86188         openmp.m4: revert quote-adding change, for portability to older autoconf
86189         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
86190         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
86191         Simon Josefsson noticed the problem when using autoconf-2.61.
86193 2009-01-15  Bruno Haible  <bruno@clisp.org>
86195         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
86196         * tests/test-fflush2.c (ASSERT): Always fail.
86197         (main): Add two tests for fflush() after ungetc(), taking into account
86198         the Austin Group's clarification.
86199         Suggested by Eric Blake.
86201 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
86203         mktime.m4: remove K&R-style function prototypes
86204         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
86205         for the Sun C++ compiler.
86207 2009-01-14  Bruno Haible  <bruno@clisp.org>
86209         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
86210         while including <wchar.h>.
86211         * lib/wchar.in.h: In two particular situations on HP-UX, include only
86212         the system's <wchar.h> file.
86213         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86215 2009-01-14  Bruno Haible  <bruno@clisp.org>
86217         * m4/csharp.m4: Don't mention gettext on the serial number line.
86218         * m4/csharpexec.m4: Likewise.
86219         * m4/eaccess.m4: Likewise.
86220         * m4/javaexec.m4: Likewise.
86221         * m4/sig_atomic_t.m4: Likewise.
86222         * m4/tmpdir.m4: Likewise.
86223         * m4/intldir.m4: Bump gettext version.
86224         * m4/lib-ld.m4: Likewise.
86226 2009-01-14  Bruno Haible  <bruno@clisp.org>
86228         * lib/progname.c (set_program_name): Add more comments.
86229         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
86231 2009-01-14  Simon Josefsson  <simon@josefsson.org>
86233         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
86234         were sys/stat.h does not define it.
86236 2009-01-14  Jim Meyering  <meyering@redhat.com>
86238         many *.m4 files: improve m4 quoting
86239         99% of this change was performed by running the following commands:
86240         git ls-files | grep '\.m4$' | xargs perl -pi \
86241           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
86242           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86243           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86244           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
86245         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
86246         The remainder were to add Copyright dates, increment serial numbers,
86247         undo some changes in comments, exclude m4/intl.m4, and add quotes
86248         around the "1" in ",1" where the unusual spacing prohibited the
86249         above regexps from doing the job.  For more details, see
86250         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
86251         * m4/acl.m4: Modified.
86252         * m4/afs.m4: Likewise.
86253         * m4/alloca.m4: Likewise.
86254         * m4/argp.m4: Likewise.
86255         * m4/argz.m4: Likewise.
86256         * m4/atexit.m4: Likewise.
86257         * m4/bison-i18n.m4: Likewise.
86258         * m4/bison.m4: Likewise.
86259         * m4/byteswap.m4: Likewise.
86260         * m4/c-stack.m4: Likewise.
86261         * m4/c-strtod.m4: Likewise.
86262         * m4/calloc.m4: Likewise.
86263         * m4/canonicalize-lgpl.m4: Likewise.
86264         * m4/chown.m4: Likewise.
86265         * m4/clock_time.m4: Likewise.
86266         * m4/codeset.m4: Likewise.
86267         * m4/copy-file.m4: Likewise.
86268         * m4/csharp.m4: Likewise.
86269         * m4/csharpcomp.m4: Likewise.
86270         * m4/csharpexec.m4: Likewise.
86271         * m4/d-ino.m4: Likewise.
86272         * m4/d-type.m4: Likewise.
86273         * m4/dirfd.m4: Likewise.
86274         * m4/double-slash-root.m4: Likewise.
86275         * m4/eaccess.m4: Likewise.
86276         * m4/eealloc.m4: Likewise.
86277         * m4/environ.m4: Likewise.
86278         * m4/errno_h.m4: Likewise.
86279         * m4/euidaccess.m4: Likewise.
86280         * m4/execute.m4: Likewise.
86281         * m4/fatal-signal.m4: Likewise.
86282         * m4/fchdir.m4: Likewise.
86283         * m4/fcntl_h.m4: Likewise.
86284         * m4/fileblocks.m4: Likewise.
86285         * m4/filenamecat.m4: Likewise.
86286         * m4/findprog.m4: Likewise.
86287         * m4/flexmember.m4: Likewise.
86288         * m4/fnmatch.m4: Likewise.
86289         * m4/fopen.m4: Likewise.
86290         * m4/fpending.m4: Likewise.
86291         * m4/fprintf-posix.m4: Likewise.
86292         * m4/free.m4: Likewise.
86293         * m4/frexp.m4: Likewise.
86294         * m4/frexpl.m4: Likewise.
86295         * m4/fsusage.m4: Likewise.
86296         * m4/ftruncate.m4: Likewise.
86297         * m4/gc-camellia.m4: Likewise.
86298         * m4/gc-random.m4: Likewise.
86299         * m4/gc.m4: Likewise.
86300         * m4/getaddrinfo.m4: Likewise.
86301         * m4/getcwd-abort-bug.m4: Likewise.
86302         * m4/getcwd-path-max.m4: Likewise.
86303         * m4/getdate.m4: Likewise.
86304         * m4/getdomainname.m4: Likewise.
86305         * m4/getgroups.m4: Likewise.
86306         * m4/gethostname.m4: Likewise.
86307         * m4/gethrxtime.m4: Likewise.
86308         * m4/getline.m4: Likewise.
86309         * m4/getloadavg.m4: Likewise.
86310         * m4/getndelim2.m4: Likewise.
86311         * m4/getpass.m4: Likewise.
86312         * m4/gettext.m4: Likewise.
86313         * m4/gettime.m4: Likewise.
86314         * m4/gettimeofday.m4: Likewise.
86315         * m4/gnulib-common.m4: Likewise.
86316         * m4/group-member.m4: Likewise.
86317         * m4/host-os.m4: Likewise.
86318         * m4/iconv.m4: Likewise.
86319         * m4/iconv_open.m4: Likewise.
86320         * m4/inet_ntop.m4: Likewise.
86321         * m4/inet_pton.m4: Likewise.
86322         * m4/inline.m4: Likewise.
86323         * m4/intldir.m4: Likewise.
86324         * m4/intlmacosx.m4: Likewise.
86325         * m4/intmax.m4: Likewise.
86326         * m4/intmax_t.m4: Likewise.
86327         * m4/inttypes.m4: Likewise.
86328         * m4/inttypes_h.m4: Likewise.
86329         * m4/inttypes-pri.m4: Likewise.
86330         * m4/isapipe.m4: Likewise.
86331         * m4/isnand.m4: Likewise.
86332         * m4/isnanf.m4: Likewise.
86333         * m4/isnanl.m4: Likewise.
86334         * m4/javacomp.m4: Likewise.
86335         * m4/javaexec.m4: Likewise.
86336         * m4/jm-winsz1.m4: Likewise.
86337         * m4/jm-winsz2.m4: Likewise.
86338         * m4/lchown.m4: Likewise.
86339         * m4/lcmessage.m4: Likewise.
86340         * m4/ldexpl.m4: Likewise.
86341         * m4/lib-ld.m4: Likewise.
86342         * m4/lib-link.m4: Likewise.
86343         * m4/libsigsegv.m4: Likewise.
86344         * m4/link-follow.m4: Likewise.
86345         * m4/localcharset.m4: Likewise.
86346         * m4/locale-fr.m4: Likewise.
86347         * m4/locale-ja.m4: Likewise.
86348         * m4/locale-tr.m4: Likewise.
86349         * m4/locale-zh.m4: Likewise.
86350         * m4/lock.m4: Likewise.
86351         * m4/longlong.m4: Likewise.
86352         * m4/ls-mntd-fs.m4: Likewise.
86353         * m4/lstat.m4: Likewise.
86354         * m4/malloc.m4: Likewise.
86355         * m4/mathl.m4: Likewise.
86356         * m4/mbrtowc.m4: Likewise.
86357         * m4/mbstate_t.m4: Likewise.
86358         * m4/mbswidth.m4: Likewise.
86359         * m4/memchr.m4: Likewise.
86360         * m4/memcmp.m4: Likewise.
86361         * m4/memcpy.m4: Likewise.
86362         * m4/memmem.m4: Likewise.
86363         * m4/memmove.m4: Likewise.
86364         * m4/mempcpy.m4: Likewise.
86365         * m4/memrchr.m4: Likewise.
86366         * m4/memset.m4: Likewise.
86367         * m4/minmax.m4: Likewise.
86368         * m4/mkdir-slash.m4: Likewise.
86369         * m4/mkdtemp.m4: Likewise.
86370         * m4/mktime.m4: Likewise.
86371         * m4/mmap-anon.m4: Likewise.
86372         * m4/mountlist.m4: Likewise.
86373         * m4/nanosleep.m4: Likewise.
86374         * m4/nls.m4: Likewise.
86375         * m4/nocrash.m4: Likewise.
86376         * m4/open.m4: Likewise.
86377         * m4/openat.m4: Likewise.
86378         * m4/openmp.m4: Likewise.
86379         * m4/pathmax.m4: Likewise.
86380         * m4/perl.m4: Likewise.
86381         * m4/physmem.m4: Likewise.
86382         * m4/pipe.m4: Likewise.
86383         * m4/po.m4: Likewise.
86384         * m4/poll.m4: Likewise.
86385         * m4/posixtm.m4: Likewise.
86386         * m4/posixver.m4: Likewise.
86387         * m4/printf-frexp.m4: Likewise.
86388         * m4/printf-frexpl.m4: Likewise.
86389         * m4/printf-posix.m4: Likewise.
86390         * m4/printf-posix-rpl.m4: Likewise.
86391         * m4/printf.m4: Likewise.
86392         * m4/progtest.m4: Likewise.
86393         * m4/putenv.m4: Likewise.
86394         * m4/readline.m4: Likewise.
86395         * m4/readlink.m4: Likewise.
86396         * m4/readutmp.m4: Likewise.
86397         * m4/realloc.m4: Likewise.
86398         * m4/regex.m4: Likewise.
86399         * m4/relocatable.m4: Likewise.
86400         * m4/relocatable-lib.m4: Likewise.
86401         * m4/rename-dest-slash.m4: Likewise.
86402         * m4/rename.m4: Likewise.
86403         * m4/rmdir-errno.m4: Likewise.
86404         * m4/rmdir.m4: Likewise.
86405         * m4/roundf.m4: Likewise.
86406         * m4/roundl.m4: Likewise.
86407         * m4/rpmatch.m4: Likewise.
86408         * m4/save-cwd.m4: Likewise.
86409         * m4/selinux-selinux-h.m4: Likewise.
86410         * m4/setenv.m4: Likewise.
86411         * m4/settime.m4: Likewise.
86412         * m4/sig2str.m4: Likewise.
86413         * m4/sig_atomic_t.m4: Likewise.
86414         * m4/signalblocking.m4: Likewise.
86415         * m4/signbit.m4: Likewise.
86416         * m4/sigpipe.m4: Likewise.
86417         * m4/sockets.m4: Likewise.
86418         * m4/sockpfaf.m4: Likewise.
86419         * m4/st_dm_mode.m4: Likewise.
86420         * m4/stat-time.m4: Likewise.
86421         * m4/stdbool.m4: Likewise.
86422         * m4/stdint.m4: Likewise.
86423         * m4/stdint_h.m4: Likewise.
86424         * m4/stpcpy.m4: Likewise.
86425         * m4/stpncpy.m4: Likewise.
86426         * m4/strcase.m4: Likewise.
86427         * m4/strchrnul.m4: Likewise.
86428         * m4/strcspn.m4: Likewise.
86429         * m4/strdup.m4: Likewise.
86430         * m4/strftime.m4: Likewise.
86431         * m4/strndup.m4: Likewise.
86432         * m4/strnlen.m4: Likewise.
86433         * m4/strpbrk.m4: Likewise.
86434         * m4/strptime.m4: Likewise.
86435         * m4/strsep.m4: Likewise.
86436         * m4/strtod.m4: Likewise.
86437         * m4/strtoimax.m4: Likewise.
86438         * m4/strtok_r.m4: Likewise.
86439         * m4/strtol.m4: Likewise.
86440         * m4/strtoll.m4: Likewise.
86441         * m4/strtoul.m4: Likewise.
86442         * m4/strtoull.m4: Likewise.
86443         * m4/strtoumax.m4: Likewise.
86444         * m4/strverscmp.m4: Likewise.
86445         * m4/threadlib.m4: Likewise.
86446         * m4/timegm.m4: Likewise.
86447         * m4/tm_gmtoff.m4: Likewise.
86448         * m4/tmpdir.m4: Likewise.
86449         * m4/tmpfile.m4: Likewise.
86450         * m4/tzset.m4: Likewise.
86451         * m4/uintmax_t.m4: Likewise.
86452         * m4/unlinkdir.m4: Likewise.
86453         * m4/unlocked-io.m4: Likewise.
86454         * m4/uptime.m4: Likewise.
86455         * m4/userspec.m4: Likewise.
86456         * m4/utimbuf.m4: Likewise.
86457         * m4/utime.m4: Likewise.
86458         * m4/utimes-null.m4: Likewise.
86459         * m4/utimes.m4: Likewise.
86460         * m4/vararrays.m4: Likewise.
86461         * m4/vasnprintf.m4: Likewise.
86462         * m4/vfprintf-posix.m4: Likewise.
86463         * m4/vprintf-posix.m4: Likewise.
86464         * m4/wait-process.m4: Likewise.
86465         * m4/wchar_t.m4: Likewise.
86466         * m4/wint_t.m4: Likewise.
86467         * m4/write-any-file.m4: Likewise.
86468         * m4/yield.m4: Likewise.
86470 2009-01-13  Bruno Haible  <bruno@clisp.org>
86472         Avoid test-copy-file.sh failures when ACL support insufficient.
86473         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
86474         TESTS_ENVIRONMENT.
86475         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
86476         Reported by Jim Meyering.
86478 2009-01-13  Bruno Haible  <bruno@clisp.org>
86480         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
86481         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
86482         * modules/unistdio/u8-printf-parse (Files): Likewise.
86483         * modules/unistdio/u32-printf-parse (Files): Likewise.
86484         * modules/unistdio/ulc-printf-parse (Files): Likewise.
86486 2009-01-13  Simon Josefsson  <simon@josefsson.org>
86488         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
86489         and m4/inttypes_h.m4 too.
86491 2009-01-12  Eric Blake  <ebb9@byu.net>
86493         tests: IRIX 6.2 cc can't compile -0.0 into .data
86494         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
86495         rather than at compile-time.
86496         * tests/test-floorl.c (minus_zero): Likewise.
86497         * tests/test-frexpl.c (minus_zero): Likewise.
86498         * tests/test-isnan.c (minus_zerol): Likewise.
86499         * tests/test-isnanl.h (minus_zero): Likewise.
86500         * tests/test-ldexpl.c (minus_zero): Likewise.
86501         * tests/test-roundl.c (minus_zero): Likewise.
86502         * tests/test-signbit.c (minus_zerol): Likewise.
86503         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86504         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86505         * tests/test-truncl.c (minus_zero): Likewise.
86506         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86507         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86508         Reported by Tom G. Christensen and Nelson H. F. Beebe.
86510 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86512         regex: fix glibc bug 9697
86513         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
86514         handling.
86516 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86518         regex: fix glibc bug 697
86519         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
86520         being NULL also if there are no backreferences.
86522 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86524         regex: merge glibc changes
86525         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
86526         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
86527         re_string_skip_chars, re_string_reconstruct): Likewise.
86528         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
86530 2009-01-07  Jim Meyering  <meyering@redhat.com>
86532         poll: filter through cppi
86533         * lib/poll.c: Indent cpp directives to reflect nesting.
86535 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
86537         poll: don't return uninitialized
86538         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
86540 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
86542         avoid compile failure on AIX 6.1
86543         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
86544         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
86546 2009-01-04  Jim Meyering  <meyering@redhat.com>
86548         remove duplicate inclusion of <stdio.h>
86549         * tests/test-fprintf-posix.c: Likewise.
86550         * tests/test-printf-posix.c: Likewise.
86551         * tests/test-snprintf-posix.c: Likewise.
86552         * tests/test-sprintf-posix.c: Likewise.
86553         * tests/test-vasprintf-posix.c: Likewise.
86554         * tests/test-vfprintf-posix.c: Likewise.
86555         * tests/test-vprintf-posix.c: Likewise.
86556         * tests/test-vsnprintf-posix.c: Likewise.
86557         * tests/test-vsprintf-posix.c: Likewise.
86559 2009-01-03  Jim Meyering  <meyering@redhat.com>
86561         gnulib-tool: fix sed-based filtering
86562         * gnulib-tool (func_filter_filelist): Remove extra backslash
86563         in sed_fff_filter definition.
86565 2009-01-02  Jim Meyering  <meyering@redhat.com>
86567         strftime: avoid compilation failure on Solaris 2.6
86568         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
86569         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
86570         Don't #define mbrlen or mbsinit, since now they're guaranteed to
86571         be available.  Reported by Tom G. Christensen.  Details in
86572         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
86574 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86575             Bruno Haible  <bruno@clisp.org>
86577         Speed up gnulib-tool by doing more string processing through shell
86578         built-ins.
86579         * gnulib-tool (fast_func_append): New variable.
86580         (func_remove_prefix, func_remove_suffix): New functions.
86581         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
86582         (func_filter_filelist): New function.
86583         (func_get_dependencies): Use func_remove_suffix instead of sed.
86584         (func_get_automake_snippet): Use func_filter_filelist instead of a
86585         subshell and sed invocation.
86587 2009-01-01  Bruno Haible  <bruno@clisp.org>
86589         Fix a security bug.
86590         * gnulib-tool (func_import, import, update): Don't allow the characters
86591         '"', '$', '`', '\' in macro arguments that become part of commands that
86592         are evaluated.
86594 2009-01-01  Bruno Haible  <bruno@clisp.org>
86596         * gnulib-tool (func_reset_sigpipe): Add more comments.
86598 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86600         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
86601         func_emit_tests_Makefile_am, func_import): Abort loops early if we
86602         already know the answer.
86604 2009-01-01  Jim Meyering  <meyering@redhat.com>
86606         * lib/version-etc.c (version_etc_va): Update copyright year.
86608 2008-12-30  Bruno Haible  <bruno@clisp.org>
86610         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
86611         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
86612         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
86614 2008-12-29  Eric Blake  <ebb9@byu.net>
86616         multiarch: avoid autoconf AC_REQUIRE bug
86617         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
86618         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
86619         2.63 and older.
86620         Reported by Bruno Haible, and analyzed in
86621         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
86623 2008-12-29  Bruno Haible  <bruno@clisp.org>
86625         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
86626         files in subdirectories correctly.
86627         Reported by Ralf Wildenhues.
86629 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86631         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
86632         rather than 'join FILE -', for Solaris join.
86634 2008-12-29  Bruno Haible  <bruno@clisp.org>
86636         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
86637         quoting.
86638         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86639         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
86640         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
86641         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
86642         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
86643         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
86644         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
86645         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
86646         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
86647         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
86648         * m4/nls.m4 (AM_NLS): Likewise.
86649         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
86650         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
86651         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86652         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
86653         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
86654         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
86655         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
86656         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
86657         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
86658         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
86659         * m4/xsize.m4 (gl_XSIZE): Likewise.
86660         Suggested by Jim Meyering.
86662 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86664         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
86665         * lib/parse-duration.c: use a switch instead of cascading if's.
86667 2008-12-29  Eric Blake  <ebb9@byu.net>
86669         wchar.h: supply WEOF on Irix 5.3
86670         * lib/wchar.in.h (wint_t): Also supply WEOF.
86671         * lib/wctype.in.h (wint_t): Likewise.
86672         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
86673         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
86674         Reported by Tom G. Christensen.
86676 2008-12-26  Bruno Haible  <bruno@clisp.org>
86678         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
86679         i486, i586, i686.
86681 2008-12-26  Bruno Haible  <bruno@clisp.org>
86683         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
86685 2008-12-26  Bruno Haible  <bruno@clisp.org>
86687         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
86688         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
86689         not __STDC_CONSTANT_MACROS.
86690         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86692 2008-12-25  Bruno Haible  <bruno@clisp.org>
86694         Add support for universal builds to vasnprintf.
86695         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
86696         universal builds, guess no.
86697         * modules/vasnprintf-posix (Depends-on): Add multiarch.
86698         * modules/vasprintf-posix (Depends-on): Likewise.
86699         * modules/fprintf-posix (Depends-on): Likewise.
86700         * modules/vfprintf-posix (Depends-on): Likewise.
86701         * modules/snprintf-posix (Depends-on): Likewise.
86702         * modules/vsnprintf-posix (Depends-on): Likewise.
86703         * modules/sprintf-posix (Depends-on): Likewise.
86704         * modules/vsprintf-posix (Depends-on): Likewise.
86705         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86706         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86707         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86708         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86709         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86710         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86711         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86713         Add support for universal builds to <inttypes.h>.
86714         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
86715         _SCNu64_PREFIX): In Apple
86716         universal builds, define directly, using _LP64.
86717         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
86718         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
86719         * modules/inttypes (Depends-on): Add multiarch.
86720         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
86722         Add support for universal builds to <stdint.h>.
86723         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
86724         universal builds, define directly, using _LP64.
86725         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
86726         Apple universal builds, don't test for the size and suffix of ptrdiff_t
86727         and size_t.
86728         * modules/stdint (Depends-on): Add multiarch.
86729         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
86731         New module 'multiarch'.
86732         * modules/multiarch: New file.
86733         * m4/multiarch.m4: New file.
86735 2008-12-25  Bruno Haible  <bruno@clisp.org>
86737         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
86739 2008-12-25  Bruno Haible  <bruno@clisp.org>
86741         * modules/btowc (License): Relicense under LGPLv2+.
86742         * modules/mbsinit (License): Likewise.
86743         * modules/mbrtowc (License): Likewise.
86744         * modules/wcrtomb (License): Likewise.
86745         * modules/streq (License): Likewise.
86746         Reported by David Lutterkort <lutter@redhat.com>.
86748 2008-12-23  Bruno Haible  <bruno@clisp.org>
86750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
86752 2008-12-23  Bruno Haible  <bruno@clisp.org>
86754         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
86755         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
86756         GETADDRINFO_LIB, not in LIBS.
86757         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
86758         * modules/canon-host (Link): Likewise.
86759         * NEWS: Mention the change.
86760         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
86761         GETADDRINFO_LIB.
86763 2008-12-22  Bruno Haible  <bruno@clisp.org>
86765         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
86766         * doc/posix-functions/iswalpha_l.texi: Likewise.
86767         * doc/posix-functions/iswblank_l.texi: Likewise.
86768         * doc/posix-functions/iswcntrl_l.texi: Likewise.
86769         * doc/posix-functions/iswctype_l.texi: Likewise.
86770         * doc/posix-functions/iswdigit_l.texi: Likewise.
86771         * doc/posix-functions/iswgraph_l.texi: Likewise.
86772         * doc/posix-functions/iswlower_l.texi: Likewise.
86773         * doc/posix-functions/iswprint_l.texi: Likewise.
86774         * doc/posix-functions/iswpunct_l.texi: Likewise.
86775         * doc/posix-functions/iswspace_l.texi: Likewise.
86776         * doc/posix-functions/iswupper_l.texi: Likewise.
86777         * doc/posix-functions/iswxdigit_l.texi: Likewise.
86778         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
86779         * doc/posix-functions/open_wmemstream.texi: Likewise.
86780         * doc/posix-functions/swscanf.texi: Likewise.
86781         * doc/posix-functions/towctrans_l.texi: Likewise.
86782         * doc/posix-functions/towlower.texi: Likewise.
86783         * doc/posix-functions/towlower_l.texi: Likewise.
86784         * doc/posix-functions/towupper.texi: Likewise.
86785         * doc/posix-functions/towupper_l.texi: Likewise.
86786         * doc/posix-functions/vfwprintf.texi: Likewise.
86787         * doc/posix-functions/vfwscanf.texi: Likewise.
86788         * doc/posix-functions/vswscanf.texi: Likewise.
86789         * doc/posix-functions/vwprintf.texi: Likewise.
86790         * doc/posix-functions/vwscanf.texi: Likewise.
86791         * doc/posix-functions/wcpcpy.texi: Likewise.
86792         * doc/posix-functions/wcpncpy.texi: Likewise.
86793         * doc/posix-functions/wcscasecmp.texi: Likewise.
86794         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
86795         * doc/posix-functions/wcscoll_l.texi: Likewise.
86796         * doc/posix-functions/wcsdup.texi: Likewise.
86797         * doc/posix-functions/wcsncasecmp.texi: Likewise.
86798         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
86799         * doc/posix-functions/wcsnlen.texi: Likewise.
86800         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86801         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
86802         * doc/posix-functions/wctrans_l.texi: Likewise.
86803         * doc/posix-functions/wctype_l.texi: Likewise.
86804         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
86805         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
86806         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
86807         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
86808         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
86809         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
86810         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
86811         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
86812         * doc/glibc-functions/wcschrnul.texi: Likewise.
86813         * doc/glibc-functions/wcsftime_l.texi: Likewise.
86814         * doc/glibc-functions/wcstod_l.texi: Likewise.
86815         * doc/glibc-functions/wcstof_l.texi: Likewise.
86816         * doc/glibc-functions/wcstol_l.texi: Likewise.
86817         * doc/glibc-functions/wcstold_l.texi: Likewise.
86818         * doc/glibc-functions/wcstoll_l.texi: Likewise.
86819         * doc/glibc-functions/wcstoq.texi: Likewise.
86820         * doc/glibc-functions/wcstoul_l.texi: Likewise.
86821         * doc/glibc-functions/wcstoull_l.texi: Likewise.
86822         * doc/glibc-functions/wcstouq.texi: Likewise.
86823         * doc/glibc-functions/wmempcpy.texi: Likewise.
86825 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
86826             Eric Blake  <ebb9@byu.net>
86827             Paolo Bonzini  <bonzini@gnu.org>
86828             Bruno Haible  <bruno@clisp.org>
86830         Make c-stack work on Haiku.
86831         * lib/c-stack.c (SA_ONSTACK): Define fallback.
86832         (c_stack_action): Use SA_ONSTACK flag.
86834 2008-12-22  Bruno Haible  <bruno@clisp.org>
86836         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
86838 2008-12-22  Bruno Haible  <bruno@clisp.org>
86840         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
86841         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
86842         being overridden.
86843         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
86844         New macros.
86845         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
86846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
86847         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
86848         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
86850 2008-12-22  Bruno Haible  <bruno@clisp.org>
86852         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
86853         from test code.
86855 2008-12-22  Eric Blake  <ebb9@byu.net>
86857         Avoid gcc warnings on cygwin.
86858         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
86859         Avoid unused variable.
86860         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
86861         Likewise.
86863 2008-12-22  Bruno Haible  <bruno@clisp.org>
86865         Remove HAVE_MBRTOWC conditionals.
86866         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
86867         (mbscasecmp): Assume mbrtowc function.
86868         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
86869         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
86870         * lib/mbschr.c: Include mbuiter.h unconditionally.
86871         (mbschr): Assume mbrtowc function.
86872         * lib/mbscspn.c: Include mbuiter.h unconditionally.
86873         (mbscspn): Assume mbrtowc function.
86874         * lib/mbslen.c: Include mbuiter.h unconditionally.
86875         (mbslen): Assume mbrtowc function.
86876         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
86877         (mbsncasecmp): Assume mbrtowc function.
86878         * lib/mbsnlen.c: Include mbiter.h unconditionally.
86879         (mbsnlen): Assume mbrtowc function.
86880         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
86881         (mbspbrk): Assume mbrtowc function.
86882         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
86883         (mbspcasecmp): Assume mbrtowc function.
86884         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
86885         (mbsrchr): Assume mbrtowc function.
86886         * lib/mbssep.c: Include mbuiter.h unconditionally.
86887         (mbssep): Assume mbrtowc function.
86888         * lib/mbsspn.c: Include mbuiter.h unconditionally.
86889         (mbsspn): Assume mbrtowc function.
86890         * lib/mbsstr.c: Include mbuiter.h unconditionally.
86891         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
86892         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
86893         (mbstok_r): Assume mbrtowc function.
86894         * lib/propername.c: Include mbuiter.h unconditionally.
86895         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
86896         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
86897         (trim2): Assume mbrtowc function.
86898         * lib/mbswidth.c (mbsinit): Remove fallback definition.
86899         (mbsnwidth): Assume mbrtowc function.
86900         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
86901         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
86902         fallback definitions.
86903         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
86905 2008-12-22  Bruno Haible  <bruno@clisp.org>
86907         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
86909 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
86911         * modules/regex: Request emulations for the mb*/wc* functions we need.
86912         * m4/regex.m4: Don't look for those functions here.
86913         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
86915 2008-12-22  Bruno Haible  <bruno@clisp.org>
86917         * modules/fnmatch (Depends-on): Remove duplicated dependency.
86919 2008-12-21  Bruno Haible  <bruno@clisp.org>
86921         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
86922         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
86923         (Include): Remove conditionalization.
86924         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
86925         (Include): Remove conditionalization.
86926         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
86927         (Include): Remove conditionalization.
86928         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
86929         * m4/mbfile.m4 (gl_MBFILE): Likewise.
86930         * NEWS: Mention the change.
86931         Reported by Alan Hourihane <alanh@fairlite.co.uk>
86932         via Sergey Poznyakoff <gray@gnu.org.ua>.
86934 2008-12-21  Bruno Haible  <bruno@clisp.org>
86936         * MODULES.html.sh (Extended multibyte and wide character utilities
86937         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
86938         wcrtomb, wcsrtombs.
86939         (Support for systems lacking POSIX:2008): Add accept, bind, close,
86940         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
86941         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
86942         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
86944 2008-12-21  Bruno Haible  <bruno@clisp.org>
86946         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
86948 2008-12-21  Bruno Haible  <bruno@clisp.org>
86950         * modules/wcsnrtombs-tests: New file.
86951         * tests/test-wcsnrtombs1.sh: New file.
86952         * tests/test-wcsnrtombs2.sh: New file.
86953         * tests/test-wcsnrtombs3.sh: New file.
86954         * tests/test-wcsnrtombs4.sh: New file.
86955         * tests/test-wcsnrtombs.c: New file.
86957         New module 'wcsnrtombs'.
86958         * lib/wchar.in.h (wcsnrtombs): New declaration.
86959         * lib/wcsnrtombs.c: New file.
86960         * lib/wcsrtombs-state.c: New file.
86961         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
86962         (internal_state): Remove variable.
86963         * m4/wcsnrtombs.m4: New file.
86964         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
86965         compilation units.
86966         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
86967         HAVE_WCSNRTOMBS.
86968         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
86969         HAVE_WCSNRTOMBS.
86970         * modules/wcsnrtombs: New file.
86971         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
86972         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
86974 2008-12-21  Bruno Haible  <bruno@clisp.org>
86976         * modules/wcsrtombs-tests: New file.
86977         * tests/test-wcsrtombs1.sh: New file.
86978         * tests/test-wcsrtombs2.sh: New file.
86979         * tests/test-wcsrtombs3.sh: New file.
86980         * tests/test-wcsrtombs4.sh: New file.
86981         * tests/test-wcsrtombs.c: New file.
86983         New module 'wcsrtombs'.
86984         * lib/wchar.in.h (wcsrtombs): New declaration.
86985         * lib/wcsrtombs.c: New file.
86986         * m4/wcsrtombs.m4: New file.
86987         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
86988         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
86989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
86990         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
86991         * modules/wcsrtombs: New file.
86992         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
86993         bugs.
86995 2008-12-21  Bruno Haible  <bruno@clisp.org>
86997         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
86998         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
86999         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
87000         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
87001         if not correct.
87002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
87003         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
87004         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87005         m4/locale-zh.m4, m4/codeset.m4.
87006         * doc/posix-functions/wcrtomb.texi: Document the bug.
87008 2008-12-21  Bruno Haible  <bruno@clisp.org>
87010         Work around a btowc() bug on IRIX 6.5.
87011         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
87012         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
87013         REPLACE_WTOBC if not.
87014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
87015         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
87016         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
87018 2008-12-21  Bruno Haible  <bruno@clisp.org>
87020         * modules/wcrtomb-tests: New file.
87021         * tests/test-wcrtomb.sh: New file.
87022         * tests/test-wcrtomb.c: New file.
87024         New module 'wcrtomb'.
87025         * lib/wchar.in.h (wcrtomb): New declaration.
87026         * lib/wcrtomb.c: New file.
87027         * m4/wcrtomb.m4: New file.
87028         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
87029         HAVE_WCRTOMB.
87030         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
87031         HAVE_WCRTOMB.
87032         * modules/wcrtomb: New file.
87033         * doc/posix-functions/wcrtomb.texi: Mention the new module.
87035 2008-12-21  Bruno Haible  <bruno@clisp.org>
87037         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
87038         * modules/mbsrtowcs (Files): Likewise.
87039         * modules/wctob (Files): Likewise.
87040         * modules/c-strcase-tests (Files): Likewise.
87041         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
87042         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
87043         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
87044         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
87045         * modules/vasnprintf-posix-tests (Files): Likewise.
87047 2008-12-21  William Pursell  <bill.pursell@gmail.com>
87049         gitlog-to-changelog: pass all command-line arguments to git-log
87050         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
87051         it is sometimes convenient to filter the commits in various ways.
87052         gitlog-to-changelog only allows --since to specify a start date,
87053         but git-log itself supports many other filtering mechanisms.
87054         At the moment, I want to filter by branch name.  Rather than
87055         adding a --branch option to gitlog-to-changelog, it seems more
87056         flexible to simply pass all options directly to git-log and let
87057         git do the work.  Notice that this effectively makes --since a
87058         redundant option for gitlog-to-changelog, but removing it would
87059         require current usage to change since calls would then require
87060         an additional '--'.
87062 2008-12-21  Bruno Haible  <bruno@clisp.org>
87064         * modules/mbsnrtowcs-tests: New file.
87065         * tests/test-mbsnrtowcs1.sh: New file.
87066         * tests/test-mbsnrtowcs2.sh: New file.
87067         * tests/test-mbsnrtowcs3.sh: New file.
87068         * tests/test-mbsnrtowcs4.sh: New file.
87069         * tests/test-mbsnrtowcs.c: New file.
87071         New module 'mbsnrtowcs'.
87072         * lib/wchar.in.h (mbsnrtowcs): New declaration.
87073         * lib/mbsnrtowcs.c: New file.
87074         * lib/mbsrtowcs-state.c: New file.
87075         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
87076         (internal_state): Remove variable.
87077         * m4/mbsnrtowcs.m4: New file.
87078         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
87079         compilation units.
87080         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
87081         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87082         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
87083         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87084         * modules/mbsnrtowcs: New file.
87085         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
87086         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
87087         portability problem.
87089 2008-12-21  Bruno Haible  <bruno@clisp.org>
87091         Work around mbsrtowcs bug.
87092         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
87093         (gl_FUNC_MBSRTOWCS): Invoke it.
87094         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87095         m4/locale-zh.m4.
87096         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
87098 2008-12-21  Bruno Haible  <bruno@clisp.org>
87100         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
87102 2008-12-21  Bruno Haible  <bruno@clisp.org>
87104         Update doc for AIX.
87105         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
87106         16-bit wchar_t type.
87107         * doc/posix-functions/btowc.texi: Likewise.
87108         * doc/posix-functions/fgetwc.texi: Likewise.
87109         * doc/posix-functions/fgetws.texi: Likewise.
87110         * doc/posix-functions/fputwc.texi: Likewise.
87111         * doc/posix-functions/fputws.texi: Likewise.
87112         * doc/posix-functions/fwide.texi: Likewise.
87113         * doc/posix-functions/fwprintf.texi: Likewise.
87114         * doc/posix-functions/fwscanf.texi: Likewise.
87115         * doc/posix-functions/getwchar.texi: Likewise.
87116         * doc/posix-functions/getwc.texi: Likewise.
87117         * doc/posix-functions/iswalnum.texi: Likewise.
87118         * doc/posix-functions/iswalpha.texi: Likewise.
87119         * doc/posix-functions/iswblank.texi: Likewise.
87120         * doc/posix-functions/iswcntrl.texi: Likewise.
87121         * doc/posix-functions/iswctype.texi: Likewise.
87122         * doc/posix-functions/iswdigit.texi: Likewise.
87123         * doc/posix-functions/iswgraph.texi: Likewise.
87124         * doc/posix-functions/iswlower.texi: Likewise.
87125         * doc/posix-functions/iswprint.texi: Likewise.
87126         * doc/posix-functions/iswpunct.texi: Likewise.
87127         * doc/posix-functions/iswspace.texi: Likewise.
87128         * doc/posix-functions/iswupper.texi: Likewise.
87129         * doc/posix-functions/iswxdigit.texi: Likewise.
87130         * doc/posix-functions/mbrtowc.texi: Likewise.
87131         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87132         * doc/posix-functions/mbstowcs.texi: Likewise.
87133         * doc/posix-functions/mbtowc.texi: Likewise.
87134         * doc/posix-functions/putwchar.texi: Likewise.
87135         * doc/posix-functions/putwc.texi: Likewise.
87136         * doc/posix-functions/swprintf.texi: Likewise.
87137         * doc/posix-functions/tolower.texi: Likewise.
87138         * doc/posix-functions/toupper.texi: Likewise.
87139         * doc/posix-functions/towctrans.texi: Likewise.
87140         * doc/posix-functions/ungetwc.texi: Likewise.
87141         * doc/posix-functions/vswprintf.texi: Likewise.
87142         * doc/posix-functions/wcrtomb.texi: Likewise.
87143         * doc/posix-functions/wcscat.texi: Likewise.
87144         * doc/posix-functions/wcschr.texi: Likewise.
87145         * doc/posix-functions/wcscmp.texi: Likewise.
87146         * doc/posix-functions/wcscoll.texi: Likewise.
87147         * doc/posix-functions/wcscpy.texi: Likewise.
87148         * doc/posix-functions/wcscspn.texi: Likewise.
87149         * doc/posix-functions/wcsftime.texi: Likewise.
87150         * doc/posix-functions/wcslen.texi: Likewise.
87151         * doc/posix-functions/wcsncat.texi: Likewise.
87152         * doc/posix-functions/wcsncmp.texi: Likewise.
87153         * doc/posix-functions/wcsncpy.texi: Likewise.
87154         * doc/posix-functions/wcspbrk.texi: Likewise.
87155         * doc/posix-functions/wcsrchr.texi: Likewise.
87156         * doc/posix-functions/wcsrtombs.texi: Likewise.
87157         * doc/posix-functions/wcsspn.texi: Likewise.
87158         * doc/posix-functions/wcsstr.texi: Likewise.
87159         * doc/posix-functions/wcstod.texi: Likewise.
87160         * doc/posix-functions/wcstof.texi: Likewise.
87161         * doc/posix-functions/wcstoimax.texi: Likewise.
87162         * doc/posix-functions/wcstok.texi: Likewise.
87163         * doc/posix-functions/wcstold.texi: Likewise.
87164         * doc/posix-functions/wcstoll.texi: Likewise.
87165         * doc/posix-functions/wcstol.texi: Likewise.
87166         * doc/posix-functions/wcstombs.texi: Likewise.
87167         * doc/posix-functions/wcstoull.texi: Likewise.
87168         * doc/posix-functions/wcstoul.texi: Likewise.
87169         * doc/posix-functions/wcstoumax.texi: Likewise.
87170         * doc/posix-functions/wcswidth.texi: Likewise.
87171         * doc/posix-functions/wcsxfrm.texi: Likewise.
87172         * doc/posix-functions/wctob.texi: Likewise.
87173         * doc/posix-functions/wctomb.texi: Likewise.
87174         * doc/posix-functions/wctrans.texi: Likewise.
87175         * doc/posix-functions/wctype.texi: Likewise.
87176         * doc/posix-functions/wcwidth.texi: Likewise.
87177         * doc/posix-functions/wmemchr.texi: Likewise.
87178         * doc/posix-functions/wmemcmp.texi: Likewise.
87179         * doc/posix-functions/wmemcpy.texi: Likewise.
87180         * doc/posix-functions/wmemmove.texi: Likewise.
87181         * doc/posix-functions/wmemset.texi: Likewise.
87182         * doc/posix-functions/wprintf.texi: Likewise.
87183         * doc/posix-functions/wscanf.texi: Likewise.
87185 2008-12-21  Bruno Haible  <bruno@clisp.org>
87187         Update doc for HP-UX 11.11.
87188         * doc/posix-functions/btowc.texi: Clarify that the function is missing
87189         in HP-UX version 11.00, not in all versions of HP-UX 11.
87190         * doc/posix-functions/fwide.texi: Likewise.
87191         * doc/posix-functions/fwprintf.texi: Likewise.
87192         * doc/posix-functions/fwscanf.texi: Likewise.
87193         * doc/posix-functions/inet_ntop.texi: Likewise.
87194         * doc/posix-functions/inet_pton.texi: Likewise.
87195         * doc/posix-functions/mbrlen.texi: Likewise.
87196         * doc/posix-functions/mbrtowc.texi: Likewise.
87197         * doc/posix-functions/mbsinit.texi: Likewise.
87198         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87199         * doc/posix-functions/swprintf.texi: Likewise.
87200         * doc/posix-functions/swscanf.texi: Likewise.
87201         * doc/posix-functions/towctrans.texi: Likewise.
87202         * doc/posix-functions/vfwprintf.texi: Likewise.
87203         * doc/posix-functions/vswprintf.texi: Likewise.
87204         * doc/posix-functions/vwprintf.texi: Likewise.
87205         * doc/posix-functions/wcrtomb.texi: Likewise.
87206         * doc/posix-functions/wcsrtombs.texi: Likewise.
87207         * doc/posix-functions/wcsstr.texi: Likewise.
87208         * doc/posix-functions/wctob.texi: Likewise.
87209         * doc/posix-functions/wctrans.texi: Likewise.
87210         * doc/posix-functions/wmemchr.texi: Likewise.
87211         * doc/posix-functions/wmemcmp.texi: Likewise.
87212         * doc/posix-functions/wmemcpy.texi: Likewise.
87213         * doc/posix-functions/wmemmove.texi: Likewise.
87214         * doc/posix-functions/wmemset.texi: Likewise.
87215         * doc/posix-functions/wprintf.texi: Likewise.
87216         * doc/posix-functions/wscanf.texi: Likewise.
87218 2008-12-21  Bruno Haible  <bruno@clisp.org>
87220         Work around a portability problem.
87221         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
87222         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
87224 2008-12-20  Bruno Haible  <bruno@clisp.org>
87226         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
87227         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
87228         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
87229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
87230         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
87232         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
87233         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
87234         set.
87235         (GNULIB_defined_mbstate_t): New macro.
87236         (mbsinit): Redefine if REPLACE_MBSINIT is set.
87237         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
87238         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
87239         reuses the system's mbrtowc function but works around the bugs.
87240         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
87241         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
87242         macros.
87243         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
87244         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
87245         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
87246         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
87247         REPLACE_MBSINIT if mbsinit needs to be overridden.
87248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
87249         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87250         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
87251         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87252         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87253         m4/locale-zh.m4.
87254         (Depends): Add mbsinit.
87255         * modules/mbsinit (Depends): Add mbrtowc.
87256         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
87258 2008-12-20  Bruno Haible  <bruno@clisp.org>
87260         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
87261         so that there are no conversion errors on AIX.
87262         * tests/test-mbsrtowcs.c (main): LIkewise.
87264 2008-12-20  Bruno Haible  <bruno@clisp.org>
87266         Work around wctob bug on Solaris <= 9.
87267         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
87268         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
87269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
87270         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
87271         * modules/wctob (Files): Add m4/locale-fr.m4.
87272         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
87274 2008-12-20  Bruno Haible  <bruno@clisp.org>
87276         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
87277         /dev/null.
87278         * tests/test-select-in.sh: Likewise.
87279         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87281 2008-12-20  Bruno Haible  <bruno@clisp.org>
87283         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
87284         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
87285         Cygwin 1.5.x.
87287 2008-12-20  Bruno Haible  <bruno@clisp.org>
87289         Ensure mbstate_t is defined on HP-UX 11.11.
87290         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
87291         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
87292         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
87293         AC_USE_SYSTEM_EXTENSIONS.
87294         * modules/fnmatch (Depends-on): Add extensions.
87295         * modules/mbrlen (Depends-on): Likewise.
87296         * modules/mbrtowc (Depends-on): Likewise.
87297         * modules/mbsinit (Depends-on): Likewise.
87298         * modules/mbsrtowcs (Depends-on): Likewise.
87299         * modules/mbswidth (Depends-on): Likewise.
87300         * modules/quotearg (Depends-on): Likewise.
87301         * modules/strftime (Depends-on): Likewise.
87303 2008-12-20  Bruno Haible  <bruno@clisp.org>
87305         Ensure wctob is declared on IRIX 6.5.
87306         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
87307         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
87308         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
87309         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
87310         of HAVE_WCTOB.
87311         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
87312         HAVE_WCTOB.
87313         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
87315 2008-12-19  Bruno Haible  <bruno@clisp.org>
87317         * modules/mbsrtowcs-tests: New file.
87318         * tests/test-mbsrtowcs1.sh: New file.
87319         * tests/test-mbsrtowcs2.sh: New file.
87320         * tests/test-mbsrtowcs3.sh: New file.
87321         * tests/test-mbsrtowcs4.sh: New file.
87322         * tests/test-mbsrtowcs.c: New file.
87324         New module 'mbsrtowcs'.
87325         * lib/wchar.in.h (mbsrtowcs): New declaration.
87326         * lib/mbsrtowcs.c: New file.
87327         * m4/mbsrtowcs.m4: New file.
87328         * modules/mbsrtowcs: New file.
87329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
87330         HAVE_MBSRTOWCS.
87331         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
87332         HAVE_MBSRTOWCS.
87333         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
87335 2008-12-19  Bruno Haible  <bruno@clisp.org>
87337         New module 'mbrlen'.
87338         * lib/wchar.in.h (mbrlen): New declaration.
87339         * lib/mbrlen.c: New file.
87340         * m4/mbrlen.m4: New file.
87341         * modules/mbrlen: New file.
87342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
87343         HAVE_MBRLEN.
87344         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
87345         HAVE_MBRLEN.
87346         * doc/posix-functions/mbrlen.texi: Document the new module.
87348 2008-12-19  Bruno Haible  <bruno@clisp.org>
87350         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
87351         * modules/mbrtowc (Depends-on): Add verify.
87352         Suggested by Paul Eggert.
87354 2008-12-18  Bruno Haible  <bruno@clisp.org>
87356         * modules/mbsinit-tests: New file.
87357         * tests/test-mbsinit.sh: New file.
87358         * tests/test-mbsinit.c: New file.
87360 2008-12-18  Bruno Haible  <bruno@clisp.org>
87362         * modules/mbrtowc-tests: New file.
87363         * tests/test-mbrtowc1.sh: New file.
87364         * tests/test-mbrtowc2.sh: New file.
87365         * tests/test-mbrtowc3.sh: New file.
87366         * tests/test-mbrtowc4.sh: New file.
87367         * tests/test-mbrtowc.c: New file.
87369         New module 'mbrtowc'.
87370         * lib/wchar.in.h (mbstate_t): Override when the system does not have
87371         mbsinit and mbrtowc.
87372         (mbrtowc): New declaration.
87373         * lib/mbrtowc.c: New file.
87374         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
87375         * modules/mbrtowc: New file.
87376         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
87377         HAVE_MBRTOWC.
87378         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
87379         HAVE_MBRTOWC.
87380         * doc/posix-functions/mbrtowc.texi: Document the new module.
87382 2008-12-18  Bruno Haible  <bruno@clisp.org>
87384         New module 'wctob'.
87385         * lib/wchar.in.h (wctob): New declaration.
87386         * lib/wctob.c: New file.
87387         * m4/wctob.m4: New file.
87388         * modules/wctob: New file.
87389         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
87390         HAVE_WCTOB.
87391         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
87392         * doc/posix-functions/wctob.texi: Document the new module.
87394 2008-12-18  Bruno Haible  <bruno@clisp.org>
87396         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
87397         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
87399 2008-12-18  Simon Josefsson  <simon@josefsson.org>
87401         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
87402         G. Christensen" <tgc@jupiterrise.com>.
87404         * lib/flock.c: Need to include errno.h.  Reported by "Tom
87405         G. Christensen" <tgc@jupiterrise.com>.
87407         * lib/flock.c: Need to include string.h.  Reported by "Tom
87408         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
87409         <ebb9@byu.net>.
87411 2008-12-18  Bruno Haible  <bruno@clisp.org>
87413         * m4/locale-ja.m4: New file, from GNU gettext.
87415 2008-12-17  Bruno Haible  <bruno@clisp.org>
87417         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
87418         Suggested by Eric Blake.
87420 2008-12-17  Bruno Haible  <bruno@clisp.org>
87422         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
87424 2008-12-17  Bruno Haible  <bruno@clisp.org>
87426         * lib/mbsinit.c: Include verify.h. Verify an assumption.
87427         * modules/mbsinit (Depends-on): Add verify.
87428         Suggested by Paul Eggert.
87430 2008-12-17  Bruno Haible  <bruno@clisp.org>
87432         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
87433         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
87434         gl_FUNC_MBRTOWC.
87435         * m4/mbiter.m4 (gl_MBITER): LIkewise.
87436         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
87437         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
87438         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
87439         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
87440         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
87441         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
87442         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
87443         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
87444         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
87445         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
87446         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
87447         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
87448         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
87449         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
87450         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87451         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
87452         * modules/trim (configure.ac): Likewise.
87454 2008-12-17  Bruno Haible  <bruno@clisp.org>
87456         * modules/btowc-tests: New file.
87457         * tests/test-btowc1.sh: New file.
87458         * tests/test-btowc2.sh: New file.
87459         * tests/test-btowc.c: New file.
87461         New module 'btowc'.
87462         * lib/wchar.in.h (btowc): New declaration.
87463         * lib/btowc.c: New file.
87464         * m4/btowc.m4: New file.
87465         * modules/btowc: New file.
87466         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
87467         HAVE_BTOWC.
87468         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
87469         * doc/posix-functions/btowc.texi: Document the new module.
87471 2008-12-17  Bruno Haible  <bruno@clisp.org>
87473         New module 'mbsinit'.
87474         * lib/wchar.in.h (mbsinit): New declaration.
87475         * lib/mbsinit.c: New file.
87476         * m4/mbsinit.m4: New file.
87477         * modules/mbsinit: New file.
87478         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
87479         HAVE_MBSINIT.
87480         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
87481         HAVE_MBSINIT.
87482         * doc/posix-functions/mbsinit.texi: Document the new module.
87484 2008-12-16  Bruno Haible  <bruno@clisp.org>
87486         * lib/unistd.in.h: Add comment.
87487         * tests/test-environ.c: Don't include <stdlib.h>.
87489 2008-12-16  Bruno Haible  <bruno@clisp.org>
87491         * lib/parse-duration.h (parse_duration): Document return value
87492         convention.
87493         * lib/parse-duration.c: Include specification header first. Add
87494         comments.
87495         (_): Remove macro.
87496         (parse_year_month_day, parse_hour_minute_second): Move side effects
87497         outside of strchr call.
87498         (parse_non_iso8601): Move side effects outside of isspace call.
87499         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
87500         call.
87502 2008-12-16  Bruno Haible  <bruno@clisp.org>
87504         * tests/test-parse-duration.sh: Produce no output when the test
87505         succeeds.
87507 2008-12-16  Bruno Haible  <bruno@clisp.org>
87509         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
87510         expressions.
87512 2008-12-15  Bruno Haible  <bruno@clisp.org>
87514         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
87515         * doc/glibc-functions/flistxattr.texi: Likewise.
87516         * doc/glibc-functions/fopencookie.texi: Likewise.
87517         * doc/glibc-functions/fremovexattr.texi: Likewise.
87518         * doc/glibc-functions/fsetxattr.texi: Likewise.
87519         * doc/glibc-functions/getxattr.texi: Likewise.
87520         * doc/glibc-functions/lgetxattr.texi: Likewise.
87521         * doc/glibc-functions/listxattr.texi: Likewise.
87522         * doc/glibc-functions/llistxattr.texi: Likewise.
87523         * doc/glibc-functions/lremovexattr.texi: Likewise.
87524         * doc/glibc-functions/lsetxattr.texi: Likewise.
87525         * doc/glibc-functions/removexattr.texi: Likewise.
87526         * doc/glibc-functions/setxattr.texi: Likewise.
87527         * doc/posix-functions/open_memstream.texi: Likewise.
87529 2008-12-15  Eric Blake  <ebb9@byu.net>
87531         Update doc for cygwin 1.7.
87532         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
87533         functions.
87534         * doc/posix-functions/fchmodat.texi: Likewise.
87535         * doc/posix-functions/fchownat.texi: Likewise.
87536         * doc/posix-functions/fdopendir.texi: Likewise.
87537         * doc/posix-functions/fmemopen.texi: Likewise.
87538         * doc/posix-functions/freeaddrinfo.texi: Likewise.
87539         * doc/posix-functions/fstatat.texi: Likewise.
87540         * doc/posix-functions/futimens.texi: Likewise.
87541         * doc/posix-functions/gai_strerror.texi: Likewise.
87542         * doc/posix-functions/getaddrinfo.texi: Likewise.
87543         * doc/posix-functions/getnameinfo.texi: Likewise.
87544         * doc/posix-functions/if_freenameindex.texi: Likewise.
87545         * doc/posix-functions/if_indextoname.texi: Likewise.
87546         * doc/posix-functions/if_nameindex.texi: Likewise.
87547         * doc/posix-functions/if_nametoindex.texi: Likewise.
87548         * doc/posix-functions/insque.texi: Likewise.
87549         * doc/posix-functions/linkat.texi: Likewise.
87550         * doc/posix-functions/llrint.texi: Likewise.
87551         * doc/posix-functions/llrintf.texi: Likewise.
87552         * doc/posix-functions/llrintl.texi: Likewise.
87553         * doc/posix-functions/lockf.texi: Likewise.
87554         * doc/posix-functions/lrintl.texi: Likewise.
87555         * doc/posix-functions/mkdirat.texi: Likewise.
87556         * doc/posix-functions/mkfifoat.texi: Likewise.
87557         * doc/posix-functions/mknodat.texi: Likewise.
87558         * doc/posix-functions/mq_close.texi: Likewise.
87559         * doc/posix-functions/mq_getattr.texi: Likewise.
87560         * doc/posix-functions/mq_notify.texi: Likewise.
87561         * doc/posix-functions/mq_open.texi: Likewise.
87562         * doc/posix-functions/mq_receive.texi: Likewise.
87563         * doc/posix-functions/mq_send.texi: Likewise.
87564         * doc/posix-functions/mq_setattr.texi: Likewise.
87565         * doc/posix-functions/mq_timedreceive.texi: Likewise.
87566         * doc/posix-functions/mq_timedsend.texi: Likewise.
87567         * doc/posix-functions/mq_unlink.texi: Likewise.
87568         * doc/posix-functions/open_memstream.texi: Likewise.
87569         * doc/posix-functions/openat.texi: Likewise.
87570         * doc/posix-functions/posix_fadvise.texi: Likewise.
87571         * doc/posix-functions/posix_fallocate.texi: Likewise.
87572         * doc/posix-functions/posix_madvise.texi: Likewise.
87573         * doc/posix-functions/posix_memalign.texi: Likewise.
87574         * doc/posix-functions/posix_openpt.texi: Likewise.
87575         * doc/posix-functions/readlinkat.texi: Likewise.
87576         * doc/posix-functions/remque.texi: Likewise.
87577         * doc/posix-functions/renameat.texi: Likewise.
87578         * doc/posix-functions/rintl.texi: Likewise.
87579         * doc/posix-functions/sem_unlink.texi: Likewise.
87580         * doc/posix-functions/shm_open.texi: Likewise.
87581         * doc/posix-functions/shm_unlink.texi: Likewise.
87582         * doc/posix-functions/signgam.texi: Likewise.
87583         * doc/posix-functions/sigset.texi: Likewise.
87584         * doc/posix-functions/stpcpy.texi: Likewise.
87585         * doc/posix-functions/stpncpy.texi: Likewise.
87586         * doc/posix-functions/strerror.texi: Likewise.
87587         * doc/posix-functions/strtod.texi: Likewise.
87588         * doc/posix-functions/symlinkat.texi: Likewise.
87589         * doc/posix-functions/unlinkat.texi: Likewise.
87590         * doc/posix-functions/utimensat.texi: Likewise.
87591         * doc/glibc-functions/bindresvport.texi: Likewise.
87592         * doc/glibc-functions/dn_expand.texi: Likewise.
87593         * doc/glibc-functions/exp10.texi: Likewise.
87594         * doc/glibc-functions/exp10f.texi: Likewise.
87595         * doc/glibc-functions/fgetxattr.texi: Likewise.
87596         * doc/glibc-functions/flistxattr.texi: Likewise.
87597         * doc/glibc-functions/fopencookie.texi: Likewise.
87598         * doc/glibc-functions/freeifaddrs.texi: Likewise.
87599         * doc/glibc-functions/fremovexattr.texi: Likewise.
87600         * doc/glibc-functions/fsetxattr.texi: Likewise.
87601         * doc/glibc-functions/getifaddrs.texi: Likewise.
87602         * doc/glibc-functions/getxattr.texi: Likewise.
87603         * doc/glibc-functions/lgetxattr.texi: Likewise.
87604         * doc/glibc-functions/listxattr.texi: Likewise.
87605         * doc/glibc-functions/llistxattr.texi: Likewise.
87606         * doc/glibc-functions/lremovexattr.texi: Likewise.
87607         * doc/glibc-functions/lsetxattr.texi: Likewise.
87608         * doc/glibc-functions/pow10.texi: Likewise.
87609         * doc/glibc-functions/pow10f.texi: Likewise.
87610         * doc/glibc-functions/rcmd_af.texi: Likewise.
87611         * doc/glibc-functions/removexattr.texi: Likewise.
87612         * doc/glibc-functions/res_init.texi: Likewise.
87613         * doc/glibc-functions/res_mkquery.texi: Likewise.
87614         * doc/glibc-functions/res_query.texi: Likewise.
87615         * doc/glibc-functions/res_querydomain.texi: Likewise.
87616         * doc/glibc-functions/res_send.texi: Likewise.
87617         * doc/glibc-functions/rresvport_af.texi: Likewise.
87618         * doc/glibc-functions/setxattr.texi: Likewise.
87619         * doc/glibc-functions/strcasestr.texi: Likewise.
87621 2008-12-15  Bruno Haible  <bruno@clisp.org>
87623         Fix compilation error on OSF/1 4.0.
87624         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
87625         <sys/time.h>, simply delegate to the system header.
87626         Reported by Daniel Richard G. <oss@teragram.com>.
87628 2008-12-15  Bruno Haible  <bruno@clisp.org>
87630         * doc/posix-functions/openat.texi: Mention the 'openat' module.
87631         * doc/posix-functions/fchmodat.texi: Likewise.
87632         * doc/posix-functions/fchownat.texi: Likewise.
87633         * doc/posix-functions/fdopendir.texi: Likewise.
87634         * doc/posix-functions/fstatat.texi: Likewise.
87635         * doc/posix-functions/mkdirat.texi: Likewise.
87636         * doc/posix-functions/unlinkat.texi: Likewise.
87638 2008-12-14  Bruno Haible  <bruno@clisp.org>
87640         Update doc for POSIX:2008.
87641         * doc/posix-functions/faccessat.texi: New file.
87642         * doc/posix-functions/fchmodat.texi: New file.
87643         * doc/posix-functions/fchownat.texi: New file.
87644         * doc/posix-functions/fdopendir.texi: New file.
87645         * doc/posix-functions/fstatat.texi: New file.
87646         * doc/posix-functions/futimens.texi: New file.
87647         * doc/posix-functions/linkat.texi: New file.
87648         * doc/posix-functions/mkdirat.texi: New file.
87649         * doc/posix-functions/mkfifoat.texi: New file.
87650         * doc/posix-functions/mknodat.texi: New file.
87651         * doc/posix-functions/open_wmemstream.texi: New file.
87652         * doc/posix-functions/openat.texi: New file.
87653         * doc/posix-functions/psiginfo.texi: New file.
87654         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
87655         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
87656         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
87657         * doc/posix-functions/readlinkat.texi: New file.
87658         * doc/posix-functions/renameat.texi: New file.
87659         * doc/posix-functions/strerror_l.texi: New file.
87660         * doc/posix-functions/symlinkat.texi: New file.
87661         * doc/posix-functions/unlinkat.texi: New file.
87662         * doc/posix-functions/utimensat.texi: New file.
87663         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87665 2008-12-14  Bruno Haible  <bruno@clisp.org>
87667         Update doc for POSIX:2008.
87668         * doc/posix-functions/alphasort.texi: Renamed from
87669         doc/glibc-functions/alphasort.texi.
87670         * doc/posix-functions/dirfd.texi: Renamed from
87671         doc/glibc-functions/dirfd.texi.
87672         * doc/posix-functions/dprintf.texi: Renamed from
87673         doc/glibc-functions/dprintf.texi.
87674         * doc/posix-functions/duplocale.texi: Renamed from
87675         doc/glibc-functions/duplocale.texi.
87676         * doc/posix-functions/fexecve.texi: Renamed from
87677         doc/glibc-functions/fexecve.texi.
87678         * doc/posix-functions/fmemopen.texi: Renamed from
87679         doc/glibc-functions/fmemopen.texi.
87680         * doc/posix-functions/freelocale.texi: Renamed from
87681         doc/glibc-functions/freelocale.texi.
87682         * doc/posix-functions/getdate_err.texi: Renamed from
87683         doc/glibc-functions/getdate_err.texi.
87684         * doc/posix-functions/isalnum_l.texi: Renamed from
87685         doc/glibc-functions/isalnum_l.texi.
87686         * doc/posix-functions/isalpha_l.texi: Renamed from
87687         doc/glibc-functions/isalpha_l.texi.
87688         * doc/posix-functions/isblank_l.texi: Renamed from
87689         doc/glibc-functions/isblank_l.texi.
87690         * doc/posix-functions/iscntrl_l.texi: Renamed from
87691         doc/glibc-functions/iscntrl_l.texi.
87692         * doc/posix-functions/isdigit_l.texi: Renamed from
87693         doc/glibc-functions/isdigit_l.texi.
87694         * doc/posix-functions/isgraph_l.texi: Renamed from
87695         doc/glibc-functions/isgraph_l.texi.
87696         * doc/posix-functions/islower_l.texi: Renamed from
87697         doc/glibc-functions/islower_l.texi.
87698         * doc/posix-functions/isprint_l.texi: Renamed from
87699         doc/glibc-functions/isprint_l.texi.
87700         * doc/posix-functions/ispunct_l.texi: Renamed from
87701         doc/glibc-functions/ispunct_l.texi.
87702         * doc/posix-functions/isspace_l.texi: Renamed from
87703         doc/glibc-functions/isspace_l.texi.
87704         * doc/posix-functions/isupper_l.texi: Renamed from
87705         doc/glibc-functions/isupper_l.texi.
87706         * doc/posix-functions/iswalnum_l.texi: Renamed from
87707         doc/glibc-functions/iswalnum_l.texi.
87708         * doc/posix-functions/iswalpha_l.texi: Renamed from
87709         doc/glibc-functions/iswalpha_l.texi.
87710         * doc/posix-functions/iswblank_l.texi: Renamed from
87711         doc/glibc-functions/iswblank_l.texi.
87712         * doc/posix-functions/iswcntrl_l.texi: Renamed from
87713         doc/glibc-functions/iswcntrl_l.texi.
87714         * doc/posix-functions/iswctype_l.texi: Renamed from
87715         doc/glibc-functions/iswctype_l.texi.
87716         * doc/posix-functions/iswdigit_l.texi: Renamed from
87717         doc/glibc-functions/iswdigit_l.texi.
87718         * doc/posix-functions/iswgraph_l.texi: Renamed from
87719         doc/glibc-functions/iswgraph_l.texi.
87720         * doc/posix-functions/iswlower_l.texi: Renamed from
87721         doc/glibc-functions/iswlower_l.texi.
87722         * doc/posix-functions/iswprint_l.texi: Renamed from
87723         doc/glibc-functions/iswprint_l.texi.
87724         * doc/posix-functions/iswpunct_l.texi: Renamed from
87725         doc/glibc-functions/iswpunct_l.texi.
87726         * doc/posix-functions/iswspace_l.texi: Renamed from
87727         doc/glibc-functions/iswspace_l.texi.
87728         * doc/posix-functions/iswupper_l.texi: Renamed from
87729         doc/glibc-functions/iswupper_l.texi.
87730         * doc/posix-functions/iswxdigit_l.texi: Renamed from
87731         doc/glibc-functions/iswxdigit_l.texi.
87732         * doc/posix-functions/isxdigit_l.texi: Renamed from
87733         doc/glibc-functions/isxdigit_l.texi.
87734         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
87735         doc/glibc-functions/mbsnrtowcs.texi.
87736         * doc/posix-functions/mkdtemp.texi: Renamed from
87737         doc/glibc-functions/mkdtemp.texi.
87738         * doc/posix-functions/newlocale.texi: Renamed from
87739         doc/glibc-functions/newlocale.texi.
87740         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
87741         doc/glibc-functions/nl_langinfo_l.texi.
87742         * doc/posix-functions/open_memstream.texi: Renamed from
87743         doc/glibc-functions/open_memstream.texi.
87744         * doc/posix-functions/opterr.texi: Renamed from
87745         doc/glibc-functions/opterr.texi.
87746         * doc/posix-functions/optind.texi: Renamed from
87747         doc/glibc-functions/optind.texi.
87748         * doc/posix-functions/optopt.texi: Renamed from
87749         doc/glibc-functions/optopt.texi.
87750         * doc/posix-functions/psignal.texi: Renamed from
87751         doc/glibc-functions/psignal.texi.
87752         * doc/posix-functions/scandir.texi: Renamed from
87753         doc/glibc-functions/scandir.texi.
87754         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
87755         doc/glibc-functions/sched_get_priority_min.texi.
87756         * doc/posix-functions/signgam.texi: Renamed from
87757         doc/glibc-functions/signgam.texi.
87758         * doc/posix-functions/stpcpy.texi: Renamed from
87759         doc/glibc-functions/stpcpy.texi.
87760         * doc/posix-functions/stpncpy.texi: Renamed from
87761         doc/glibc-functions/stpncpy.texi.
87762         * doc/posix-functions/strcasecmp_l.texi: Renamed from
87763         doc/glibc-functions/strcasecmp_l.texi.
87764         * doc/posix-functions/strcoll_l.texi: Renamed from
87765         doc/glibc-functions/strcoll_l.texi.
87766         * doc/posix-functions/strfmon_l.texi: Renamed from
87767         doc/glibc-functions/strfmon_l.texi.
87768         * doc/posix-functions/strftime_l.texi: Renamed from
87769         doc/glibc-functions/strftime_l.texi.
87770         * doc/posix-functions/strncasecmp_l.texi: Renamed from
87771         doc/glibc-functions/strncasecmp_l.texi.
87772         * doc/posix-functions/strndup.texi: Renamed from
87773         doc/glibc-functions/strndup.texi.
87774         * doc/posix-functions/strnlen.texi: Renamed from
87775         doc/glibc-functions/strnlen.texi.
87776         * doc/posix-functions/strsignal.texi: Renamed from
87777         doc/glibc-functions/strsignal.texi.
87778         * doc/posix-functions/strxfrm_l.texi: Renamed from
87779         doc/glibc-functions/strxfrm_l.texi.
87780         * doc/posix-functions/timer_gettime.texi: Renamed from
87781         doc/glibc-functions/timer_gettime.texi.
87782         * doc/posix-functions/tolower_l.texi: Renamed from
87783         doc/glibc-functions/tolower_l.texi.
87784         * doc/posix-functions/toupper_l.texi: Renamed from
87785         doc/glibc-functions/toupper_l.texi.
87786         * doc/posix-functions/towctrans_l.texi: Renamed from
87787         doc/glibc-functions/towctrans_l.texi.
87788         * doc/posix-functions/towlower_l.texi: Renamed from
87789         doc/glibc-functions/towlower_l.texi.
87790         * doc/posix-functions/towupper_l.texi: Renamed from
87791         doc/glibc-functions/towupper_l.texi.
87792         * doc/posix-functions/uselocale.texi: Renamed from
87793         doc/glibc-functions/uselocale.texi.
87794         * doc/posix-functions/vdprintf.texi: Renamed from
87795         doc/glibc-functions/vdprintf.texi.
87796         * doc/posix-functions/wcpcpy.texi:
87797         Renamed from doc/glibc-functions/wcpcpy.texi.
87798         * doc/posix-functions/wcpncpy.texi: Renamed from
87799         doc/glibc-functions/wcpncpy.texi.
87800         * doc/posix-functions/wcscasecmp.texi: Renamed from
87801         doc/glibc-functions/wcscasecmp.texi.
87802         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
87803         doc/glibc-functions/wcscasecmp_l.texi.
87804         * doc/posix-functions/wcscoll_l.texi: Renamed from
87805         doc/glibc-functions/wcscoll_l.texi.
87806         * doc/posix-functions/wcsdup.texi: Renamed from
87807         doc/glibc-functions/wcsdup.texi.
87808         * doc/posix-functions/wcsncasecmp.texi: Renamed from
87809         doc/glibc-functions/wcsncasecmp.texi.
87810         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
87811         doc/glibc-functions/wcsncasecmp_l.texi.
87812         * doc/posix-functions/wcsnlen.texi: Renamed from
87813         doc/glibc-functions/wcsnlen.texi.
87814         * doc/posix-functions/wcsnrtombs.texi: Renamed from
87815         doc/glibc-functions/wcsnrtombs.texi.
87816         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
87817         doc/glibc-functions/wcsxfrm_l.texi.
87818         * doc/posix-functions/wctrans_l.texi: Renamed from
87819         doc/glibc-functions/wctrans_l.texi.
87820         * doc/posix-functions/wctype_l.texi: Renamed from
87821         doc/glibc-functions/wctype_l.texi.
87822         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87823         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
87824         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
87825         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
87826         these subsections.
87827         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
87828         Remove sections.
87830 2008-12-14  Bruno Haible  <bruno@clisp.org>
87832         Update doc for POSIX:2008.
87833         * doc/posix-functions/*.texi: Update URL of POSIX specification.
87835 2008-12-14  Bruno Haible  <bruno@clisp.org>
87837         Update doc for POSIX:2008.
87838         * doc/pastposix-functions/bcmp.texi: Renamed from
87839         doc/posix-functions/bcmp.texi.
87840         * doc/pastposix-functions/bcopy.texi: Renamed from
87841         doc/posix-functions/bcopy.texi.
87842         * doc/pastposix-functions/bsd_signal.texi: Renamed from
87843         doc/posix-functions/bsd_signal.texi.
87844         * doc/pastposix-functions/bzero.texi: Renamed from
87845         doc/posix-functions/bzero.texi.
87846         * doc/pastposix-functions/ecvt.texi: Renamed from
87847         doc/posix-functions/ecvt.texi.
87848         * doc/pastposix-functions/fcvt.texi: Renamed from
87849         doc/posix-functions/fcvt.texi.
87850         * doc/pastposix-functions/ftime.texi: Renamed from
87851         doc/posix-functions/ftime.texi.
87852         * doc/pastposix-functions/gcvt.texi: Renamed from
87853         doc/posix-functions/gcvt.texi.
87854         * doc/pastposix-functions/getcontext.texi: Renamed from
87855         doc/posix-functions/getcontext.texi.
87856         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
87857         doc/posix-functions/gethostbyaddr.texi.
87858         * doc/pastposix-functions/gethostbyname.texi: Renamed from
87859         doc/posix-functions/gethostbyname.texi.
87860         * doc/pastposix-functions/getwd.texi: Renamed from
87861         doc/posix-functions/getwd.texi.
87862         * doc/pastposix-functions/h_errno.texi: Renamed from
87863         doc/posix-functions/h_errno.texi.
87864         * doc/pastposix-functions/index.texi: Renamed from
87865         doc/posix-functions/index.texi.
87866         * doc/pastposix-functions/makecontext.texi: Renamed from
87867         doc/posix-functions/makecontext.texi.
87868         * doc/pastposix-functions/mktemp.texi: Renamed from
87869         doc/posix-functions/mktemp.texi.
87870         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
87871         doc/posix-functions/pthread_attr_getstackaddr.texi.
87872         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
87873         doc/posix-functions/pthread_attr_setstackaddr.texi.
87874         * doc/pastposix-functions/rindex.texi: Renamed from
87875         doc/posix-functions/rindex.texi.
87876         * doc/pastposix-functions/scalb.texi: Renamed from
87877         doc/posix-functions/scalb.texi.
87878         * doc/pastposix-functions/setcontext.texi: Renamed from
87879         doc/posix-functions/setcontext.texi.
87880         * doc/pastposix-functions/swapcontext.texi: Renamed from
87881         doc/posix-functions/swapcontext.texi.
87882         * doc/pastposix-functions/ualarm.texi: Renamed from
87883         doc/posix-functions/ualarm.texi.
87884         * doc/pastposix-functions/usleep.texi: Renamed from
87885         doc/posix-functions/usleep.texi.
87886         * doc/pastposix-functions/vfork.texi: Renamed from
87887         doc/posix-functions/vfork.texi.
87888         * doc/pastposix-functions/wcswcs.texi: Renamed from
87889         doc/posix-functions/wcswcs.texi.
87890         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
87891         (Function Substitutes): Update.
87893 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87895         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
87896         m4/strerror.m4.
87898 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87899             Bruno Haible  <bruno@clisp.org>
87901         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
87903 2008-12-13  Bruno Haible  <bruno@clisp.org>
87905         * modules/strtoull (Depends-on): Remove unistd.
87907 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87909         * modules/strtoull (Depends-on): Add stdlib.
87911 2008-12-11  Simon Josefsson  <simon@josefsson.org>
87913         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
87915 2008-12-10  Jim Meyering  <meyering@redhat.com>
87917         gl_ASSERT: don't say assertions are disabled when they're not
87918         * m4/assert.m4 (gl_ASSERT): Do not make configure report
87919         "checking whether to enable assertions... no", when they are in
87920         fact enabled.  This is solely a bug in the output of configure.
87921         In spite of saying "no", NDEBUG was not defined in that case.
87922         Also, as noted by Eric Blake, leave assertions enabled upon
87923         --enable-assert=INVALID.
87925 2008-12-10  Bruno Haible  <bruno@clisp.org>
87927         Change MODULES.html to refer to POSIX:2008 where possible.
87928         * MODULES.html.sh (POSIX2008_URL): New variable.
87929         (posix_headers): Remove sys/timeb, ucontext.
87930         (posix2001_headers): New variable.
87931         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
87932         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
87933         index, makecontext, mktemp, pthread_attr_getstackaddr,
87934         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
87935         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
87936         (posix2001_functions): New variable.
87937         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
87938         otherwise.
87940 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87942         add missing include to parse-duration.c
87943         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
87944         * modules/parse-duration (Depends-on): Add xalloc.
87946         fix sed script reading maint.mk
87947         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
87948         (syntax-check-rules): Use it.
87950 2008-12-09  Bruno Haible  <bruno@clisp.org>
87952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
87953         MacOS X 10.4/PowerPC.
87954         Reported by Simon Josefsson.
87956 2008-12-08  Jim Meyering  <meyering@redhat.com>
87958         work around mingw's lack of some S_IF definitions
87959         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
87960         Reported by Simon Josefsson.
87962 2008-12-08  Bruno Haible  <bruno@clisp.org>
87964         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
87965         applied to variables. Needed on MacOS X 10.4/PowerPC.
87966         Reported by Simon Josefsson.
87968 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
87969         and Eric Blake  <ebb9@byu.net>
87971         assert: honor --enable-assert
87972         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
87973         order to honor --enable-assert, rather than treating it as a
87974         synonym for --disable-assert.
87976 2008-12-08  Jim Meyering  <meyering@redhat.com>
87978         * lib/posixtm.c: Remove now-useless declaration of mktime.
87980         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
87982 2008-12-07  Bruno Haible  <bruno@clisp.org>
87984         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
87985         test_once): Mark functions as static.
87986         * tests/test-tls.c (test_tls): Likewise.
87988 2008-12-07  Bruno Haible  <bruno@clisp.org>
87990         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
87991         iconv_register_autodetect.
87993 2008-12-07  Jim Meyering  <meyering@redhat.com>
87995         posixtm.c: avoid a warning
87996         * lib/posixtm.c (posixtime): Don't initialize tm0.
87997         It's no longer needed to placate gcc4's -Wuninitialized,
87998         and the attempt to placate would elicit a new warning.
88000         unicodeio.c: mark unused parameters
88001         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88002         (fallback_failure_callback): Likewise.
88004 2008-12-07  Bruno Haible  <bruno@clisp.org>
88006         * gnulib-tool (func_create_testdir): When building the tests
88007         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
88008         Reported by Simon Josefsson.
88010 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88012         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
88014 2008-12-06  Bruno Haible  <bruno@clisp.org>
88016         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
88017         Suggested by Eric Blake.
88019 2008-12-06  Bruno Haible  <bruno@clisp.org>
88021         Fix a c-stack test failure on MacOS X.
88022         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
88023         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
88024         handler for SIGBUS as well.
88025         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
88026         install a signal handler for SIGBUS as well.
88027         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
88029 2008-12-06  Bruno Haible  <bruno@clisp.org>
88031         Advocacy documentation.
88032         * doc/gnulib-intro.texi (Benefits): New section.
88033         * doc/gnulib.texi: Update.
88035 2008-12-06  Bruno Haible  <bruno@clisp.org>
88037         Document the 'manywarnings' module.
88038         * doc/manywarnings.texi: New file.
88039         * doc/gnulib.texi: Include it.
88041 2008-12-05  Eric Blake  <ebb9@byu.net>
88043         tests: silence some gcc warnings
88044         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
88045         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
88046         type mismatches.
88048 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88049             Bruno Haible  <bruno@clisp.org>
88051         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
88053 2008-11-29  Jim Meyering  <meyering@redhat.com>
88055         unicodeio.c: mark unused parameters
88056         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88057         (fallback_failure_callback): Likewise.
88059         fts: fix a thinko
88060         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
88061         (set_stat_type): Return S_IF*-valued "type" directly.
88062         Prompted by James Youngman's spotting a related bug.
88063         Confirmed by further testing through find.
88065         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
88066         * lib/fts.c (D_TYPE): Define.
88067         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
88068         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
88069         (s_ifmt_shift_bits): New function.
88070         (set_stat_type): New function.
88071         (fts_build): When not calling fts_stat, call set_stat_type
88072         to propagate dirent.d_type info to fts_read caller.
88073         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
88074         fts_statp->st_mode type information may be valid.
88076 2008-11-28  Simon Josefsson  <simon@josefsson.org>
88078         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
88079         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
88080         <sds@gnu.org>.
88082 2008-11-20  Bruno Haible  <bruno@clisp.org>
88084         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
88085         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
88086         INCLUDE_NEXT.
88087         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
88088         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
88089         * modules/math (Makefile.am): Substitute
88090         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
88091         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88093 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
88094             Bruno Haible  <bruno@clisp.org>
88096         * lib/stdint.in.h: Define all type macros so that their expansion is
88097         a single typedef'ed token. Fixes a compilation failure in Boost which
88098         does "using ::int8_t;".
88100 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88102         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
88103         gl_MANYWARN_ALL_GCC.
88104         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
88105         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
88106         * modules/manywarnings: New file.
88107         * MODULES.html.sh: Mention manywarnings module.
88109 2008-11-18  Bruno Haible  <bruno@clisp.org>
88111         * doc/gnulib-tool.texi (Unit tests): New section.
88113 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88115         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
88116         paths like 'lib/po/foo.po'.
88118 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88120         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
88121         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
88123 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88125         * m4/warnings.m4: Use CPPFLAGS to really check whether the
88126         parameter works.
88128 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88130         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
88132 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88134         * modules/parse-duration-tests: New file.
88135         * tests/test-parse-duration.sh: New file.
88136         * tests/test-parse-duration.c: New file.
88138         New module 'parse-duration'.
88139         * lib/parse-duration.h: New file.
88140         * lib/parse-duration.c: New file.
88141         * modules/parse-duration: New file.
88143 2008-11-17  Bruno Haible  <bruno@clisp.org>
88145         * tests/test-select-out.sh: Comment out the first pipe test.
88146         Reported by Simon Josefsson.
88148 2008-11-17  Bruno Haible  <bruno@clisp.org>
88150         * modules/getaddrinfo (Depends-on): Add servent, hostent.
88151         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
88152         gl_HOSTENT.
88154 2008-11-17  Bruno Haible  <bruno@clisp.org>
88156         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
88157         -lnetwork and -lnet. Needed for Haiku and BeOS.
88159 2008-11-16  Bruno Haible  <bruno@clisp.org>
88161         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
88163 2008-11-16  Bruno Haible  <bruno@clisp.org>
88165         Avoid test failure on Haiku.
88166         * tests/test-fsync.c: Include <errno.h>.
88167         (main): Don't require that fsync (0) fails.
88169 2008-11-15  Bruno Haible  <bruno@clisp.org>
88171         New module 'hostent'.
88172         * modules/hostent: New file.
88173         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
88175 2008-11-15  Bruno Haible  <bruno@clisp.org>
88177         New module 'servent'.
88178         * modules/servent: New file.
88179         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
88181 2008-11-15  Bruno Haible  <bruno@clisp.org>
88183         Avoid generating same test program with two different rules.
88184         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
88185         test-frexp to test-frexp-nolibm.
88186         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
88187         test-frexpl to test-frexpl-nolibm.
88189 2008-11-15  Bruno Haible  <bruno@clisp.org>
88191         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
88192         $(FREXPL_LIBM).
88194 2008-11-15  Bruno Haible  <bruno@clisp.org>
88196         * lib/netdb.in.h: Activate the definitions also when the system's
88197         <netdb.h> has 'struct addrinfo'.
88198         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
88199         EAI_OVERFLOW or AI_NUMERICSERV.
88200         * doc/posix-headers/netdb.texi: Document the problem.
88202 2008-11-15  Bruno Haible  <bruno@clisp.org>
88204         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
88206         Make the 'sched' module work on platforms where <sched.h> exists but
88207         is incomplete (such as Haiku).
88208         * lib/sched.in.h; Include the system's <sched.h> if it exists.
88209         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88210         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
88211         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
88212         HAVE_STRUCT_SCHED_PARAM.
88213         * modules/sched (Depends-on): Add include_next.
88214         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
88215         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
88216         * doc/posix-headers/sched.texi: Document the issue.
88218 2008-11-13  Jim Meyering  <meyering@redhat.com>
88220         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
88221         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
88222         test would fail due to the difference in the Report bugs to ...
88223         line.  The expected address is empty, "<>", while the actual
88224         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
88226 2008-11-12  Bruno Haible  <bruno@clisp.org>
88228         lstat: don't compile lstat.c on systems lacking lstat
88229         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
88230         which don't have lstat; this is handled by lib/sys_stat.in.h already.
88231         Reported by Daniel P. Berrange via Jim Meyering.
88233 2008-11-12  Jim Meyering  <meyering@redhat.com>
88235         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
88237 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88239         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
88240         instead.
88242 2008-11-12  Bruno Haible  <bruno@clisp.org>
88244         * lib/unicodeio.c: Include unistr.h.
88245         (utf8_wctomb): Remove function.
88246         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
88248 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88250         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
88251         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
88252         <bruno@clisp.org>.
88253         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
88255 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88257         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
88258         * doc/gnulib.texi: Add section for warnings.
88260 2008-11-11  Bruno Haible  <bruno@clisp.org>
88262         * lib/sockets.h: Add a comment.
88264 2008-11-11  Karl Berry  <karl@gnu.org>
88266         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
88268 2008-11-11  Eric Blake  <ebb9@byu.net>
88270         fdl.texi: avoid git symlinks
88271         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
88273 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88275         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
88277 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88279         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
88280         (gl_WARN_ADD): Substitute $2 if literal.
88282 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88284         * m4/warning.m4: Remove.
88286 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88288         * m4/warnings.m4: Almost complete rewrite. :-)
88290 2008-11-10  Simon Josefsson  <simon@josefsson.org>
88292         * modules/warnings: New module.
88293         * m4/warnings.m4: New file.
88294         * MODULES.html.sh: Mention warnings module.
88295         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
88296         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88298 2008-11-10  Eric Blake  <ebb9@byu.net>
88300         fdl.texi: make a symlink to the latest version
88301         * doc/standards.texi: Revert today's earlier change.
88302         * doc/fdl-1.2.texi: Rename from old fdl.texi...
88303         * doc/fdl.texi: ...and replace this with a symlink to the newer
88304         fdl-1.3.texi.
88306 2008-11-10  Bruno Haible  <bruno@clisp.org>
88308         * tests/test-select-fd.c (main): Accept the result file name as fourth
88309         argument.
88310         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
88311         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
88313 2008-11-10  Bruno Haible  <bruno@clisp.org>
88315         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
88316         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
88317         as autoconf-substituted macros.
88318         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
88319         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
88320         gl_NETDB_H_DEFAULTS. Set these variables.
88321         * modules/netdb (Makefile.am): Substitute these variables.
88323 2008-11-10  Eric Blake  <ebb9@byu.net>
88325         standards.texi: include correct file for FDL 1.3
88326         * doc/standards.texi (GNU Free Documentation License): Change
88327         include file to pull in FDL 1.3, not 1.2.
88329         fdl.texi: revert accidental change to license
88330         * doc/fdl.texi: This is FDL 1.2, not 1.3.
88332 2008-11-10  Bruno Haible  <bruno@clisp.org>
88334         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
88335         cross-compiling guesses also when the native compile gives no result.
88337 2008-11-10  Bruno Haible  <bruno@clisp.org>
88339         * lib/spawni.c (__spawni): Force variable into the stack.
88341 2008-11-10  Bruno Haible  <bruno@clisp.org>
88343         Add support for Haiku.
88344         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
88345         glibc and BeOS, but also on Haiku.
88346         * lib/fpurge.c (fpurge): Likewise.
88347         * lib/freadable.c (freadable): Likewise.
88348         * lib/freadahead.c (freadahead): Likewise.
88349         * lib/freading.c (freading): Likewise.
88350         * lib/freadptr.c (freadptr): Likewise.
88351         * lib/freadseek.c (freadptrinc): Likewise.
88352         * lib/fseeko.c (rpl_fseeko): Likewise.
88353         * lib/fseterr.c (fseterr): Likewise.
88354         * lib/fwritable.c (fwritable): Likewise.
88355         * lib/fwriting.c (fwriting): Likewise.
88356         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
88358 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88360         * lib/config.charset: Treat Haiku like BeOS.
88362 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88364         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
88365         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
88367 2008-11-08  Bruno Haible  <bruno@clisp.org>
88369         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
88370         AC_CACHE_CHECK.
88372 2008-11-08  Bruno Haible  <bruno@clisp.org>
88374         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
88376 2008-11-08  Bruno Haible  <bruno@clisp.org>
88378         * tests/test-select-fd.c: New file.
88379         * tests/test-select-in.sh: New file.
88380         * tests/test-select-out.sh: New file.
88381         * tests/test-select-stdin.c: New file.
88382         * modules/select-tests (Files): Add the new files.
88383         (Depends-on): Add gettimeofday.
88384         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
88385         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
88386         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
88388 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
88389             Bruno Haible  <bruno@clisp.org>
88391         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
88393 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
88395         * build-aux/pmccabe2html: Added support for C++ source files.
88397 2008-11-05  Ben Pfaff  <blp@gnu.org>
88399         Fix lib/close.c build on Windows.
88400         * modules/close (Files): Add lib/w32sock.h.
88402 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
88404         Accept Bison's NEWS format.
88405         * build-aux/announce-gen (print_news_deltas): Tweak
88406         $re_prefix.
88408 2008-11-04  Bruno Haible  <bruno@clisp.org>
88410         * modules/random_r (Maintainer): Add glibc.
88412 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88414         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
88415         by karl@freefriends.org (Karl Berry).
88416         * doc/alloca.texi: Likewise.
88417         * doc/c-ctype.texi: Likewise.
88418         * doc/c-strcase.texi: Likewise.
88419         * doc/c-strcaseeq.texi: Likewise.
88420         * doc/c-strcasestr.texi: Likewise.
88421         * doc/c-strstr.texi: Likewise.
88422         * doc/c-strtod.texi: Likewise.
88423         * doc/c-strtold.texi: Likewise.
88424         * doc/ctime.texi: Likewise.
88425         * doc/error.texi: Likewise.
88426         * doc/fdl.texi: Likewise.
88427         * doc/gcd.texi: Likewise.
88428         * doc/getdate.texi: Likewise.
88429         * doc/gnulib-intro.texi: Likewise.
88430         * doc/gnulib-tool.texi: Likewise.
88431         * doc/gnulib.texi: Likewise.
88432         * doc/inet_ntoa.texi: Likewise.
88433         * doc/maintain.texi: Likewise.
88434         * doc/make-stds.texi: Likewise.
88435         * doc/quote.texi: Likewise.
88436         * doc/regexprops-generic.texi: Likewise.
88437         * doc/standards.texi: Likewise.
88438         * doc/verify.texi: Likewise.
88439         * doc/visibility.texi: Likewise.
88440         * doc/gnulib.texi (GNU Free Documentation License): Include
88441         fdl-1.3.texi instead of fdl.texi.
88443 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88445         * doc/fdl-1.3.texi: New file, from
88446         <http://www.gnu.org/licenses/fdl-1.3.texi>.
88447         * modules/fdl-1.3: Add.
88448         * MODULES.html.sh: Add fdl-1.3.
88450 2008-11-03  Bruno Haible  <bruno@clisp.org>
88452         Make determination of absolute name of header file work with AIX xlc.
88453         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
88454         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
88455         preprocessing.
88456         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88457         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
88459 2008-11-03  Simon Josefsson  <simon@josefsson.org>
88461         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
88462         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
88463         <ludo@gnu.org>.
88465 2008-11-02  Bruno Haible  <bruno@clisp.org>
88467         Mark 'strpbrk' obsolete.
88468         * modules/strpbrk (Status, Notice): New sections.
88469         * modules/strtok_r (Depends-on): Add strpbrk.
88471 2008-11-02  Bruno Haible  <bruno@clisp.org>
88473         Mark 'strdup' obsolete.
88474         * modules/strdup (Status, Notice): New sections.
88475         * modules/findprog (Depends-on): Add strdup.
88476         * modules/getaddrinfo (Depends-on): Likewise.
88477         * modules/localename (Depends-on): Likewise.
88478         * modules/relocatable-lib (Depends-on): Likewise.
88479         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
88480         * modules/relocatable-prog (Depends-on): Likewise.
88481         * modules/trim (Depends-on): Likewise.
88482         * modules/unictype/gen-ctype (Depends-on): Likewise.
88483         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88485 2008-11-02  Bruno Haible  <bruno@clisp.org>
88487         Mark 'strcspn' obsolete.
88488         * modules/strcspn (Status, Notice): New sections.
88490 2008-11-02  Bruno Haible  <bruno@clisp.org>
88492         Mark 'rmdir' obsolete.
88493         * modules/rmdir (Status, Notice): New sections.
88494         * modules/clean-temp (Depends-on): Add rmdir.
88495         * modules/openat (Depends-on): Likewise.
88497 2008-11-02  Bruno Haible  <bruno@clisp.org>
88499         Mark 'raise' obsolete.
88500         * modules/raise (Status, Notice): New sections.
88501         (Include): Specify <signal.h>.
88502         * modules/stdio (Depends-on): Add raise.
88503         * modules/write (Depends-on): Likewise.
88505 2008-11-02  Bruno Haible  <bruno@clisp.org>
88507         Mark 'memset' obsolete.
88508         * modules/memset (Status, Notice): New sections.
88510 2008-11-02  Bruno Haible  <bruno@clisp.org>
88512         Mark 'memmove' obsolete.
88513         * modules/memmove (Status, Notice): New sections.
88514         * modules/argp (Depends-on): Add memmove.
88515         * modules/argz (Depends-on): Likewise.
88516         * modules/canonicalize (Depends-on): Likewise.
88517         * modules/canonicalize-lgpl (Depends-on): Likewise.
88518         * modules/fts (Depends-on): Likewise.
88519         * modules/getcwd (Depends-on): Likewise.
88520         * modules/human (Depends-on): Likewise.
88521         * modules/regex (Depends-on): Likewise.
88522         * modules/striconveh (Depends-on): Likewise.
88523         * modules/trim (Depends-on): Likewise.
88524         * modules/unistr/u8-move (Depends-on): Likewise.
88525         * modules/unistr/u16-move (Depends-on): Likewise.
88526         * modules/unistr/u32-move (Depends-on): Likewise.
88528 2008-11-02  Bruno Haible  <bruno@clisp.org>
88530         Mark 'memcpy' obsolete.
88531         * modules/memcpy (Status, Notice): New sections.
88533 2008-11-02  Bruno Haible  <bruno@clisp.org>
88535         Mark 'memcmp' obsolete.
88536         * modules/memcmp (Status, Notice): New sections.
88537         * modules/argmatch (Depends-on): Add memchr.
88538         * modules/backupfile (Depends-on): Likewise.
88539         * modules/c-strcasestr (Depends-on): Likewise.
88540         * modules/crypto/des (Depends-on): Likewise.
88541         * modules/csharpcomp (Depends-on): Likewise.
88542         * modules/fnmatch (Depends-on): Likewise.
88543         * modules/git-merge-changelog (Depends-on): Likewise.
88544         * modules/isnand (Depends-on): Likewise.
88545         * modules/isnand-nolibm (Depends-on): Likewise.
88546         * modules/isnanf (Depends-on): Likewise.
88547         * modules/isnanf-nolibm (Depends-on): Likewise.
88548         * modules/isnanl (Depends-on): Likewise.
88549         * modules/isnanl-nolibm (Depends-on): Likewise.
88550         * modules/mbchar (Depends-on): Likewise.
88551         * modules/memcoll (Depends-on): Likewise.
88552         * modules/quotearg (Depends-on): Likewise.
88553         * modules/regex (Depends-on): Likewise.
88554         * modules/relocatable-prog (Depends-on): Likewise.
88555         * modules/same (Depends-on): Likewise.
88556         * modules/signbit (Depends-on): Likewise.
88557         * modules/strcasestr-simple (Depends-on): Likewise.
88558         * modules/unictype/gen-ctype (Depends-on): Likewise.
88559         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88560         * modules/uniname/uniname (Depends-on): Likewise.
88561         * modules/unistr/u8-cmp (Depends-on): Likewise.
88563 2008-11-02  Bruno Haible  <bruno@clisp.org>
88565         Mark 'memchr' obsolete.
88566         * modules/memchr (Status, Notice): New sections.
88567         * modules/argp (Depends-on): Add memchr.
88568         * modules/base64 (Depends-on): Likewise.
88569         * modules/c-strcasestr (Depends-on): Likewise.
88570         * modules/chdir-long (Depends-on): Likewise.
88571         * modules/fnmatch (Depends-on): Likewise.
88572         * modules/getsubopt (Depends-on): Likewise.
88573         * modules/git-merge-changelog (Depends-on): Likewise.
88574         * modules/glob (Depends-on): Likewise.
88575         * modules/strcasestr-simple (Depends-on): Likewise.
88576         * modules/strnlen (Depends-on): Likewise.
88578 2008-11-02  Bruno Haible  <bruno@clisp.org>
88580         Mark 'atexit' obsolete.
88581         * modules/atexit (Status, Notice): New sections.
88582         * modules/chdir-long (Depends-on): Add atexit.
88583         * modules/wait-process (Depends-on): Likewise.
88585 2008-11-02  Bruno Haible  <bruno@clisp.org>
88587         * gnulib-tool: New option --with-obsolete.
88588         (func_usage): Document it.
88589         (func_modules_transitive_closure): Drop obsolete dependencies if
88590         incobsolete is not true.
88591         (func_import): Read and save the incobsolete variable to the cache.
88593 2008-11-02  Bruno Haible  <bruno@clisp.org>
88595         * modules/TEMPLATE-EXTENDED: New field 'Status'.
88596         * gnulib-tool: New option --extract-status.
88597         (func_usage): Document it.
88598         (sed_extract_prog): Recognize it.
88599         (func_get_status): New function.
88601 2008-10-30  Simon Josefsson  <simon@josefsson.org>
88603         * modules/sockets (License): Change from LGPL to LGPLv2+.
88605 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88607         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
88609 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88611         * MODULES.html.sh (Support for systems lacking POSIX:2001):
88612         Mention times and sys_times.
88613         * modules/sys_times, modules/sys_times-tests: New modules.
88614         * modules/times, modules/times-tests: Likewise
88615         * m4/sys_times_h.m4: New file.
88616         * lib/sys_times.in.h: Likewise
88617         * lib/times.c: Likewise.
88618         * tests/test-sys_times.c: Likewise.
88619         * tests/test-times.c: Likewise.
88620         * doc/posix-headers/sys_times.texi: Update.
88621         * doc/posix-functions/times.texi: Update.
88623 2008-10-28  Jim Meyering  <meyering@redhat.com>
88625         * modules/tempname (Depends-on): Add lstat.
88627         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
88629 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88631         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
88632         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
88633         using idiom used elsewhere in gnulib.
88635 2008-10-27  Jim Meyering  <meyering@redhat.com>
88637         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
88639 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88641         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
88642         TESTS_ENVIRONMENT, for shell scripts that needs to call built
88643         programs.
88644         * tests/test-argp-2.sh: Use $EXEEXT when needed.
88646 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88648         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
88650 2008-10-27  Bruno Haible  <bruno@clisp.org>
88652         * tests/test-lstat.c: Include <stdio.h>.
88654 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88656         * modules/lstat-tests: New module.
88657         * tests/test-lstat.c: New file.
88659 2008-10-26  Jim Meyering  <meyering@redhat.com>
88661         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
88663 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88664             Bruno Haible  <bruno@clisp.org>
88666         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
88667         * modules/configmake (Include): Add a note that the include must come
88668         after all system headers.
88669         * lib/javaversion.c: Include configmake.h after all other includes.
88671 2008-10-26  Bruno Haible  <bruno@clisp.org>
88673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
88674         HAVE_STRUCT_RANDOM_DATA to 1.
88675         (gl_STDLIB_H): Simplify.
88677 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88679         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
88680         substitute HAVE_STRUCT_RANDOM_DATA.
88681         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
88682         random_data.
88683         * modules/stdlib (Makefile.am): Substitute
88684         HAVE_STRUCT_RANDOM_DATA.
88686 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88688         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
88689         * doc/gnulib-intro.texi (Copyright): Likewise.
88691 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88693         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
88694         findings.
88696 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
88697             Bruno Haible  <bruno@clisp.org>
88699         * lib/unistd.in.h: Include <winsock2.h>.
88700         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
88701         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
88702         Provide dummy declarations.
88703         (gethostname): Override.
88704         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
88705         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
88706         gl_PREREQ_SYS_H_WINSOCK2.
88707         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
88708         * doc/posix-functions/gethostname.texi: More details.
88710 2008-10-25  Bruno Haible  <bruno@clisp.org>
88712         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
88713         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
88714         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
88716         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
88717         here ...
88718         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
88719         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
88720         gl_UNISTD_H_DEFAULTS.
88722 2008-10-25  Eric Blake  <ebb9@byu.net>
88724         signbit: avoid spurious compiler failure
88725         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
88726         declarations inside function.
88728 2008-10-24  Simon Josefsson  <simon@josefsson.org>
88729             Bruno Haible  <bruno@clisp.org>
88731         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
88732         * modules/random_r (Depends-on): Add stdint.
88734 2008-10-24  Bruno Haible  <bruno@clisp.org>
88736         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
88737         Eggert.
88738         * modules/strerror (License): Likewise.
88740 2008-10-24  Jim Meyering  <meyering@redhat.com>
88742         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
88743         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
88745 2008-10-24  Eric Blake  <ebb9@byu.net>
88747         getgroups: fix compilation when getgroups is available
88748         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
88749         but with <config.h> override of getgroups disabled.
88751 2008-10-24  Simon Josefsson  <simon@josefsson.org>
88753         * doc/gnulib.texi (Header files): Add note about C++ problems.
88754         Explained by Bruno Haible <bruno@clisp.org>.
88756 2008-10-23  Bruno Haible  <bruno@clisp.org>
88758         Define a dummy SA_NODEFER macro on Interix.
88759         * lib/signal.in.h (SA_NODEFER): Define fallback.
88760         Reported by Aleksey Cheusov <cheusov@tut.by> via
88761         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
88763 2008-10-23  Bruno Haible  <bruno@clisp.org>
88765         * modules/freadahead (License): Change to LGPLv2+.
88766         Suggested by Simon Josefsson.
88768 2008-10-23  Jim Meyering  <meyering@redhat.com>
88770         random_r: new module
88771         * modules/random_r: New file.
88772         * m4/random_r.m4: New file.
88773         * lib/random_r.c: New file, from glibc.
88774         * modules/random_r-tests: New file.
88775         * tests/test-random_r.c: New file.
88776         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
88777          Declare.
88778         (RAND_MAX): Define.
88779         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
88780         * modules/stdlib: Substitute them, too.
88781         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
88782         * doc/glibc-functions/initstate_r.texi: Mention the new module.
88783         * doc/glibc-functions/random_r.texi: Likewise.
88784         * doc/glibc-functions/setstate_r.texi: Likewise.
88785         * doc/glibc-functions/srandom_r.texi: Likewise.
88786         * config/srclist.txt: Mention it.
88788 2008-10-23  David Lutterkort  <lutter@redhat.com>
88790         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
88791         link requirement
88793 2008-10-23  Jim Meyering  <meyering@redhat.com>
88795         selinux-h: mark parameters of stub functions as intentionally unused
88796         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
88797         * lib/se-context.in.h: Likewise.
88799 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88801         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
88803 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88805         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
88807 2008-10-22  Eric Blake  <ebb9@byu.net>
88809         glthread/thread: avoid compiler warning
88810         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
88811         Add unreachable abort to silence compiler.
88813 2008-10-22  Eric Blake  <ebb9@byu.net>
88815         netdb: also supply struct addrinfo for cygwin 1.5.x
88816         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
88817         older cygwin.
88818         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
88819         cygwin.
88820         * doc/posix-headers/netdb.texi (netdb.h): Document this.
88822 2008-10-22  Bruno Haible  <bruno@clisp.org>
88824         * users.txt: Update entry about pspp.
88826 2008-10-21  Bruno Haible  <bruno@clisp.org>
88828         Simplification.
88829         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
88830         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
88832         Simplification.
88833         * lib/ioctl.c (ioctl): Don't undefine.
88834         * lib/socket.c (socket): Don't undefine.
88836         Remove unused module indicator macros.
88837         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
88838         GNULIB_$1 as a C macro.
88840         * doc/posix-functions/close.texi: Undo last change.
88841         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
88842         Windows platforms.
88844 2008-10-21  Bruno Haible  <bruno@clisp.org>
88846         Add gethostname() declaration to <unistd.h>.
88847         * lib/unistd.in.h (gethostname): New declaration.
88848         * lib/gethostname.c: Include <unistd.h>.
88849         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
88850         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
88851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
88852         and HAVE_GETHOSTNAME.
88853         * modules/gethostname (Depends-on): Add unistd.
88854         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88855         (Include): Specify <unistd.h>.
88856         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
88857         HAVE_GETHOSTNAME.
88858         * tests/test-gethostname.c: Include <unistd.h> first.
88860 2008-10-21  Bruno Haible  <bruno@clisp.org>
88862         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
88863         * modules/select-tests (Depends-on): Likewise.
88864         Reported by Simon Josefsson.
88866 2008-10-21  Simon Josefsson  <simon@josefsson.org>
88868         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
88869         * lib/accept.c: New file, based on winsock.c.
88870         * lib/bind.c: New file, based on winsock.c.
88871         * lib/connect.c: New file, based on winsock.c.
88872         * lib/getpeername.c: New file, based on winsock.c.
88873         * lib/getsockname.c: New file, based on winsock.c.
88874         * lib/getsockopt.c: New file, based on winsock.c.
88875         * lib/ioctl.c: New file, based on winsock.c.
88876         * lib/listen.c: New file, based on winsock.c.
88877         * lib/recv.c: New file, based on winsock.c.
88878         * lib/recvfrom.c: New file, based on winsock.c.
88879         * lib/send.c: New file, based on winsock.c.
88880         * lib/sendto.c: New file, based on winsock.c.
88881         * lib/setsockopt.c: New file, based on winsock.c.
88882         * lib/shutdown.c: New file, based on winsock.c.
88883         * lib/socket.c: New file, based on winsock.c.
88884         * lib/w32sock.h: New file, based on winsock.c.
88885         * lib/winsock.c: Remove file.
88886         * modules/accept: Likewise.
88887         * modules/bind: Likewise.
88888         * modules/connect: Likewise.
88889         * modules/getpeername: Likewise.
88890         * modules/getsockname: Likewise.
88891         * modules/getsockopt: Likewise.
88892         * modules/ioctl: Likewise.
88893         * modules/listen: Likewise.
88894         * modules/recv: Likewise.
88895         * modules/recvfrom: Likewise.
88896         * modules/send: Likewise.
88897         * modules/sendto: Likewise.
88898         * modules/setsockopt: Likewise.
88899         * modules/shutdown: Likewise.
88900         * modules/socket: Use socket.c instead of winsock.c.
88901         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
88902         * doc/posix-functions/accept.texi: Doc fix.
88903         * doc/posix-functions/bind.texi: Doc fix.
88904         * doc/posix-functions/close.texi: Doc fix.
88905         * doc/posix-functions/connect.texi: Doc fix.
88906         * doc/posix-functions/getpeername.texi: Doc fix.
88907         * doc/posix-functions/getsockname.texi: Doc fix.
88908         * doc/posix-functions/getsockopt.texi: Doc fix.
88909         * doc/posix-functions/ioctl.texi: Doc fix.
88910         * doc/posix-functions/listen.texi: Doc fix.
88911         * doc/posix-functions/recv.texi: Doc fix.
88912         * doc/posix-functions/recvfrom.texi: Doc fix.
88913         * doc/posix-functions/send.texi: Doc fix.
88914         * doc/posix-functions/sendto.texi: Doc fix.
88915         * doc/posix-functions/setsockopt.texi: Doc fix.
88916         * doc/posix-functions/shutdown.texi: Doc fix.
88917         * doc/posix-functions/socket.texi: Doc fix.
88919 2008-10-20  Bruno Haible  <bruno@clisp.org>
88921         Take into account the role of SIGABRT_COMPAT on Windows 2008.
88922         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
88923         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
88924         as an alias for SIGABRT.
88925         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
88926         (sigaction): Map it to SIGABRT.
88927         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
88929 2008-10-20  Bruno Haible  <bruno@clisp.org>
88931         * lib/fts.c: Don't include lstat.h.
88932         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
88934         Move the lstat() declaration to <sys/stat.h>.
88935         * lib/lstat.h: Remove file.
88936         * lib/sys_stat.in.h: Add special invocation convention.
88937         (lstat): New declaration.
88938         * lib/lstat.c (orig_lstat): New function.
88939         (rpl_lstat): Use orig_lstat instead of lstat.
88940         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
88941         AC_C_INLINE. Set REPLACE_LSTAT.
88942         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
88943         and REPLACE_LSTAT.
88944         * modules/lstat (Files): Remove lib/lstat.h.
88945         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
88946         (Include): Specify <sys/stat.h> instead of lstat.h.
88947         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
88948         REPLACE_LSTAT.
88949         * NEWS: Mention the change.
88951 2008-10-20  Bruno Haible  <bruno@clisp.org>
88953         * modules/posix_spawn-tests: New file.
88954         * tests/test-posix_spawn3.c: New file.
88956 2008-10-20  Bruno Haible  <bruno@clisp.org>
88958         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
88959         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
88960         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
88961         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
88962         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
88964 2008-10-20  Bruno Haible  <bruno@clisp.org>
88966         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
88967         of posix_spawn on AIX 5.3.
88969 2008-10-20  Bruno Haible  <bruno@clisp.org>
88971         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
88973 2008-10-20  Bruno Haible  <bruno@clisp.org>
88975         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
88976         of AC_LANG_PROGRAM.
88978 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88980         * lib/netdb.in.h: Don't define GNU specific constants until they
88981         are supported or needed.  Reported by Bruno Haible
88982         <bruno@clisp.org>.
88984 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88986         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
88988 2008-10-20  Simon Josefsson  <simon@josefsson.org>
88990         * lib/getaddrinfo.h: Remove file.
88991         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
88992         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
88993         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
88994         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
88995         * modules/netdb: Substitute GNULIB_GETADDRINFO.
88996         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
88997         * tests/test-getaddrinfo.c: Likewise.
88998         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
88999         * NEWS: Mention change.
89001 2008-10-19  Bruno Haible  <bruno@clisp.org>
89003         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
89005 2008-10-19  Bruno Haible  <bruno@clisp.org>
89007         * lib/wait-process.c: Include simply <sys/wait.h>.
89008         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
89009         WIFSTOPPED): Remove fallback definitions.
89010         * modules/wait-process (Depends-on): Add sys_wait.
89012         New module 'sys_wait'.
89013         * modules/sys_wait: New file.
89014         * lib/sys_wait.in.h: New file, partially copied from
89015         lib/wait-process.c.
89016         * m4/sys_wait_h.m4: New file.
89017         * doc/posix-headers/sys_wait.texi: Mention the new module.
89019 2008-10-19  Bruno Haible  <bruno@clisp.org>
89021         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
89023 2008-10-19  Bruno Haible  <bruno@clisp.org>
89025         Assume that waitpid() fills an 'int' status, not a 'union wait'.
89026         * lib/wait-process.c (WAIT_T): Remove type.
89027         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
89028         (wait_subprocess): Update.
89030 2008-10-19  Bruno Haible  <bruno@clisp.org>
89032         New module 'atoll'.
89033         * modules/atoll: New file.
89034         * lib/stdlib.in.h (atoll): New declaration.
89035         * lib/atoll.c: New file, from glibc with modifications.
89036         * m4/atoll.m4: New file.
89037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
89038         HAVE_ATOLL.
89039         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
89040         * doc/posix-functions/atoll.texi: Mention the new module.
89042 2008-10-19  Bruno Haible  <bruno@clisp.org>
89044         Add strtoull() declaration to <stdlib.h>.
89045         * lib/stdlib.in.h (strtoull): New declaration.
89046         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89047         Set HAVE_STRTOULL.
89048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
89049         HAVE_STRTOULL.
89050         * modules/strtoull (Depends-on): Add stdlib.
89051         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89052         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
89053         HAVE_STRTOULL.
89055 2008-10-19  Bruno Haible  <bruno@clisp.org>
89057         Add strtoll() declaration to <stdlib.h>.
89058         * lib/stdlib.in.h (strtoll): New declaration.
89059         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89060         Set HAVE_STRTOLL.
89061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
89062         HAVE_STRTOLL.
89063         * modules/strtoll (Depends-on): Add stdlib.
89064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89065         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
89067 2008-10-19  Bruno Haible  <bruno@clisp.org>
89069         * modules/bcopy (Depends-on): Add strings.
89070         (Include): Specify <strings.h>.
89072 2008-10-19  Bruno Haible  <bruno@clisp.org>
89074         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
89076 2008-10-19  Bruno Haible  <bruno@clisp.org>
89078         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
89079         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
89080         mingw.
89082 2008-10-19  Bruno Haible  <bruno@clisp.org>
89084         * lib/atanl.c: Don't include isnanl.h.
89085         * lib/cosl.c: Likewise.
89086         * lib/ldexpl.c: Likewise.
89087         * lib/logl.c: Likewise.
89088         * lib/sinl.c: Likewise.
89089         * lib/sqrtl.c: Likewise.
89090         * lib/tanl.c: Likewise.
89092         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
89093         * lib/isnanf.h: Remove file.
89094         * lib/isnand.h: Remove file.
89095         * lib/isnanl.h: Remove file.
89096         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
89097         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
89098         macros.
89099         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
89100         HAVE_ISNANF, don't define it as a C macro.
89101         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
89102         HAVE_ISNAND, don't define it as a C macro.
89103         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
89104         HAVE_ISNANL, don't define it as a C macro.
89105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
89106         HAVE_ISNAN[FDL].
89107         * modules/isnanf (Files): Remove lib/isnanf.h.
89108         (Depends-on): Add math.
89109         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89110         (Include): Specify <math.h> instead of isnanf.h.
89111         * modules/isnand (Files): Remove lib/isnand.h.
89112         (Depends-on): Add math.
89113         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89114         (Include): Specify <math.h> instead of isnand.h.
89115         * modules/isnanl (Files): Remove lib/isnanl.h.
89116         (Depends-on): Add math.
89117         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89118         (Include): Specify <math.h> instead of isnanl.h.
89119         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
89120         HAVE_ISNAN[FDL].
89121         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
89122         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
89123         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
89124         * NEWS: Mention the change.
89126 2008-10-18  Bruno Haible  <bruno@clisp.org>
89128         Add getusershell(), setusershell(), endusershell() declarations to
89129         <unistd.h>.
89130         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
89131         declarations.
89132         * lib/getusershell.c: Include unistd.h.
89133         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
89134         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89135         HAVE_GETUSERSHELL.
89136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
89137         and HAVE_GETUSERSHELL.
89138         * modules/getusershell (Depends-on): Add unistd, extensions.
89139         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89140         (Include): Specify <unistd.h>.
89141         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
89142         HAVE_GETUSERSHELL.
89144 2008-10-18  Bruno Haible  <bruno@clisp.org>
89146         Add a getloadavg() declaration to <stdlib.h>.
89147         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
89148         getloadavg declaration.
89149         (getloadavg): New declaration.
89150         * lib/getloadavg.c: Include <stdlib.h> first.
89151         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
89152         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
89153         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
89154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
89155         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89156         * modules/getloadavg (Depends-on): Add stdlib, extensions.
89157         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89158         (Include): Specify <stdlib.h>.
89159         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
89160         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89162 2008-10-18  Bruno Haible  <bruno@clisp.org>
89164         * lib/dirchownmod.c: Don't include lchmod.h.
89166         Move the lchmod() declaration to <sys/stat.h>.
89167         * lib/lchmod.h: Remove file.
89168         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
89169         (lchmod): New declaration, moved here from lib/lchown.h.
89170         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
89171         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
89172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
89173         and HAVE_LCHMOD.
89174         * modules/lchmod (Files): Remove lib/lchmod.h.
89175         (Depends-on): Add sys_stat, extensions.
89176         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89177         (Include): Specify <sys/stat.h> instead of lchmod.h.
89178         * modules/sys_stat (Depends-on): Add link-warning.
89179         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
89180         definition of GL_LINK_WARNING.
89181         * NEWS: Mention the change.
89183 2008-10-18  Bruno Haible  <bruno@clisp.org>
89185         * lib/fchdir.c: Don't include dirfd.h.
89186         * lib/fts.c: Likewise.
89187         * lib/getcwd.c: Likewise.
89188         * lib/glob.c: Likewise.
89190         Move the dirfd() declaration to <dirent.h>.
89191         * lib/dirfd.h: Remove file.
89192         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
89193         (dirfd): New declaration.
89194         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
89195         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
89196         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
89197         HAVE_DECL_DIRFD.
89198         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
89199         HAVE_DECL_DIRFD.
89200         * modules/dirfd (Files): Remove lib/dirfd.h.
89201         (Depends-on): Add dirent, extensions.
89202         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
89203         (Include): Specify <dirent.h> instead of dirfd.h.
89204         * modules/dirent (Depends-on): Add link-warning.
89205         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
89206         definition of GL_LINK_WARNING.
89207         * NEWS: Mention the change.
89209 2008-10-18  Bruno Haible  <bruno@clisp.org>
89211         Move the euidaccess() declaration to <unistd.h>.
89212         * lib/euidaccess.h: Remove file.
89213         * lib/unistd.in.h (euidaccess): New declaration.
89214         * lib/euidaccess.c: Don't include euidaccess.h.
89215         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
89216         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
89217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
89218         and HAVE_EUIDACCESS.
89219         * modules/euidaccess (Files): Remove lib/euidaccess.h.
89220         (Depends-on): Add unistd.
89221         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89222         (Include): Specify <unistd.h> instead of euidaccess.h.
89223         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
89224         HAVE_EUIDACCESS.
89225         * NEWS: Mention the change.
89227 2008-10-18  Bruno Haible  <bruno@clisp.org>
89229         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
89231         Move the getdomainname() declaration to <unistd.h>.
89232         * lib/getdomainname.h: Remove file.
89233         * lib/unistd.in.h (getdomainname): New declaration.
89234         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
89235         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
89236         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89237         HAVE_GETDOMAINNAME.
89238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89239         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
89240         * modules/getdomainname (Files): Remove lib/getdomainname.h.
89241         (Depends-on): Add unistd, extensions.
89242         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89243         (Includes): Specify <unistd.h> instead of getdomainname.h.
89244         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
89245         HAVE_GETDOMAINNAME.
89246         * NEWS: Mention the change.
89248 2008-10-18  Bruno Haible  <bruno@clisp.org>
89250         * modules/dirent: New file.
89251         * m4/dirent_h.m4: New file.
89252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
89253         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
89254         * modules/fchdir (Files): Remove lib/dirent.in.h.
89255         (Depends-on): Add dirent.
89256         (Makefile.am): Move rules to modules/dirent.
89257         * doc/posix-headers/dirent.texi: Mention the new module.
89259 2008-10-18  Bruno Haible  <bruno@clisp.org>
89261         Avoid -Wunused-parameter warnings in public gnulib header files.
89262         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
89263         macro.
89264         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
89266 2008-10-18  Bruno Haible  <bruno@clisp.org>
89268         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
89269         * doc/glibc-functions/error.texi: Mention the module 'error'.
89270         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
89271         * doc/glibc-functions/getdomainname.texi: Mention the module
89272         'getdomainname'.
89273         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
89274         * doc/glibc-functions/getpagesize.texi: Mention the module
89275         'getpagesize'.
89276         * doc/glibc-functions/getusershell.texi: Mention the module
89277         'getusershell'.
89278         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
89279         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
89280         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
89281         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
89282         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
89283         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
89284         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
89285         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
89286         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
89287         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
89288         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
89289         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
89290         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
89291         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
89293 2008-10-17  Bruno Haible  <bruno@clisp.org>
89295         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
89296         HP-UX and IRIX, use -0.0L.
89297         * tests/test-ceill.c (minus_zero): Likewise.
89298         * tests/test-floorl.c (minus_zero): Likewise.
89299         * tests/test-frexpl.c (minus_zero): Likewise.
89300         * tests/test-isnan.c (minus_zerol): Likewise.
89301         * tests/test-isnanl.h (minus_zero): Likewise.
89302         * tests/test-ldexpl.c (minus_zero): Likewise.
89303         * tests/test-roundl.c (minus_zero): Likewise.
89304         * tests/test-signbit.c (minus_zerol): Likewise.
89305         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
89306         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
89307         * tests/test-truncl.c (minus_zero): Likewise.
89308         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
89309         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
89310         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
89311         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
89313 2008-10-17  Bruno Haible  <bruno@clisp.org>
89315         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
89316         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
89317         that it gets activated only for gcc >= 3.0.
89318         * lib/dirent.in.h: Likewise.
89319         * lib/errno.in.h: Likewise.
89320         * lib/fcntl.in.h: Likewise.
89321         * lib/float.in.h: Likewise.
89322         * lib/iconv.in.h: Likewise.
89323         * lib/inttypes.in.h: Likewise.
89324         * lib/locale.in.h: Likewise.
89325         * lib/math.in.h: Likewise.
89326         * lib/netdb.in.h: Likewise.
89327         * lib/netinet_in.in.h: Likewise.
89328         * lib/search.in.h: Likewise.
89329         * lib/signal.in.h: Likewise.
89330         * lib/spawn.in.h: Likewise.
89331         * lib/stdarg.in.h: Likewise.
89332         * lib/stdint.in.h: Likewise.
89333         * lib/stdio.in.h: Likewise.
89334         * lib/stdlib.in.h: Likewise.
89335         * lib/string.in.h: Likewise.
89336         * lib/strings.in.h: Likewise.
89337         * lib/sys_file.in.h: Likewise.
89338         * lib/sys_ioctl.in.h: Likewise.
89339         * lib/sys_select.in.h: Likewise.
89340         * lib/sys_socket.in.h: Likewise.
89341         * lib/sys_stat.in.h: Likewise.
89342         * lib/sys_time.in.h: Likewise.
89343         * lib/sysexits.in.h: Likewise.
89344         * lib/time.in.h: Likewise.
89345         * lib/unistd.in.h: Likewise.
89346         * lib/wchar.in.h: Likewise.
89347         * lib/wctype.in.h: Likewise.
89348         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89350 2008-10-17  Jim Meyering  <meyering@redhat.com>
89352         ignore-value: don't depend on inline module
89353         * modules/ignore-value (Depends-on): Remove 'inline'.
89354         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
89355         Suggestion from Bruno Haible.
89357 2008-10-17  Bruno Haible  <bruno@clisp.org>
89359         New implementation of condition variables for Win32.
89360         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
89361         (gl_linked_waitqueue_t): New type.
89362         (gl_cond_t): Use it.
89363         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
89364         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
89365         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
89366         (glthread_cond_init_func, glthread_cond_wait_func,
89367         glthread_cond_timedwait_func, glthread_cond_signal_func,
89368         glthread_cond_broadcast_func, glthread_cond_destroy_func):
89369         Reimplemented on the basis of gl_linked_waitqueue_t.
89370         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
89371         gl_waitqueue_t.
89372         (gl_rwlock_t): Update.
89373         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
89375 2008-10-17  Simon Josefsson  <simon@josefsson.org>
89377         * modules/recvfrom (Depends-on): Add dependency on getpeername.
89378         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89380 2008-10-17  Jim Meyering  <meyering@redhat.com>
89382         ignore-value: new module
89383         * modules/ignore-value: New file.
89384         * lib/ignore-value.h: New file.
89385         * MODULES.html.sh (Compiler warning management): New section,
89386         just for this module.  More to come.
89388 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89390         open-safer.c: avoid 'signed and unsigned in conditional...' warning
89391         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
89392         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
89394 2008-10-16  Jim Meyering  <meyering@redhat.com>
89396         openat-die.c: avoid 'no previous prototype' warning
89397         * lib/openat-die.c: Include "openat.h".
89398         Reported by Reuben Thomas <rrt@sc3d.org>.
89400 2008-10-16  Simon Josefsson  <simon@josefsson.org>
89402         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
89403         * lib/netdb.in.h: Fix typo.
89404         Reported by Bruno Haible  <bruno@clisp.org>
89406         * lib/netdb.in.h: Include sys/socket.h for platforms without
89407         netdb.h, to get structures like hostent on MinGW.
89408         * modules/netdb (Depends-on): Add sys_socket.
89410 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89412         * modules/netdb, modules/netdb-tests: New file.
89413         * m4/netdb_h.m4: New file.
89414         * lib/netdb.in.h: Add, currently just an empty file pending
89415         definitions.
89416         * tests/test-netdb.c: New file.
89417         * doc/posix-headers/netdb.texi: Mention that we replace it if
89418         needed.
89419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89420         netdb.
89422 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89424         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
89425         with code.
89427 2008-10-13  Bruno Haible  <bruno@clisp.org>
89429         * lib/glthread/cond.c (glthread_cond_wait_func,
89430         glthread_cond_timedwait_func): Add a comment.
89432 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89434         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
89435         * tests/test-select.c: Likewise,
89437 2008-10-13  Bruno Haible  <bruno@clisp.org>
89439         * lib/glthread/cond.c (glthread_cond_wait_func,
89440         glthread_cond_timedwait_func): Fix variable name.
89441         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89443 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
89445         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
89446         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
89447         struct sockaddr.sa_len.
89448         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
89450 2008-10-13  Simon Josefsson  <simon@josefsson.org>
89452         * build-aux/pmccabe2html: Add css and css_url parameters.
89454 2008-10-12  Bruno Haible  <bruno@clisp.org>
89456         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
89457         calling aclx_get.
89458         Reported by Rainer Tammer <tammer@tammer.net>.
89460 2008-10-12  Bruno Haible  <bruno@clisp.org>
89462         Use msvcrt aware primitives for creation/termination of Win32 threads.
89463         * lib/glthread/thread.c: Include <process.h>.
89464         (glthread_create_func): Use _beginthreadex instead of CreateThread.
89465         (wrapper_func): Update signature.
89466         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
89468 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89469             Bruno Haible  <bruno@clisp.org>
89471         Provide a Win32 implementation of the 'cond' module.
89472         * lib/glthread/cond.h [USE_WIN32]: New implementation.
89473         * lib/glthread/cond.c (glthread_cond_init_func,
89474         glthread_cond_wait_func, glthread_cond_timedwait_func,
89475         glthread_cond_signal_func, glthread_cond_broadcast_func,
89476         glthread_cond_destroy_func) [USE_WIN32]: New functions.
89477         * modules/cond (Dependencies): Add gettimeofday.
89479 2008-10-11  Bruno Haible  <bruno@clisp.org>
89481         Make sleep work on older versions of mingw.
89482         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
89483         only whether it exists.
89484         * doc/posix-functions/sleep.texi: Mention the problem with older
89485         versions of mingw.
89487 2008-10-11  Bruno Haible  <bruno@clisp.org>
89489         New module 'shutdown'.
89490         * modules/shutdown: New file.
89491         * lib/sys_socket.in.h (shutdown): New declaration.
89492         * lib/winsock.c (shutdown): New function.
89493         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
89494         GNULIB_SHUTDOWN.
89495         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
89496         * doc/posix-functions/shutdown.texi: Document the new module.
89498 2008-10-11  Jim Meyering  <meyering@redhat.com>
89500         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
89502 2008-10-11  Bruno Haible  <bruno@clisp.org>
89504         New module 'fclose'.
89505         * modules/fclose: New file.
89506         * lib/stdio.in.h (fclose): New declaration.
89507         * lib/fclose.c: New file.
89508         * m4/fclose.m4: New file.
89509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
89510         REPLACE_FCLOSE.
89511         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
89512         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
89513         REPLACE_FCLOSE.
89514         * modules/close (Depends-on): fclose.
89515         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
89517 2008-10-11  Bruno Haible  <bruno@clisp.org>
89519         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
89520         set errno and don't call _close.
89522 2008-10-10  Bruno Haible  <bruno@clisp.org>
89524         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
89525         ACL, not afterwards. Fixes test failure on Cygwin.
89527 2008-10-09  Ben Pfaff  <blp@gnu.org>
89529         * build-aux/announce-gen: Fix gnulib version related part of usage
89530         message.  Die with a useful error message if no tarballs are
89531         found.
89533 2008-10-10  Jim Meyering  <meyering@redhat.com>
89535         bootstrap: use git's --depth=N option only if it's supported
89536         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
89537         recognize the --depth option.  Reported by Pádraig Brady.
89539 2008-10-09  Bruno Haible  <bruno@clisp.org>
89541         New module 'ioctl'.
89542         * modules/ioctl: New file.
89543         * lib/sys_socket.in.h (ioctl): Remove declaration.
89544         * lib/winsock.c: Include <sys/ioctl.h>.
89545         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
89546         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89547         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
89548         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
89549         * doc/posix-functions/ioctl.texi: Mention the new module.
89551 2008-10-09  Bruno Haible  <bruno@clisp.org>
89553         New module 'sys_ioctl'.
89554         * lib/sys_ioctl.in.h: New file.
89555         * m4/sys_ioctl_h.m4: New file.
89556         * modules/sys_ioctl: New file.
89557         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
89559 2008-10-09  Bruno Haible  <bruno@clisp.org>
89561         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
89562         * lib/winsock.c: Include <stdarg.h>.
89563         (rpl_ioctl): Change to second argument 'int' and then varargs.
89565 2008-10-09  Bruno Haible  <bruno@clisp.org>
89567         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
89568         when the sys_socket module is present and the system has <winsock2.h>.
89570 2008-10-09  Bruno Haible  <bruno@clisp.org>
89572         * doc/posix-functions/close.texi: Mention module 'close' instead of
89573         module 'sys_socket'.
89575 2008-10-09  Bruno Haible  <bruno@clisp.org>
89577         * doc/glibc-headers/sys_ioctl.texi: New file.
89578         * doc/gnulib.texi: Include it.
89580 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89581             Bruno Haible  <bruno@clisp.org>
89583         Combine the two replacements of 'close'.
89584         * lib/sys_socket.in.h (close): Define to a reminder to include
89585         <unistd.h>.
89586         (_gl_close_fd_maybe_socket): New declaration.
89587         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
89588         * lib/winsock.c (close): Remove undefinition.
89589         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
89590         needed for the gnulib module 'close'.
89591         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
89592         define to an error symbol or to a warning, if suitable.
89593         * lib/close.c: Include <sys/socket.h>.
89594         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
89595         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
89596         UNISTD_H_HAVE_WINSOCK2_H.
89597         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
89598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89599         UNISTD_H_HAVE_WINSOCK2_H.
89600         * modules/sys_socket (Files): Add m4/unistd_h.m4.
89601         (configure.ac): Set a module indicator.
89602         (Makefile.am): Substitute GNULIB_CLOSE.
89603         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
89604         * modules/poll-tests (Depends-on): Add close.
89605         * modules/select-tests (Depends-on): Likewise.
89607 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89608             Bruno Haible  <bruno@clisp.org>
89610         New module 'close'.
89611         * modules/close: New file.
89612         * lib/unistd.in.h (close): Move declaration out of the
89613         FCHDIR_REPLACEMENT scope.
89614         (_gl_unregister_fd): New declaration.
89615         * lib/close.c: New file.
89616         * lib/fchdir.c (rpl_close): Remove function.
89617         * m4/close.m4: New file.
89618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89619         close.
89620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
89621         REPLACE_CLOSE.
89622         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
89623         REPLACE_CLOSE.
89624         * modules/fchdir (Depends-on): Add close.
89626 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89627             Bruno Haible  <bruno@clisp.org>
89629         * lib/fcntl.in.h (open): Simplify conditionals.
89630         (_gl_register_fd): New declaration.
89631         * lib/fchdir.c (rpl_open): Remove function.
89632         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
89633         also.
89634         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
89635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89636         open.
89638 2008-10-09  Jim Meyering  <meyering@redhat.com>
89640         GNUmakefile: use the more name-space-friendly "_version"
89641         * top/GNUmakefile (_dummy): Update.
89642         (_version): Rename from "version".
89644 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89645             Bruno Haible  <bruno@clisp.org>
89647         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
89648         rpl_close.
89649         (_gl_register_fd): New function, extracted from rpl_open.
89650         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
89651         (rpl_open, rpl_opendir): Use _gl_register_fd.
89653 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89655         Fix organization of 'open' replacement.
89656         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
89657         (gl_FUNC_OPEN): Use it.
89658         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
89660 2008-10-08  Bruno Haible  <bruno@clisp.org>
89662         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
89664 2008-10-08  Simon Josefsson  <simon@josefsson.org>
89666         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
89667         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
89668         listen).
89670 2008-10-08  Eric Blake  <ebb9@byu.net>
89672         GNUmakefile: add 'make version' target
89673         * top/GNUmakefile (_curr-ver): Split version update rules...
89674         (version): ...into a target.
89676 2008-10-07  Bruno Haible  <bruno@clisp.org>
89678         Use a more portable replacement expression for -0.0L.
89679         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
89680         instead of -0.0L. Fix m4 quotation.
89682         * tests/test-signbit.c: Include <float.h>.
89683         (minus_zero): New variable.
89684         (test_signbitl): Use minus_zero instead of -zero.
89685         * modules/signbit-tests (Depends-on): Add float.
89687         * tests/test-ceill.c: Include <float.h>.
89688         (zero): Remove variable.
89689         (minus_zero): New variable.
89690         (main): Use minus_zero instead of -zero.
89691         * modules/ceill-tests (Depends-on): Add float.
89693         * tests/test-floorl.c: Include <float.h>.
89694         (zero): Remove variable.
89695         (minus_zero): New variable.
89696         (main): Use minus_zero instead of -zero.
89697         * modules/floorl-tests (Depends-on): Add float.
89699         * tests/test-roundl.c: Include <float.h>.
89700         (zero): Remove variable.
89701         (minus_zero): New variable.
89702         (main): Use minus_zero instead of -zero.
89703         * modules/roundl-tests (Depends-on): Add float.
89705         * tests/test-truncl.c: Include <float.h>.
89706         (zero): Remove variable.
89707         (minus_zero): New variable.
89708         (main): Use minus_zero instead of -zero.
89709         * modules/truncl-tests (Depends-on): Add float.
89711         * tests/test-frexpl.c (zero): Remove variable.
89712         (minus_zero): New variable.
89713         (main): Use minus_zero instead of -zero.
89714         * modules/frexpl-tests (Depends-on): Add float.
89716         * tests/test-isnan.c (zerol): Remove variable.
89717         (minus_zerol): New variable.
89718         (test_long_double): Use minus_zerol instead of -zerol.
89719         * modules/isnan-tests (Depends-on): Add float.
89721         * tests/test-isnanl.h (zero): Remove variable.
89722         (minus_zero): New variable.
89723         (main): Use minus_zero instead of -zero.
89724         * modules/isnanl-nolibm-tests (Depends-on): Add float.
89725         * modules/isnanl-tests (Depends-on): Add float.
89727         * tests/test-ldexpl.c (zero): Remove variable.
89728         (minus_zero): New variable.
89729         (main): Use minus_zero instead of -zero.
89730         * modules/ldexpl-tests (Depends-on): Add float.
89732         * tests/test-snprintf-posix.h (zerol): Remove variable.
89733         (minus_zerol): New variable.
89734         (test_function): Use minus_zerol instead of -zerol.
89735         * modules/snprintf-posix-tests (Depends-on): Add float.
89736         * modules/vsnprintf-posix-tests (Depends-on): Add float.
89738         * tests/test-sprintf-posix.h (zerol): Remove variable.
89739         (minus_zerol): New variable.
89740         (test_function): Use minus_zerol instead of -zerol.
89741         * modules/sprintf-posix-tests (Depends-on): Add float.
89742         * modules/vsprintf-posix-tests (Depends-on): Add float.
89744         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
89745         (minus_zerol): New variable.
89746         (test_function): Use minus_zerol instead of -zerol.
89747         * modules/vasnprintf-posix-tests (Depends-on): Add float.
89749         * tests/test-vasprintf-posix.c (zerol): Remove variable.
89750         (minus_zerol): New variable.
89751         (test_function): Use minus_zerol instead of -zerol.
89752         * modules/vasprintf-posix-tests (Depends-on): Add float.
89754 2008-10-07  Simon Josefsson  <simon@josefsson.org>
89756         * MODULES.html.sh (Support for building documentation): Mention
89757         pmccabe2html.  Sort entries.
89759         Add pmccabe2html module, from gnupdf.
89760         * build-aux/pmccabe.css: New file.
89761         * build-aux/pmccabe2html: New file.
89762         * m4/pmccabe2html.m4: New file.
89763         * modules/pmccabe2html: New file.
89765 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
89767         flock: new module
89768         * MODULES.html.sh: Add to list of modules.
89769         * lib/flock.c: flock implementation for Windows and Unix systems
89770         which have fcntl.
89771         * doc/glibc-functions/flock.texi: Update documentation.
89772         * lib/sys_file.in.h: <sys/file.h> header file.
89773         * m4/flock.m4: M4 macros.
89774         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
89775         * modules/flock: flock module.
89776         * modules/flock-tests: flock tests module.
89777         * modules/sys_file: sys/file.h module.
89778         * tests/test-flock.c: test suite for flock.
89780 2008-10-06  Jim Meyering  <meyering@redhat.com>
89782         bootstrap: check for LT_INIT more portably still ;-)
89783         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
89784         Spotted by Bruno Haible.
89786 2008-10-06  Eric Blake  <ebb9@byu.net>
89788         test-signbit: avoid tripping Irix cc bug on -0.0L
89789         * tests/test-signbit.c (minus_zerol): Delete, and replace with
89790         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
89791         entire testsuite consistent and avoids an Irix 6.2 bug.
89793 2008-10-05  Bruno Haible  <bruno@clisp.org>
89794             Jim Meyering  <jim@meyering.net>
89796         Add an option for ignoring EPIPE during close_stdout.
89797         * lib/closeout.h: Include <stdbool.h>.
89798         (close_stdout_set_ignore_EPIPE): New declaration.
89799         * lib/closeout.c: Include <stdbool.h>.
89800         (ignore_EPIPE): New variable.
89801         (close_stdout_set_ignore_EPIPE): New function.
89802         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
89803         * lib/close-stream.c (close_stream): Mention the possible EPIPE
89804         failure.
89805         * modules/closeout (Depends-on): Add stdbool.
89807 2008-10-05  Bruno Haible  <bruno@clisp.org>
89809         * modules/accept: New file.
89810         * modules/bind: New file.
89811         * modules/connect: New file.
89812         * modules/getpeername: New file.
89813         * modules/getsockname: New file.
89814         * modules/getsockopt: New file.
89815         * modules/listen: New file.
89816         * modules/recv: New file.
89817         * modules/recvfrom: New file.
89818         * modules/send: New file.
89819         * modules/sendto: New file.
89820         * modules/setsockopt: New file.
89821         * modules/socket: New file.
89822         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
89823         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
89824         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
89825         the particular module is requested. Add a link warning when the
89826         particular module is not requested.
89827         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
89828         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
89829         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
89830         the particular module is requested.
89831         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
89832         gl_SYS_SOCKET_H_DEFAULTS): New macros.
89833         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
89834         * modules/sys_socket (Depends-on): Add link-warning.
89835         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
89836         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
89837         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
89838         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
89839         GL_LINK_WARNING.
89840         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
89841         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
89842         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
89843         * doc/posix-functions/getpeername.texi: Mention the new module
89844         'getpeername'.
89845         * doc/posix-functions/getsockname.texi: Mention the new module
89846         'getsockname'.
89847         * doc/posix-functions/getsockopt.texi: Mention the new module
89848         'getsockopt'.
89849         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
89850         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
89851         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
89852         * doc/posix-functions/send.texi: Mention the new module 'send'.
89853         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
89854         * doc/posix-functions/setsockopt.texi: Mention the new module
89855         'setsockopt'.
89856         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
89857         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
89858         listen, connect, accept.
89859         * modules/select-tests (Depends-on): Likewise.
89861 2008-10-05  Bruno Haible  <bruno@clisp.org>
89863         * lib/winsock.c (strerror): Remove unused #undef.
89864         (rpl_close): Remove unused local variable.
89866         * modules/sys_socket (Depends-on); Add errno.
89868 2008-10-05  Bruno Haible  <bruno@clisp.org>
89870         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
89871         (select): Add a link warning when the 'select' module is not used.
89872         * modules/sys_select (Depends-on): Add link-warning.
89873         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
89874         Suggested by Paolo Bonzini.
89876 2008-10-05  Jim Meyering  <meyering@redhat.com>
89878         bootstrap: check for LT_INIT more portably
89879         * build-aux/bootstrap: Avoid using grep -E, since it's not
89880         portable enough.  Suggestion from Bruno Haible.
89882 2008-10-05  Bruno Haible  <bruno@clisp.org>
89884         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
89885         as being fixed by gnulib.
89887 2008-10-05  Bruno Haible  <bruno@clisp.org>
89889         * modules/select-tests: New file, mostly copied from
89890         modules/sys_select-tests.
89891         * tests/test-select.c: New file, mostly copied from
89892         tests/test-sys_select.c.
89893         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
89894         * modules/sys_select-tests (Depends-on): Remove all dependencies.
89895         (Makefile.am): Remove test_sys_select_LDADD.
89897         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
89898         to an undefined symbol, for an error message.
89899         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
89900         (gl_SYS_SELECT_H_DEFAULTS): New macro.
89901         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
89902         winsock-select.c here.
89903         * modules/sys_select (Files): Remove lib/winsock-select.c.
89904         (Depends-on): Remove alloca.
89905         (Makefile.am): Substitute GNULIB_SELECT.
89906         * modules/select: New file.
89907         * doc/posix-functions/select.texi: Update.
89909 2008-10-05  Bruno Haible  <bruno@clisp.org>
89911         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
89912         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
89913         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
89914         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
89915         getdtablesize.
89916         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
89917         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
89919 2008-10-05  Bruno Haible  <bruno@clisp.org>
89921         * modules/getdtablesize-tests: New file.
89922         * tests/test-getdtablesize.c: New file.
89924         New module 'getdtablesize'.
89925         * lib/unistd.in.h (getdtablesize): New declaration.
89926         * lib/getdtablesize.c: New file.
89927         * m4/getdtablesize.m4: New file.
89928         * modules/getdtablesize: New file.
89929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89930         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
89931         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
89932         HAVE_GETDTABLESIZE.
89933         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
89935 2008-10-05  Bruno Haible  <bruno@clisp.org>
89937         * modules/sched (Makefile.am): Fix typo.
89938         Reported by Simon Josefsson.
89940 2008-10-05  Jim Meyering  <meyering@redhat.com>
89942         bootstrap: check for LT_INIT, too
89943         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
89944         are deprecated.  Suggestion from Ralf Wildenhues.
89946 2008-10-05  Bruno Haible  <bruno@clisp.org>
89948         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
89949         overriding them by ours.
89950         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
89952 2008-10-05  Jim Meyering  <meyering@redhat.com>
89954         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
89955         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
89956         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
89958 2008-10-04  Bruno Haible  <bruno@clisp.org>
89960         * modules/dup2 (License): Change to LGPLv2+.
89961         * modules/sleep (License): Likewise.
89962         * modules/perror (License): Likewise.
89963         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
89964         Blake.
89965         * modules/signal (License): Likewise.
89966         * modules/sigprocmask (License): Likewise.
89967         * modules/raise (License): Change to LGPLv2+, with approval by Jim
89968         Meyering.
89970 2008-10-04  Bruno Haible  <bruno@clisp.org>
89972         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
89973         Reported by Rainer Tammer <tammer@tammer.net>.
89975 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
89976             Bruno Haible  <bruno@clisp.org>
89978         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
89979         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
89980         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
89982 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
89984         filevercmp: new module
89985         * lib/filevercmp.h: New function filevercmp comparing version strings.
89986         * lib/filevercmp.c: Implementation of filevercmp function.
89987         * modules/filevercmp: Module metadata.
89988         * tests/test-filevercmp.c: Unit test for new module.
89989         * modules/filevercmp-tests: Unit test metadata.
89990         * MODULES.html.sh: Add filevercmp module.
89992 2008-10-03  Bruno Haible  <bruno@clisp.org>
89994         * lib/c-ctype.h: Add comment.
89995         Reported by Jim Meyering.
89997 2008-10-02  Bruno Haible  <bruno@clisp.org>
89999         * modules/posix_spawn-internal (Depends-on): Add 'open'.
90001 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90003         * build-aux/bootstrap: Allow renaming bootstrap, and change the
90004         name of bootstrap.conf accordingly.
90006 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90008         * build-aux/bootstrap: Install git-merge-changelog configuration
90009         items into .gitconfig if needed.
90011 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90013         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
90014         git repository, and initialize/update it accordingly.
90016 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
90018         * modules/fsync-tests: New file.
90019         * tests/test-fsync.c: New file.
90021         New module 'fsync'.
90022         * lib/fsync.c: New file.
90023         * m4/fsync.m4: New file.
90024         * modules/fsync: New file.
90025         * lib/unistd.in.h (fsync): New declaration.
90026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
90027         GNULIB_FSYNC and HAVE_FSYNC.
90028         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
90029         * MODULES.html.sh (posix_functions): Add fsync.
90030         * doc/posix-functions/fsync.texi: Mention the new module.
90032 2008-10-02  Jim Meyering  <meyering@redhat.com>
90034         fts.c: sync with similar code from coreutils' remove.c
90035         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
90036         Guard also with "#if defined __linux__", since for now at least,
90037         this code is Linux-kernel-specific.
90039 2008-10-02  Jim Meyering  <meyering@redhat.com>
90041         fts: bug fixes
90042         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
90043         Include <sys/vfs.h>, not <sys/statfs.h>.
90045         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
90046         Include <sys/vfs.h>, not <sys/statfs.h>.
90048 2008-10-01  Bruno Haible  <bruno@clisp.org>
90050         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
90051         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
90052         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
90053         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
90054         * doc/posix-functions/posix_spawnp.texi: Likewise.
90055         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
90056         whether posix_spawn actually works.
90057         * m4/pipe.m4 (gl_PIPE): Likewise.
90058         * modules/execute (Files): Add m4/posix_spawn.m4.
90059         * modules/pipe (Files): Add m4/posix_spawn.m4.
90060         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
90062 2008-10-01  Jim Meyering  <meyering@redhat.com>
90064         remove trailing spaces
90065         * NEWS: Likewise.
90066         * lib/poll.c (poll): Likewise.
90067         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
90068         * lib/winsock.c (rpl_close): Likewise.
90069         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
90070         * modules/yield: Likewise.
90071         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
90072         * tests/test-sys_select.c (connect_to_socket): Likewise.
90074         fts.c: adjust a new interface to be more generally useful
90075         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
90076         (fts_build): Adjust caller.
90078 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90080         * modules/cond-tests: New file.
90081         * tests/test-cond.c: New file.
90083 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90084             Bruno Haible  <bruno@clisp.org>
90086         * modules/cond (Dependencies): Add errno, time.
90087         * lib/glthread/cond.h: Include <time.h>.
90088         (gl_cond_define, gl_cond_define_initialized): Use the same definition
90089         across platforms.
90091 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90092             Bruno Haible  <bruno@clisp.org>
90094         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
90096 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90097             Bruno Haible  <bruno@clisp.org>
90099         * modules/tls-tests (Depends-on): Add thread, yield.
90100         (configure.ac): Remove all checks.
90101         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
90102         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90103         gl_thread_self): Remove definitions. Include glthread/thread.h and
90104         glthread/yield.h instead.
90105         (test_tls): Pass an additional NULL argument to gl_thread_join.
90107 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90108             Bruno Haible  <bruno@clisp.org>
90110         * modules/lock-tests (Depends-on): Add thread, yield.
90111         (configure.ac): Remove all checks.
90112         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
90113         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90114         gl_thread_self): Remove definitions. Include glthread/thread.h and
90115         glthread/yield.h instead.
90116         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
90117         additional NULL argument to gl_thread_join.
90119 2008-09-30  Bruno Haible  <bruno@clisp.org>
90121         Fix the Win32 implementation of the 'thread' module.
90122         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
90123         pointer type.
90124         (gl_thread_self): Invoke gl_thread_self_func.
90125         (gl_thread_self_func): New declaration.
90126         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
90127         (do_init_self_key, init_self_key): New functions.
90128         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
90129         Remove some fields.
90130         (running_threads, running_lock): Remove variables.
90131         (get_current_thread_handle): New function.
90132         (gl_thread_self_func, wrapper_func, glthread_create_func,
90133         glthread_join_func, gl_thread_exit_func): Largely rewritten and
90134         simplified.
90136 2008-09-30  Bruno Haible  <bruno@clisp.org>
90138         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
90139         files.
90141 2008-09-30  Jim Meyering  <meyering@redhat.com>
90143         fts.m4: correct the test for statfs.f_type
90144         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
90145         when checking for statfs.f_type.
90147 2008-09-15  Simon Josefsson  <simon@josefsson.org>
90149         tests: avoid some compiler warnings
90150         * tests/test-memchr.c (main): Pass NULL indirectly.
90151         * tests/test-getdate.c (main): Remove unused variable 'ret'.
90153 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
90155         getdate.y: disallow countable dayshifts like "4 yesterday ago"
90156         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
90157         exactly specified dayshifts.
90158         (dayshift): New rule.
90159         (rel): Add dayshift.
90160         (relative_time_table) [tomorrow, yesterday, today, now]:
90161         Use tDAY_SHIFT in place of tDAY_UNIT.
90162         * tests/test-getdate.c: Add tests for now-disallowed countable
90163         dayshifts, e.g., "4 yesterday ago".
90165 2008-09-29  Bruno Haible  <bruno@clisp.org>
90167         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
90168         * tests/test-posix_spawn1.in.sh: Renamed from
90169         tests/test-posix_spawn.in.sh.
90170         * tests/test-posix_spawn2.c: New file.
90171         * tests/test-posix_spawn2.in.sh: New file.
90172         * modules/posix_spawnp-tests (Files): Update.
90173         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
90175 2008-09-29  Bruno Haible  <bruno@clisp.org>
90177         Propagate effects of putenv/setenv/unsetenv to child processes.
90178         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
90179         * lib/pipe.c (create_pipe): Likewise.
90181 2008-09-29  Bruno Haible  <bruno@clisp.org>
90183         Enable use of shell scripts as executables in mingw.
90184         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
90185         run the program as a shell script.
90186         * lib/pipe.c (create_pipe): Likewise.
90187         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
90188         resulting array.
90190 2008-09-29  Eric Blake  <ebb9@byu.net>
90192         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
90194 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
90196         * doc/posix-functions/accept.texi: Update mingw problems.
90197         * doc/posix-functions/bind.texi: Update mingw problems.
90198         * doc/posix-functions/close.texi: Update mingw problems.
90199         * doc/posix-functions/connect.texi: Update mingw problems.
90200         * doc/posix-functions/getpeername.texi: Update mingw problems.
90201         * doc/posix-functions/getsockname.texi: Update mingw problems.
90202         * doc/posix-functions/getsockopt.texi: Update mingw problems.
90203         * doc/posix-functions/ioctl.texi: Update mingw problems.
90204         * doc/posix-functions/listen.texi: Update mingw problems.
90205         * doc/posix-functions/recv.texi: Update mingw problems.
90206         * doc/posix-functions/recvfrom.texi: Update mingw problems.
90207         * doc/posix-functions/select.texi: Update mingw problems.
90208         * doc/posix-functions/send.texi: Update mingw problems.
90209         * doc/posix-functions/sendto.texi: Update mingw problems.
90210         * doc/posix-functions/setsockopt.texi: Update mingw problems.
90211         * doc/posix-functions/socket.texi: Update mingw problems.
90213 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
90214             Bruno Haible  <bruno@clisp.org>
90216         * lib/sys_select.in.h: Include sys/time.h.
90217         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
90218         * modules/sys_select: Depend on sys_time.
90219         * tests/test-sys_select.c: Test that sys/select.h defines struct
90220         timeval fully.
90222 2008-09-29  Bruno Haible  <bruno@clisp.org>
90224         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
90225         * lib/sys_select.in.h: Likewise.
90227 2008-09-29  Bruno Haible  <bruno@clisp.org>
90229         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
90231 2008-09-29  Bruno Haible  <bruno@clisp.org>
90233         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
90234         Set LIBSOCKET instead of augmenting LIBS.
90235         * modules/sockets (Link): New section.
90236         * modules/sockets-tests (test_sockets_LDADD): New variable.
90237         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
90238         * modules/poll-tests (test_poll_LDADD): New variable.
90239         * NEWS: Document the change.
90241 2008-09-29  Bruno Haible  <bruno@clisp.org>
90243         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
90244         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
90245         ARPA_INET_H directly.
90246         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90248 2008-09-28  Bruno Haible  <bruno@clisp.org>
90250         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
90251         from gl_HEADER_SYS_SOCKET.
90252         (gl_HEADER_SYS_SOCKET): Invoke it.
90253         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90255 2008-09-28  Bruno Haible  <bruno@clisp.org>
90257         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
90258         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
90259         Needed on OSF/1 4.0.
90261 2008-09-28  Bruno Haible  <bruno@clisp.org>
90263         Override open more carefully.
90264         * lib/open.c (orig_open): New function.
90265         (rpl_open): Use orig_open instead of open.
90266         * lib/fcntl.in.h: Add special invocation convention.
90267         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
90268         (gl_FUNC_OPEN): Invoke it.
90270         Override freopen more carefully.
90271         * lib/freopen.c (orig_freopen): New function.
90272         (rpl_freopen): Use orig_freopen instead of freopen.
90273         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
90274         (gl_FUNC_FREOPEN): Invoke it.
90276         Override fopen more carefully.
90277         * lib/fopen.c (orig_fopen): New function.
90278         (rpl_fopen): Use orig_fopen instead of fopen.
90279         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
90280         (gl_FUNC_FOPEN): Invoke it.
90281         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
90283 2008-09-28  Bruno Haible  <bruno@clisp.org>
90285         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
90286         SIGPIPE.
90288 2008-09-28  Bruno Haible  <bruno@clisp.org>
90290         * tests/test-sigaction.c (handler, main): Disable the check whether
90291         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
90292         glibc systems with LinuxThreads.
90294 2008-09-28  Bruno Haible  <bruno@clisp.org>
90296         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
90298         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
90299         with AIX xlc.
90300         * lib/fcntl.in.h (open): Likewise.
90301         Reported by Rainer Tammer <tammer@tammer.net>.
90303 2008-09-28  Bruno Haible  <bruno@clisp.org>
90305         * modules/posix_spawnp-tests: New file.
90306         * tests/test-posix_spawn.c: New file.
90307         * tests/test-posix_spawn.in.sh: New file.
90309         New module 'posix_spawnp'.
90310         * modules/posix_spawnp: New file.
90311         * lib/spawnp.c: New file, from GNU libc with modifications.
90312         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
90314         New module 'posix_spawn'.
90315         * modules/posix_spawn: New file.
90316         * lib/spawn.c: New file, from GNU libc with modifications.
90317         * doc/posix-functions/posix_spawn.texi: Mention the new module.
90319         New module 'posix_spawnattr_destroy'.
90320         * modules/posix_spawnattr_destroy: New file.
90321         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
90322         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
90323         module.
90325         New module 'posix_spawnattr_setsigmask'.
90326         * modules/posix_spawnattr_setsigmask: New file.
90327         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
90328         modifications.
90329         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
90330         new module.
90332         New module 'posix_spawnattr_getsigmask'.
90333         * modules/posix_spawnattr_getsigmask: New file.
90334         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
90335         modifications.
90336         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
90337         new module.
90339         New module 'posix_spawnattr_setsigdefault'.
90340         * modules/posix_spawnattr_setsigdefault: New file.
90341         * lib/spawnattr_setdefault.c: New file, from GNU libc with
90342         modifications.
90343         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
90344         new module.
90346         New module 'posix_spawnattr_getsigdefault'.
90347         * modules/posix_spawnattr_getsigdefault: New file.
90348         * lib/spawnattr_getdefault.c: New file, from GNU libc with
90349         modifications.
90350         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
90351         new module.
90353         New module 'posix_spawnattr_setschedpolicy'.
90354         * modules/posix_spawnattr_setschedpolicy: New file.
90355         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
90356         modifications.
90357         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
90358         new module.
90360         New module 'posix_spawnattr_getschedpolicy'.
90361         * modules/posix_spawnattr_getschedpolicy: New file.
90362         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
90363         modifications.
90364         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
90365         new module.
90367         New module 'posix_spawnattr_setschedparam'.
90368         * modules/posix_spawnattr_setschedparam: New file.
90369         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
90370         modifications.
90371         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
90372         new module.
90374         New module 'posix_spawnattr_getschedparam'.
90375         * modules/posix_spawnattr_getschedparam: New file.
90376         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
90377         modifications.
90378         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
90379         new module.
90381         New module 'posix_spawnattr_setpgroup'.
90382         * modules/posix_spawnattr_setpgroup: New file.
90383         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
90384         modifications.
90385         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
90386         module.
90388         New module 'posix_spawnattr_getpgroup'.
90389         * modules/posix_spawnattr_getpgroup: New file.
90390         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
90391         modifications.
90392         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
90393         module.
90395         New module 'posix_spawnattr_setflags'.
90396         * modules/posix_spawnattr_setflags: New file.
90397         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
90398         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
90399         module.
90401         New module 'posix_spawnattr_getflags'.
90402         * modules/posix_spawnattr_getflags: New file.
90403         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
90404         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
90405         module.
90407         New module 'posix_spawnattr_init'.
90408         * modules/posix_spawnattr_init: New file.
90409         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
90410         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
90411         module.
90413         New module 'posix_spawn_file_actions_destroy'.
90414         * modules/posix_spawn_file_actions_destroy: New file.
90415         * lib/spawn_faction_destroy.c: New file, from GNU libc with
90416         modifications.
90417         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
90418         the new module.
90420         New module 'posix_spawn_file_actions_addopen'.
90421         * modules/posix_spawn_file_actions_addopen: New file.
90422         * lib/spawn_faction_addopen.c: New file, from GNU libc with
90423         modifications.
90424         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
90425         the new module.
90427         New module 'posix_spawn_file_actions_adddup2'.
90428         * modules/posix_spawn_file_actions_adddup2: New file.
90429         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
90430         modifications.
90431         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
90432         the new module.
90434         New module 'posix_spawn_file_actions_addclose'.
90435         * modules/posix_spawn_file_actions_addclose: New file.
90436         * lib/spawn_faction_addclose.c: New file, from GNU libc with
90437         modifications.
90438         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
90439         the new module.
90441         New module 'posix_spawn_file_actions_init'.
90442         * modules/posix_spawn_file_actions_init: New file.
90443         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
90444         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
90445         new module.
90447         New module 'posix_spawn-internal'.
90448         * modules/posix_spawn-internal: New file.
90449         * lib/spawn_int.h: New file, from GNU libc with modifications.
90450         * lib/spawni.c: New file, from GNU libc with modifications.
90451         * m4/posix_spawn.m4: New file.
90453         New module 'spawn'.
90454         * modules/spawn: New file.
90455         * lib/spawn.in.h: New file, from GNU libc with modifications.
90456         * m4/spawn_h.m4: New file.
90457         * doc/posix-headers/spawn.texi: Mention the new module.
90459 2008-09-28  Bruno Haible  <bruno@clisp.org>
90461         * modules/sched-tests: New file.
90462         * tests/test-sched.c: New file.
90464         New module 'sched'.
90465         * modules/sched: New file.
90466         * lib/sched.in.h: New file.
90467         * m4/sched_h.m4: New file.
90468         * doc/posix-headers/sched.texi: Mention the new module.
90470 2008-09-27  Eric Blake  <ebb9@byu.net>
90472         Fix previous patch, and tweak references to $0.
90473         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
90474         (func_version, func_gnulib_dir): Don't call this program
90475         gnulib-tool.
90476         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
90477         with using $0 in function.
90478         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
90479         (func_fatal_error): Reuse the name the user invoked us with.
90481 2008-09-27  Bruno Haible  <bruno@clisp.org>
90483         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
90484         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
90485         (gl_ICONV_H): Not here.
90486         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
90487         instead of assigning ICONV_H directly.
90489         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
90490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
90491         WCHAR_H directly.
90493 2008-09-27  Bruno Haible  <bruno@clisp.org>
90495         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
90496         * modules/arpa_inet (Depends-on): Add link-warning.
90497         (Makefile.am): Insert the definition of GL_LINK-WARNING.
90498         * modules/unistd (Makefile.am): Likewise.
90500 2008-09-26  Bruno Haible  <bruno@clisp.org>
90502         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
90503         variables.
90504         (func_version): Essentially copied from gnulib-tool.
90505         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
90506         func_readlink): Copied from gnulib-tool.
90508 2008-09-26  Bruno Haible  <bruno@clisp.org>
90510         * gnulib-tool (func_version): Change directory to $gnulib_dir before
90511         invoking git-version-gen.
90513 2008-09-26  Bruno Haible  <bruno@clisp.org>
90515         * posix-modules: Update to directory names changed on 2008-01-19.
90516         Remove commas in output before splitting into words. No more need to
90517         avoid 'ftruncate' since 2007-02-19.
90519 2008-09-26  Bruno Haible  <bruno@clisp.org>
90521         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
90523 2008-09-26  Bruno Haible  <bruno@clisp.org>
90525         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
90526         * modules/fwriteerror (Depends-on): Add errno.
90528 2008-09-26  Bruno Haible  <bruno@clisp.org>
90530         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
90531         * tests/test-vc-list-files-cvs.sh: Likewise.
90533 2008-09-26  Bruno Haible  <bruno@clisp.org>
90535         * doc/posix-headers/sys_resource.texi: Reorder items.
90537 2008-09-26  Jim Meyering  <meyering@redhat.com>
90539         fts: tweak inode comparison function
90540         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
90541         inode numbers, as documented.
90543         fts: sort dirent entries on inode number before traversing
90544         This avoids a quadratic, seek-related performance penalty when
90545         operating on a directory containing many entries (measurable at 10k;
90546         3.5 hours at 2 million entries with a cold cache) on certain types
90547         of file systems, including ext3 and ext4, but not tmpfs.
90548         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
90549         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
90550         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
90551         (fs_handles_readdir_ordered_dirents_efficiently): New function.
90552         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
90553         (fts_build): Set the stat.st_ino member from D_INO.
90554         If it is likely to be useful, sort dirent entries on inode number.
90556         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
90557         and the struct statfs.f_type member.
90558         * modules/fts (Depends-on): Add d-ino.
90560 2008-09-26  Bruno Haible  <bruno@clisp.org>
90562         * modules/sigpipe-die (Depends-on): Add sigpipe.
90564         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
90565         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
90566         and GNULIB_STDIO_H_SIGPIPE are set.
90567         * lib/stdio-write.c: New file.
90568         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
90569         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90570         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90571         REPLACE_STDIO_WRITE_FUNCS.
90572         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
90573         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90574         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90575         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90576         * modules/stdio (Files): Add lib/stdio-write.c.
90577         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
90578         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90579         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90580         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90581         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
90582         REPLACE_FPRINTF_POSIX.
90583         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
90584         REPLACE_PRINTF_POSIX.
90585         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
90586         REPLACE_VFPRINTF_POSIX.
90587         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
90588         REPLACE_VPRINTF_POSIX.
90589         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
90590         SIGPIPE issue.
90591         * doc/posix-functions/fputc.texi: Likewise.
90592         * doc/posix-functions/fputs.texi: Likewise.
90593         * doc/posix-functions/fwrite.texi: Likewise.
90594         * doc/posix-functions/printf.texi: Likewise.
90595         * doc/posix-functions/putc.texi: Likewise.
90596         * doc/posix-functions/putchar.texi: Likewise.
90597         * doc/posix-functions/puts.texi: Likewise.
90598         * doc/posix-functions/vfprintf.texi: Likewise.
90599         * doc/posix-functions/vprintf.texi: Likewise.
90601         * modules/safe-write (Depends-on): Add write.
90603         * modules/sigpipe-tests: New file.
90604         * tests/test-sigpipe.c: New file.
90605         * tests/test-sigpipe.sh: New file.
90607         * modules/write: New file.
90608         * lib/unistd.in.h: Include <sys/types.h>.
90609         (write): New declaration.
90610         * lib/write.c: New file.
90611         * m4/write.m4: New file.
90612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90613         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
90614         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
90615         GNULIB_WRITE, REPLACE_WRITE.
90616         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
90617         and the SIGPIPE issue.
90619         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
90620         (raise): New declaration.
90621         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
90622         (ext_signal): New function.
90623         (rpl_raise): New function.
90624         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
90625         GNULIB_SIGNAL_H_SIGPIPE.
90626         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
90627         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
90629         * modules/sigpipe: New file.
90630         * m4/sigpipe.m4: New file.
90632 2008-09-25  Derek Price  <derek@ximbiot.com>
90633             Bruno Haible  <bruno@clisp.org>
90635         * gnulib-tool (func_import): Report all license incompatibilities, not
90636         just the first one.
90638 2008-09-25  Bruno Haible  <bruno@clisp.org>
90640         * gnulib-tool (func_import): When computing the edits, consider not
90641         only the Makefile.ams that exist but also those that will be generated.
90643 2008-09-25  Simon Josefsson  <simon@josefsson.org>
90645         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
90646         fixes gnulib-tool --test warning about duplicate dependency.
90648 2008-09-25  Bruno Haible  <bruno@clisp.org>
90650         * gnulib-tool: Don't ask the user to perform edits in the generated
90651         Makefile.ams.
90652         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
90653         apply to the Makefile.am being generated.
90654         (func_emit_tests_Makefile_am): Execute edits that apply to the
90655         Makefile.am being generated.
90656         (func_import): Setup list of Makefile.am edits before emitting the
90657         Makefile.ams, not at the end.
90658         (func_create_testdir): Update.
90659         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90661 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90663         * gnulib-tool (func_import): Store the --tests-base option in the
90664         comment in gnulib-cache.m4.
90666 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
90668         * NEWS: Document increased portability that sys_select now provides.
90670         * lib/sys_select.in.h: Install select wrapper.
90671         * lib/sys_socket.in.h: Use more descriptive name when there is no
90672         select wrapper.
90673         * lib/winsock-select.c: New.
90674         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
90675         Require gl_HEADER_SYS_SOCKET.
90676         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
90677         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
90678         * tests/test-sys_select.c: Add functional tests.
90680 2008-09-24  Eric Blake  <ebb9@byu.net>
90682         open, fopen: close fd leak in last patch
90683         * lib/open.c (rpl_open): Close fd before returning error.
90684         * lib/fopen.c (rpl_fopen): Close fd before returning error.
90685         * doc/posix-functions/open.texi (open): Document that Irix also
90686         has the bug.
90687         * doc/posix-functions/fopen.texi (fopen): Likewise.
90688         Reported by Paolo Bonzini.
90690 2008-09-24  Bruno Haible  <bruno@clisp.org>
90692         Ensure that a filename ending in a slash cannot be used to access a
90693         non-directory.
90694         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
90695         to check whether it's really a directory.
90696         * lib/fopen.c: Include fcntl.h, unistd.h.
90697         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
90698         and fdopen().
90699         * modules/fopen (Depends-on): Add unistd.
90700         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
90701         * tests/test-fopen.c (main): Likewise.
90702         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
90703         * doc/posix-functions/fopen.texi: Likewise.
90704         Reported by Eric Blake.
90706 2008-09-23  Eric Blake  <ebb9@byu.net>
90708         c-stack: avoid compiler optimizations when provoking overflow
90709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
90710         recursion harder to optimize, to ensure a stack overflow occurs.
90711         * tests/test-c-stack.c (recurse): Likewise.
90712         Borrowed from libsigsegv.
90714         c-stack: work around Irix sigaltstack bug
90715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
90716         whether sigaltstack uses wrong end of stack_t (copied in part from
90717         libsigsegv).
90718         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
90719         Irix bug, without requiring an over-allocation.
90720         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
90721         bug.
90723         fopen: document mingw bug on directories
90724         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
90725         not allowing a stream visiting a directory, even though reading
90726         from such a stream is not portable.
90728 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90730         * lib/poll.c: Rewrite.
90731         * modules/poll: Depend on alloca.
90733 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90735         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
90736         instead define prototypes for a full set of wrappers.  Ensure
90737         that Cygwin does not use the compatibility code, which is only
90738         for MinGW.
90739         * lib/winsock.c: New.
90740         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
90741         * modules/sys_socket: Add lib/winsock.c.
90743         * modules/poll-tests: Add errno and perror.
90744         * tests/test-poll.c: Use ioctl, not ioctlsocket.
90746 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90748         * tests/test-poll.c: Downgrade minimum needed Winsock version.
90750 2008-09-23  Bruno Haible  <bruno@clisp.org>
90752         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
90753         * doc/glibc-functions/*: Likewise.
90755 2008-09-23  Simon Josefsson  <simon@josefsson.org>
90757         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
90758         success.
90760 2008-09-22  Eric Blake  <ebb9@byu.net>
90761             Bruno Haible  <bruno@clisp.org>
90763         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
90764         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
90765         supply %A but mishandle pseudo-NaN.
90766         Reported by Simon Josefsson.
90768 2008-09-21  Bruno Haible  <bruno@clisp.org>
90770         * tests/test-lock.c (main): Tweak skip message.
90771         * tests/test-tls.c (main): Likewise.
90773 2008-09-21  Bruno Haible  <bruno@clisp.org>
90775         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
90776         whether 'struct sigaction' has sa_sigaction here...
90777         (gl_PREREQ_SIG_HANDLER_H): ... not here.
90778         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
90780 2008-09-21  Bruno Haible  <bruno@clisp.org>
90782         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
90783         section.
90784         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
90785         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
90786         the new section.
90787         (Support for obsolete systems lacking POSIX:2001): New section.
90788         (String handling <string.h>): Move strdup to the new section.
90789         Suggested by Simon Josefsson and Paolo Bonzini.
90791 2008-09-21  Bruno Haible  <bruno@clisp.org>
90793         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
90794         exponents in %e and %g results on 'long double'. Needed for mingw's
90795         improved *printf functions.
90796         * tests/test-vasprintf-posix.c (test_function): Likewise.
90797         * tests/test-snprintf-posix.h (test_function): Likewise.
90798         * tests/test-sprintf-posix.h (test_function): Likewise.
90799         Reported by Eric Blake.
90801 2008-09-21  Bruno Haible  <bruno@clisp.org>
90803         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
90804         * tests/test-sprintf-posix.h (test_function): Likewise.
90806 2008-09-21  Bruno Haible  <bruno@clisp.org>
90808         * modules/getpass (Depends-on): Add strdup-posix.
90810         New module 'strdup-posix'.
90811         * modules/strdup-posix: New file.
90812         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
90813         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
90814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90815         REPLACE_STRDUP.
90816         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
90817         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
90818         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90819         strdup-posix.
90821         * modules/strdup (Depends-on): Remove malloc-posix.
90823 2008-09-20  Bruno Haible  <bruno@clisp.org>
90825         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
90826         Wildenhues.
90828 2008-09-20  Bruno Haible  <bruno@clisp.org>
90830         Ensure that wint_t gets defined on IRIX 5.3.
90831         * lib/wchar.in.h (wint_t): Define if not defined by the system.
90832         * lib/wctype.in.h (wint_t): Likewise.
90833         (__wctype_wint_t): Remove type.
90834         (isw*): Use wint_t instead of __wctype_wint_t.
90835         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
90836         * modules/wchar (Files): Add m4/wint_t.m4.
90837         (Makefile.am): Substitute HAVE_WINT_T.
90838         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
90839         * tests/test-wctype.c: Check that wint_t is defined.
90840         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
90841         * doc/posix-headers/wctype.texi: Likewise.
90842         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
90844 2008-09-18  Bruno Haible  <bruno@clisp.org>
90846         * gnulib-tool (func_exit): Update comment.
90848 2008-09-18  Simon Josefsson  <simon@josefsson.org>
90850         * modules/getaddrinfo (Depends-on): Remove strdup, this module
90851         assumes strdup exists and does not depend on strdup to return
90852         ENOMEM on out of memory conditions.
90854 2008-09-18  Bruno Haible  <bruno@clisp.org>
90856         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
90857         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
90858         digits for the exponent.
90860 2008-09-18  Jim Meyering  <meyering@redhat.com>
90861             Bruno Haible  <bruno@clisp.org>
90863         * lib/vasnprintf.c (decimal_point_char): Define also if
90864         NEED_PRINTF_INFINITE_LONG_DOUBLE.
90866 2008-09-16  Bruno Haible  <bruno@clisp.org>
90867         and Eric Blake  <ebb9@byu.net>
90869         vasnprintf: support Irix 5.3
90870         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
90871         that mishandle long double infinity.
90872         Reported by Tom G. Christensen.
90874 2008-09-16  Bruno Haible  <bruno@clisp.org>
90876         * doc/glibc-functions/scandir.texi: Mention the function is missing on
90877         Solaris 9.
90878         * doc/glibc-functions/alphasort.texi: Likewise.
90879         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
90881 2008-09-16  Jim Meyering  <meyering@redhat.com>
90883         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
90884         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
90885         a umask modification leak out of a subshell.  Otherwise, the
90886         opensolaris /bin/sh would be accepted and thus cause unwarranted
90887         failures in the coreutils test suite.
90889 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
90891         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
90892         to succeed.
90894 2008-09-16  Jim Meyering  <meyering@redhat.com>
90896         avoid spurious test failure when library is built without ACL support
90897         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
90898         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
90899         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
90900         * tests/test-copy-acl.sh: Likewise.
90902 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90904         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
90905         based on character occurrence counts.
90907 2008-09-15  Eric Blake  <ebb9@byu.net>
90909         tests: avoid some compiler warnings
90910         * tests/test-memchr.c (main): Pass NULL indirectly.
90911         * tests/test-closein.c (main): Avoid unused variable.
90913 2008-09-15  Bruno Haible  <bruno@clisp.org>
90915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
90916         are missing on OpenBSD 4.0 individually.
90917         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90919 2008-09-15  Bruno Haible  <bruno@clisp.org>
90921         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
90922         * doc/posix-functions/strerror.texi: Mention also Cygwin.
90923         * doc/posix-functions/perror.texi: Likewise.
90924         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
90925         is missing.
90926         Reported by Eric Blake.
90928         * lib/errno.in.h: Use replacement values >= 2000.
90929         Reported by Eric Blake.
90931 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90933         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
90934         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
90935         limit.
90936         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
90937         compareseq was aborted.
90939 2008-09-14  Bruno Haible  <bruno@clisp.org>
90941         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
90942         yvec_edit_count.
90943         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
90944         (fstrcmp_bounded): Simplify result computation accordingly.
90946 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90948         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
90949         (fstrcmp): Define in terms of fstrcmp_bounded.
90950         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
90951         lower_bound argument.
90952         Return quickly if the result is certainly < lower_bound.
90953         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
90955 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90957         * lib/diffseq.h (EARLY_ABORT): New macro.
90958         (compareseq): Change return type to bool. Return true when EARLY_ABORT
90959         evaluates to true.
90961 2008-09-14  Bruno Haible  <bruno@clisp.org>
90963         * modules/perror-tests: New file.
90964         * tests/test-perror.sh: New file.
90965         * tests/test-perror.c: New file.
90967         New module 'perror'.
90968         * lib/stdio.in.h (perror): New declaration.
90969         * lib/perror.c: New file.
90970         * m4/perror.m4: New file.
90971         * modules/perror: New file.
90972         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
90973         * doc/posix-functions/perror.texi: Mention the perror module.
90974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
90975         REPLACE_PERROR.
90976         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
90977         REPLACE_PERROR.
90979 2008-09-14  Bruno Haible  <bruno@clisp.org>
90981         * modules/stdio (Makefile.am): Reorder to match the order in
90982         lib/stdio.in.h.
90983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90985 2008-09-13  Bruno Haible  <bruno@clisp.org>
90987         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
90989 2008-09-13  Bruno Haible  <bruno@clisp.org>
90991         Extend strerror to cover the added errno values.
90992         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
90993         (rpl_strerror): Provide error messages for the added errno values and
90994         for the WSA* values.
90995         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
90996         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
90997         strerror.
90998         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
90999         * modules/strerror (Depends-on): Add errno.
91000         * doc/posix-functions/strerror.texi: Document the change.
91001         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
91002         and EOVERFLOW.
91004 2008-09-13  Bruno Haible  <bruno@clisp.org>
91006         * modules/EOVERFLOW: Remove file.
91007         * m4/eoverflow.m4: Remove file.
91008         * modules/EOVERFLOW-tests: Remove file.
91009         * tests/test-EOVERFLOW.c: Remove file.
91010         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
91011         * modules/ftell (Depends-on): Likewise.
91012         * modules/getdelim (Depends-on): Likewise.
91013         * modules/getugroups (Depends-on): Likewise.
91014         * modules/poll (Depends-on): Likewise.
91015         * modules/snprintf (Depends-on): Likewise.
91016         * modules/sprintf-posix (Depends-on): Likewise.
91017         * modules/vasnprintf (Depends-on): Likewise.
91018         * modules/vasprintf (Depends-on): Likewise.
91019         * modules/vfprintf-posix (Depends-on): Likewise.
91020         * modules/vsnprintf (Depends-on): Likewise.
91021         * modules/vsprintf-posix (Depends-on): Likewise.
91022         * modules/xvasprintf (Depends-on): Likewise.
91023         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91024         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
91025         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
91026         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
91027         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91028         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
91029         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
91030         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
91031         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91032         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
91033         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
91034         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
91035         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91036         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
91037         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
91038         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
91039         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91040         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
91041         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
91042         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
91043         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91044         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
91045         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
91046         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
91047         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
91048         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91049         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
91050         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
91051         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
91052         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
91053         * MODULES.html.sh: Remove EOVERFLOW.
91054         * NEWS: Mention the change.
91056 2008-09-13  Bruno Haible  <bruno@clisp.org>
91058         * modules/errno-tests: New file.
91059         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
91061         * lib/errno.in.h: New file.
91062         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
91063         * modules/errno: New file.
91064         * doc/posix-headers/errno.texi: Update documentation.
91065         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
91067 2008-09-13  Bruno Haible  <bruno@clisp.org>
91069         * tests/test-poll.c: Use #if for native Windows, rather than testing
91070         __MSVCRT__.
91072 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91073             Bruno Haible  <bruno@clisp.org>
91075         * lib/glob.c: Don't include <pwd.h> on native Windows.
91076         (WINDOWS32): New macro.
91077         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
91079 2008-09-13  Bruno Haible  <bruno@clisp.org>
91081         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
91082         (ETIMEDOUT): Remove macro.
91083         (glthread_cond_timedwait_multithreaded): New declaration.
91084         (glthread_cond_timedwait): Use it.
91085         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
91086         (glthread_cond_timedwait_multithreaded): New function.
91088 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91090         * modules/poll-tests: Do not check for io.h.
91091         * tests/test-poll.c: Check for __MSVCRT__ instead.
91093 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91095         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
91096         * modules/poll-tests: Add inet_pton, stdbool, sockets.
91097         * tests/test-poll.c: Use them.  Use _pipe on Windows.
91099 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91101         * modules/poll-tests: New.
91102         * tests/test-poll.c: New.
91104 2008-09-12  Eric Blake  <ebb9@byu.net>
91106         frexp: test for NetBSD failure on -0.0
91107         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
91108         not all, bugs from NetBSD 3.0 have been fixed.
91109         * doc/posix-functions/frexp.texi (frexp): Document bug.
91110         Reported by Thomas Klausner.
91112         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
91113         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
91114         literal -0.0.
91115         Reported by Jonathan C. Patschke <jp@centtech.com>.
91117 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91119         * lib/glthread/cond.h: Use dummy implementation also if
91120         USE_WIN32_THREADS.
91122 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91124         * modules/fnmatch-posix (License): Change to LGPLv2+.
91125         * modules/fnmatch-gnu (License): Likewise.
91127 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91129         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
91131 2008-09-11  Jim Meyering  <meyering@redhat.com>
91133         * users.txt: Add gtk-vnc.
91135 2008-09-08  Simon Josefsson  <simon@josefsson.org>
91137         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
91138         rotate amounts.
91140         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
91141         required for 16-bit and 8-bit rotates.
91142         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
91143         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
91144         UINT8_MAX instead of hard-coded constants.
91145         Suggested by Paul Eggert.
91147 2008-09-07  Bruno Haible  <bruno@clisp.org>
91149         * tests/test-striconveh.c (main): Check behaviour when converting from
91150         UTF-7.
91152         Make striconveh work better with stateful encodings.
91153         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
91154         that iconv does not increment the inptr when returning -1/EINVAL.
91156 2008-09-07  Bruno Haible  <bruno@clisp.org>
91158         * build-aux/config.rpath: Update according to libtool-2.2.6.
91159         * build-aux/config.libpath: Likewise.
91161 2008-09-06  Bruno Haible  <bruno@clisp.org>
91163         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
91164         * lib/freadptr.c (freadptr): Likewise.
91165         * lib/freadseek.c (freadptrinc): Likewise.
91166         Reported by Simon Josefsson.
91168 2008-09-06  Bruno Haible  <bruno@clisp.org>
91170         * modules/freadptr (License): Change to LGPLv2+.
91171         * modules/freadseek (License): Likewise.
91172         Suggested by Eric Blake.
91174         * modules/memchr2 (License): Change to LGPLv2+.
91175         Approved by Eric Blake.
91177 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91178             Bruno Haible  <bruno@clisp.org>
91180         Make gnulib-tool work with native 'sed' on AIX.
91181         * gnulib-tool (sed_noop): New variable.
91182         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
91183         func_add_or_update, func_create_testdir): Use it to initialize sed
91184         script variables.
91185         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91187 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
91188             Bruno Haible  <bruno@clisp.org>
91190         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
91191         also works after #include directives.
91193 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
91195         getdate.y: reject an out-of-range timezone value
91196         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
91197         the range [-24...+24].  When specified with only one or two digits,
91198         * tests/test-getdate.c: Tests for the fix.
91199         * doc/getdate.texi: Document this change.
91201 2008-09-03  Bruno Haible  <bruno@clisp.org>
91203         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
91205 2008-09-02  Simon Josefsson  <simon@josefsson.org>
91207         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
91208         <bruce.korb@gmail.com> with ideas from Ben Pfaff
91209         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
91210         Blake <ebb9@byu.net>.
91212         * tests/test-bitrotate.c: Add more test vectors.
91214 2008-09-02  Eric Blake  <ebb9@byu.net>
91216         vasnprintf-posix: handle large precision via %.*d
91217         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
91218         when handling it ourselves.
91219         * tests/test-vasnprintf-posix.c (test_function): Add test.
91220         * tests/test-snprintf-posix.h (test_function): Likewise.
91221         * tests/test-sprintf-posix.h (test_function): Likewise.
91222         * tests/test-vasprintf-posix.c (test_function): Likewise.
91223         Reported by Alain Guibert.
91225 2008-09-01  Eric Blake  <ebb9@byu.net>
91227         c-stack: make configure-time check more robust
91228         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
91229         successful sigaction call.
91230         Reported by Tom G. Christensen.
91232 2008-09-01  Bruno Haible  <bruno@clisp.org>
91234         New module 'findprog-lgpl'.
91235         * modules/findprog-lgpl: New file.
91236         * lib/findprog-lgpl.c: New file.
91237         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
91238         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
91239         to decide whether to use strdup or xstrdup, concatenated_filename or
91240         xconcatenated_filename.
91242 2008-09-01  Bruno Haible  <bruno@clisp.org>
91244         Split module 'concat-filename' into 'concat-filename' (LGPL) and
91245         'xconcat-filename' (GPL).
91246         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
91247         (License): Change to LGPLv2+.
91248         * modules/xconcat-filename: New file.
91249         * lib/concat-filename.h (concatenated_filename): Change specification.
91250         (xconcatenated_filename): New declaration.
91251         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
91252         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
91253         memory situations.
91254         * lib/xconcat-filename.c: New file.
91255         * NEWS: Mention the change.
91256         * lib/findprog.c: Include concat-filename.h, not filename.h.
91257         (find_in_path): Use xconcatenated_filename instead of
91258         concatenated_filename.
91259         * lib/javacomp.c: Include concat-filename.h, not filename.h.
91260         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91261         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91262         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91263         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
91264         instead of concatenated_filename.
91265         * lib/javaexec.c: Include concat-filename.h, not filename.h.
91266         (execute_java_class): Use xconcatenated_filename instead of
91267         concatenated_filename.
91268         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
91269         * modules/javacomp (Depends-on): Likewise.
91270         * modules/javaexec (Depends-on): Likewise.
91272 2008-09-01  Bruno Haible  <bruno@clisp.org>
91274         Split module 'filename' into 'filename' and 'concat-filename'.
91275         * modules/filename: Keep only lib/filename.h.
91276         (License): Change to LGPLv2+.
91277         * modules/concat-filename: New file, extracted from modules/filename.
91278         * lib/filename.h (concatenated_filename): Remove declaration.
91279         * lib/concat-filename.h: New file, extracted from lib/filename.h.
91280         * lib/concat-filename.c: Include concat-filename.h.
91281         * NEWS: Mention the change.
91283 2008-09-01  Simon Josefsson  <simon@josefsson.org>
91285         * lib/bitrotate.h (rotl8, rotr8): Add.
91287         * modules/bitrotate (configure.ac): Need
91288         AC_REQUIRE([AC_C_INLINE]).
91289         (Description): Mention stdint.h.  Reported by Bruno Haible
91290         <bruno@clisp.org>.
91292         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
91293         Paolo Bonzini <bonzini@gnu.org>.
91295 2008-08-31  Bruno Haible  <bruno@clisp.org>
91297         Assume Solaris specific bi-arch conventions on Solaris systems.
91298         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
91299         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
91300         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
91301         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
91302         like acl_libdirstem.
91303         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
91304         acl_libdirstem.
91305         * NEWS: Mention the change.
91306         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
91308 2008-08-31  Jim Meyering  <meyering@redhat.com>
91310         * lib/strftime.h: Add comments describing the two added arguments.
91312         remove duplicate #include directives
91313         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
91314         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
91316 2008-08-31  Bruno Haible  <bruno@clisp.org>
91318         New module 'sigpipe-die'.
91319         * modules/sigpipe-die: New file.
91320         * lib/sigpipe-die.h: New file.
91321         * lib/sigpipe-die.c: New file.
91322         * MODULES.html.sh (Signal handling): Add sigpipe-die.
91324 2008-08-31  Bruno Haible  <bruno@clisp.org>
91326         Don't override previously installed signal handlers.
91327         * lib/fatal-signal.c (saved_sigactions): New variable.
91328         (uninstall_handlers): Reset the signal to the saved handler, not
91329         to SIG_DFL (except when ignored).
91330         (install_handlers): Save the previous handlers.
91332 2008-08-30  Bruno Haible  <bruno@clisp.org>
91334         * gnulib-tool (func_reset_sigpipe): New function.
91335         (func_get_automake_snippet, func_modules_transitive_closure,
91336         func_import): Invoke it before a join command that reads from stdin,
91337         to avoid "echo: write error: Broken pipe" error messages on stderr.
91338         Reported by Sam Steingold <sds@gnu.org>.
91340 2008-08-30  Bruno Haible  <bruno@clisp.org>
91342         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
91343         Code copied from m4/open.m4.
91344         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
91345         access and the filename ends in a slash. Code copied from lib/open.c.
91346         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
91347         * tests/test-fopen.c (main): Check against bug with trailing slash.
91349 2008-08-29  Bruno Haible  <bruno@clisp.org>
91351         Avoid some "gcc -pedantic" warnings.
91352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
91353         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
91354         * lib/dirent.in.h: Likewise.
91355         * lib/fcntl.in.h: Likewise.
91356         * lib/float.in.h: Likewise.
91357         * lib/iconv.in.h: Likewise.
91358         * lib/inttypes.in.h: Likewise.
91359         * lib/locale.in.h: Likewise.
91360         * lib/math.in.h: Likewise.
91361         * lib/netinet_in.in.h: Likewise.
91362         * lib/search.in.h: Likewise.
91363         * lib/signal.in.h: Likewise.
91364         * lib/stdarg.in.h: Likewise.
91365         * lib/stdint.in.h: Likewise.
91366         * lib/stdio.in.h: Likewise.
91367         * lib/stdlib.in.h: Likewise.
91368         * lib/string.in.h: Likewise.
91369         * lib/strings.in.h: Likewise.
91370         * lib/sys_select.in.h: Likewise.
91371         * lib/sys_socket.in.h: Likewise.
91372         * lib/sys_stat.in.h: Likewise.
91373         * lib/sys_time.in.h: Likewise.
91374         * lib/sysexits.in.h: Likewise.
91375         * lib/time.in.h: Likewise.
91376         * lib/unistd.in.h: Likewise.
91377         * lib/wchar.in.h: Likewise.
91378         * lib/wctype.in.h: Likewise.
91379         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
91380         * modules/fchdir (Makefile.am): Likewise.
91381         * modules/fcntl (Makefile.am): Likewise.
91382         * modules/float (Makefile.am): Likewise.
91383         * modules/iconv_open (Makefile.am): Likewise.
91384         * modules/inttypes (Makefile.am): Likewise.
91385         * modules/locale (Makefile.am): Likewise.
91386         * modules/math (Makefile.am): Likewise.
91387         * modules/netinet_in (Makefile.am): Likewise.
91388         * modules/search (Makefile.am): Likewise.
91389         * modules/signal (Makefile.am): Likewise.
91390         * modules/stdarg (Makefile.am): Likewise.
91391         * modules/stdint (Makefile.am): Likewise.
91392         * modules/stdio (Makefile.am): Likewise.
91393         * modules/stdlib (Makefile.am): Likewise.
91394         * modules/string (Makefile.am): Likewise.
91395         * modules/strings (Makefile.am): Likewise.
91396         * modules/sys_select (Makefile.am): Likewise.
91397         * modules/sys_socket (Makefile.am): Likewise.
91398         * modules/sys_stat (Makefile.am): Likewise.
91399         * modules/sys_time (Makefile.am): Likewise.
91400         * modules/sysexits (Makefile.am): Likewise.
91401         * modules/time (Makefile.am): Likewise.
91402         * modules/unistd (Makefile.am): Likewise.
91403         * modules/wchar (Makefile.am): Likewise.
91404         * modules/wctype (Makefile.am): Likewise.
91405         Reported by Reuben Thomas <rrt@sc3d.org>.
91407 2008-08-29  Bruno Haible  <bruno@clisp.org>
91409         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
91410         any more.
91412 2008-08-29  Simon Josefsson  <simon@josefsson.org>
91414         * MODULES.html.sh (Misc): Add bitrotate.
91416         * modules/bitrotate: New file.
91418         * lib/bitrotate.h: New file.
91420         * modules/bitrotate-tests: New file.
91422         * tests/test-bitrotate.c: New file.
91424         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
91425         on the bitrotate module.
91427         * lib/arctwo.c: Use new bitrotate module.
91429 2008-08-29  Jim Meyering  <meyering@redhat.com>
91431         bootstrap: merge changes from coreutils
91432         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
91433         of copied files.  Remove a kludge, now that this is fixed.
91434         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
91435         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
91436         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
91438 2008-08-29  Bruno Haible  <bruno@clisp.org>
91440         * MODULES.html.sh: Remove --cvs-urls option.
91442 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
91444         maint.mk: adjust to file name change
91445         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
91447 2008-08-28  Jim Meyering  <meyering@redhat.com>
91449         * modules/getndelim2 (License): Relicense to LGPLv2+.
91450         Approved by Richard Stallman for the version of 1995, and by
91451         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
91453 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
91455         * lib/getdelim.c (flockfile, funlockfile): Make all of them
91456         dummy if one is not available.  Do not touch them if
91457         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
91458         (getc_maybe_unlocked): New.
91459         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
91461 2008-08-26  Eric Blake  <ebb9@byu.net>
91463         doc/INSTALL: resync from autoconf
91464         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
91465         (INSTALL_PRELUDE): Delete; this is done more efficiently by
91466         moving...
91467         * install.texi [!autoconf]: ...here.  Resync from autoconf.
91468         * INSTALL: Regenerate.
91469         * INSTALL.ISO: New file.
91470         * INSTALL.UTF-8: Likewise.
91472 2008-08-26  Jim Meyering  <meyering@redhat.com>
91474         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
91475         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
91476         these definitions conditional, so that they may be overridden, too.
91478 2008-08-26  Bruno Haible  <bruno@clisp.org>
91480         Generate INSTALL file variants with prettier quotes.
91481         * doc/Makefile (INSTALL_PRELUDE): New macro.
91482         (INSTALL): Use it.
91483         (INSTALL.ISO, INSTALL.UTF-8): New rules.
91485 2008-08-26  Bruno Haible  <bruno@clisp.org>
91487         Run makeinfo in an English locale.
91488         * doc/Makefile (MAKEINFO): New variable.
91490 2008-08-26  Bruno Haible  <bruno@clisp.org>
91492         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
91493         Suggested by Eric Blake.
91495 2008-08-25  Bruno Haible  <bruno@clisp.org>
91497         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
91499 2008-08-25  Eric Blake  <ebb9@byu.net>
91501         c-stack: test that stack overflow can be caught
91502         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
91503         that platform allows handling stack overflow; at least OS/2 EMX
91504         has sigaltstack, but crashes before transferring control to
91505         handler on stack overflow.
91506         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
91507         check for HAVE_STACK_OVERFLOW_HANDLING.
91508         Reported by Elbert Pol.
91510 2008-08-25  Bruno Haible  <bruno@clisp.org>
91512         * doc/posix-functions/strftime.texi: Fix description of strftime
91513         module.
91515 2008-08-24  Bruno Haible  <bruno@clisp.org>
91517         * tests/uniwidth/test-uc_width2.c: New file.
91518         * tests/uniwidth/test-uc_width2.sh: New file.
91519         * modules/uniwidth/width-tests (Files): Add the new files.
91520         (TESTS): Add uniwidth/test-uc_width2.sh.
91521         (TESTS_ENVIRONMENT): New variable.
91522         (check_PROGRAMS): Add test-uc_width2.
91523         (test_uc_width2_SOURCES): New variable.
91525         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
91526         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
91527         not 0x00AB.
91528         Reported by Alexander V. Lukyanov <lav@netis.ru>.
91530 2008-08-22  Eric Blake  <ebb9@byu.net>
91532         test-lock, test-tls: mention why a test is skipped
91533         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
91534         skipped.
91535         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
91537         count-one-bits: relax license
91538         * modules/count-one-bits (License): Relicense to LGPLv2+.
91539         Suggested by Ludovic Courtès, approved by Ben Pfaff.
91541 2008-08-22  Andreas Schwab  <schwab@suse.de>
91543         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
91544         Remove spurious space in assignment.
91546 2008-08-21  Simon Josefsson  <simon@josefsson.org>
91548         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
91549         Paul Eggert <eggert@CS.UCLA.EDU>.
91551 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
91553         * modules/gettext: Add m4/threadlib.m4.
91555 2008-08-19  Eric Blake  <ebb9@byu.net>
91557         test-c-stack: fix compilation failure on FreeBSD 5.0
91558         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
91559         headers before <sys/resource.h>.
91560         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
91561         the bug.
91562         Reported by Nelson H. F. Beebe.
91564         strverscmp: migrate from "strverscmp.h" to <string.h>
91565         * modules/string (Makefile.am): Add new hooks.
91566         * modules/strverscmp (Files): Remove strverscmp.h.
91567         (Depends-on): Add string.
91568         (configure.ac): Add indicator.
91569         (Include): Mention new header.
91570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
91571         defaults.
91572         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
91573         results.
91574         * lib/strverscmp.h: Delete.
91575         * lib/string.in.h (strverscmp): Provide declaration, when needed.
91576         * tests/test-strverscmp.c (includes): Adjust client.
91577         * lib/check-version.c (includes): Likewise.
91578         * NEWS: Document the change.
91580         strverscmp: add unit test
91581         * modules/strverscmp-tests: New file.
91582         * tests/test-strverscmp.c: Likewise.
91584 2008-08-19  Simon Josefsson  <simon@josefsson.org>
91586         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
91587         regarding Windows crypto stuff, from Mono.
91589 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
91591         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
91592         if present, for intel RND.  Return error on failures.
91594 2008-08-18  Ben Pfaff  <blp@gnu.org>
91596         gitlog-to-changelog: give better diagnostic for failed pipe-open
91597         * build-aux/gitlog-to-changelog: Improve error message: suggest
91598         that the version of Git may be too old.
91600 2008-08-18  Simon Josefsson  <simon@josefsson.org>
91602         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
91603         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
91605 2008-08-18  Bruno Haible  <bruno@clisp.org>
91607         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
91608         pthread_in_use().
91610 2008-08-18  Bruno Haible  <bruno@clisp.org>
91612         * lib/glthread/threadlib.c: Include <pthread.h>.
91614 2008-08-18  Bruno Haible  <bruno@clisp.org>
91616         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
91617         glthread_recursive_lock_* macros.
91618         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
91619         Fix syntax error.
91621 2008-08-18  Bruno Haible  <bruno@clisp.org>
91623         * lib/glthread/thread.c: Avoid forcing a context switch right after
91624         thread creation.
91626 2008-08-17  Bruno Haible  <bruno@clisp.org>
91628         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
91629         * lib/glthread/thread.h: Provide Win32 specific implementation.
91630         * modules/thread (Files): Add lib/glthread/thread.c.
91631         (Depends-on): Add lock.
91632         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
91634 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91636         New module 'yield'.
91637         * modules/yield: New file.
91638         * lib/glthread/yield.h: New file.
91639         * m4/yield.m4: New file.
91640         * MODULES.html.sh (Multithreading): Add yield.
91642 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91644         New module 'thread'.
91645         * modules/thread: New file.
91646         * lib/glthread/thread.h: New file.
91647         * m4/thread.m4: New file.
91648         * MODULES.html.sh (Multithreading): Add thread.
91650 2008-08-17  Bruno Haible  <bruno@clisp.org>
91652         * lib/glthread/lock.h: Include <stdlib.h> always.
91653         * lib/glthread/tls.h: Likewise.
91654         * lib/glthread/cond.h: Likewise.
91656 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91658         New module 'cond'.
91659         * modules/cond: New file.
91660         * lib/glthread/cond.h: New file.
91661         * lib/glthread/cond.c: New file.
91662         * m4/cond.m4: New file.
91663         * MODULES.html.sh (Multithreading): Add cond.
91665 2008-08-16  Eric Blake  <ebb9@byu.net>
91667         c-stack: fix regression on Irix 5.3 from 2008-06-21
91668         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
91669         sa_sigaction...
91670         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
91671         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
91672         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
91673         * modules/signal (Makefile.am): Use the value.
91674         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
91675         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
91676         * doc/posix-headers/signal.texi (signal.h): Document this
91677         portability issue.
91678         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
91679         Reported by Tom G. Christensen.
91681 2008-08-17  Bruno Haible  <bruno@clisp.org>
91683         New module 'threadlib'.
91684         * modules/threadlib: New file.
91685         * lib/glthread/threadlib.c: New file, extracted from
91686         lib/glthread/lock.c.
91687         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
91688         functions.
91689         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
91690         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
91691         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
91692         macros.
91693         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
91694         (gl_DISABLE_THREADS): Remove macro.
91695         * modules/lock (Files): Remove build-aux/config.rpath.
91696         (Depends-on): Remove havelib. Add threadlib.
91697         (configure.ac-early): Remove section.
91698         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
91699         * modules/tls (Depends-on): Remove lock. Add threadlib.
91700         (Link): New section, copied from threadlib.
91701         * MODULES.html.sh (Multithreading): Add threadlib.
91703 2008-08-14  Bruno Haible  <bruno@clisp.org>
91705         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
91706         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
91707         glthread_rwlock_unlock, glthread_rwlock_destroy,
91708         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
91709         glthread_recursive_lock_destroy): Define as macros always.
91710         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
91711         glthread_lock_lock.
91712         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
91713         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
91714         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
91715         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
91716         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
91717         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
91718         (glthread_recursive_lock_lock_func): Renamed from
91719         glthread_recursive_lock_lock.
91720         (glthread_recursive_lock_unlock_func): Renamed from
91721         glthread_recursive_lock_unlock.
91722         (glthread_recursive_lock_destroy_func): Renamed from
91723         glthread_recursive_lock_destroy.
91725 2008-08-14  Bruno Haible  <bruno@clisp.org>
91727         * lib/glthread/lock.h: Renamed from lib/lock.h.
91728         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
91729         * lib/glthread/tls.h: Renamed from lib/tls.h.
91730         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
91731         * lib/fstrcmp.c: Update includes.
91732         * lib/strsignal.c: Update includes.
91733         * modules/lock (Files, Makefile.am): Update.
91734         (Include): Change to "glthread/lock.h".
91735         * modules/tls (Files, Makefile.am): Update.
91736         (Include): Change to "glthread/tls.h".
91737         * tests/test-lock.c: Update includes.
91738         * tests/test-tls.c: Update includes.
91739         * NEWS: Mention the renamed header files.
91741 2008-08-11  Jim Meyering  <meyering@redhat.com>
91743         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
91745 2008-08-11  Eric Blake  <ebb9@byu.net>
91747         test-c-stack: avoid C99-ism
91748         * tests/test-c-stack.c (main): Fix whitespace, move declaration
91749         before statement.
91750         Reported by Alain Guibert.
91752 2008-08-10  Jim Meyering  <meyering@redhat.com>
91754         ensure that return value of uinttostr et al are not ignored
91755         * lib/inttostr.h (__GNUC_PREREQ): Define.
91756         (__attribute_warn_unused_result__): Define.
91757         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
91759 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
91761         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
91762         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
91764 2008-08-07  Jim Meyering  <meyering@redhat.com>
91766         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
91768         * modules/mkstemp (License): Relicense under LGPLv2+.
91769         * modules/tempname (License): Likewise.
91771 2008-08-06  Bruno Haible  <bruno@clisp.org>
91773         * lib/poll.c (poll): Further micro-optimization.
91775 2008-08-06  Jim Meyering  <meyering@redhat.com>
91777         inet_pton.c: use locale-independent tolower
91778         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
91779         (inet_pton6): Use c_tolower rather than tolower.
91780         * modules/inet_pton (Depends-on): Add c-ctype.
91782 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
91784         * lib/poll.c (poll): Avoid division when timeout is 0, cache
91785         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
91787 2008-08-06  Jim Meyering  <meyering@redhat.com>
91789         * modules/inet_pton (License): Relicense under LGPLv2+.
91791 2008-08-03  Bruno Haible  <bruno@clisp.org>
91793         Additional non-aborting API for lock and tls.
91794         * lib/lock.h: Include <errno.h>.
91795         (glthread_lock_init): New macro/function.
91796         (gl_lock_init): Define as wrapper around glthread_lock_init.
91797         (glthread_lock_lock): New macro/function.
91798         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
91799         (glthread_lock_unlock): New macro/function.
91800         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
91801         (glthread_lock_destroy): New macro/function.
91802         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
91803         (glthread_rwlock_init): New macro/function.
91804         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
91805         (glthread_rwlock_rdlock): New macro/function.
91806         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
91807         (glthread_rwlock_wrlock): New macro/function.
91808         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
91809         (glthread_rwlock_unlock): New macro/function.
91810         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
91811         (glthread_rwlock_destroy): New macro/function.
91812         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
91813         (glthread_recursive_lock_init): New macro/function.
91814         (gl_recursive_lock_init): Define as wrapper around
91815         glthread_recursive_lock_init.
91816         (glthread_recursive_lock_lock): New macro/function.
91817         (gl_recursive_lock_lock): Define as wrapper around
91818         glthread_recursive_lock_lock.
91819         (glthread_recursive_lock_unlock): New macro/function.
91820         (gl_recursive_lock_unlock): Define as wrapper around
91821         glthread_recursive_lock_unlock.
91822         (glthread_recursive_lock_destroy): New macro/function.
91823         (gl_recursive_lock_destroy): Define as wrapper around
91824         glthread_recursive_lock_destroy.
91825         (glthread_once): New macro/function.
91826         (gl_once): Define as wrapper around glthread_once.
91827         Update function declarations.
91828         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
91829         glthread_rwlock_init. Return error code.
91830         (glthread_rwlock_rdlock_multithreaded): Renamed from
91831         glthread_rwlock_rdlock. Return error code.
91832         (glthread_rwlock_wrlock_multithreaded): Renamed from
91833         glthread_rwlock_wrlock. Return error code.
91834         (glthread_rwlock_unlock_multithreaded): Renamed from
91835         glthread_rwlock_unlock. Return error code.
91836         (glthread_rwlock_destroy_multithreaded): Renamed from
91837         glthread_rwlock_destroy. Return error code.
91838         (glthread_recursive_lock_init_multithreaded): Renamed from
91839         glthread_recursive_lock_init. Return error code.
91840         (glthread_recursive_lock_lock_multithreaded): Renamed from
91841         glthread_recursive_lock_lock. Return error code.
91842         (glthread_recursive_lock_unlock_multithreaded): Renamed from
91843         glthread_recursive_lock_unlock. Return error code.
91844         (glthread_recursive_lock_destroy_multithreaded): Renamed from
91845         glthread_recursive_lock_destroy. Return error code.
91846         (glthread_once_call): Make static.
91847         (glthread_once_multithreaded): Renamed from glthread_once.
91848         * lib/tls.h: Include <errno.h>.
91849         (glthread_tls_key_init): New macro/function.
91850         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
91851         (glthread_tls_set): New macro/function.
91852         (gl_tls_set): Define as wrapper around glthread_tls_set.
91853         (glthread_tls_key_destroy): New macro/function.
91854         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
91855         Update function declarations.
91856         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
91857         glthread_tls_get.
91858         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91860 2008-08-04  Eric Blake  <ebb9@byu.net>
91862         gnumakefile: use space, not TAB, outside of targets
91863         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
91865 2008-08-02  Jim Meyering  <meyering@redhat.com>
91867         getdate.y: avoid locale-dependent date parsing failure
91868         In Turkish locales, getdate would fail to recognize keywords
91869         containing a lowercase "i".  The solution is not to rely on
91870         locale-sensitive case-conversion.
91871         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
91872         (lookup_word): Use c_toupper in place of toupper.
91873         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
91874         Reported by Vefa Bicakci <bicave@superonline.com> in
91875         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
91876         * modules/getdate (Depends-on): Add c-ctype.
91878 2008-08-02  Bruno Haible  <bruno@clisp.org>
91880         * gnulib-tool (func_import): When updating or creating a .gitignore
91881         file, prepend each added line with a slash, and ignore leading slashes
91882         from the existing lines.
91883         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
91885 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91887         Portability fix for GNU make 3.79.1.
91888         * top/GNUmakefile: Avoid 'else COND', which older GNU make
91889         versions do not understand.
91891 2008-08-01  Bruno Haible  <bruno@clisp.org>
91893         Work around bug of HP-UX 10.20 cc with -0.0 literal.
91894         * tests/test-isnanf.h (zero): New variable.
91895         (main): Avoid literal -0.0f.
91896         * tests/test-isnand.h (zero): New variable.
91897         (main): Avoid literal -0.0.
91898         * tests/test-isnanl.h (zero): New variable.
91899         (main): Avoid literal -0.0L.
91900         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
91901         (test_float, test_double, test_long_double): Avoid literals -0.0f,
91902         -0.0, -0.0L.
91903         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
91904         (test_signbitd): Avoid literal -0.0.
91905         (test_signbitl): Avoid literal -0.0L.
91906         * tests/test-ceilf1.c (zero): New variable.
91907         (main): Avoid literal -0.0f.
91908         * tests/test-ceill.c (zero): New variable.
91909         (main): Avoid literal -0.0L.
91910         * tests/test-floorf1.c (zero): New variable.
91911         (main): Avoid literal -0.0f.
91912         * tests/test-floorl.c (zero): New variable.
91913         (main): Avoid literal -0.0L.
91914         * tests/test-roundf1.c (zero): New variable.
91915         (main): Avoid literal -0.0f.
91916         * tests/test-round1.c (zero): New variable.
91917         (main): Avoid literal -0.0.
91918         * tests/test-roundl.c (zero): New variable.
91919         (main): Avoid literal -0.0L.
91920         * tests/test-truncf1.c (zero): New variable.
91921         (main): Avoid literal -0.0f.
91922         * tests/test-trunc1.c (zero): New variable.
91923         (main): Avoid literal -0.0.
91924         * tests/test-truncl.c (zero): New variable.
91925         (main): Avoid literal -0.0L.
91926         * tests/test-frexp.c (zero): New variable.
91927         (main): Avoid literal -0.0.
91928         * tests/test-frexpl.c (zero): New variable.
91929         (main): Avoid literal -0.0L.
91930         * tests/test-ldexpl.c (zero): New variable.
91931         (main): Avoid literal -0.0L.
91932         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
91933         (zerod, zerol): New variables.
91934         (test_function): Avoid literals -0.0, -0.0L.
91935         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
91936         (zerod, zerol): New variables.
91937         (test_function): Avoid literals -0.0, -0.0L.
91938         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
91939         (zerod, zerol): New variables.
91940         (test_function): Avoid literals -0.0, -0.0L.
91941         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
91942         (zerod, zerol): New variables.
91943         (test_function): Avoid literals -0.0, -0.0L.
91944         * tests/test-strtod.c (zero): New variable.
91945         (main): Avoid literal -0.0.
91946         Reported by Jonathan C. Patschke <jp@centtech.com>.
91948 2008-07-31  Jim Meyering  <meyering@redhat.com>
91950         sha256.h: correct definition of SHA224_DIGEST_SIZE
91951         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
91952         Reported by Paulie Pena IV <paulie4@gmail.com>.
91953         Define as 224 / 8, rather than as a literal.
91954         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
91955         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
91956         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
91958 2008-07-31  Bruno Haible  <bruno@clisp.org>
91960         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
91961         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
91962         Reported by Jonathan Patschke <jp@centtech.com>.
91964 2008-07-31  Bruno Haible  <bruno@clisp.org>
91966         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
91967         Reported by Paolo Bonzini <bonzini@gnu.org>.
91969 2008-07-30  Eric Blake  <ebb9@byu.net>
91971         test-strtod: allow compilation without -lm
91972         * tests/test-strtod.c (main): Avoid link dependence on fabs.
91973         Reported by Dennis Clarke <blastwave@gmail.com>.
91975 2008-07-28  Jim Meyering  <meyering@redhat.com>
91977         bootstrap: work also when there are no .po files in po/
91978         * build-aux/bootstrap (update_po_files): Complete the change
91979         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
91981 2008-07-27  Jim Meyering  <meyering@redhat.com>
91983         * users.txt: Add zile.
91985 2008-07-26  Ben Pfaff  <blp@gnu.org>
91987         Add missing dependencies on new m4/exponent[fdl].m4 files.
91988         * modules/isnanf-nolibm: Add m4/exponentf.m4.
91989         * modules/isnand-nolibm: Add m4/exponentd.m4.
91990         * modules/isnanl-nolibm: Add m4/exponentl.m4.
91991         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
91992         m4/isnan[fdl].m4, because the macros actually used moved.
91993         Reported by Jim Meyering.
91995 2008-07-14  Ben Pfaff  <blp@gnu.org>
91997         Add isinf module.
91998         * lib/isinf.c: New file.
91999         * lib/math.in.h: Define isinf macro if we have decided to replace
92000         it.
92001         * m4/isinf.m4: New file.
92002         * m4/math_h.m4: Initialize and substitute variables for isinf
92003         module.
92004         * modules/isinf: New file.
92005         * modules/isinf-tests: New file.
92006         * modules/math: Add substitutions for new module.
92007         * tests/test-isinf.c: New file.
92008         * doc/posix-functions/isinf.texi: Mention new module.
92009         * MODULES.html.sh: Mention new module.
92011 2008-07-14  Ben Pfaff  <blp@gnu.org>
92013         Factor out some macros for use by additional modules.
92014         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
92015         exponentf.m4.
92016         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
92017         exponentd.m4.
92018         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
92019         file exponentl.m4.
92020         * m4/exponentf.m4: New file.
92021         * m4/exponentd.m4: New file.
92022         * m4/exponentl.m4: New file.
92023         * modules/isnanf: Use new file m4/exponentf.m4.
92024         * modules/isnand: Use new file m4/exponentd.m4.
92025         * modules/isnanl: Use new file m4/exponentl.m4.
92027 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
92029         mktime.c: normalize tp->tm_isdst value to -1/0/1.
92030         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
92031         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
92032         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
92034         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
92035         readlink on platforms without PATH_MAX.
92037 2008-07-21  Eric Blake  <ebb9@byu.net>
92039         Warn, not fail, on stale version.
92040         * top/GNUmakefile (_curr-ver): Tone down previous patch.
92042         Don't allow installation with stale devel version number.
92043         * top/GNUmakefile (_is-install-target): New macro.
92044         (_curr-ver): Forbid installation with stale version number.
92046 2008-07-20  Bruno Haible  <bruno@clisp.org>
92048         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
92049         TESTS_ENVIRONMENT.
92050         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
92052 2008-07-20  Bruno Haible  <bruno@clisp.org>
92054         * lib/c-stack.h (c_stack_action): Add documentation.
92055         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
92057 2008-07-20  Bruno Haible  <bruno@clisp.org>
92059         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
92060         * modules/readlink (License): Likewise.
92062 2008-07-17  Eric Blake  <ebb9@byu.net>
92064         * modules/c-stack (Link): Fix typo.
92066         Make c-stack use libsigsegv, when available.
92067         * modules/c-stack (Depends-on): Add libsigsegv.
92068         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
92069         needed.
92070         * lib/c-stack.c (SIGSTKSZ): Define fallback.
92071         (segv_handler, overflow_handler, c_stack_action)
92072         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
92073         implementation when libsigsegv is available, but only when using
92074         the library is necessary.
92075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
92076         comment, explaining why XSI check fails on Linux.
92077         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
92078         * tests/test-c-stack2.sh: Tweak skip message.
92079         * NEWS: Document new link-time requirements.
92081 2008-07-16  Eric Blake  <ebb9@byu.net>
92083         c-stack: Expose false positives when not using libsigsegv.
92084         * modules/c-stack-tests (Files): Expand test.
92085         * tests/test-c-stack.c (main): Add means to conditionally trigger
92086         non-overflow SIGSEGV.
92087         * tests/test-c-stack2.sh: New file.
92089 2008-07-14  Bruno Haible  <bruno@clisp.org>
92091         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
92092         Reported by Eric Blake.
92094 2008-07-14  Sam Steingold  <sds@gnu.org>
92095             Bruno Haible  <bruno@clisp.org>
92097         New module libsigsegv.
92098         * modules/libsigsegv: New file.
92099         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
92100         modifications.
92101         * MODULES.html.sh (Signal handling): New section.
92103 2008-07-14  Bruno Haible  <bruno@clisp.org>
92105         * modules/unictype/ctype-* (Description): Add the word "function".
92106         Improves the resulting doc in MODULES.html.
92108 2008-07-12  Ben Pfaff  <blp@gnu.org>
92110         Add longlong module.
92111         * modules/longlong: New file.
92113 2008-07-12  Bruno Haible  <bruno@clisp.org>
92115         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
92116         to empty.
92118 2008-07-10  Ben Pfaff  <blp@gnu.org>
92120         Add isnan module.
92121         * doc/posix-functions/isnan.texi: Mention new module.
92122         * lib/math.in.h: Define isnan macro if we have decided to replace
92123         it.
92124         * m4/isnan.m4: New file.
92125         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
92126         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
92127         also.
92128         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
92129         redundancy.
92130         * m4/math_h.m4: Initialize and substitute variables for isnan
92131         module.
92132         * modules/isnan: New file.
92133         * modules/isnan-tests: New file.
92134         * modules/math: Add substitutions for new module.
92135         * tests/test-isnan.c: New file.
92136         * MODULES.html.sh: Mention new module.
92138 2008-07-10  Ben Pfaff  <blp@gnu.org>
92140         Add isnanf module.
92141         * lib/isnanf.m4: New file.
92142         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
92143         (gl_HAVE_ISNANF_IN_LIBM): New macro.
92144         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
92145         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
92146         * modules/isnanf: New file.
92147         * modules/isnanf-tests: New file.
92148         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
92149         files.
92150         * tests/test-isnanf-nolibm.c: factored most of its contents into
92151         new file tests/test-isnanf.h.
92152         * tests/test-isnanf.h: New file.
92153         * tests/test-isnanf.c: New file.
92154         * MODULES.html.sh: Mention new module.
92155         * doc/glibc-functions/isnanf.texi: Mention new module.
92157 2008-07-10  Ben Pfaff  <blp@gnu.org>
92159         Add isnand module.
92160         * lib/isnand.h: New file.
92161         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
92162         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
92163         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
92164         functionality also.
92165         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
92166         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
92167         (gl_HAVE_ISNAND_IN_LIBM): New macro.
92168         * modules/isnand: New file.
92169         * modules/isnand-tests: New file.
92170         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
92171         files.
92172         * tests/test-isnand-nolibm.c: factored most of its contents into
92173         new file tests/test-isnand.h.
92174         * tests/test-isnand.h: New file.
92175         * tests/test-isnand.c: New file.
92176         * MODULES.html.sh: Mention new module.
92178 2008-07-10  Ben Pfaff  <blp@gnu.org>
92180         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
92181         * lib/isnand.h: Rename lib/isnand-nolibm.h.
92182         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
92183         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
92184         * modules/isnanf-nolibm: Update references to renamed files.
92185         * modules/isnand-nolibm: Likewise.
92186         * modules/isnanf-nolibm-tests: Likewise.
92187         * modules/isnand-nolibm-tests: Likewise.
92188         * lib/frexp.c: Likewise.
92189         * lib/isfinite.c: Likewise.
92190         * lib/signbitd.c: Likewise.
92191         * lib/signbitf.c: Likewise.
92192         * lib/vasnprintf.c: Likewise.
92193         * tests/test-ceilf1.c: Likewise.
92194         * tests/test-ceilf2.c: Likewise.
92195         * tests/test-floorf1.c: Likewise.
92196         * tests/test-floorf2.c: Likewise.
92197         * tests/test-frexp.c: Likewise.
92198         * tests/test-round1.c: Likewise.
92199         * tests/test-round2.c: Likewise.
92200         * tests/test-roundf1.c: Likewise.
92201         * tests/test-strtod.c: Likewise.
92202         * tests/test-trunc1.c: Likewise.
92203         * tests/test-trunc2.c: Likewise.
92204         * tests/test-truncf1.c: Likewise.
92205         * tests/test-truncf2.c: Likewise.
92206         * NEWS: Mention the renamed header files.
92208 2008-07-11  Jim Meyering  <meyering@redhat.com>
92210         vc-list-files: make the last-resort awk code more portable
92211         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
92212         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
92213         does not support it.
92215 2008-07-10  Eric Blake  <ebb9@byu.net>
92217         Work with tar's bootstrap.
92218         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
92219         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
92220         an m4 comment.
92222 2008-07-09  Jim Meyering  <meyering@redhat.com>
92224         posix-shell.m4: fix typo that made this test malfunction
92225         * m4/posix-shell.m4: Remove capitalization in variable name.
92227 2008-07-08  Bruno Haible  <bruno@clisp.org>
92229         * m4/onceonly.m4: Update comments.
92230         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92232 2008-07-04  Jim Meyering  <meyering@redhat.com>
92234         * users.txt: Add vc-dwim.
92235         (bison, coreutils): Use the gitweb URL.
92237 2008-07-03  Jim Meyering  <meyering@redhat.com>
92239         * users.txt: Add libffcall.  From Sam Steingold.
92241 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
92243         getdate.y: do not ignore TZ with relative day, month or year offset
92244         * lib/getdate.y (get_date): Move the tz-handling block to follow the
92245         relative-date-handling, since otherwise, the latter would clobber the
92246         sole output (an updated Start value) of the tz-handling block.
92247         * tests/test-getdate.c: Tests for the fix
92249 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92251         Recognize 'foo_LIBRARIES += libgnu.a'.
92252         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
92253         makefile snippet has already specified an installation location,
92254         also using '+='.
92256 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
92258         getdate.y: factor out common actions
92259         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
92260         Use them in place of open-coded actions.
92262 2008-07-01  Simon Josefsson  <simon@josefsson.org>
92264         Add self-test for getdate module.
92265         * modules/getdate-tests: New file.
92266         * tests/test-getdate.c: New file.
92268 2008-06-29  Bruno Haible  <bruno@clisp.org>
92270         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
92271         .gitignore.
92272         Reported by Sylvain Beucler <beuc@beuc.net>.
92274 2008-06-29  Bruno Haible  <bruno@clisp.org>
92276         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
92277         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
92279 2008-06-29  Bruno Haible  <bruno@clisp.org>
92281         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
92282         EXTRA_DIST.
92283         Reported by Sylvain Beucler <beuc@beuc.net>.
92285 2008-06-26  Jim Meyering  <meyering@redhat.com>
92287         make several modules depend on the "open" module
92288         This provides slightly increased consistency when opening-for-write
92289         the name of a non-directory spelled with a trailing slash.
92290         * modules/chdir-safer: Likewise.
92291         * modules/chown: Likewise.
92292         * modules/clean-temp: Likewise.
92293         * modules/copy-file: Likewise.
92294         * modules/fchdir: Likewise.
92295         * modules/fcntl-safer: Likewise.
92296         * modules/pipe: Likewise.
92297         * modules/utime: Likewise.
92298         Prompted by Eric Blake and Bruno Haible.
92300 2008-06-24  Andreas Schwab  <schwab@suse.de>
92302         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
92303         literals can be used as initializers for global variables.
92305 2008-06-23  Eric Blake  <ebb9@byu.net>
92307         Make gnulib-cache.m4 easier to diff.
92308         * gnulib-tool (func_import): Allow newlines when reading cached
92309         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
92311 2008-06-23  Bruno Haible  <bruno@clisp.org>
92313         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
92314         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
92315         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
92316         m4/signalblocking.m4.
92317         (gl_PREREQ_SIGACTION): Don't invoke it.
92318         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
92319         gl_PREREQ_SIG_HANDLER_H.
92320         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92321         Don't check for sigaction here.
92323 2008-06-23  Bruno Haible  <bruno@clisp.org>
92325         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
92326         (install_handlers): Don't set the SA_RESETHAND flag.
92328 2008-06-23  Bruno Haible  <bruno@clisp.org>
92330         * m4/sigaction.m4: Comment fixes.
92331         * lib/signal.in.h: Likewise.
92333 2008-06-23  Eric Blake  <ebb9@byu.net>
92335         Fix typo.
92336         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
92338         Avoid SA_ namespace.
92339         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
92340         Reported by Ralf Wildenhues.
92342         Avoid test failure due to SA_RESTORER.
92343         * tests/test-sigaction.c (SA_MASK): New macro.
92344         (main): Avoid failing due to extension flags being set.
92345         Reported by Jim Meyering.
92347         Revert use of sig-handler.h in sigprocmask.c.
92348         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
92349         it requires the existence of struct sigaction.
92350         * lib/sigprocmask.c (handler_t): Restore typedef.
92351         (rpl_signal, old_handlers): Use local type.
92353 2008-06-22  Bruno Haible  <bruno@clisp.org>
92355         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
92356         conditionally.
92357         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92359 2008-06-22  Bruno Haible  <bruno@clisp.org>
92361         * doc/posix-functions/siginterrupt.texi: Move note.
92363         * lib/signal.in.h (SA_RESTART): New macro.
92364         * lib/sigaction.c: Update comment.
92366         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
92368         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
92369         (gl_PREREQ_SIGPROCMASK): Invoke it.
92370         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
92372         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
92374         * lib/sigprocmask.c: Update a comment.
92376 2008-06-21  Eric Blake  <ebb9@byu.net>
92378         Use sigaction module rather than signal().
92379         * modules/c-stack (Depends-on): Add sigaction.
92380         * modules/fatal-signal (Depends-on): Likewise.
92381         * modules/nanosleep (Depends-on): Likewise.
92382         * modules/sigprocmask (Files): Add sig-handler.h.
92383         * modules/sigaction (Files): Likewise.
92384         * lib/sig-handler.h (get_handler): New file, suggested by Paul
92385         Eggert.
92386         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
92387         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
92388         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
92389         (init_fatal_signals): Likewise.
92390         * lib/nanosleep.c (rpl_nanosleep): Likewise.
92391         (siginterrupt): Delete fallback.
92392         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
92393         instead.
92394         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
92395         siginterrupt.
92397         New module sigaction, for mingw.
92398         * modules/sigaction: New module...
92399         * modules/sigaction-tests: ...and its test.
92400         * m4/sigaction.m4: New file.
92401         * lib/sigaction.c: Likewise.
92402         * tests/test-sigaction.c: Likewise.
92403         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
92404         * modules/signal (Makefile.am): Likewise.
92405         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
92406         needed.
92407         * doc/posix-headers/signal.texi (signal.h): Mention provided
92408         types.
92409         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
92410         that sigaction is preferable.
92411         * doc/posix-functions/sigaction.texi (sigaction): Mention new
92412         module.
92413         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92414         sigaction.
92416         Improve robustness of sigprocmask by overriding signal.
92417         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
92418         is in use.
92419         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
92420         (SIGKILL, SIGSTOP): Provide fallbacks.
92421         (rpl_signal): Implement.
92422         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
92423         signal can be called inside handlers.
92425         Fix nanosleep module on mingw.
92426         * modules/nanosleep (Depends-on): Add sys_select.
92427         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
92429         Fix licensing of sigprocmask.
92430         * modules/raise (License): Relicense as LGPL.
92432 2008-06-21  Bruno Haible  <bruno@clisp.org>
92434         * lib/propername.c (proper_name_utf8): Don't use the transliterated
92435         result if it contains question marks.
92436         Reported by Michael Geng <linux@michaelgeng.de>.
92438 2008-06-19  Bruno Haible  <bruno@clisp.org>
92440         Fix CVS-ism.
92441         * doc/gnulib.texi: Include updated-stamp.texi.
92442         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
92443         (updated-stamp.texi): New rule.
92444         (gnulib.info): Depend on it.
92445         * doc/.gitignore: Add updated-stamp.texi.
92446         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
92448 2008-06-19  Bruno Haible  <bruno@clisp.org>
92450         * doc/Makefile (gnulib.info): Update and simplify dependencies.
92451         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92453 2008-06-19  Eric Blake  <ebb9@byu.net>
92455         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
92456         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
92457         Reported by Stepan Kasal.
92459 2008-06-18  Bruno Haible  <bruno@clisp.org>
92461         * lib/fatal-signal.c (init_fatal_signals): Add comment.
92462         Reported by Eric Blake.
92464 2008-06-18  Eric Blake  <ebb9@byu.net>
92466         Work around cygwin 1.5.25 strsignal bug.
92467         * tests/test-strsignal.c: Allow for const char *.
92468         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
92470 2008-06-18  Simon Josefsson  <simon@josefsson.org>
92472         * users.txt: Update URL to article and add author/date
92473         information.
92475 2008-06-17  Bruno Haible  <bruno@clisp.org>
92477         New macro gl_DISABLE_THREADS.
92478         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
92479         if the user did not pass --enable-threads or --disable-threads option.
92480         (gl_DISABLE_THREADS): New macro.
92481         Reported by Eric Blake <ebb9@byu.net>.
92483 2008-06-17  Bruno Haible  <bruno@clisp.org>
92485         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
92486         when the macro ignores it.
92487         Based on a patch by Eric Blake <ebb9@byu.net>.
92489 2008-06-17  Bruno Haible  <bruno@clisp.org>
92491         * modules/tls (License): Change to LGPLv2+.
92492         Reported by Eric Blake.
92494 2008-06-17  Eric Blake  <ebb9@byu.net>
92496         Simplify c-stack prerequisites.
92497         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
92498         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
92499         no longer requires <ucontext.h> to exist.  Optimize setrlimit
92500         check.
92501         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
92502         <sys/resource.h>.
92504         Move c-stack test into testsuite.
92505         * modules/c-stack-tests: New file.
92506         * lib/c-stack.c [DEBUG]: Move test program...
92507         * tests/test-c-stack.c: ...into this new file.  Skip rather than
92508         fail test if sigaltstack is lacking.
92509         * tests/test-c-stack.sh: New driver file.
92511 2008-06-16  Eric Blake  <ebb9@byu.net>
92513         Use raise module consistently.
92514         * modules/fatal-signal (Depends-on): Add raise.
92515         * modules/sigprocmask (Depends-on): Likewise.
92516         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
92517         * lib/sigprocmask.c (sigprocmask): Likewise.
92518         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92519         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
92521         Fix compliance bug in sigpending.
92522         * lib/sigprocmask.c (sigpending): Return pending array via
92523         parameter, not return value.
92525 2008-06-14  Eric Blake  <ebb9@byu.net>
92527         Improve obstack-printf test code.
92528         * tests/test-obstack-printf.c (test_function): Fix comment, and
92529         simplify usage of obstack_* in macros.  Add a test for coverage.
92530         Reported by Bruno Haible.
92532 2008-06-14  Bruno Haible  <bruno@clisp.org>
92534         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
92535         array size as a constant, not as a const variable.
92536         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
92537         AC_USE_SYSTEM_EXTENSIONS.
92538         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
92539         Test whether the obstack_printf function actually exists.
92540         * modules/obstack-printf (Depends-on): Add extensions.
92541         (Include): Remove obstack.h.
92542         * modules/obstack-printf-posix (Depends-on): Add extensions.
92543         (Include): Remove obstack.h.
92545 2008-06-13  Eric Blake  <ebb9@byu.net>
92547         Add obstack-printf and obstack-printf-posix modules.
92548         * modules/obstack-printf: New file.
92549         * modules/obstack-printf-posix: Likewise.
92550         * MODULES.html.sh (Misc): Mention them.
92551         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
92552         Likewise.
92553         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
92554         Likewise.
92555         * modules/stdio (Makefile.am): Accomodate new modules.
92556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92557         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
92558         Declare.
92559         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
92560         functions.
92561         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
92562         (gl_REPLACE_OBSTACK_PRINTF): New macros
92563         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
92564         * tests/test-obstack-printf.c: New file.
92565         * modules/obstack-printf-tests: Likewise.
92566         * modules/obstack-printf-posix-tests: Likewise.
92568 2008-06-11  Bruno Haible  <bruno@clisp.org>
92570         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
92571         * lib/open.c: Include errno.h.
92572         (open): Fail when attempting to write to a file that has a trailing
92573         slash.
92574         * tests/test-open.c (main): Test against trailing slash bug.
92575         * doc/posix-functions/open.texi: Mention the trailing slash bug.
92577 2008-06-10  Bruno Haible  <bruno@clisp.org>
92579         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
92580         for $? to work inside the trap command, with various /bin/sh-s.
92581         * tests/test-vc-list-files-cvs.sh: Likewise.
92583 2008-06-10  Bruno Haible  <bruno@clisp.org>
92585         * lib/acl-internal.h: Don't include gettext.h here.
92586         * lib/set-mode-acl.c: Include gettext.h here.
92587         * lib/copy-acl.c: Likewise.
92589 2008-06-10  Bruno Haible  <bruno@clisp.org>
92591         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
92592         * lib/wait-process.c (wait_subprocess): Likewise.
92593         * lib/execute.h (execute): Add termsigp argument.
92594         * lib/execute.c (execute): Likewise.
92595         * lib/csharpcomp.c (compile_csharp_using_pnet,
92596         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
92597         * lib/csharpexec.c (execute_csharp_using_pnet,
92598         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
92599         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
92600         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
92601         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
92602         is_jikes_present): Update.
92603         * lib/javaexec.c (execute_java_class): Update.
92604         * lib/javaversion.c (execute_and_read_line): Update.
92605         * NEWS: Document the changes.
92606         Reported by Eric Blake.
92608 2008-06-10  Eric Blake  <ebb9@byu.net>
92610         Add missing include.
92611         * tests/test-strstr.c (includes): Add <signal.h>.
92612         * tests/test-strcasestr.c (includes): Likewise.
92613         * tests/test-memmem.c (includes): Likewise.
92615 2008-06-10  Bruno Haible  <bruno@clisp.org>
92617         * lib/wait-process.c (wait_subprocess): Add an assertion.
92619 2008-06-10  Bruno Haible  <bruno@clisp.org>
92621         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
92623 2008-06-10  Bruno Haible  <bruno@clisp.org>
92625         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
92626         using alarm().
92627         * tests/test-strcasestr.c (main): Likewise.
92628         * tests/test-strstr.c (main): Likewise.
92630 2008-06-09  Bruno Haible  <bruno@clisp.org>
92632         Work around the Solaris 10 ACE ACLs ABI change.
92633         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
92634         declare if ACL_NO_TRIVIAL is present.
92635         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
92636         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
92637         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
92638         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
92639         define if ACL_NO_TRIVIAL is present.
92640         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
92641         and use the current ABI.
92642         (file_has_acl): Use same #if condition as elsewhere.
92643         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
92644         in use, and use the current ABI.
92645         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
92646         Reported by Jim Meyering.
92648 2008-06-09  Eric Blake  <ebb9@byu.net>
92650         Work around environments that (stupidly) ignore SIGALRM.
92651         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
92652         before using alarm().
92653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92654         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92655         Reported by Ian Beckwith <ianb@erislabs.net>.
92657         Produce autobuild blurb earlier in log.
92658         * modules/autobuild (configure.ac-early): Move AB_INIT here.
92660 2008-06-09  Jim Meyering  <meyering@redhat.com>
92661         and Ondřej Vašík  <ovasik@redhat.com>
92663         utimens.c: correct kernel bug work-around
92664         Ondřej Vašík found that the invalid return value of 280 indicates
92665         failure, not success, and the kernel bug we're trying to work
92666         around affects not just the utimensat call, but also the fallback
92667         futimens call.
92668         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
92669         not success.
92670         [HAVE_FUTIMENS]: Use the same work-around, here.
92672 2008-06-09  Jim Meyering  <meyering@redhat.com>
92674         add more guards around definition of ACE_-related code
92675         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
92676         ALLOW and ACE_OWNER are also defined.
92678 2008-06-08  Bruno Haible  <bruno@clisp.org>
92680         * lib/acl-internal.h: Add me as co-author.
92681         * lib/file-has-acl.c: Likewise.
92682         * lib/set-mode-acl.c: Likewise.
92683         * lib/copy-acl.c: Likewise.
92685 2008-06-08  Bruno Haible  <bruno@clisp.org>
92687         Add support for AIX ACLs.
92688         * lib/acl-internal.h (acl_nontrivial): New declaration.
92689         * lib/file-has-acl.c (acl_nontrivial): New function.
92690         (file_has_acl): Add implementation using AIX 4 ACL API.
92691         * lib/set-mode-acl.c (qset_acl): Likewise.
92692         * lib/copy-acl.c (qcopy_acl): Likewise.
92694 2008-06-08  Bruno Haible  <bruno@clisp.org>
92696         Add support for HP-UX ACLs.
92697         * lib/acl-internal.h (acl_nontrivial): New declaration.
92698         * lib/file-has-acl.c (acl_nontrivial): New function.
92699         (file_has_acl): Add implementation using HP-UX 11 ACL API.
92700         * lib/set-mode-acl.c (qset_acl): Likewise.
92701         * lib/copy-acl.c (qcopy_acl): Likewise.
92703 2008-06-08  Bruno Haible  <bruno@clisp.org>
92705         Add support for Cygwin ACLs.
92706         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
92707         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
92708         the chmod_or_fchmod call.
92709         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
92711 2008-06-08  Bruno Haible  <bruno@clisp.org>
92713         Fix bug with setuid modes in Solaris 10+ code.
92714         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
92715         succeeded, when the mode contains some special bits.
92717 2008-06-08  Bruno Haible  <bruno@clisp.org>
92719         Add support for Solaris 7..10 ACLs.
92720         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
92721         declarations.
92722         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
92723         functions.
92724         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
92725         * lib/set-mode-acl.c (qset_acl): Likewise.
92726         * lib/copy-acl.c (qcopy_acl): Likewise.
92728 2008-06-08  Bruno Haible  <bruno@clisp.org>
92730         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
92731         declaration.
92732         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
92733         (acl_access_nontrivial): Remove MacOS X case.
92734         (file_has_acl): Use acl_extended_nontrivial.
92735         * lib/copy-acl.c (qcopy_acl): Likewise.
92737 2008-06-08  Bruno Haible  <bruno@clisp.org>
92739         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
92741 2008-06-08  Jim Meyering  <meyering@redhat.com>
92743         * modules/acl (Maintainer): Add Bruno Haible.
92745 2008-06-07  Bruno Haible  <bruno@clisp.org>
92747         Improve support for Tru64 ACLs.
92748         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
92749         ACL on OSF/1.
92751 2008-06-07  Bruno Haible  <bruno@clisp.org>
92753         Add support for MacOS X ACLs.
92754         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
92755         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
92756         * lib/set-mode-acl.c (qset_acl): Likewise.
92757         * lib/copy-acl.c (qcopy_acl): Likewise.
92759 2008-06-07  Bruno Haible  <bruno@clisp.org>
92761         Fix memory leak introduced on 2008-05-22.
92762         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
92763         use.
92765 2008-06-07  Bruno Haible  <bruno@clisp.org>
92767         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
92768         to construct an empty ACL.
92770 2008-06-07  Bruno Haible  <bruno@clisp.org>
92772         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
92773         precisely.
92774         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
92776 2008-06-07  Bruno Haible  <bruno@clisp.org>
92778         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
92779         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
92781 2008-06-07  Bruno Haible  <bruno@clisp.org>
92783         * doc/posix-functions/_setjmp.texi: Explain the use of this function
92784         regardless of POSIX.
92785         * doc/posix-functions/_longjmp.texi: Likewise.
92786         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
92787         SystemV platform in this case.
92789 2008-06-06  Eric Blake  <ebb9@byu.net>
92791         Document abort() bugs.
92792         * doc/posix-functions/abort.texi (abort): Mention anomalies.
92794         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
92795         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
92796         sigsetjmp.
92797         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
92798         siglongjmp, but only as a macro.
92799         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
92800         is obsolete.
92801         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
92803         Tweak documentation to cover cygwin argz bugs.
92804         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
92805         argz bug fix; no code change needed since no cygwin releases
92806         occurred between the last fix and the bug being tested.
92807         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
92808         module and recently fixed cygwin bugs.
92809         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
92810         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
92811         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
92812         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
92813         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
92814         Likewise.
92815         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
92816         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
92817         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
92818         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
92819         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
92820         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
92821         Likewise.
92823         Avoid gcc warning on cygwin.
92824         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
92825         !ACL_NO_TRIVIAL]: Avoid unused variable.
92827 2008-06-05  Eric Blake  <ebb9@byu.net>
92829         Be tolerant of UNKNOWN version in gnulib-tool test dir.
92830         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
92831         git-version-gen fails to come up with a version.
92832         Reported by Simon Josefsson.
92834 2008-06-05  Jim Meyering  <meyering@redhat.com>
92835             Paul Eggert  <eggert@cs.ucla.edu>
92837         utimens.c: work around a probable Linux kernel bug
92838         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
92839         appears to be a kernel bug that causes utimensat to return 280
92840         instead of 0, indicating success.
92842 2008-06-04  Bruno Haible  <bruno@clisp.org>
92844         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
92845         2008-06-01 commit.
92847 2008-06-04  Bruno Haible  <bruno@clisp.org>
92849         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
92850         * lib/file-has-acl.c (acl_access_nontrivial): New function.
92851         (file_has_acl): Use it. Save errno afterwards.
92852         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
92854 2008-06-03  Bruno Haible  <bruno@clisp.org>
92856         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
92857         draft code. Simplify #ifs.
92858         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
92859         Put Solaris code after POSIX-draft code. Fix comments regarding
92860         Solaris 10, HP-UX. Mention Cygwin.
92861         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
92863 2008-06-03  Eric Blake  <ebb9@byu.net>
92865         Provide fallback for older kernels.
92866         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
92867         Provide runtime fallback if kernel lacks support.
92868         Reported by Mike Frysinger.
92870 2008-06-02  Bruno Haible  <bruno@clisp.org>
92872         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
92873         it exists.
92875 2008-06-02  Bruno Haible  <bruno@clisp.org>
92877         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
92878         * lib/copy-acl.c (qcopy_acl): Update comment.
92880 2008-06-02  Bruno Haible  <bruno@clisp.org>
92882         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
92883         like ACL APIs.
92885 2008-06-02  Bruno Haible  <bruno@clisp.org>
92887         * tests/test-file-has-acl.sh: Use different code for Cygwin.
92888         * tests/test-set-mode-acl.sh: Likewise.
92889         * tests/test-copy-acl.sh: Likewise.
92890         * tests/test-copy-file.sh: Likewise.
92892 2008-06-02  Bruno Haible  <bruno@clisp.org>
92894         * tests/test-file-has-acl.sh: Remove unused code.
92896 2008-06-01  Bruno Haible  <bruno@clisp.org>
92898         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
92899         (copy_acl): Just a wrapper around qcopy_acl that emits the error
92900         messages.
92901         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
92903 2008-06-01  Bruno Haible  <bruno@clisp.org>
92905         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
92906         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
92907         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
92908         APIs.
92909         * modules/acl-tests (configure.ac): Remove tests now contained in
92910         m4/acl.m4.
92912 2008-06-02  Jim Meyering  <meyering@redhat.com>
92914         announce-gen: use a better key-server host name
92915         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
92916         it may be more consistently reliable.  Suggested by Werner Koch
92917         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
92919 2008-06-01  Bruno Haible  <bruno@clisp.org>
92921         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
92922         Reported by Voroskoi Andras <voroskoi@gmail.com>.
92924 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
92926         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
92928 2008-06-01  Bruno Haible  <bruno@clisp.org>
92930         New ACL tests.
92931         * tests/test-file-has-acl.sh: New file.
92932         * tests/test-file-has-acl.c: New file.
92933         * tests/test-set-mode-acl.sh: New file.
92934         * tests/test-set-mode-acl.c: New file.
92935         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
92936         * tests/test-copy-acl.c: New file.
92937         * modules/acl-tests: New file, based on modules/copy-file-tests.
92938         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
92939         (Depends-on): Add acl-tests.
92940         (configure.ac): Remove checks.
92941         (Makefile.am): Don't create test-sameacls program here any more.
92943 2008-06-01  Bruno Haible  <bruno@clisp.org>
92945         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
92946         * tests/test-sameacls.c: Include progname.h.
92947         (main): Invoke set_program_name. Portability fixes for MacOS X,
92948         Solaris, HP-UX.
92950 2008-06-01  Bruno Haible  <bruno@clisp.org>
92952         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
92953         function.
92954         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
92956 2008-06-01  Bruno Haible  <bruno@clisp.org>
92958         * modules/rpmatch (Depends-on): Add strdup.
92960 2008-06-01  Bruno Haible  <bruno@clisp.org>
92962         * lib/pipe.c: Include unistd-safer.h.
92963         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
92964         * modules/pipe (Depends-on): Add unistd-safer.
92966 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92968         * modules/autobuild (configure.ac): Call AB_INIT.
92970 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92972         * tests/test-getaddrinfo.c: Don't print debug messages by default.
92973         Suggested by Bruno Haible <bruno@clisp.org>.
92975 2008-05-30  Simon Josefsson  <simon@josefsson.org>
92977         * tests/test-base64.c: Cast size_t to unsigned long when invoking
92978         printf.  Use %lu instead of %d.  Reported by Bruno Haible
92979         <bruno@clisp.org>.
92981 2008-05-29  Eric Blake  <ebb9@byu.net>
92983         Prefer new POSIX 200x interfaces over futimesat.
92984         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
92985         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
92986         when available.
92987         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
92989 2008-05-28  Bruno Haible  <bruno@clisp.org>
92991         * modules/stpcpy (License): Change to LGPLv2+.
92992         Requested by David Lutterkort <dlutter@redhat.com>.
92994 2008-05-27  Bruno Haible  <bruno@clisp.org>
92996         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
92997         current mingw.
92998         Reported by Jose E. Marchesi <jemarch@gnu.org>.
93000 2008-05-27  Bruno Haible  <bruno@clisp.org>
93002         * modules/iconv_open (Link): New section, from module 'iconv'.
93003         * modules/striconv (Link): Likewise.
93004         * modules/striconveh (Link): Likewise.
93005         * modules/xstriconv (Link): Likewise.
93006         * modules/unicodeio (Link): Likewise.
93007         * modules/propername (Link): Likewise.
93008         Reported by Jim Meyering.
93010 2008-05-26  Jim Meyering  <meyering@redhat.com>
93012         sha256: do not artificially restrict buffer length to be < 2^32
93013         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
93014         uint32_t to size_t.
93015         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
93016         to match.
93018         avoid unaligned access errors, e.g., on sparc
93019         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
93020         direct access through a possibly-unaligned uint64* pointer.
93021         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
93022         direct access through a possibly-unaligned uint32* pointer.
93023         Prompted by this patch from Tom "spot" Callaway:
93024         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
93026         sha512.c: fix typo in comment
93027         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
93029 2008-05-25  Bruno Haible  <bruno@clisp.org>
93031         * lib/set-mode-acl.c: Renamed from lib/acl.c.
93032         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
93033         (Makefile.am): Update lib_SOURCES.
93035 2008-05-25  Bruno Haible  <bruno@clisp.org>
93037         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
93039 2008-05-25  Jim Meyering  <meyering@redhat.com>
93041         useless-if-before-free: freed expr may have white-space differences
93042         * build-aux/useless-if-before-free: Recognize cases in which the
93043         freed expression differs from the tested one in embedded white
93044         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
93045         $1 was used, so we can't make any regexp shy.  Improved tests now
93046         detect this.
93048         useless-if-before-free: accept white space in the expression.
93049         * build-aux/useless-if-before-free: For now, any white space
93050         in the expression must be identical in the free argument.
93052         useless-if-before-free: efficiency tweak
93053         * build-aux/useless-if-before-free: Make the expression-matching
93054         regexp "shy".
93055         Make the *outer* regexp shy, not the expr-matching one.
93057         update code-in-comment to accept cast of free arg
93058         * build-aux/useless-if-before-free: Update regexp.
93060 2008-05-25  Bruno Haible  <bruno@clisp.org>
93062         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
93063         * modules/copy-file-tests (Files, Makefile.am): Update.
93064         * tests/test-copy-file.c (func_test_copy): Update.
93066 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
93068         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
93070 2008-05-23  Bruno Haible  <bruno@clisp.org>
93072         Improve support for ACLs on OSF/1.
93073         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
93074         Remove fallback for unknown flavors of ACLs.
93076 2008-05-22  Bruno Haible  <bruno@clisp.org>
93078         Add support for ACLs on OSF/1.
93079         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
93080         replacements.
93081         (acl_free_text): New macro fallback.
93082         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
93083         acl_free.
93084         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
93085         acl_free_text function. Require AC_C_INLINE.
93087 2008-05-22  Bruno Haible  <bruno@clisp.org>
93089         Make copy_acl work on MacOS X 10.5.
93090         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
93091         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
93092         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
93093         If MODE_INSIDE_ACL, don't assume that every system has the same text
93094         representation for ACLs as FreeBSD.
93095         * lib/copy-acl.c (copy_acl): Add support for platforms with
93096         !MODE_INSIDE_ACL.
93097         * lib/file-has-acl.c (file_has_acl): Likewise.
93098         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
93099         FreeBSD, MacOS X, or IRIX, respectively.
93101 2008-05-22  Bruno Haible  <bruno@clisp.org>
93103         * lib/acl.h: Don't include <sys/acl.h>.
93104         (GETACLCNT): Move fallback to lib/acl-internal.h.
93105         * lib/acl-internal.h: Include <sys/acl.h> here.
93106         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
93108 2008-05-22  Bruno Haible  <bruno@clisp.org>
93110         Split off copy_acl function to separate file.
93111         * lib/copy-acl.c: New file, extracted from lib/acl.c.
93112         * lib/acl.c (copy_acl): Moved function to separate file.
93113         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
93114         * modules/acl (Files): Add lib/copy-acl.c.
93115         (Makefiles.am): Augment lib_SOURCES.
93117 2008-05-22  Bruno Haible  <bruno@clisp.org>
93119         * modules/copy-file-tests: New file.
93120         * tests/test-copy-file.sh: New file.
93121         * tests/test-copy-file.c: New file.
93122         * tests/test-copy-file-sameacls.c: New file.
93124 2008-05-22  Eric Blake  <ebb9@byu.net>
93126         Avoid gcc warning.
93127         * tests/test-memcmp.c (main): Pass NULL indirectly.
93129 2008-05-21  Bruno Haible  <bruno@clisp.org>
93131         Add reference doc about ACLs.
93132         * doc/acl-resources.txt: New file.
93133         * doc/acl-cygwin.txt: New file.
93135 2008-05-21  Bruno Haible  <bruno@clisp.org>
93137         Avoid one more warning from gcc.
93138         * lib/vasnprintf.c (IF_LINT): Update comments.
93139         (VASNPRINTF): Use it also for the 'prefix' array initializer.
93141 2008-05-21  Jim Meyering  <meyering@redhat.com>
93143         avoid a warning from gcc
93144         * lib/vasnprintf.c (IF_LINT): Define.
93145         (scale10_round_decimal_long_double):
93146         Use it to avoid a "may be used uninitialized" warning.
93147         (scale10_round_decimal_double): Likewise.
93149 2008-05-21  Simon Josefsson  <simon@josefsson.org>
93151         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
93152         declared.
93154 2008-05-20  Bruno Haible  <bruno@clisp.org>
93156         * tests/test-memcmp.c (main): Test also the sign of the result. Test
93157         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
93159 2008-05-20  Simon Josefsson  <simon@josefsson.org>
93161         * modules/memcmp-tests: New file.
93162         * tests/test-memcmp.c: New file.
93164 2008-05-19  Bruno Haible  <bruno@clisp.org>
93166         * modules/propername (Notice, configure.ac): Put quoted "..." into
93167         --keyword option.
93168         * lib/propername.h: Update comments accordingly.
93169         Reported by Eric Blake.
93171 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
93173         * modules/getpass-gnu (Depends-on): Add fseeko.
93175 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93177         * modules/base64-tests: New file.
93179 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
93181         * lib/base64.c (base64_decode_ctx): If a decode context structure
93182         was passed in use it to ignore newlines.  If a context structure
93183         was _not_ passed in, continue to treat newlines as garbage (this
93184         is the historical behavior).  Formerly base64_decode.
93185         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93186         takes a decode context structure.
93187         * lib/base64.h (base64_decode): Macro for four-argument calls.
93188         (base64_decode_alloc): Likewise.
93189         * lib/base64.c (base64_decode_ctx): If a decode context structure
93190         was passed in use it to ignore newlines.  If a context structure
93191         was _not_ passed in, continue to treat newlines as garbage (this
93192         is the historical behavior).  Formerly base64_decode.
93193         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93194         takes a decode context structure.
93195         * lib/base64.h (base64_decode): Macro for four-argument calls.
93196         (base64_decode_alloc): Likewise.
93198 2008-05-19  Jim Meyering  <meyering@redhat.com>
93200         avoid a warning from gcc
93201         * lib/trim.c (IF_LINT): Define.
93202         (trim2): Use it to avoid a "may be used uninitialized" warning.
93204         Fix doc typo.
93205         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
93207 2008-05-19  Bruno Haible  <bruno@clisp.org>
93209         * doc/glibc-functions/getpass.texi: Document limits of other
93210         implementations.
93212 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93213             Bruno Haible <bruno@clisp.org>
93215         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
93217 2008-05-18  Bruno Haible  <bruno@clisp.org>
93219         * modules/propername: New file, from GNU gettext.
93220         * lib/propername.h: New file, from GNU gettext.
93221         * lib/propername.c: New file, from GNU gettext.
93222         * MODULES.html.sh (Internationalization functions): Add propername.
93224 2008-05-16  Jim Meyering  <meyering@redhat.com>
93225             Bruno Haible  <bruno@clisp.org>
93227         Avoid some warnings from "gcc -Wshadow".
93228         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
93230 2008-05-15  Eric Blake  <ebb9@byu.net>
93232         Extend previous patch to cygwin 1.7.0.
93233         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
93234         fast implementation in cygwin >= 1.7.0.
93235         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93238 2008-05-15  Bruno Haible  <bruno@clisp.org>
93240         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
93241         implementation in glibc >= 2.9.
93242         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93245 2008-05-15  Bruno Haible  <bruno@clisp.org>
93247         * MODULES.html.sh (Internationalization functions): Remove linebreak.
93248         (Unicode string functions): Add unilbrk/*.
93249         Reported by Karl Berry.
93251 2008-05-15  Eric Blake  <ebb9@byu.net>
93253         Fix violation of <stdbool.h> replacement in regex.
93254         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
93255         * lib/regexec.c (re_search_internal): Likewise.
93256         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
93258 2008-05-15  Jim Meyering  <meyering@redhat.com>
93260         avoid distracting test output when git or cvs is not found
93261         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
93262         * tests/test-vc-list-files-git.sh: Likewise.
93264 2008-05-15  Eric Blake  <ebb9@byu.net>
93266         Glibc finally accepted the memmem speedup code, bugzilla #5514.
93267         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
93268         glibc version.
93269         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
93270         * doc/posix-functions/strstr.texi (strstr): Likewise.
93271         * lib/str-two-way.h (MAX): Sychronize with glibc.
93273 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
93275         * lib/regcomp.c (optimize_utf8): Add a note on why we test
93276         opr.ctx_type.
93277         (calc_first): Initialize constraint field.
93278         (duplicate_node_closure): Use it instead of special casing ANCHORS.
93279         Fix grammar.
93280         (duplicate_node): Merge constraint field for all node types.
93281         (calc_eclosure_iter): Look at constraint field for all node types.
93282         * lib/regex_internal.c (create_cd_newstate): Don't look at
93283         opr.ctx_type.
93285 2008-05-14  Bruno Haible  <bruno@clisp.org>
93287         Help GCC to do better code generation.
93288         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
93289         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
93290         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
93291         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
93292         Declare with attribute 'malloc' if supported.
93294 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
93296         use "echo STR|wc -c" rather than unportable "expr length STR"
93297         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
93298         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
93300 2008-05-14  Jim Meyering  <meyering@redhat.com>
93302         use dd ibs=$n count=1 ... rather than less-portable head -c$n
93303         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
93304         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
93305         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
93306         via Collin Lasse.
93308 2008-05-14  Eric Blake  <ebb9@byu.net>
93310         Avoid quadratic growth in gl_LIBSOURCES.
93311         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
93312         Suggested by Bruno Haible.
93314         Test xmemdup0.
93315         * modules/xmemdup0-tests: New file.
93316         * tests/test-xmemdup0.c: Likewise.
93318 2008-05-13  Eric Blake  <ebb9@byu.net>
93320         Split xmemdup0 into its own module.
93321         * modules/xmemdup0: New file.
93322         * lib/xmemdup0.h: Likewise.
93323         * lib/xmemdup0.c: Likewise.
93324         * MODULES.html.sh (Memory management functions): Add xmemdup0.
93325         * lib/xalloc.h (xmemdup0): Remove.
93326         * lib/xmalloc.c (xmemdup0): Likewise.
93328 2008-05-13  Eric Blake  <ebb9@byu.net>
93329             Bruno Haible  <bruno@clisp.org>
93331         Reduce number of forks required during autoconf.
93332         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
93333         and gl_LIBSOURCES_DIR.
93334         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
93335         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
93336         m4_syscmd per file.
93337         <m4_foreach_w>: Move...
93338         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
93340 2008-05-13  Eric Blake  <ebb9@byu.net>
93342         * gnulib-tool: Fix various comment typos.
93344 2008-05-12  Bruno Haible  <bruno@clisp.org>
93346         Tailor the linebreaking algorithm.
93347         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
93349 2008-05-12  Bruno Haible  <bruno@clisp.org>
93351         Update to Unicode 5.0.0.
93352         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93353         LBP_JV, LBP_JT. Redistribute values.
93354         (unilbrk_table): Change size.
93355         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
93356         Unicode TR#14 rev. 22.
93357         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93358         LBP_JV, LBP_JT. Redistribute values.
93359         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
93360         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
93361         Update.
93362         * lib/unilbrk/lbrkprop1.h: Regenerated.
93363         * lib/unilbrk/lbrkprop2.h: Regenerated.
93364         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
93365         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
93366         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
93367         Likewise.
93368         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
93369         Likewise.
93370         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
93371         result.
93372         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
93373         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
93374         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
93375         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
93376         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
93377         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
93379 2008-05-11  Bruno Haible  <bruno@clisp.org>
93381         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
93383 2008-05-11  Bruno Haible  <bruno@clisp.org>
93385         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
93386         * modules/unilbrk/gen-lbrk: New file.
93388 2008-05-11  Bruno Haible  <bruno@clisp.org>
93390         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
93391         * m4/sha512.m4 (gl_SHA512): Likewise.
93393 2008-05-11  Jim Meyering  <meyering@redhat.com>
93395         New modules: crypto/sha256, crypto/sha512 (from coreutils)
93396         * modules/crypto/sha256: New file.
93397         * modules/crypto/sha512: Likewise.
93398         * lib/sha256.c: Likewise.
93399         * lib/sha256.h: Likewise.
93400         * lib/sha512.c: Likewise.
93401         * lib/sha512.h: Likewise.
93402         * lib/u64.h: Likewise.
93403         * m4/sha256.m4: Likewise.
93404         * m4/sha512.m4: Likewise.
93405         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
93407 2008-05-10  Bruno Haible  <bruno@clisp.org>
93409         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
93410         (Input/Output <stdio.h>): Add xprintf.
93411         (Signal handling <signal.h>): Add strsignal.
93412         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
93413         (Core language properties): Add func.
93414         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
93415         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
93416         strings.
93417         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
93418         (Input/output): New section.
93419         (File system functions): Add openat-die, stat-macros.
93420         (Networking functions): Add sockets.
93421         (Unicode string functions): Add unictype/*.
93422         (Support for building libraries and executables): Add gperf.
93423         (Support for building documentation): Add agpl-3.0.
93424         (Misc): Add nocrash.
93426 2008-05-10  Bruno Haible  <bruno@clisp.org>
93428         * modules/unictype/gen-ctype: New file.
93430 2008-05-10  Jim Meyering  <meyering@redhat.com>
93432         Make chdir-safer.c more efficient on a system with no symlinks.
93433         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
93434         also if ELOOP is zero.  Suggested by Bruno Haible.
93436         Make chdir-safer.c slightly safer.
93437         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
93438         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
93440         Avoid compile failure on systems without ELOOP (like mingw).
93441         * lib/chdir-safer.c (ELOOP): Define if not already defined.
93442         Reported by Bruno Haible.
93444 2008-05-10  Bruno Haible  <bruno@clisp.org>
93446         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
93447         (is_utf8_encoding): Use a case-insensitive comparison.
93448         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
93449         streq.
93451 2008-05-10  Bruno Haible  <bruno@clisp.org>
93453         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
93454         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
93455         * lib/unilbrk/ulc-common.h (iconv_string_length,
93456         iconv_string_keeping_offsets): Remove declarations.
93457         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
93458         Don't include <iconv.h>, streq.h, xsize.h.
93459         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
93460         conversion.
93461         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
93462         <iconv.h>, streq.h, xsize.h.
93463         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
93464         conversion.
93465         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
93466         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
93467         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
93468         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
93470 2008-05-10  Bruno Haible  <bruno@clisp.org>
93472         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
93473         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
93475         * modules/unilbrk/u32-width-linebreaks-tests: New file.
93476         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
93478         * modules/unilbrk/u16-width-linebreaks-tests: New file.
93479         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
93481         * modules/unilbrk/u8-width-linebreaks-tests: New file.
93482         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
93484         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
93485         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
93487         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
93488         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
93490         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
93491         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
93493         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
93494         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
93496 2008-05-10  Bruno Haible  <bruno@clisp.org>
93498         Split up 'linebreak' module.
93499         * lib/unilbrk.h: New file, based on lib/linebreak.h.
93500         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
93501         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
93502         modifications.
93503         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
93504         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
93505         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
93506         lib/linebreak.c.
93507         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
93508         lib/linebreak.c.
93509         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
93510         lib/linebreak.c.
93511         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
93512         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
93513         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
93514         lib/linebreak.c.
93515         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
93516         lib/linebreak.c.
93517         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
93518         lib/linebreak.c.
93519         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
93520         lib/linebreak.c.
93521         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
93522         lib/linebreak.c.
93523         * modules/unilbrk/base: New file.
93524         * modules/unilbrk/tables: New file.
93525         * modules/unilbrk/u8-possible-linebreaks: New file.
93526         * modules/unilbrk/u16-possible-linebreaks: New file.
93527         * modules/unilbrk/u32-possible-linebreaks: New file.
93528         * modules/unilbrk/ulc-common: New file.
93529         * modules/unilbrk/ulc-possible-linebreaks: New file.
93530         * modules/unilbrk/u8-width-linebreaks: New file.
93531         * modules/unilbrk/u16-width-linebreaks: New file.
93532         * modules/unilbrk/u32-width-linebreaks: New file.
93533         * modules/unilbrk/ulc-width-linebreaks: New file.
93534         * lib/linebreak.h: Remove file.
93535         * lib/linebreak.c: Remove file.
93536         * m4/linebreak.m4: Remove file.
93537         * modules/linebreak: Remove file.
93538         * NEWS: Mention the changes.
93540 2008-05-09  Eric Blake  <ebb9@byu.net>
93542         Add xmemdup0.
93543         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
93544         implementation.
93545         * lib/xmalloc.c (xmemdup0): New C implementation.
93547 2008-05-08  Bruno Haible  <bruno@clisp.org>
93549         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
93551 2008-05-07  Eric Blake  <ebb9@byu.net>
93553         Support cross-compilation of <wctype.h>.
93554         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
93555         AC_CACHE_CHECK.
93557 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
93559         * build-aux/vc-list-files: Add support for bzr.
93561 2008-05-03  Jim Meyering  <meyering@redhat.com>
93563         avoid failed assertion with tight malloc
93564         * tests/test-getndelim2.c: Correct an off-by-one assertion.
93566 2008-05-03  Simon Josefsson  <simon@josefsson.org>
93568         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
93569         are needed from arpa/inet.h.
93570         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
93571         Reported by Bruno Haible.
93573 2008-05-02  Jim Meyering  <meyering@redhat.com>
93575         avoid compilation error on FreeBSD 6
93576         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
93578 2008-05-01  Jim Meyering  <meyering@redhat.com>
93580         useless-if-before-free: correct --help's exit status description
93581         * build-aux/useless-if-before-free (usage): Like grep, exit 0
93582         for one or more matches, etc.  Reported by Bruno Haible.
93584         vc-list-files: make the stand-alone gnulib test work
93585         * modules/vc-list-files-tests (configure.ac):
93586         Define and AC_SUBST abs_aux_dir.
93587         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
93588         $(abs_top_srcdir) to each script and having each of them
93589         duplicate the work of setting PATH, set PATH here, using
93590         the new variable, abs_aux_dir instead.
93591         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
93592         * tests/test-vc-list-files-git.sh: Likewise.
93593         Reported by Bruno Haible.
93595 2008-05-01  Bruno Haible  <bruno@clisp.org>
93597         * lib/getndelim2.c (getndelim2): Fix newsize computation during
93598         reallocation. Rename 'done' to 'found_delimiter'.
93600 2008-05-01  Jim Meyering  <meyering@redhat.com>
93602         vc-list-files: accommodate /bin/sh like the one from Solaris 10
93603         * build-aux/vc-list-files: Use `...`, not $(...).
93605 2008-04-30  Jim Meyering  <meyering@redhat.com>
93607         add tests for vc-list-files
93608         * modules/vc-list-files-tests: New module.
93609         * tests/test-vc-list-files-cvs.sh: New file.
93610         * tests/test-vc-list-files-git.sh: New file.
93612         avoid a warning from gcc
93613         * lib/getndelim2.c (IF_LINT): Define.
93614         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
93616         vc-list-files: work properly with build-aux/cvsu, too
93617         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
93618         to all cvs-based clauses.
93620         vc-list-files: work properly in the CVS+awk case, too
93621         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
93623         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
93624         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
93625         take more than one file argument, so .  Add quotes, just in case $dir
93626         ever contains a shell meta-character.  Prompted by Soren Hansen in
93627         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
93629 2008-04-29  Eric Blake  <ebb9@byu.net>
93631         Optimize getndelim2 to use block operations when possible.
93632         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
93633         freadseek, and memchr2.
93634         * lib/getndelim2.c (getndelim2): Use them for block reads.
93636 2008-04-29  Bruno Haible  <bruno@clisp.org>
93638         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
93639         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93640         * modules/inet_ntop (Depends-on): Add extensions.
93641         * modules/inet_pton (Depends-on): Likewise.
93642         Reported by Simon Josefsson.
93644 2008-04-29  Jim Meyering  <meyering@redhat.com>
93646         When the is more than one match in a block, match all of them.
93647         * build-aux/useless-if-before-free: Iterate through each block
93648         until there are no more matches.
93650         Fix broken useless-if-before-free script.
93651         * build-aux/useless-if-before-free: Fix typo: missing "?" after
93652         the expression to match cast of argument to free-like function.
93654 2008-04-29  Eric Blake  <ebb9@byu.net>
93656         Use new header.
93657         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
93659 2008-04-29  Jim Meyering  <meyering@redhat.com>
93661         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
93662         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
93663         by gnulib to exist and to declare e.g., inet_ntop.
93664         Don't include "inet_ntop.h", now removed.
93666         * m4/arpa_inet_h.m4: Remove trailing blanks.
93668 2008-04-29  Eric Blake  <ebb9@byu.net>
93670         Silence valgrind on safe reads beyond potential array bounds.
93671         * lib/rawmemchr.valgrind: New file.
93672         * lib/strchrnul.valgrind: Likewise.
93673         * modules/rawmemchr (Files): Distribute new file.
93674         * modules/strchrnul (Files): Likewise.
93675         Suggested by Bruno Haible.
93677 2008-04-29  Bruno Haible  <bruno@clisp.org>
93679         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
93680         (inet_ntop, inet_pton): Change portability warning's wording.
93681         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
93682         Invoke gl_CHECK_NEXT_HEADERS.
93683         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
93684         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
93685         set ARPA_INET_H.
93686         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93687         * modules/arpa_inet (Description): No longer only for systems that
93688         lack it.
93689         (Depends-on): Add include_next.
93690         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
93691         HAVE_ARPA_INET_H.
93693 2008-04-29  Jim Meyering  <meyering@redhat.com>
93695         * modules/mkdir (License): Re-license as LGPLv2+.
93697 2008-04-29  Bruno Haible  <bruno@clisp.org>
93699         * modules/rawmemchr (Maintainer): Set to Eric.
93700         * modules/strchrnul (Maintainer): Likewise.
93702 2008-04-29  Simon Josefsson  <simon@josefsson.org>
93704         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
93705         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
93707         * modules/arpa_inet (arpa/inet.h): Use them.
93709 2008-04-28  Eric Blake  <ebb9@byu.net>
93711         Test getndelim2.
93712         * modules/getndelim2-tests: New file.
93713         * tests/test-getndelim2.c: Likewise.
93714         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
93715         stream.
93716         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
93718         * MODULES.html.sh: Document new module.
93720 2008-04-20  Bruno Haible  <bruno@clisp.org>
93722         * lib/c-stack.c (die): Use raise.
93723         * modules/c-stack (Depends-on): Add raise.
93725 2008-04-28  Bruno Haible  <bruno@clisp.org>
93727         Expect rpmatch to be declared.
93728         * lib/yesno.c (rpmatch): Remove declaration.
93730         Declare rpmatch.
93731         * lib/stdlib.in.h (rpmatch): New declaration.
93732         * lib/rpmatch.c: Include <stdlib.h> first.
93733         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
93734         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
93735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
93736         HAVE_RPMATCH.
93737         * modules/rpmatch (Depends-on): Add stdlib, extensions.
93738         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
93739         (Include): Set to <stdlib.h>.
93740         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
93741         HAVE_RPMATCH.
93742         * NEWS: Document the change.
93744 2008-04-28  Bruno Haible  <bruno@clisp.org>
93746         Change rpmatch to use nl_langinfo when appropriate.
93747         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
93748         (N_): New macro.
93749         (localized_pattern): New function/macro.
93750         (try): Remove match, nomatch arguments. Copy the pattern into safe
93751         memory before caching it.
93752         (rpmatch): Use localized_pattern. Add translator comments.
93753         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
93754         Suggested by Eric Blake.
93755         * modules/rpmatch (Depends-on): Add stdbool.
93757 2008-04-28  Eric Blake  <ebb9@byu.net>
93759         Add rawmemchr module, matching glibc.
93760         * modules/string (Makefile.am): New indicator.
93761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
93762         * lib/string.in.h (rawmemchr): Declare when appropriate.
93763         * modules/rawmemchr: New file.
93764         * m4/rawmemchr.m4: Likewise.
93765         * lib/rawmemchr.c: Likewise.
93766         * modules/rawmemchr-tests: Likewise.
93767         * tests/test-rawmemchr.c: Likewise.
93768         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
93769         module.
93770         * modules/strchrnul (Depends-on): Add rawmemchr.
93771         * lib/strchrnul.c (strchrnul): Optimize a corner case.
93773         Whitespace cleanup.
93774         * tests/test-strchrnul.c: Reindent.
93775         * lib/strchrnul.c: Likewise.
93777         Optimize and test strchrnul.
93778         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
93779         * modules/strchrnul-tests: New file.
93780         * tests/test-strchrnul.c: Likewise.
93782         Remove intprops dependency.
93783         * modules/memchr (Depends-on): Remove intprops.
93784         * modules/memrchr (Depends-on): Likewise.
93785         * modules/memchr2 (Depends-on): Likewise.
93786         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
93787         * lib/memrchr.c (__memrchr): Likewise.
93788         * lib/memrchr2.c (memchr2): Likewise.
93789         Reported by Simon Josefsson.
93791 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93793         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
93794         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93796 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93798         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
93800         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
93802         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
93804         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
93805         declarations.
93806         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
93808         * m4/inet_pton.m4: Don't check for header files.
93810         * m4/inet_ntop.m4: Don't check for header files.
93812 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93814         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
93815         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
93816         trigger for cygwin).
93817         Reported by Bruno Haible  <bruno@clisp.org>.
93819 2008-04-28  Bruno Haible  <bruno@clisp.org>
93821         * doc/posix-functions/strdup.texi: Mention mingw problem.
93823 2008-04-27  Bruno Haible  <bruno@clisp.org>
93825         * modules/stat-time-tests (Depends-on): Add sleep.
93826         * tests/test-stat-time.c (force_unlink): New function.
93827         (cleanup): Use it.
93828         (test_mtime): Remove the ctime related tests.
93829         (test_ctime): New function, containing the ctime related tests.
93830         (main): Call test_ctime, except on native Windows platforms.
93832 2008-04-27  Bruno Haible  <bruno@clisp.org>
93834         * lib/rpmatch.c (rpmatch): Add some comments.
93835         Reported by James Youngman <jay@gnu.org>.
93837 2008-04-27  Bruno Haible  <bruno@clisp.org>
93839         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
93840         quiet NaNs.
93842 2008-04-27  Bruno Haible  <bruno@clisp.org>
93844         Make test-yesno.sh work on mingw.
93845         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
93846         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
93847         (main): Set stdin to binary mode.
93848         * modules/yesno-tests (Depends-on): Add binary-io.
93850 2008-04-27  Bruno Haible  <bruno@clisp.org>
93852         Fix 'isfinite' on x86, x86_64, ia64 platforms.
93853         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
93854         argument that lie outside the IEEE 854 domain.
93855         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
93856         (gl_ISFINITE): Use it.
93857         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
93859 2008-04-27  Bruno Haible  <bruno@clisp.org>
93861         Allow local renaming in config.h.
93862         * lib/memrchr.c (memrchr): Don't undefine outside libc.
93864 2008-04-27  Bruno Haible  <bruno@clisp.org>
93866         * lib/memchr.c (__memchr): Change type of 'i'.
93867         * lib/memchr2.c (memchr2): Likewise.
93869 2008-04-26  Eric Blake  <ebb9@byu.net>
93870         and Bruno Haible  <bruno@clisp.org>
93872         Optimize and test memrchr.
93873         * modules/memrchr (Depends-on): Add intprops.
93874         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
93875         * modules/memrchr-tests: New file.
93876         * tests/test-memrchr.c: New file.
93878 2008-04-26  Bruno Haible  <bruno@clisp.org>
93880         Add tentative support for DragonFly BSD.
93881         * lib/stdio-impl.h: Add macros for DragonFly BSD.
93882         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
93883         fp.
93884         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
93885         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
93886         * lib/fpurge.c (fpurge): Likewise.
93887         * lib/freadable.c (freaadable): Likewise.
93888         * lib/freadahead.c (freadahead): Likewise.
93889         * lib/freading.c (freading): Likewise.
93890         * lib/freadptr.c (freadptr): Likewise.
93891         * lib/freadseek.c (freadptrinc): Likewise.
93892         * lib/fseeko.c (fseeko): Likewise.
93893         * lib/fseterr.c (fseterr): Likewise.
93894         * lib/fwritable.c (fwritable): Likewise.
93895         * lib/fwriting.c (fwriting): Likewise.
93897 2008-04-26  Bruno Haible  <bruno@clisp.org>
93899         * lib/stdio-impl.h: New file.
93900         * lib/fbufmode.c: Include stdio-impl.h.
93901         (fbufmode): Use fp_, remove redundant #defines.
93902         * lib/fflush.c: Include stdio-impl.h.
93903         (clear_ungetc_buffer): Remove redundant #defines.
93904         * lib/fpurge.c: Include stdio-impl.h.
93905         (fpurge): Remove redundant #defines.
93906         * lib/freadable.c: Include stdio-impl.h.
93907         (freadable): Remove redundant #defines.
93908         * lib/freadahead.c: Include stdio-impl.h.
93909         (freadahead): Remove redundant #defines.
93910         * lib/freading.c: Include stdio-impl.h.
93911         (freading): Remove redundant #defines.
93912         * lib/freadptr.c: Include stdio-impl.h.
93913         (freadptr): Remove redundant #defines.
93914         * lib/freadseek.c: Include stdio-impl.h.
93915         (freadptrinc): Remove redundant #defines.
93916         * lib/fseeko.c: Include stdio-impl.h.
93917         (rpl_fseeko): Remove redundant #defines.
93918         * lib/fseterr.c: Include stdio-impl.h.
93919         (fseterr): Remove redundant #defines.
93920         * lib/fwritable.c: Include stdio-impl.h.
93921         (fwritable: Remove redundant #defines.
93922         * lib/fwriting.c: Include stdio-impl.h.
93923         (fwriting): Remove redundant #defines.
93924         * modules/fbufmode (Files): Add lib/stdio-impl.h.
93925         * modules/fflush (Files): Likewise.
93926         * modules/fpurge (Files): Likewise.
93927         * modules/freadable (Files): Likewise.
93928         * modules/freadahead (Files): Likewise.
93929         * modules/freading (Files): Likewise.
93930         * modules/freadptr (Files): Likewise.
93931         * modules/freadseek (Files): Likewise.
93932         * modules/fseeko (Files): Likewise.
93933         * modules/fseterr (Files): Likewise.
93934         * modules/fwritable (Files): Likewise.
93935         * modules/fwriting (Files): Likewise.
93937 2008-04-26  Bruno Haible  <bruno@clisp.org>
93939         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
93940         restore_seek_optimization, update_fpos_cache): New functions, extracted
93941         from rpl_fflush.
93942         (rpl_fflush): Use them.
93943         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
93944         (gl_REPLACE_FFLUSH): Use it.
93946 2008-04-26  Bruno Haible  <bruno@clisp.org>
93948         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
93949         on Solaris.
93950         * tests/test-xstrtoimax.sh: Likewise.
93951         * tests/test-xstrtoumax.sh: Likewise.
93952         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93954 2008-04-26  Bruno Haible  <bruno@clisp.org>
93956         * modules/memchr-tests: New file.
93957         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
93959 2008-04-26  Eric Blake  <ebb9@byu.net>
93960             Bruno Haible  <bruno@clisp.org>
93962         * lib/memchr.c: Include intprops.h.
93963         (__memchr): Optimize parallel detection of matching bytes. Rename local
93964         variables. Add explanatory comments.
93966 2008-04-26  Bruno Haible  <bruno@clisp.org>
93968         Fix module 'memchr', broken since 2000-10-28.
93969         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
93971 2008-04-26  Bruno Haible  <bruno@clisp.org>
93973         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
93974         comments.
93976 2008-04-25  Eric Blake  <ebb9@byu.net>
93978         Use native fstatat on cygwin 1.7.0.
93979         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
93980         first.
93982 2008-04-23  Eric Blake  <ebb9@byu.net>
93984         Improve memchr2 performance.
93985         * lib/memchr2.c (memchr2): Further optimize parallel detection of
93986         NUL bytes.
93987         * modules/memchr2 (Depends-on): Use intprops.h.
93989 2008-04-23  Simon Josefsson  <simon@josefsson.org>
93991         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
93992         an inline function instead of a CPP macro.  Patch by Ben Pfaff
93993         <blp@cs.stanford.edu>.
93995 2008-04-23  Simon Josefsson  <simon@josefsson.org>
93997         * lib/arpa_inet.in.h: New file.
93999         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
94000         (Makefile.am): Sed in substitute header file.
94002         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
94003         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
94005         * modules/inet_ntop (configure.ac): Use
94006         gl_ARPA_INET_MODULE_INDICATOR.
94008         * modules/inet_pton (configure.ac): Use
94009         gl_ARPA_INET_MODULE_INDICATOR.
94011 2008-04-22  Jim Meyering  <meyering@redhat.com>
94013         * modules/verify (License): Re-license as LGPLv2+.
94015 2008-04-22  Simon Josefsson  <simon@josefsson.org>
94017         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
94018         parameter to void* as per POSIX standard (MinGW uses char*).
94020 2008-04-21  Bruno Haible  <bruno@clisp.org>
94022         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94023         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94024         Define to replacements if REPLACE_ISWCNTRL is 1.
94025         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
94026         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
94027         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
94028         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
94029         what it fixes.
94030         * doc/posix-functions/iswalpha.texi: Likewise.
94031         * doc/posix-functions/iswblank.texi: Likewise.
94032         * doc/posix-functions/iswcntrl.texi: Likewise.
94033         * doc/posix-functions/iswdigit.texi: Likewise.
94034         * doc/posix-functions/iswgraph.texi: Likewise.
94035         * doc/posix-functions/iswlower.texi: Likewise.
94036         * doc/posix-functions/iswprint.texi: Likewise.
94037         * doc/posix-functions/iswpunct.texi: Likewise.
94038         * doc/posix-functions/iswspace.texi: Likewise.
94039         * doc/posix-functions/iswupper.texi: Likewise.
94040         * doc/posix-functions/iswxdigit.texi: Likewise.
94041         Reported by Alain Guibert.
94043 2008-04-21  Bruno Haible  <bruno@clisp.org>
94045         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
94046         Patch by Alain Guibert.
94048 2008-04-21  Bruno Haible  <bruno@clisp.org>
94050         Fix test failures on mingw.
94051         * tests/test-xstrtol.c (print_no_progname): New function.
94052         (main): Install it in error_print_progname hook.
94053         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
94054         * tests/test-xstrtoimax.sh: Likewise.
94055         * tests/test-xstrtoumax.sh: Likewise.
94057 2008-04-21  Bruno Haible  <bruno@clisp.org>
94059         Fix test failure on mingw.
94060         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
94062 2008-04-21  Bruno Haible  <bruno@clisp.org>
94064         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
94065         Actually assign a value.
94067 2008-04-20  Bruno Haible  <bruno@clisp.org>
94069         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
94070         take 2.
94071         * lib/canonicalize.c (canonicalize_file_name): Elide if the
94072         'canonicalize-lgpl' module is also used.
94073         * lib/canonicalize-lgpl.c: Undo last change.
94074         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
94076 2008-04-20  Bruno Haible  <bruno@clisp.org>
94078         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
94079         config.h. Provide _mkdir based fallback for mingw.
94080         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
94081         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
94082         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
94083         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
94084         rather than defining mkdir in config.h.
94085         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
94086         (gl_SYS_STAT_H_DEFAULTS): New macro.
94087         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
94088         HAVE_IO_H any more.
94089         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
94090         HAVE_DECL_MKDIR and HAVE_IO_H.
94092 2008-04-20  Bruno Haible  <bruno@clisp.org>
94094         * lib/isapipe.c: Port to native Windows platforms.
94096 2008-04-20  Bruno Haible  <bruno@clisp.org>
94098         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
94100 2008-04-21  Eric Blake  <ebb9@byu.net>
94102         Work around preprocessors that don't handle UINTMAX_MAX.
94103         * lib/memchr2.c (memchr2): Avoid embedded #if.
94104         Reported by Alain Guibert, fix suggested by Bruno Haible.
94106 2008-04-21  Simon Josefsson  <simon@josefsson.org>
94108         * doc/posix-functions/strftime.texi (strftime): Explain better
94109         Windows incompatibility.  Suggested by Micah Cowan
94110         <micah@cowan.name>.
94112 2008-04-20  Bruno Haible  <bruno@clisp.org>
94114         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
94115         unistr/u8-mblen.
94117 2008-04-20  Bruno Haible  <bruno@clisp.org>
94119         Fix test failure on platforms with non-GNU iconv.
94120         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
94121         (U_TO_U8): Use it, rather than u16_to_u8.
94122         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
94123         units at the end of the input string.
94124         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
94126 2008-04-20  Bruno Haible  <bruno@clisp.org>
94128         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
94129         when the resulting length is 0.
94130         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
94132 2008-04-20  Bruno Haible  <bruno@clisp.org>
94134         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
94135         works.
94136         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
94138 2008-04-20  Bruno Haible  <bruno@clisp.org>
94140         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
94141         * modules/tsearch-tests (configure.ac): Test for initstate function.
94143 2008-04-20  Bruno Haible  <bruno@clisp.org>
94145         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
94146         for nlink_t if missing.
94147         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
94149 2008-04-19  Bruno Haible  <bruno@clisp.org>
94151         Work around snprintf bug on Linux libc5.
94152         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
94153         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94154         gl_SNPRINTF_SIZE1.
94155         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94156         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
94157         that test failed.
94158         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
94159         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94160         * modules/snprintf (Files): Add m4/printf.m4.
94161         * modules/vsnprintf (Files): Likewise.
94162         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
94163         * doc/posix-functions/vsnprintf.texi: Likewise.
94165 2008-04-19  Bruno Haible  <bruno@clisp.org>
94167         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
94168         from 0.0058 to less than 10^-7.
94170 2008-04-19  Bruno Haible  <bruno@clisp.org>
94172         Fix rounding when a precision is given.
94173         * lib/vasnprintf.c (is_borderline): New function.
94174         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
94175         9...9x.
94176         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
94177         %e, %g.
94178         * tests/test-vasprintf-posix.c (test_function): Likewise.
94179         * tests/test-snprintf-posix.h (test_function): Likewise.
94180         * tests/test-sprintf-posix.h (test_function): Likewise.
94181         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
94182         * tests/test-printf-posix.h (test_function): Likewise.
94183         * tests/test-printf-posix.output: Update.
94184         Reported by John Darrington <john@darrington.wattle.id.au> via
94185         Ben Pfaff <blp@cs.stanford.edu>.
94187 2008-04-18  Simon Josefsson  <simon@josefsson.org>
94189         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
94190         Suggested by Bruno Haible <bruno@clisp.org>.
94192 2008-04-17  Bruno Haible  <bruno@clisp.org>
94194         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
94195         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
94196         implementation.
94197         Patch by Bruce Merry <bmerry@gmail.com>.
94199 2008-04-17  Simon Josefsson  <simon@josefsson.org>
94201         * doc/posix-functions/strftime.texi (strftime): Mention that %e
94202         doesn't work under Windows.
94204 2008-04-16  Bruno Haible  <bruno@clisp.org>
94206         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
94207         New macros.
94208         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
94209         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
94210         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
94211         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
94212         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
94213         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
94214         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
94215         macros.
94216         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
94217         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
94218         Northern Sotho, Uighur.
94220 2008-04-16  Bruno Haible  <bruno@clisp.org>
94222         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
94223         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
94224         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
94225         Reported by Daniel Bergström <daniel@octocode.com>.
94227 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
94228             Bruno Haible  <bruno@clisp.org>
94230         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
94231         function.
94232         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
94233         New functions, mostly extracted from gl_locale_name_default.
94234         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
94236 2008-04-16  Eric Blake  <ebb9@byu.net>
94238         Adjust strtod detection to catch glibc 2.7 bug.
94239         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
94240         Reported by John Gatewood Ham.
94242 2008-04-16  Bruno Haible  <bruno@clisp.org>
94244         Add tentative support for Linux libc5.
94245         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
94246         * lib/fpurge.c (fpurge): Likewise.
94247         * lib/freadable.c (freadable): Likewise.
94248         * lib/freadahead.c (freadahead): Likewise.
94249         * lib/freading.c (freading): Likewise.
94250         * lib/freadptr.c (freadptr): Likewise.
94251         * lib/freadseek.c (freadptrinc): Likewise.
94252         * lib/fseeko.c (rpl_fseeko): Likewise.
94253         * lib/fseterr.c (fseterr): Likewise.
94254         * lib/fwritable.c (fwritable): Likewise.
94255         * lib/fwriting.c (fwriting): Likewise.
94256         Reported by Alain Guibert <alguibert+bts@free.fr>.
94258 2008-04-15  Bruno Haible  <bruno@clisp.org>
94260         * modules/mathl (configure.ac): Define module indicator.
94262 2008-04-15  Bruno Haible  <bruno@clisp.org>
94264         * lib/logl.c (logl): Remove unused variables.
94266 2008-04-15  Bruno Haible  <bruno@clisp.org>
94268         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
94269         fails.
94271 2008-04-15  Bruno Haible  <bruno@clisp.org>
94273         * lib/trim.c (trim2): Fix argument of isspace() macro.
94275 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
94277         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
94278         to 0.
94279         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
94281 2008-04-14  Bruno Haible  <bruno@clisp.org>
94283         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
94284         AC_LANG_PROGRAM argument.
94285         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
94286         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
94287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
94288         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94289         * m4/math_h.m4 (gl_MATH_H): Likewise.
94290         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
94291         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94292         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94293         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
94294         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94295         * m4/regex.m4 (gl_REGEX): Likewise.
94296         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
94297         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
94298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94299         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
94300         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
94301         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94305 2008-04-14  Jim Meyering  <meyering@redhat.com>
94307         test-strtod: fix typos: s/abs/fabs/
94308         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
94310 2008-04-13  Bruno Haible  <bruno@clisp.org>
94312         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
94313         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
94314         module is also used and while not building the reloc-wrapper.
94316 2008-04-13  Bruno Haible  <bruno@clisp.org>
94318         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
94320 2008-04-13  Bruno Haible  <bruno@clisp.org>
94322         Fix AIX compilation failure introduced on 2008-04-02.
94323         * tests/test-frexp.c (exp): Undefine before redefining.
94324         * tests/test-frexpl.c (exp): Likewise.
94326 2008-04-13  Bruno Haible  <bruno@clisp.org>
94328         Work around a HP-UX stdio bug.
94329         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
94330         * tests/test-ftello.c (main): Likewise.
94331         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
94332         * doc/posix-functions/ftello.texi: Likewise.
94334 2008-04-13  Bruno Haible  <bruno@clisp.org>
94336         Make test-signbit pass on HP-UX/hppa.
94337         * tests/test-signbit.c (minus_zerol): New variable.
94338         (test_signbitl): Use it.
94340 2008-04-13  Bruno Haible  <bruno@clisp.org>
94342         Make truncl work on OSF/1 4.0.
94343         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
94344         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94345         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
94347         HAVE_DECL_TRUNCL.
94348         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
94349         HAVE_DECL_TRUNCL.
94350         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
94352 2008-04-13  Bruno Haible  <bruno@clisp.org>
94354         * lib/unictype.h: Remove trailing comma from enumeration definitions.
94356 2008-04-13  Bruno Haible  <bruno@clisp.org>
94358         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
94359         expression, so as to avoid HP-UX 11 cc compiler bug.
94361 2008-04-13  Bruno Haible  <bruno@clisp.org>
94363         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
94365 2008-04-13  Bruno Haible  <bruno@clisp.org>
94367         * lib/git-merge-changelog.c: Remove empty declaration outside of
94368         functions.
94370 2008-04-13  Bruno Haible  <bruno@clisp.org>
94372         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
94374 2008-04-13  Bruno Haible  <bruno@clisp.org>
94376         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
94377         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
94378         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
94379         also if it exists but lacks definitions of the SHUT_* macros.
94380         * modules/sys_socket (Description): Update.
94381         Reported by Elbert Pol <e.pol@chello.nl>.
94383 2008-04-13  Bruno Haible  <bruno@clisp.org>
94385         * lib/localcharset.c (OS2): Don't redefine if already defined.
94386         Reported by Elbert Pol <e.pol@chello.nl>.
94388 2008-04-13  Bruno Haible  <bruno@clisp.org>
94390         * lib/binary-io.h [__EMX__]: Include <io.h>.
94391         Reported by Elbert Pol <e.pol@chello.nl>.
94393 2008-04-12  Bruno Haible  <bruno@clisp.org>
94395         * lib/fpucw.h: Enable the definitions also for x86_64.
94396         Needed for NetBSD/x86_64.
94397         Reported by Thomas Klausner <tk@giga.or.at>.
94399 2008-04-12  Bruno Haible  <bruno@clisp.org>
94401         * tests/test-strtod.c: Include isnand.h.
94402         (main): Use isnand instead of isnan.
94403         Reported by Jim Meyering.
94405 2008-04-12  Bruno Haible  <bruno@clisp.org>
94407         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
94408         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
94410 2008-04-12  Jim Meyering  <meyering@redhat.com>
94412         * m4/math_h.m4 (gl_MATH_H): Fix typos.
94414 2008-04-12  Bruno Haible  <bruno@clisp.org>
94416         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
94417         Reported by Elbert Pol <e.pol@chello.nl>.
94419 2008-04-12  Eric Blake  <ebb9@byu.net>
94421         Work around Solaris 10 math.h bug.
94422         * m4/math_h.m4 (gl_MATH_H): Check for bug.
94423         (gl_MATH_H_DEFAULTS): Set up default.
94424         * modules/math (Makefile.am): Replace new indicators.
94425         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
94426         * tests/test-math.c (main): Test this.
94427         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
94428         * doc/posix-headers/math.texi (math.h): Mention bug.
94429         Reported by Nelson H. F. Beebe and Jim Meyering.
94431 2008-04-11  Bruno Haible  <bruno@clisp.org>
94433         Adapt to future versions of Apple GCC.
94434         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
94435         Reported by Peter O'Gorman <peter@pogma.com>.
94437 2008-04-11  Bruno Haible  <bruno@clisp.org>
94439         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
94441 2008-04-11  Bruno Haible  <bruno@clisp.org>
94443         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
94445         * modules/getaddrinfo-tests (Makefile.am): Define
94446         test_getaddrinfo_LDADD.
94448 2008-04-11  Bruno Haible  <bruno@clisp.org>
94450         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
94451         (init): Fix syntax error.
94452         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
94453         is declared.
94455 2008-04-11  Bruno Haible  <bruno@clisp.org>
94457         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
94458         * modules/glob (Depends-on): Add stdbool.
94460 2008-04-11  Bruno Haible  <bruno@clisp.org>
94462         * lib/trim.c: Include <string.h>.
94464 2008-04-11  Eric Blake  <ebb9@byu.net>
94466         Avoid compile failure on OS/2.
94467         * lib/regex_internal.h (internal_function): Disable optimization
94468         on OS/2 (__EMX__), where it caused compiler error.
94469         Reported by Elbert Pol.
94471 2008-04-11  Bruno Haible  <bruno@clisp.org>
94473         Flush the standard error stream before aborting. Needed on mingw.
94474         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
94475         * tests/test-array_list.c (ASSERT): Likewise.
94476         * tests/test-array_oset.c (ASSERT): Likewise.
94477         * tests/test-avltree_list.c (ASSERT): Likewise.
94478         * tests/test-avltree_oset.c (ASSERT): Likewise.
94479         * tests/test-avltreehash_list.c (ASSERT): Likewise.
94480         * tests/test-binary-io.c (ASSERT): Likewise.
94481         * tests/test-byteswap.c (ASSERT): Likewise.
94482         * tests/test-c-ctype.c (ASSERT): Likewise.
94483         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
94484         * tests/test-c-strcasestr.c (ASSERT): Likewise.
94485         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
94486         * tests/test-c-strstr.c (ASSERT): Likewise.
94487         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
94488         * tests/test-canonicalize.c (ASSERT): Likewise.
94489         * tests/test-carray_list.c (ASSERT): Likewise.
94490         * tests/test-ceilf1.c (ASSERT): Likewise.
94491         * tests/test-ceilf2.c (ASSERT): Likewise.
94492         * tests/test-ceill.c (ASSERT): Likewise.
94493         * tests/test-count-one-bits.c (ASSERT): Likewise.
94494         * tests/test-fbufmode.c (ASSERT): Likewise.
94495         * tests/test-fflush2.c (ASSERT): Likewise.
94496         * tests/test-floorf1.c (ASSERT): Likewise.
94497         * tests/test-floorf2.c (ASSERT): Likewise.
94498         * tests/test-floorl.c (ASSERT): Likewise.
94499         * tests/test-fopen.c (ASSERT): Likewise.
94500         * tests/test-fpending.c (ASSERT): Likewise.
94501         * tests/test-fprintf-posix.c (ASSERT): Likewise.
94502         * tests/test-fpurge.c (ASSERT): Likewise.
94503         * tests/test-freadable.c (ASSERT): Likewise.
94504         * tests/test-freadahead.c (ASSERT): Likewise.
94505         * tests/test-freading.c (ASSERT): Likewise.
94506         * tests/test-freadptr.c (ASSERT): Likewise.
94507         * tests/test-freadptr2.c (ASSERT): Likewise.
94508         * tests/test-freadseek.c (ASSERT): Likewise.
94509         * tests/test-freopen.c (ASSERT): Likewise.
94510         * tests/test-frexp.c (ASSERT): Likewise.
94511         * tests/test-frexpl.c (ASSERT): Likewise.
94512         * tests/test-fseek.c (ASSERT): Likewise.
94513         * tests/test-fseeko.c (ASSERT): Likewise.
94514         * tests/test-fstrcmp.c (ASSERT): Likewise.
94515         * tests/test-ftell.c (ASSERT): Likewise.
94516         * tests/test-ftello.c (ASSERT): Likewise.
94517         * tests/test-func.c (ASSERT): Likewise.
94518         * tests/test-fwritable.c (ASSERT): Likewise.
94519         * tests/test-fwriting.c (ASSERT): Likewise.
94520         * tests/test-getdelim.c (ASSERT): Likewise.
94521         * tests/test-getline.c (ASSERT): Likewise.
94522         * tests/test-i-ring.c (ASSERT): Likewise.
94523         * tests/test-iconv-utf.c (ASSERT): Likewise.
94524         * tests/test-iconv.c (ASSERT): Likewise.
94525         * tests/test-isfinite.c (ASSERT): Likewise.
94526         * tests/test-isnand.c (ASSERT): Likewise.
94527         * tests/test-isnanf.c (ASSERT): Likewise.
94528         * tests/test-isnanl.h (ASSERT): Likewise.
94529         * tests/test-ldexpl.c (ASSERT): Likewise.
94530         * tests/test-linked_list.c (ASSERT): Likewise.
94531         * tests/test-linkedhash_list.c (ASSERT): Likewise.
94532         * tests/test-localename.c (ASSERT): Likewise.
94533         * tests/test-lseek.c (ASSERT): Likewise.
94534         * tests/test-mbscasecmp.c (ASSERT): Likewise.
94535         * tests/test-mbscasestr1.c (ASSERT): Likewise.
94536         * tests/test-mbscasestr2.c (ASSERT): Likewise.
94537         * tests/test-mbscasestr3.c (ASSERT): Likewise.
94538         * tests/test-mbscasestr4.c (ASSERT): Likewise.
94539         * tests/test-mbschr.c (ASSERT): Likewise.
94540         * tests/test-mbscspn.c (ASSERT): Likewise.
94541         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
94542         * tests/test-mbspbrk.c (ASSERT): Likewise.
94543         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
94544         * tests/test-mbsrchr.c (ASSERT): Likewise.
94545         * tests/test-mbsspn.c (ASSERT): Likewise.
94546         * tests/test-mbsstr1.c (ASSERT): Likewise.
94547         * tests/test-mbsstr2.c (ASSERT): Likewise.
94548         * tests/test-mbsstr3.c (ASSERT): Likewise.
94549         * tests/test-memchr2.c (ASSERT): Likewise.
94550         * tests/test-memmem.c (ASSERT): Likewise.
94551         * tests/test-open.c (ASSERT): Likewise.
94552         * tests/test-printf-frexp.c (ASSERT): Likewise.
94553         * tests/test-printf-frexpl.c (ASSERT): Likewise.
94554         * tests/test-printf-posix.c (ASSERT): Likewise.
94555         * tests/test-quotearg.c (ASSERT): Likewise.
94556         * tests/test-rbtree_list.c (ASSERT): Likewise.
94557         * tests/test-rbtree_oset.c (ASSERT): Likewise.
94558         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
94559         * tests/test-round1.c (ASSERT): Likewise.
94560         * tests/test-roundf1.c (ASSERT): Likewise.
94561         * tests/test-roundl.c (ASSERT): Likewise.
94562         * tests/test-signbit.c (ASSERT): Likewise.
94563         * tests/test-sleep.c (ASSERT): Likewise.
94564         * tests/test-snprintf-posix.c (ASSERT): Likewise.
94565         * tests/test-snprintf.c (ASSERT): Likewise.
94566         * tests/test-sprintf-posix.c (ASSERT): Likewise.
94567         * tests/test-stat-time.c (ASSERT): Likewise.
94568         * tests/test-strcasestr.c (ASSERT): Likewise.
94569         * tests/test-strerror.c (ASSERT): Likewise.
94570         * tests/test-striconv.c (ASSERT): Likewise.
94571         * tests/test-striconveh.c (ASSERT): Likewise.
94572         * tests/test-striconveha.c (ASSERT): Likewise.
94573         * tests/test-strsignal.c (ASSERT): Likewise.
94574         * tests/test-strstr.c (ASSERT): Likewise.
94575         * tests/test-strtod.c (ASSERT): Likewise.
94576         * tests/test-trunc1.c (ASSERT): Likewise.
94577         * tests/test-trunc2.c (ASSERT): Likewise.
94578         * tests/test-truncf1.c (ASSERT): Likewise.
94579         * tests/test-truncf2.c (ASSERT): Likewise.
94580         * tests/test-truncl.c (ASSERT): Likewise.
94581         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
94582         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
94583         * tests/test-vasnprintf.c (ASSERT): Likewise.
94584         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
94585         * tests/test-vasprintf.c (ASSERT): Likewise.
94586         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
94587         * tests/test-vprintf-posix.c (ASSERT): Likewise.
94588         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
94589         * tests/test-vsnprintf.c (ASSERT): Likewise.
94590         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
94591         * tests/test-wcwidth.c (ASSERT): Likewise.
94592         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
94593         * tests/test-xprintf-posix.c (ASSERT): Likewise.
94594         * tests/test-xvasprintf.c (ASSERT): Likewise.
94595         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
94596         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
94597         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
94598         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
94599         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
94600         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
94601         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
94602         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
94603         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
94604         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
94605         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
94606         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
94607         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
94608         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
94609         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
94610         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
94611         * tests/unictype/test-block_list.c (ASSERT): Likewise.
94612         * tests/unictype/test-block_of.c (ASSERT): Likewise.
94613         * tests/unictype/test-block_test.c (ASSERT): Likewise.
94614         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
94615         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
94616         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
94617         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
94618         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
94619         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
94620         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
94621         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
94622         * tests/unictype/test-combining.c (ASSERT): Likewise.
94623         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
94624         * tests/unictype/test-digit.c (ASSERT): Likewise.
94625         * tests/unictype/test-mirror.c (ASSERT): Likewise.
94626         * tests/unictype/test-numeric.c (ASSERT): Likewise.
94627         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
94628         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
94629         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
94630         * tests/unictype/test-scripts.c (ASSERT): Likewise.
94631         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
94632         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
94633         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
94634         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
94635         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
94636         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
94637         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
94638         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
94639         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
94640         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
94641         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
94642         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
94643         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
94644         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
94645         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
94646         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
94647         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
94648         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
94649         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
94650         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
94651         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
94652         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
94653         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
94654         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
94655         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
94656         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
94657         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
94658         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
94659         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
94660         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
94661         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
94662         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
94663         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
94664         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
94665         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
94666         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
94667         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
94668         Reported by Eric Blake.
94670 2008-04-11  Bruno Haible  <bruno@clisp.org>
94672         * lib/wchar.in.h: Tweak comment.
94674 2008-04-11  Bruno Haible  <bruno@clisp.org>
94676         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
94677         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
94678         gl_COMMON.
94679         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
94681 2008-04-11  Bruno Haible  <bruno@clisp.org>
94683         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
94685 2008-04-11  Simon Josefsson  <simon@josefsson.org>
94687         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
94688         of attempting to use non-existing /dev/*random.  Based on patch
94689         from Adam Strzelecki <ono@java.pl> in
94690         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
94692 2008-04-08  Bruno Haible  <bruno@clisp.org>
94694         Add tentative support for emx+gcc.
94695         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
94696         * lib/fpurge.c (fpurge): Likewise.
94697         * lib/freadable.c (freadable): Likewise.
94698         * lib/freadahead.c (freadahead): Likewise.
94699         * lib/freading.c (freading): Likewise.
94700         * lib/freadptr.c (freadptr): Likewise.
94701         * lib/freadseek.c (freadptrinc): Likewise.
94702         * lib/fseeko.c (rpl_fseeko): Likewise.
94703         * lib/fseterr.c (fseterr): Likewise.
94704         * lib/fwritable.c (fwritable): Likewise.
94705         * lib/fwriting.c (fwriting): Likewise.
94706         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
94708 2008-04-09  Eric Blake  <ebb9@byu.net>
94710         Avoid some autoconf warnings.
94711         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
94712         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
94713         * m4/afs.m4 (gl_AFS): Likewise.
94714         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
94715         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
94716         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
94717         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
94718         (gl_INTEGER_TYPE_SUFFIX): Likewise.
94719         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
94720         (AC_CHECK_DECLS_ONCE): Likewise.
94721         Rename file...
94722         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
94723         gnulib-tool requires autoconf 2.59 or better.
94724         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
94726 2008-04-08  Eric Blake  <ebb9@byu.net>
94728         Use 'git describe --match' if present (added in git 1.5.5).
94729         * build-aux/git-version-gen: Limit result to tags that match 'v*'
94730         if possible.
94732 2008-04-08  Bruno Haible  <bruno@clisp.org>
94734         Add tentative support for OpenServer.
94735         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
94736         _ptr, _cnt.
94737         * lib/fpurge.c (fpurge): Likewise.
94738         * lib/freadable.c (freadable): Likewise.
94739         * lib/freadahead.c (freadahead): Likewise.
94740         * lib/freading.c (freading): Likewise.
94741         * lib/freadptr.c (freadptr): Likewise.
94742         * lib/freadseek.c (freadptrinc): Likewise.
94743         * lib/fseeko.c (rpl_fseeko): Likewise.
94744         * lib/fseterr.c (fseterr): Likewise.
94745         * lib/fwritable.c (fwritable): Likewise.
94746         * lib/fwriting.c (fwriting): Likewise.
94747         Reported by Roger Cornelius <rac@tenzing.org> and
94748         Brian K. White <brian@aljex.com>.
94750 2008-04-06  Jim Meyering  <meyering@redhat.com>
94752         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
94754 2008-04-06  Bruno Haible  <bruno@clisp.org>
94756         Avoid possible error with non-ASCII bytes in UTF-8 locales.
94757         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
94758         * tests/test-printf-posix.sh: Likewise.
94759         * tests/test-vfprintf-posix.sh: Likewise.
94760         * tests/test-vprintf-posix.sh: Likewise.
94761         * tests/test-xprintf-posix.sh: Likewise.
94763 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94765         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
94766         hide error from 'ls', needed on OS/2.
94767         Report by Elbert Pol <elbert.pol@gmail.com>.
94769 2008-04-04  Eric Blake  <ebb9@byu.net>
94771         Make test-fseeko.c failures meaningful.
94772         * tests/test-fseeko.c: Print line number on failure.
94773         * tests/test-fseek.c: Likewise.
94774         Reported by Nelson H. F. Beebe.
94776         Improve strtod bug detection check.
94777         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
94778         required for Solaris 10.
94779         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
94781 2008-04-04  Bruno Haible  <bruno@clisp.org>
94783         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
94784         by m4/setenv.m4.
94786 2008-04-03  Eric Blake  <ebb9@byu.net>
94788         Ensure sane .version contents.
94789         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
94790         version string.
94791         * build-aux/git-version-gen: Improve documentation.
94793         Make GNU make output nicer.
94794         * top/GNUmakefile [!_have-Makefile]: Add dependency on
94795         MAKECMDGOALS to enforce message for all command line targets.  Set
94796         srcdir for use in maint.mk.
94798         Another maintainer tweak.
94799         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
94800         a target that regenerates version.
94802 2008-04-03  Jim Meyering  <meyering@redhat.com>
94804         vc-list-files: don't cause coreutils "make po-check" failure
94805         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
94807 2008-04-03  Eric Blake  <ebb9@byu.net>
94809         Allow VPATH usage of vc-list-files.
94810         * build-aux/vc-list-files (scriptversion): Add timestamp.
94811         (options): Add --help, --version, -C.
94812         (CVS): Support installed cvsu.
94814 2008-04-02  Bruno Haible  <bruno@clisp.org>
94816         Avoid some "statement with no effect" warnings from gcc.
94817         * tests/test-wctype.c (main): Explicitly ignore unused values.
94818         Reported by Jim Meyering.
94820 2008-04-02  Jim Meyering  <meyering@redhat.com>
94822         Avoid some warnings from "gcc -Wshadow".
94823         * tests/test-frexp.c (exp): Define to a different identifier.
94824         * tests/test-frexpl.c (exp): Likewise.
94826 2008-04-03  Jim Meyering  <meyering@redhat.com>
94828         bootstrap: remove dangling *.[ch] symlinks from lib
94829         * build-aux/bootstrap [dangling symlink removal]: Move find's
94830         -depth option to precede all others, to avoid a warning.
94831         Remove *.[ch] files too, and from "$source_base" (usually lib/).
94833 2008-04-02  Bruno Haible  <bruno@clisp.org>
94835         Avoid some warnings from "gcc -Wshadow".
94836         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
94837         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
94838         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
94839         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
94840         Reported by Jim Meyering.
94842 2008-04-01  Bruno Haible  <bruno@clisp.org>
94844         Fix test to work on IRIX 6.5 with cc.
94845         * tests/test-math.c (numeric_equal): New function.
94846         (main): Use it.
94848 2008-04-01  Bruno Haible  <bruno@clisp.org>
94850         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
94852 2008-04-01  Bruno Haible  <bruno@clisp.org>
94854         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
94855         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94856         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
94857         (Depends-on): Remove math.
94859         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
94860         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94861         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
94862         (Depends-on): Remove math.
94864         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
94865         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94866         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
94867         (Depends-on): Remove math.
94868         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
94869         (Depends-on): Remove math.
94871         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
94872         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94873         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
94874         (Depends-on): Remove math.
94875         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
94876         (Depends-on): Remove math.
94878         * tests/test-round1.c: Include nan.h.
94879         (main): Use NaNd instead of NAN.
94880         * modules/round-tests (Files): Add tests/nan.h.
94882         * tests/test-trunc1.c: Include nan.h.
94883         (main): Use NaNd instead of NAN.
94884         * modules/trunc-tests (Files): Add tests/nan.h.
94886         * tests/test-roundf1.c: Include nan.h.
94887         (main): Use NaNf instead of NAN.
94888         * modules/roundf-tests (Files): Add tests/nan.h.
94890         * tests/test-truncf1.c: Include nan.h.
94891         (main): Use NaNf instead of NAN.
94892         * modules/truncf-tests (Files): Add tests/nan.h.
94894         * tests/test-ceilf1.c: Include nan.h.
94895         (main): Use NaNf instead of NAN.
94896         * modules/ceilf-tests (Files): Add tests/nan.h.
94898         * tests/test-floorf1.c: Include nan.h.
94899         (main): Use NaNf instead of NAN.
94900         * modules/floorf-tests (Files): Add tests/nan.h.
94902         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
94903         (main): Use NaNf instead of NAN.
94904         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
94906         * tests/test-isnand.c: Include nan.h instead of <math.h>.
94907         (main): Use NaNd instead of NAN.
94908         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
94910         * tests/test-frexp.c: Include nan.h.
94911         (main): Use NaNd instead of NAN.
94912         * modules/frexp-tests (Files): Add tests/nan.h.
94914         * lib/isnan.c: Don't include <math.h>.
94915         (FUNC): Don't use NAN macro.
94916         * modules/isnand-nolibm (Depends-on): Remove math.
94917         * modules/isnanf-nolibm (Depends-on): Remove math.
94918         * modules/isnanl (Depends-on): Remove math.
94919         * modules/isnanl-nolibm (Depends-on): Remove math.
94921         * tests/nan.h: New file.
94923 2008-04-01  Eric Blake  <ebb9@byu.net>
94925         Fix typos.
94926         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
94927         values to be the right type.
94929         For now, cater to gnulib strtod inaccuracies.
94930         * tests/test-strtod.c (main): Allow 1-ulp error on expected
94931         fractional results.  While not as nice from a QoI perspective, it
94932         is a quicker patch than correctly implementing decimal to binary
94933         rounding.
94935 2008-03-31  Eric Blake  <ebb9@byu.net>
94937         Guarantee a definition of NAN.
94938         * lib/math.in.h (NAN): Define if missing.
94939         * tests/test-math.c (main): Test it.
94940         * doc/posix-headers/math.texi (math.h): Document this.
94941         * lib/isnan.c (rpl_isnand): Use it.
94942         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
94943         * tests/test-floorf1.c (NaN): Likewise.
94944         * tests/test-frexp.c (NaN): Likewise.
94945         * tests/test-isnand.c (NaN): Likewise.
94946         * tests/test-isnanf.c (NaN): Likewise.
94947         * tests/test-round1.c (NaN): Likewise.
94948         * tests/test-roundf1.c (NaN): Likewise.
94949         * tests/test-snprintf-posix.h (NaN): Likewise.
94950         * tests/test-sprintf-posix.h (NaN): Likewise.
94951         * tests/test-trunc1.c (NaN): Likewise.
94952         * tests/test-truncf1.c (NaN): Likewise.
94953         * tests/test-vasnprintf-posix.c (NaN): Likewise.
94954         * tests/test-vasprintf-posix.c (NaN): Likewise.
94955         * modules/isnand-nolibm (Depends-on): Add math.
94956         * modules/isnanf-nolibm (Depends-on): Likewise.
94957         * modules/isnanl (Depends-on): Likewise.
94958         * modules/isnanl-nolibm (Depends-on): Likewise.
94959         * modules/snprintf-posix-tests (Depends-on): Likewise.
94960         * modules/sprintf-posix-tests (Depends-on): Likewise.
94961         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
94962         * modules/vsprintf-posix-tests (Depends-on): Likewise.
94963         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
94964         * modules/vasprintf-posix-tests (Depends-on): Likewise.
94966 2008-03-31  Bruno Haible  <bruno@clisp.org>
94968         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
94969         * doc/posix-functions/strtod.texi: Likewise.
94971 2008-03-31  Bruno Haible  <bruno@clisp.org>
94973         * tests/test-strtod.c (main): Don't use C99 syntax.
94975 2008-03-31  Bruno Haible  <bruno@clisp.org>
94977         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
94978         Reported by Eric Blake.
94980 2008-03-31  Jim Meyering  <meyering@redhat.com>
94982         Don't compare actual signbit return values.
94983         * tests/test-strtod.c (main): Rather, compare only their
94984         zero/non-zero nature.
94986 2008-03-31  Eric Blake  <ebb9@byu.net>
94988         More strtod documentation.
94989         * doc/posix-functions/strtod.texi (strtod): Interpret more test
94990         failures as distinct bugs.
94992 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
94994         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
94995         Problem reported by Erik Benada in
94996         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
94998 2008-03-30  Bruno Haible  <bruno@clisp.org>
95000         * tests/test-strtod.c: Add comments about which assertion fails on which
95001         platform.
95002         * doc/posix-functions/strtod.texi: Add info about many more platforms.
95004 2008-03-30  Eric Blake  <ebb9@byu.net>
95006         Test signbit behavior on zeros.
95007         * tests/test-signbit.c (test_signbitf): Add tests for zero.
95008         (test_signbitd, test_signbitl): Likewise.
95010         More strtod touchups.
95011         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
95012         sign of negative underflow, for now.  Use .5, not .1.
95013         * doc/posix-functions/strtod.texi (strtod): Mention these
95014         limitations.
95015         Reported by Jim Meyering.
95017 2008-03-30  Bruno Haible  <bruno@clisp.org>
95019         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
95020         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
95022 2008-03-30  Bruno Haible  <bruno@clisp.org>
95024         Avoid failure when attempting to return empty iconv results on some
95025         platforms.
95026         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
95027         allocation, don't report ENOMEM when the resulting string is empty.
95029 2008-03-30  Bruno Haible  <bruno@clisp.org>
95031         Fix buffer overrun.
95032         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
95033         Don't consider the width for tmp_length. Check count against tmp_length
95034         before doing the padding. Ensure enough allocation during padding.
95036 2008-03-30  Eric Blake  <ebb9@byu.net>
95038         strtod touchups.
95039         * lib/strtod.c (strtod): Avoid compiler warnings.
95040         Reported by Jim Meyering.
95042 2008-03-30  Bruno Haible  <bruno@clisp.org>
95044         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
95045         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
95046         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
95047         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
95048         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
95049         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
95050         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
95051         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
95053         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
95054         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
95055         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
95056         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
95057         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
95058         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
95059         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
95060         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
95062         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
95063         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
95064         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
95065         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
95066         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
95067         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
95068         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
95069         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
95071         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
95072         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
95074         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
95075         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
95077         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
95078         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
95080         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
95081         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
95082         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
95084         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
95085         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
95086         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
95088         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
95089         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
95090         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
95092         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
95093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
95094         * modules/vasprintf (Depends-on): Add EOVERFLOW.
95096         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
95097         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
95098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
95099         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
95100         (Depends-on): Add EOVERFLOW.
95101         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
95102         (Depends-on): Add EOVERFLOW.
95103         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95104         (Depends-on): Add EOVERFLOW.
95105         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95106         (Depends-on): Add EOVERFLOW.
95107         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95108         (Depends-on): Add EOVERFLOW.
95109         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95110         (Depends-on): Add EOVERFLOW.
95111         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95112         (Depends-on): Add EOVERFLOW.
95113         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95114         (Depends-on): Add EOVERFLOW.
95116         * lib/sprintf.c (EOVERFLOW): Remove fallback.
95117         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
95118         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
95120         * lib/snprintf.c (EOVERFLOW): Remove fallback.
95121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
95122         * modules/snprintf (Depends-on): Add EOVERFLOW.
95124         * lib/poll.c (EOVERFLOW): Remove fallback.
95125         * modules/poll (Depends-on): Add EOVERFLOW.
95127         * lib/getugroups.c (EOVERFLOW): Remove fallback.
95128         * modules/getugroups (Depends-on): Add EOVERFLOW.
95130         * lib/getdelim.c (EOVERFLOW): Remove fallback.
95131         * modules/getdelim (Depends-on): Add EOVERFLOW.
95133         * lib/ftell.c (EOVERFLOW): Remove fallback.
95134         * modules/ftell (Depends-on): Add EOVERFLOW.
95136         * lib/fprintf.c (EOVERFLOW): Remove fallback.
95137         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
95138         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
95140         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
95142         * modules/EOVERFLOW-tests: New file.
95143         * tests/test-EOVERFLOW.c: New file.
95145         * modules/EOVERFLOW: New file.
95146         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
95148 2008-03-30  Bruno Haible  <bruno@clisp.org>
95150         Fix bug introduced on 2007-06-10.
95151         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
95152         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
95154 2008-03-30  Bruno Haible  <bruno@clisp.org>
95156         Improve freadseek's efficiency after ungetc.
95157         * lib/freadseek.c: Include freadahead.h.
95158         (freadptrinc): New function, extracted from freadseek.
95159         (freadseek): Use it in a loop. Use freadahead to determine the number
95160         of loop iterations.
95161         * modules/freadseek (Depends-on): Add freadahead.
95162         (configure.ac): Require AC_C_INLINE.
95164 2008-03-30  Bruno Haible  <bruno@clisp.org>
95166         * lib/freadseek.c (freadseek): Don't ignore the return value of
95167         freadptr.
95169 2008-03-29  Eric Blake  <ebb9@byu.net>
95171         Add hex float support.
95172         * modules/strtod (Depends-on): Add c-ctype.
95173         (Link): Mention POW_LIB.
95174         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
95175         whitespace between 'e' and exponent.
95176         * tests/test-strtod.c (main): Enable hex float tests.
95177         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
95178         now provides.
95180         Document various strtod bugs, with some fixes.
95181         * doc/posix-functions/strtod.texi (strtod): Document bugs with
95182         "-0x", "inf", "nan", and hex constants.
95183         * doc/posix-functions/atof.texi (atof): Likewise.
95184         * modules/stdlib (Makefile.am): Support strtod.
95185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
95186         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
95187         detect additional strtod bugs.
95188         * lib/stdlib.in.h (rpl_strtod): Add declarations.
95189         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
95190         bool where appropriate.  Parse 'inf' and 'nan'.
95191         * tests/test-strtod.c: New file.
95192         * modules/strtod (Depends-on): Add stdbool, stdlib.
95193         (configure.ac): Turn on module indicator.
95194         * modules/strtod-tests: New module.
95196 2008-03-29  Eric Blake  <ebb9@byu.net>
95198         Fix ftell on mingw.
95199         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
95200         * modules/ftell-tests (Depends-on): Add binary-io.
95201         * modules/ftello-tests (Depends-on): Likewise.
95202         * tests/test-ftell.c (main): Enhance test to cover behavior after
95203         ungetc.  Enforce binary mode.
95204         * tests/test-ftello.c (main): Likewise.
95206         Pass test-freadseek on cygwin.
95207         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
95208         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
95209         ungetc buffer.
95211         * tests/test-fflush2.c (main): Fix typo.
95213 2008-03-29  Bruno Haible  <bruno@clisp.org>
95215         * tests/test-fflush2.c (main): Temporarily disable the contents of
95216         this test.
95217         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
95218         Reported by Eric Blake.
95220 2008-03-28  Simon Josefsson  <simon@josefsson.org>
95222         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
95223         (GC_SHA224_DIGEST_SIZE): Add.
95225         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
95226         (gc_hash_digest_length): Likewise.
95227         (gc_hash_buffer): Likewise.
95229 2008-03-25  Bruno Haible  <bruno@clisp.org>
95231         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
95232         detail which gettext release to use.
95233         Reported by Simon Josefsson.
95235 2008-03-26  Jim Meyering  <meyering@redhat.com>
95237         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
95238         * modules/gnumakefile (clean-GNUmakefile): Also, use
95239         test ... && ... || : syntax rather than if-then ... fi.
95241         gnumakefile: Don't double-quote-expand $(VPATH) value.
95242         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
95244 2008-03-24  Eric Blake  <ebb9@byu.net>
95246         Alter GNUmakefile to install into top directory.
95247         * modules/maintainer-makefile: Split, and add dependency...
95248         * modules/gnumakefile: to this new module.
95249         * build-aux/GNUmakefile: Move...
95250         * top/GNUmakefile: ...here.
95251         * build-aux/maint.mk: Move...
95252         * top/maint.mk: ...here.
95253         * MODULES.html.sh (Support for maintaining...): Document new
95254         module.
95256 2008-03-23  Bruno Haible  <bruno@clisp.org>
95258         * gnulib-tool: New options --vc-files, --no-vc-files.
95259         (func_usage): Document them.
95260         (vc_files): New variable.
95261         (func_import): Consider vc_files.
95262         (func_create_testdir): Set vc_files to empty.
95263         Suggested by Jim Meyering and Karl Berry.
95265 2008-03-23  Bruno Haible  <bruno@clisp.org>
95267         Fix regex compilation error on HP-UX 11.
95268         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
95269         * modules/regex (Files): Add m4/mbstate_t.m4.
95270         Reported by Ton Voon <ton.voon@altinity.com>.
95272 2008-03-23  Bruno Haible  <bruno@clisp.org>
95274         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
95276 2008-03-23  Eric Blake  <ebb9@byu.net>
95277             Bruno Haible  <bruno@clisp.org>
95279         Install files from top/ in the destination directory.
95280         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95281         augmentation also for the files from top/.
95282         (func_import, func_create_testdir): Rewrite file names:
95283         top/filename -> filename.
95285 2008-03-23  Bruno Haible  <bruno@clisp.org>
95287         Tweak "gnulib --version" output.
95288         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
95290 2008-03-23  Bruno Haible  <bruno@clisp.org>
95292         Tweak "gnulib --version" output.
95293         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
95294         rather than contents of ChangeLog, when possible.
95296 2008-03-21  Eric Blake  <ebb9@byu.net>
95298         More --version tweaks.
95299         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
95300         date of last ChangeLog entry.
95302 2008-03-21  Jim Meyering  <meyering@redhat.com>
95304         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
95306 2008-03-20  Eric Blake  <ebb9@byu.net>
95308         VPATH fix.
95309         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
95311 2008-03-20  Simon Josefsson  <simon@josefsson.org>
95313         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
95314         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
95316 2008-03-20  Eric Blake  <ebb9@byu.net>
95318         Sync GNUmakefile with coreutils.
95319         * build-aux/GNUmakefile (have-Makefile): Rename...
95320         (_have-Makefile): ...to this, for namespace consideration.
95321         (GNUmakefile.cfg): Include, if present.
95322         (_autoreconf): Define a default.
95323         (_is-dist-target): New rule for rebuilds to pick up intra-release
95324         version.
95325         (maint-cfg.mk): Rename...
95326         (cfg.mk): ...to this.
95328 2008-03-18  Jim Meyering  <meyering@redhat.com>
95330         New script and module: mktempd
95331         * MODULES.html.sh (maint+release support): Add mktempd.
95332         * build-aux/mktempd: New file.
95333         * modules/mktempd: New file.
95335 2008-03-15  Jim Meyering  <meyering@redhat.com>
95337         Undo last change.
95338         * lib/sha1.c, lib/md5.c: 63 != ~63.
95339         Reported by Andreas Schwab.
95341         sha1.c, md5.c: Hoist a redundant expression.
95342         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
95343         "ctx->buflen" only once, before calling *_process_block.
95344         * lib/md5.c (md5_process_bytes): Likewise.
95346 2008-03-14  Eric Blake  <ebb9@byu.net>
95348         Bump copyright year in files generated by gnulib-tool.
95349         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
95350         gnulib-tool, rather than hard-coding it.
95352         Fix 'gnulib-tool --version' output to work with git.
95353         * gnulib-tool (func_gnulib_dir): New function, extracted from...
95354         (startup): ...here.
95355         (func_version): Use it to invoke git-version-gen, rather than
95356         relying on CVS keyword expansion.  Modernize wording.
95357         (cvsdatestamp, last_checkin_date, version): Kill unused
95358         variables.
95360 2008-03-12  Jim Meyering  <meyering@redhat.com>
95362         Recognize optional cast of the argument to free.
95363         * build-aux/useless-if-before-free: Update regexps.
95365         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
95367 2008-03-11  Bruno Haible  <bruno@clisp.org>
95369         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
95370         by a single package.
95371         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
95372         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
95373         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
95374         Reported by Sam Steingold <sds@gnu.org>.
95376 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95378         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
95379         repositories.
95381 2008-03-11  Bruno Haible  <bruno@clisp.org>
95383         Avoid conflicts between local macro definitions.
95384         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95385         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
95387 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
95388             Bruno Haible  <bruno@clisp.org>
95390         Make va_copy work with some version of xlc on AIX 5.1.
95391         * lib/stdarg.in.h: New file.
95392         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
95393         On AIX, use a <stdarg.h> file substitute.
95394         * modules/stdarg (Files): Add lib/stdarg.in.h.
95395         (Depends-on): Add include_next.
95396         (Makefile.am): Build a stdarg.h substitute if requested.
95397         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
95399 2008-03-10  Bruno Haible  <bruno@clisp.org>
95401         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
95402         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95403         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95405 2008-03-10  Bruno Haible  <bruno@clisp.org>
95407         * modules/stdlib (Depends-on): Add include_next, remove
95408         absolute-header.
95410 2008-03-09  Bruno Haible  <bruno@clisp.org>
95412         * lib/freadahead.h (freadahead): Document more precisely.
95413         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
95414         the sum of both buffer sizes.
95415         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
95416         * NEWS: Document the change.
95418 2008-03-09  Bruno Haible  <bruno@clisp.org>
95420         Extend freadptr to return also the buffer size.
95421         * lib/freadptr.h (freadptr): Add sizep argument.
95422         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
95423         (freadptr): Add sizep argument. Determine buffer size like freadahead
95424         does.
95425         * tests/test-freadptr.c: Don't include freadahead.h.
95426         (main): Adapt for new calling convention of freadptr.
95427         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
95428         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
95429         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
95430         tests/test-freadptr2.sh.
95431         (Depends): Remove freadahead.
95432         (TESTS): Add test-freadptr2.sh.
95433         (check_PROGRAMS): Add test-freadptr2.
95435 2008-03-09  Bruno Haible  <bruno@clisp.org>
95437         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
95438         Report and solution by Simon Josefsson.
95440 2008-03-06  Bruno Haible  <bruno@clisp.org>
95442         Make fflush after ungetc work on BSD platforms.
95443         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
95444         * tests/test-fflush2.c: New file.
95445         * tests/test-fflush2.sh: New file.
95446         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
95447         tests/test-fflush2.c.
95448         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
95449         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
95451 2008-03-06  Eric Blake  <ebb9@byu.net>
95453         Likewise for ftello.
95454         * modules/ftello (Dependencies): Add extensions.
95455         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
95457 2008-03-06  Bruno Haible  <bruno@clisp.org>
95459         * modules/fseeko (Dependencies): Add extensions.
95460         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
95461         Needed on glibc systems.
95463 2008-03-06  Bruno Haible  <bruno@clisp.org>
95465         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
95466         email address.
95467         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95469 2008-03-06  Bruno Haible  <bruno@clisp.org>
95471         * users.txt: Add libgnupdf.
95473 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
95475         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
95476         (Header File Substitutes, Function Substitutes,
95477         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
95478         (Build robot for gnulib): Fix typo.
95480 2008-03-06  Bruno Haible  <bruno@clisp.org>
95482         * doc/gnulib-tool.texi (VCS Issues): Small updates.
95483         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95485 2008-03-06  Bruno Haible  <bruno@clisp.org>
95487         * doc/func.texi: New file, extracted from doc/gnulib.texi.
95488         * doc/gnulib.texi: Include it.
95490 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95492         * modules/func (License): Change license to unlimited; there was
95493         no LGPL parts in the module anyway.
95495 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95497         * modules/__func__: Renamed to modules/func.
95498         * modules/__func__-tests: Renamed to modules/func-tests.
95499         * tests/test-__func__.c: Renamed to tests/test-func.c.
95500         * m4/__func__.m4: Renamed to m4/func.m4.
95501         * doc/gnulib.texi (__func__): Section renamed to func.
95502         Suggested by Eric Blake <ebb9@byu.net>.
95504 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95506         * doc/gnulib.texi (__func__): Use C99 terminology when talking
95507         about __func__.  Make example self-contained.  Suggested by Eric
95508         Blake <ebb9@byu.net>.
95510         * tests/test-__func__.c (main): Avoid extraneous () around __func.
95511         Suggested by Eric Blake <ebb9@byu.net>.
95513 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95515         * modules/__func__: New file.
95516         * modules/__func__-tests: New file.
95517         * tests/test-__func__.c: New file.
95518         * m4/__func__.m4: New file.
95519         * doc/gnulib.texi (__func__): Document __func__ module.
95521 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95523         * modules/byteswap (License): Re-license as LGPLv2+.
95525 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95527         * doc/Makefile: Add pdf target.
95529 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95531         * modules/inline (License): Use 'unlimited', since there are only
95532         *.m4 files in this module.
95534 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95535             Bruno Haible  <bruno@clisp.org>
95537         Add support for HP C 7.1 on OpenVMS 8.3.
95538         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
95540 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95542         Update VMS specifics.
95543         * lib/getopt.c [VMS]: Remove include of unixlib.h.
95545 2008-03-02  Jim Meyering  <meyering@redhat.com>
95547         Remove the last dependency on the "free" module.
95548         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
95549         Reported by Bob Proulx.
95551         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
95553         Remove useless "if" tests before free.  Deprecate "free" module.
95554         * doc/posix-functions/free.texi: Mention that this
95555         module is no longer useful.
95556         * modules/free (Notice): Say this module is obsolete.
95557         * modules/readutmp (Depends-on): Remove free.
95558         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
95559         * lib/putenv.c (putenv): Likewise.
95560         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
95561         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
95562         * tests/test-c-strcasestr.c (main): Likewise.
95563         * tests/test-c-strstr.c (main): Likewise.
95564         * tests/test-mbscasestr1.c (main): Likewise.
95565         * tests/test-mbscasestr2.c (main): Likewise.
95566         * tests/test-mbsstr1.c (main): Likewise.
95567         * tests/test-mbsstr2.c (main): Likewise.
95568         * tests/test-memmem.c (main): Likewise.
95569         * tests/test-strcasestr.c (main): Likewise.
95570         * tests/test-striconv.c (main): Likewise.
95571         * tests/test-striconveh.c (main): Likewise.
95572         * tests/test-striconveha.c (main): Likewise.
95573         * tests/test-strstr.c (main): Likewise.
95575         * build-aux/git-version-gen: Adjust a comment and the Usage string.
95577         bootstrap: sync from coreutils again
95578         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
95580 2008-03-01  Jim Meyering  <meyering@redhat.com>
95582         bootstrap: sync from coreutils
95583         * build-aux/bootstrap (update_po_files): Copy a .po file into place
95584         also when the target doesn't exist.
95586 2008-03-01  Eric Blake  <ebb9@byu.net>
95588         Fix bugs in last patch.
95589         * lib/memchr2.c (memchr2): Fix typo.
95590         * tests/test-memchr2.c: Test previous bug, and don't use GNU
95591         extension.
95592         Reported by Bruce Korb.
95594         New module 'memchr2'.
95595         * modules/memchr2: New file.
95596         * modules/memchr2-tests: Likewise.
95597         * lib/memchr2.h: Likewise.
95598         * lib/memchr2.c: Likewise, based on memchr.c.
95599         * tests/test-memchr2.c: New test.
95600         * MODULES.html.sh (String handling): Add memchr2.
95602 2008-02-29  Bruno Haible  <bruno@clisp.org>
95604         * modules/freadseek-tests: New file.
95605         * tests/test-freadseek.sh: New file.
95606         * tests/test-freadseek.c: New file.
95608         New module 'freadseek'.
95609         * modules/freadseek: New file.
95610         * lib/freadseek.h: New file.
95611         * lib/freadseek.c: New file.
95612         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
95614 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
95616         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
95617         wydawca.
95619         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
95620         program_invocation_name and program_invocation_short_name are
95621         present.
95623 2008-02-28  Bruno Haible  <bruno@clisp.org>
95625         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
95626         * tests/test-freadptr.sh: Also test non-seekable stdin.
95628 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
95630         * build-aux/bootstrap (source_base, m4_base)
95631         (doc_base, tests_base): New variables.
95632         (gnulib_tool_options): Do not hardcode base directories, use
95633         the above variables instead.
95635 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
95637         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
95639 2008-02-28  Bruno Haible  <bruno@clisp.org>
95641         * modules/freadptr-tests: New file.
95642         * tests/test-freadptr.sh: New file.
95643         * tests/test-freadptr.c: New file.
95645         New module 'freadptr'.
95646         * modules/freadptr: New file.
95647         * lib/freadptr.h: New file.
95648         * lib/freadptr.c: New file.
95649         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
95651 2008-02-26  Karl Berry  <karl@freefriends.org>
95653         Sync from Libtool:
95654         * libltdl/argz.c (argz_add, argz_count): New functions.
95655         * libltdl/argz.in.h: Declare them.
95656         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
95658 2008-02-22  Bruno Haible  <bruno@clisp.org>
95660         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
95661         is a pointer type.  Needed for HP-UX 10.
95662         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
95663         * doc/posix-functions/gmtime_r.texi: Likewise.
95664         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95666 2008-02-24  Bruno Haible  <bruno@clisp.org>
95668         * modules/environ-tests: New file.
95669         * tests/test-environ.c: New file.
95671         New module 'environ'.
95672         * modules/environ: New file.
95673         * lib/unistd.in.h (environ): New declaration.
95674         * m4/environ.m4: New file.
95675         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
95676         after use.
95677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
95678         HAVE_DECL_ENVIRON.
95679         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
95680         HAVE_DECL_ENVIRON.
95681         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
95682         wrong claim that 'environ' is missing on some systems.
95683         * modules/execute (Depends-on): Add environ.
95684         * lib/execute.c (environ): Remove fallback declaration.
95685         * modules/pipe (Depends-on): Add environ.
95686         * lib/pipe.c (environ): Remove fallback declaration.
95687         * modules/setenv (Depends-on): Add environ.
95688         * lib/setenv.c (environ): Remove fallback declaration.
95689         * modules/unsetenv (Depends-on): Add environ.
95690         * lib/unsetenv.c (environ): Remove fallback declaration.
95691         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
95692         m4/environ.m4.
95693         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
95694         (gl_PREREQ_UNSETENV): Likewise.
95696 2008-02-24  Bruno Haible  <bruno@clisp.org>
95698         * doc/posix-functions/environ.texi: Document the MacOS X problem.
95700 2008-02-20  Bob Proulx  <bob@proulx.com>
95702         Enable use of older two part flavor 'git describe'.
95703         * build-aux/git-version-gen: If using the older two part flavor of
95704         git version then recreate the third part now present in the
95705         newer three part flavor of git describe.
95707 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
95709         * lib/fts.c (fts_build): Typo correction to comment.
95711 2008-02-17  Bruno Haible  <bruno@clisp.org>
95713         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
95714         generating no-op conflicts.
95716 2008-02-17  Bruno Haible  <bruno@clisp.org>
95718         Speed up by 10%.
95719         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
95720         result_entries, rather than an index-based loop.
95722 2008-02-17  Bruno Haible  <bruno@clisp.org>
95724         Speed up by 25%.
95725         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
95726         'hashcode_cached'.
95727         (entry_create): New function.
95728         (entry_hashcode): Use the cached hashcode if possible.
95729         (read_changelog_file, try_split_merged_entry): Use entry_create.
95731 2008-02-17  Bruno Haible  <bruno@clisp.org>
95733         Speed up from O(n^2) to O(n) for long ChangeLog files.
95734         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
95735         (read_changelog_file): Change implementation of entries_reversed list
95736         to rbtreehash.
95737         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
95739 2008-02-17  Bruno Haible  <bruno@clisp.org>
95741         New option --split-merged-entry.
95742         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
95743         (find_paragraph_end, try_split_merged_entry): New functions.
95744         (long_options): Add option --split-merged-entry.
95745         (usage): Document option --split-merged-entry.
95746         (main): Implement option --split-merged-entry.
95747         Reported by Eric Blake.
95749 2008-02-17  Bruno Haible  <bruno@clisp.org>
95751         * lib/git-merge-changelog.c: Include c-strstr.h.
95752         (main): Support the "git pull --rebase" situation.
95753         * modules/git-merge-changelog (Depends-on): Add c-strstr.
95754         Reported by Eric Blake.
95756 2008-02-16  Eric Blake  <ebb9@byu.net>
95758         Avoid doubling \ in common case of "c-maybe" quoting style.
95759         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
95760         eliding outer quotes.
95761         * lib/quotearg.h: Document this.
95762         * tests/test-quotearg.c (result_strings, inputs, results_g)
95763         (flag_results, locale_results): Test it by adding a new string to
95764         each test group.
95765         (compare_strings): Test new string.
95767 2008-02-13  Eric Blake  <ebb9@byu.net>
95769         Avoid trigraph quoting in default output.
95770         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
95771         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
95772         unless explicitly requested.
95773         * tests/test-quotearg.c (flag_results, main): Add additional tests.
95775 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
95777         Don't rely on signed integer overflowing to negative value.
95778         * lib/getugroups.c (getugroups): Include <limits.h>.
95779         Instead, compare against INT_MAX, and increment only if the test passes.
95781 2008-02-13  Jim Meyering  <meyering@redhat.com>
95782         and Eric Blake  <ebb9@byu.net>
95784         Avoid shadowing warning and compile errors on Linux.
95785         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
95786         forwarding macros on Linux.
95787         (dcgettext): Define a stub, for Linux.
95788         (results_g, main): Avoid warnings.
95790 2008-02-12  Eric Blake  <ebb9@byu.net>
95792         Silence warning in last patch.
95793         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
95795         Quotearg part 4: add tests, fix c-maybe colon quoting.
95796         * lib/quotearg.h: Improve documentation.
95797         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
95798         escapes when adding outer quotes.  When quoting trigraphs, use
95799         valid C notation.  When quoting NUL, omit extra characters if next
95800         character is not digit.  Alter prototype.
95801         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
95802         callers.
95803         * modules/quotearg-tests: New module.
95804         * tests/test-quotearg.c: New test.
95806 2008-02-07  Eric Blake  <ebb9@byu.net>
95808         Quotearg part 3: add flag to control outer quote elision.
95809         * lib/quotearg.h (c_maybe_quoting_style): New style.
95810         (enum quoting_flags): Better documentation of flags.
95811         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
95812         c-maybe style.
95813         (quotearg_buffer_restyled): Handle new flag to elide outer
95814         quotes.
95816         Quotearg part 2: add flag that can control NUL elision.
95817         * lib/quotearg.h (set_quoting_flags): New prototype.
95818         * lib/quotearg.c (struct quoting_options): Add flag field.
95819         (set_quoting_flags): New function.
95820         (quotearg_buffer_restyled): Add flags parameter.
95821         (quotearg_alloc_mem): Set the flag if length cannot be returned.
95822         (quotearg_n_options): Set the flag, since length cannot be
95823         returned.
95824         (quoting_options_from_style): Default flags correctly.
95826         Quotearg part 1: more wrappers, restore quotearg_char state.
95827         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
95828         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
95829         (quotearg_colon_mem): New wrappers.
95830         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
95831         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
95832         functions.
95833         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
95834         (quotearg_colon_mem): New functions.
95836 2008-02-11  Bruno Haible  <bruno@clisp.org>
95838         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
95839         library in the current directory: it does not work with parallel make.
95840         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95842 2008-02-11  Bruno Haible  <bruno@clisp.org>
95844         * .gitattributes: New file.
95846 2008-02-11  Jim Meyering  <meyering@redhat.com>
95848         useless-if-before-free: Fix reversed exit values.
95849         * build-aux/useless-if-before-free: Use correct values
95850         for EXIT_MATCH and EXIT_NO_MATCH.
95852         * build-aux/useless-if-before-free: Close stdout carefully.
95854 2008-02-10  Bruno Haible  <bruno@clisp.org>
95856         New module 'git-merge-changelog'.
95857         * modules/git-merge-changelog: New file.
95858         * lib/git-merge-changelog.c: New file.
95860 2008-02-10  Jim Meyering  <meyering@redhat.com>
95862         useless-if-before-free: New option: --list (-l).
95864         useless-if-before-free: Don't exit immediately upon open failure.
95865         * build-aux/useless-if-before-free: Exit 2 for errors.
95866         Upon failure to open a file, don't exit immediately.
95867         Rather, just warn and continue with any remaining files.
95869 2008-02-10  Bruno Haible  <bruno@clisp.org>
95871         New abstract list operation 'node_set_value'.
95872         * lib/gl_list.h (gl_list_node_set_value): New function.
95873         (struct gl_list_implementation): New field node_set_value.
95874         * lib/gl_list.c (gl_list_node_set_value): New function.
95875         * lib/gl_array_list.c (gl_array_node_set_value): New function.
95876         (gl_array_list_implementation): Update.
95877         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
95878         (gl_carray_list_implementation): Update.
95879         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
95880         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
95881         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
95882         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
95883         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
95884         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
95885         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
95886         Update.
95887         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
95888         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
95889         (gl_sublist_list_implementation): Update.
95891 2008-02-10  Bruno Haible  <bruno@clisp.org>
95893         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
95894         Needed when ELEMENT is #defined to 'some_type *'.
95896 2008-02-10  Jim Meyering  <meyering@redhat.com>
95898         New script and module: useless-if-before-free
95899         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
95900         * build-aux/useless-if-before-free: New file.
95901         * modules/useless-if-before-free: New file.
95903         * build-aux/gitlog-to-changelog: Use committer date, not author date.
95905         xstrtol_error: Fix typo.
95906         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
95907         s/exit_failure/exit_status/.
95909 2008-02-09  Jim Meyering  <meyering@redhat.com>
95911         New script and module: gitlog-to-changelog
95912         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
95913         * modules/gitlog-to-changelog: New file.
95914         * build-aux/gitlog-to-changelog: New file.
95916 2008-02-08  Jim Meyering  <meyering@redhat.com>
95918         Avoid two "parameter unused" warnings.
95919         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
95920         Mark "st" as used.
95922         Use "git COMMAND", not "git-COMMAND".
95923         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
95924         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
95925         * build-aux/git-version-gen: Use "git status", not "git-status".
95927 2008-02-07  Bruno Haible  <bruno@clisp.org>
95929         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
95930         Avoids a crash on Windows Vista.
95931         Reported by Adam Strzelecki <ono@java.pl> via
95932         Simon Josefsson <simon@josefsson.org>.
95934 2008-02-06  Bruno Haible  <bruno@clisp.org>
95936         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
95937         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
95938         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
95939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
95940         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95941         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95942         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
95943         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
95944         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95945         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95946         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95947         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95948         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95949         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95950         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95951         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
95952         left-adjust flag.
95953         * tests/test-snprintf-posix.h (test_function): Likewise.
95954         * tests/test-sprintf-posix.h (test_function): Likewise.
95955         * tests/test-vasprintf-posix.c (test_function): Likewise.
95956         * doc/posix-functions/fprintf.texi: Update.
95957         * doc/posix-functions/printf.texi: Update.
95958         * doc/posix-functions/snprintf.texi: Update.
95959         * doc/posix-functions/sprintf.texi: Update.
95960         * doc/posix-functions/vfprintf.texi: Update.
95961         * doc/posix-functions/vprintf.texi: Update.
95962         * doc/posix-functions/vsnprintf.texi: Update.
95963         * doc/posix-functions/vsprintf.texi: Update.
95964         Reported by Peter Fales <psfales@alcatel-lucent.com>.
95966 2008-02-06  Bruno Haible  <bruno@clisp.org>
95968         Fix bug introduced on 2008-01-26.
95969         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
95971 2008-02-06  Bruno Haible  <bruno@clisp.org>
95973         Fix bug introduced on 2007-06-10.
95974         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
95975         !NEED_PRINTF_FLAG_ZERO.
95977 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
95979         getloadavg: use libperfstat on AIX5
95980         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
95982 2008-02-03  Bruno Haible  <bruno@clisp.org>
95984         * lib/diffseq.h: Add comments about required #includes.
95985         Reported by Michael Biggs <gnulib@doubleplum.net>.
95987 2008-02-01  Bruno Haible  <bruno@clisp.org>
95989         * users.txt: Add gnuit.
95991 2008-01-31  Bruno Haible  <bruno@clisp.org>
95993         * lib/md4.c (set_uint32): Mark as inline.
95994         * lib/md5.c (set_uint32): Likewise.
95995         * lib/sha1.c (set_uint32): Likewise.
95996         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
95997         * m4/md5.m4 (gl_MD5): Likewise.
95998         * m4/sha1.m4 (gl_SHA1): Likewise.
96000 2008-01-31  Jim Meyering  <meyering@redhat.com>
96002         Use "sizeof VAR", rather than a literal "4".
96003         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
96004         * lib/md4.c (md4_read_ctx): Likewise.
96005         * lib/sha1.c (sha1_read_ctx): Likewise.
96007 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96009         * tests/test-sha1.c: New file, based on test-md5.c.
96011         * modules/crypto/sha1-tests: New file.
96013 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96015         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
96017 2008-01-31  Jim Meyering  <meyering@redhat.com>
96019         Prefer "sizeof v" over the equivalent "4".
96020         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
96021         * lib/md5.c (set_uint32): Likewise.
96022         * lib/sha1.c (set_uint32): Likewise.
96024 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96026         * lib/sha1.c (set_uint32): Mark function as static.
96028 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96030         md2: clarify comments to say that alignment is not required.
96031         * lib/md2.h: Remove warning about alignment in comment.
96032         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
96033         never been required.
96035 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96037         md4: adapt alignment constraint fix from sha1.
96038         * lib/md4.c (set_uint32): New function, from sha1.c
96039         (md4_read_ctx): Use it.
96040         (md4_finish_ctx): Doc fix.
96041         * lib/md4.h: Doc fix.
96043 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96045         md5: adapt alignment constraint fix from sha1.
96046         * lib/md5.c (set_uint32): New function, from sha1.c
96047         (md5_read_ctx): Use it.
96048         (md5_finish_ctx): Doc fix.
96049         * lib/md5.h: Doc fix.
96051 2008-01-30  Peter Palfrader  <weasel@debian.org>
96053         sha1: remove the result buffer alignment constraint
96054         * lib/sha1.c (set_uint32): New function.
96055         (sha1_read_ctx): Rewrite to remove the result buffer alignment
96056         constraint.
96057         (sha1_finish_ctx): Remove comment warning about alignment constraint.
96058         * lib/sha1.h: Likewise.
96060 2008-01-30  Andreas Schwab  <schwab@suse.de>
96061             Bruno Haible  <bruno@clisp.org>
96063         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
96064         correct definition of LDBL_MIN_EXP.
96066 2008-01-30  Karl Berry  <karl@gnu.org>
96068         * config/srclist-update: try to preserve x bit on updates.
96069         * config/srclistvars.sh: update for karl.
96071 2008-01-29  Jim Meyering  <meyering@redhat.com>
96073         vasnprintf.c: Avoid warning about unused label
96074         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
96075         "overflow" label definition and associated code with the
96076         same cpp condition that guards the sole use of that label.
96078 2008-01-26  Bruno Haible  <bruno@clisp.org>
96080         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
96081         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
96082         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
96083         * lib/isnanl-nolibm.h (isnanl): Likewise.
96084         Reported by Paul Eggert <eggert@cs.ucla.edu>.
96086 2008-01-26  Bruno Haible  <bruno@clisp.org>
96088         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
96089         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
96091 2008-01-26  Bruno Haible  <bruno@clisp.org>
96093         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
96094         GCC >= 4.0 built-in.
96095         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
96097 2008-01-26  Bruno Haible  <bruno@clisp.org>
96099         Rename isnan, applicable to 'double' only, to isnand.
96100         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
96101         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
96102         (configure.ac): Update.
96103         (Include): Replace "isnan.h" with "isnand.h".
96104         * m4/isnand.m4: Renamed from m4/isnan.m4.
96105         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
96106         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
96107         instead of isnan.c.
96108         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
96109         instead of HAVE_ISNAN_IN_LIBC.
96110         (isnand): Renamed from isnan.
96111         * lib/isnand.c: New file.
96112         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
96113         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
96114         (Makefile.am): Update.
96115         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
96116         Include isnand.h instead of isnan.h.
96117         (main): Test isnand instead of isnan.
96118         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
96119         isnan-nolibm.
96120         * modules/frexp (Depends-on): Likewise.
96121         * modules/frexp-tests (Depends-on): Likewise.
96122         * modules/frexp-nolibm (Depends-on): Likewise.
96123         * modules/frexp-nolibm-tests (Depends-on): Likewise.
96124         * modules/isfinite (Depends-on): Likewise.
96125         * modules/round-tests (Depends-on): Likewise.
96126         * modules/signbit (Depends-on): Likewise.
96127         * modules/signbit-tests (Depends-on): Likewise.
96128         * modules/snprintf-posix (Depends-on): Likewise.
96129         * modules/sprintf-posix (Depends-on): Likewise.
96130         * modules/trunc-tests (Depends-on): Likewise.
96131         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96132         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96133         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96134         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96135         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96136         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96137         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96138         * modules/vasnprintf-posix (Depends-on): Likewise.
96139         * modules/vasprintf-posix (Depends-on): Likewise.
96140         * modules/vfprintf-posix (Depends-on): Likewise.
96141         * modules/vsnprintf-posix (Depends-on): Likewise.
96142         * modules/vsprintf-posix (Depends-on): Likewise.
96143         * lib/frexp.c: Include isnand.h instead of isnan.h.
96144         (ISNAN): Set to isnand instead of isnan.
96145         * lib/isfinite.c: Include isnand.h instead of isnan.h.
96146         (gl_isfinited): Use isnand instead of isnan.
96147         * lib/signbitd.c: Include isnand.h instead of isnan.h.
96148         (gl_signbitd): Use isnand instead of isnan.
96149         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
96150         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
96151         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
96152         (main): Use isnand instead of isnan.
96153         * tests/test-round1.c: Include isnand.h.
96154         (main): Use isnand instead of isnan.
96155         * tests/test-round2.c: Include isnand.h instead of isnan.h.
96156         (ISNAN): Set to isnand instead of isnan.
96157         * tests/test-trunc1.c: Include isnand.h.
96158         (main): Use isnand instead of isnan.
96159         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
96160         (equal): Use isnand instead of isnan.
96161         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
96162         isnand-nolibm.
96163         * NEWS: Mention the change.
96165 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96166             Bruno Haible  <bruno@clisp.org>
96168         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
96169         the GCC builtins for signbits are present and set
96170         REPLACE_SIGNBIT_USING_GCC if so.
96171         * lib/math.in.h (signbit): Define using GCC builtins if
96172         REPLACE_SIGNBIT_USING_GCC is set.
96173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
96174         REPLACE_SIGNBIT_USING_GCC.
96175         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
96177 2008-01-25  Jim Meyering  <meyering@redhat.com>
96179         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
96180         * lib/poll.c: Include <config.h>, not "config.h".
96181         * tests/test-getaddrinfo.c: Likewise.
96183 2008-01-25  Simon Josefsson  <simon@josefsson.org>
96185         * modules/sockets-tests: New file.
96187 2008-01-24  Simon Josefsson  <simon@josefsson.org>
96189         * modules/sockets: New module, can be used to call WSA_Startup and
96190         WSA_Cleanup when needed.
96192         * lib/sockets.h, lib/sockets.c: New files.
96194         * m4/sockets.m4: New file.
96196         * tests/test-sockets.c: New file.
96198 2008-01-19  Bruno Haible  <bruno@clisp.org>
96200         * doc/posix-headers: Renamed from doc/headers.
96201         * doc/posix-functions: Renamed from doc/functions.
96202         * doc/gnulib.texi: Update.
96204 2008-01-19  Bruno Haible  <bruno@clisp.org>
96206         * doc/glibc-functions/strcasestr.texi: Include contents of
96207         doc/functions/strcasestr.texi, fixing the list of platforms.
96208         * doc/functions/strcasestr.texi: Remove file.
96210 2008-01-19  Bruno Haible  <bruno@clisp.org>
96212         * doc/glibc-functions/memmem.texi: Include contents of
96213         doc/functions/memmem.texi.
96214         * doc/functions/memmem.texi: Remove file.
96216 2008-01-18  Bruno Haible  <bruno@clisp.org>
96218         * doc/glibc-functions/*.texi: New files.
96219         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
96220         to use the new files.
96222 2008-01-17  Bruno Haible  <bruno@clisp.org>
96224         * tests/test-gethostname.c (main): Fix printf statement.
96226 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96228         * modules/gethostname-tests: New file.
96230         * tests/test-gethostname.c: New file.
96232 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96234         * lib/gethostname.c: Include string.h unconditionally, strncpy is
96235         used by the UNAME case.  Reported by Bruno Haible
96236         <bruno@clisp.org>.
96238 2008-01-17  Eric Blake  <ebb9@byu.net>
96240         Convert c-strcasestr to be more efficient.
96241         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
96242         (Depends-on): Add c-strcase, remove malloca, strnlen.
96243         * tests/test-c-strcasestr.c (main): Enhance test.
96244         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
96246 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
96248         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
96249         Use it in creating po/Makevars.
96251 2008-01-15  Simon Josefsson  <simon@josefsson.org>
96253         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
96254         Applications that requires it should initialize libgcrypt
96255         manually.
96257 2008-01-16  Simon Josefsson  <simon@josefsson.org>
96259         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
96261 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
96263         Fix problem with getdate on mingw32 reported by Simon Josefsson
96264         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
96265         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
96266         tzname", when deciding whether to declare tzname.
96267         * lib/strftime.c (tzname): Likewise.
96269 2008-01-15  Bruno Haible  <bruno@clisp.org>
96271         Work around a MacOS X 10.5 bug in frexpl().
96272         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
96273         * doc/functions/frexpl.texi: Document the bug.
96274         Reported by Elias Pipping <pipping@gentoo.org>.
96276 2008-01-14  Eric Blake  <ebb9@byu.net>
96278         Touch up previous patch.
96279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
96280         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
96282         Convert strcasestr module to use Two-Way algorithm.
96283         * modules/strcasestr-simple: New module, based on the old
96284         strcasestr, but with Two-Way rather than KMP.
96285         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
96286         * lib/string.in.h (rpl_strcasestr): Declare.
96287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
96288         performance.
96289         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
96290         * modules/string (Makefile.am): Support strcasestr.
96291         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
96292         * modules/strcasestr-tests (Depends-on): Check for alarm.
96293         * tests/test-strcasestr.c: Augment test.
96294         * lib/str-two-way.h: Clean up stray macro.
96295         * NEWS: Document new module.
96296         * MODULES.html.sh (string handling): Likewise.
96297         * doc/functions/strcasestr.texi: New file.
96298         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
96299         here, since it is not a POSIX function.
96301 2008-01-14  Colin Watson  <cjwatson@debian.org>
96302             Bruno Haible  <bruno@clisp.org>
96304         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
96305         works fine; if not, set REPLACE_STRSIGNAL.
96306         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
96307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96308         REPLACE_STRSIGNAL.
96309         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
96310         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
96311         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
96313 2008-01-14  Bruno Haible  <bruno@clisp.org>
96315         * modules/strsignal (Include): Change to <string.h>.
96317 2008-01-14  Colin Watson  <cjwatson@debian.org>
96319         * modules/argp (Notice): Add a notice recommending to change
96320         XGETTEXT_OPTIONS.
96321         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
96323 2008-01-13  Colin Watson  <cjwatson@debian.org>
96325         * modules/strsignal-tests: New file.
96326         * tests/test-strsignal.c: New file.
96328         * lib/strsignal.c: New file, from glibc with modifications.
96329         * lib/siglist.h: New file, from glibc with modifications.
96330         * lib/string.in.h (strsignal): New declaration.
96331         * m4/strsignal.m4: New file.
96332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96333         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
96334         * modules/strsignal: New file.
96335         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
96336         HAVE_DECL_STRSIGNAL.
96338 2008-01-13  Bruno Haible  <bruno@clisp.org>
96340         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
96341         locale encoding is not ASCII. Needed for OpenBSD 4.0.
96342         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96343         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96345 2008-01-13  Bruno Haible  <bruno@clisp.org>
96347         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
96348         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
96349         * lib/argp.h (__attribute__): Likewise.
96350         * lib/c-stack.c (__attribute__): Likewise.
96351         * lib/error.h (__attribute__): Likewise.
96352         * lib/fts.c (__attribute__): Likewise.
96353         * lib/openat.h (__attribute__): Likewise.
96354         * lib/stdio.in.h (__attribute__): Likewise.
96355         * lib/string.in.h (__attribute__): Likewise.
96356         * lib/utimens.c (__attribute__): Likewise.
96357         * lib/vasnprintf.h (__attribute__): Likewise.
96358         * lib/xalloc.h (__attribute__): Likewise.
96359         * lib/xprintf.h (__attribute__): Likewise.
96360         * lib/xstrtol.h (__attribute__): Likewise.
96361         * lib/xvasprintf.h (__attribute__): Likewise.
96363 2008-01-12  Bruno Haible  <bruno@clisp.org>
96365         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
96366         * doc/glibc-headers/a.out.texi: New file.
96367         * doc/glibc-headers/aliases.texi: New file.
96368         * doc/glibc-headers/alloca.texi: New file.
96369         * doc/glibc-headers/ar.texi: New file.
96370         * doc/glibc-headers/argp.texi: New file.
96371         * doc/glibc-headers/argz.texi: New file.
96372         * doc/glibc-headers/byteswap.texi: New file.
96373         * doc/glibc-headers/crypt.texi: New file.
96374         * doc/glibc-headers/endian.texi: New file.
96375         * doc/glibc-headers/envz.texi: New file.
96376         * doc/glibc-headers/err.texi: New file.
96377         * doc/glibc-headers/error.texi: New file.
96378         * doc/glibc-headers/execinfo.texi: New file.
96379         * doc/glibc-headers/fpu_control.texi: New file.
96380         * doc/glibc-headers/fstab.texi: New file.
96381         * doc/glibc-headers/fts.texi: New file.
96382         * doc/glibc-headers/getopt.texi: New file.
96383         * doc/glibc-headers/ieee754.texi: New file.
96384         * doc/glibc-headers/ifaddrs.texi: New file.
96385         * doc/glibc-headers/libintl.texi: New file.
96386         * doc/glibc-headers/mcheck.texi: New file.
96387         * doc/glibc-headers/mntent.texi: New file.
96388         * doc/glibc-headers/obstack.texi: New file.
96389         * doc/glibc-headers/paths.texi: New file.
96390         * doc/glibc-headers/printf.texi: New file.
96391         * doc/glibc-headers/pty.texi: New file.
96392         * doc/glibc-headers/resolv.texi: New file.
96393         * doc/glibc-headers/shadow.texi: New file.
96394         * doc/glibc-headers/sysexits.texi: New file.
96395         * doc/glibc-headers/ttyent.texi: New file.
96397 2008-01-12  Jim Meyering  <meyering@redhat.com>
96399         announce-gen: emit Gnulib's git-based version string.
96400         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
96401         New option --gnulib-version=V, where V is expected to be
96402         the output of running git describe in the gnulib directory.
96403         (get_tool_versions): Request feedback on xdelta.  I suspect it's
96404         not useful, and plan to stop publishing an xdelta file with each
96405         coreutils release.
96407         * build-aux/announce-gen: Also check for lzma-compressed files.
96409 2008-01-11  Bruno Haible  <bruno@clisp.org>
96411         * tests/test-memmem.c (main): Increase maximum allowed time.
96412         * tests/test-strstr.c (main): Likewise.
96414 2008-01-11  Bruno Haible  <bruno@clisp.org>
96416         * doc/functions/memmem.texi: Add more precisions about platforms.
96417         * doc/functions/strstr.texi: Likewise.
96419 2008-01-10  Eric Blake  <ebb9@byu.net>
96421         * m4/strstr.m4: Delete cruft from copy-n-paste.
96422         Reported by Bruno Haible.
96424 2008-01-10  Bruno Haible  <bruno@clisp.org>
96426         Make c-strstr rely on strstr.
96427         * lib/c-strstr.c: Don't include str-kmp.h.
96428         (c_strstr): Define in terms of strstr.
96429         * modules/c-strstr (Files): Remove lib/str-kmp.h.
96430         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
96432 2008-01-10  Bruno Haible  <bruno@clisp.org>
96434         * doc/gnulib.texi (String Functions in C Locale): New section.
96435         * doc/c-ctype.texi: New file.
96436         * doc/c-strcase.texi: New file.
96437         * doc/c-strcaseeq.texi: New file.
96438         * doc/c-strcasestr.texi: New file.
96439         * doc/c-strstr.texi: New file.
96440         * doc/c-strtod.texi: New file.
96441         * doc/c-strtold.texi: New file.
96443 2008-01-10  Eric Blake  <ebb9@byu.net>
96445         * lib/relocatable.h: Fix a comment.
96447 2008-01-10  Eric Blake  <ebb9@byu.net>
96449         Share two-way algorithm.
96450         * lib/str-two-way.h: New file, merged from...
96451         * lib/memmem.c: ...here...
96452         * lib/strstr.c: ...and here.
96453         * modules/memmem (Files): Use it.
96454         * modules/strstr (Files): Likewise.
96456         Avoid quadratic strstr implementations.
96457         * lib/strstr.c: New file.
96458         * m4/strstr.m4: Likewise.
96459         * modules/strstr: Likewise.
96460         * modules/strstr-tests: Likewise.
96461         * tests/test-strstr.c: Likewise.
96462         * lib/string.in.h (rpl_strstr): Declare.
96463         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
96464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
96465         * modules/string (Makefile.am): Likewise.
96466         * MODULES.html.sh (string handling): Mention new module.
96467         * doc/functions/strstr.texi (strstr): Document the bug.
96469 2008-01-10  Bruno Haible  <bruno@clisp.org>
96471         * lib/relocatable.h (relocate): State whether result is freshly
96472         allocated or not.
96473         * lib/relocatable.c (relocate): Return a freshly allocated string
96474         instead of a pointer to a privately held string.
96475         Reported by Sylvain Beucler <beuc@gnu.org>.
96477 2008-01-10  Colin Watson  <cjwatson@debian.org>
96479         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
96480         s/S_ISNLK/S_ISLNK/.
96482 2008-01-09  Bruno Haible  <bruno@clisp.org>
96484         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
96485         and other files.
96486         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
96487         if it's only a guess.
96488         * modules/memmem: Simplify by depending on memmem-simple.
96490 2008-01-09  Bruno Haible  <bruno@clisp.org>
96492         Work around OpenBSD 4.0 tdelete() bug.
96493         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
96494         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
96495         macros and don't redefine the enum values.
96496         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
96497         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
96498         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
96500 2008-01-09  Bruno Haible  <bruno@clisp.org>
96502         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
96503         (main): Don't perform the tests if setlocale did not install a UTF-8
96504         locale. Needed on OpenBSD 4.0.
96505         * modules/wcwidth-tests (Depends-on): Add localcharset.
96507 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96509         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
96510         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
96511         * NEWS: announce this.
96512         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
96514 2008-01-09  Simon Josefsson  <simon@josefsson.org>
96515         and Eric Blake  <ebb9@byu.net>
96517         Add memmem-simple module.
96518         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
96519         (gl_FUNC_MEMMEM): Separate performance from presence checks.
96520         * modules/memmem-simple: New file.
96521         * modules/memmem (Description): Tweak.
96522         * MODULES.html.sh (string handling): Mention new module.
96523         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
96524         addressed by memmem-simple.
96525         * NEWS: Document the difference.
96527 2008-01-09  Eric Blake  <ebb9@byu.net>
96529         Give gcc some memmem optimization hints.
96530         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
96531         (strcasestr): Declare as pure.
96532         * modules/memmem (Maintainer): Claim my implementation.
96534 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96536         Support AIX 6.1 and higher.
96537         * build-aux/config.libpath: Likewise.
96538         * build-aux/config.rpath: Likewise.
96540 2008-01-08  Jim Meyering  <meyering@redhat.com>
96541             Bruno Haible  <bruno@clisp.org>
96543         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
96544         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
96545         Reported by Peter Fales in
96546         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
96548 2008-01-08  Bruno Haible  <bruno@clisp.org>
96550         * modules/unictype/category-of (Depends-on): Add
96551         unictype/category-none.
96552         * modules/unictype/category-and-tests (Depends-on): Add
96553         unictype/category-{L,N,Lu,Nd}.
96554         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
96555         * modules/unictype/category-or-tests (Depends-on): Add
96556         unictype/category-{L,N}.
96557         * modules/unictype/category-name-tests (Depends-on): Add
96558         unictype/category-{Z,Nl}.
96559         Reported by Simon Josefsson.
96561 2008-01-08  Bruno Haible  <bruno@clisp.org>
96563         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
96564         convention better.
96565         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
96566         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
96567         Reported by Peter Miller <millerp@canb.auug.org.au>.
96569 2008-01-08  Eric Blake  <ebb9@byu.net>
96571         Rewrite memmem to guarantee linear complexity without malloc.
96572         * lib/memmem.c (memmem): Use Two-Way rather than
96573         Knuth-Morris-Pratt, to allow O(1) space usage.
96574         (critical_factorization, two_way_short_needle)
96575         (two_way_long_needle): New functions.
96576         (knuth_morris_pratt): Delete.
96577         * modules/memmem (Depends-on): No longer need malloca or stdbool.
96578         Add stdint.
96579         * tests/test-memmem.c (main): Add tests for periodic needle and
96580         sublinear performance.
96581         * doc/functions/memmem.texi (memmem): Document other deficiencies
96582         in cygwin and older glibc.
96584 2008-01-08  Bruno Haible  <bruno@clisp.org>
96586         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
96587         augmentation.
96589 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
96591         Add a configure time option: --disable-acl.
96592         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
96593         AC_ARG_ENABLE(acl).
96595 2008-01-06  Simon Josefsson  <simon@josefsson.org>
96597         * tests/test-localename.c: Don't include obsolete "setenv.h".
96599         * modules/localename-tests (Depends-on): Need unsetenv.
96601 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96603         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
96605 2008-01-06  Colin Watson  <cjwatson@debian.org>
96607         * users.txt: Add man-db.
96609 2008-01-07  Bruno Haible  <bruno@clisp.org>
96611         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
96612         previous section name.
96614 2008-01-07  Bruno Haible  <bruno@clisp.org>
96616         * lib/progname.c (set_program_name): Don't strip off a leading
96617         "lt-" prefix outside a .libs directory.
96618         Suggested by Paul Eggert.
96620 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
96621             Bruno Haible  <bruno@clisp.org>
96623         Improve memory cleanup in 'relocatable' module.
96624         * lib/relocatable.h (compute_curr_prefix): Change return type to
96625         'char *'.
96626         * lib/relocatable.c (compute_curr_prefix): Change return type to
96627         'char *'. Free curr_installdir after use.
96628         (relocate): Free curr_prefix_better after use.
96629         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
96631 2008-01-01  Bruno Haible  <bruno@clisp.org>
96633         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
96634         failure on older glibc systems.
96635         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96637 2008-01-05  Eric Blake  <ebb9@byu.net>
96639         Avoid quadratic system memmem.
96640         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
96641         Reported by Ralf Wildenhues.
96643         Fix memmem test for mingw.
96644         * modules/memmem-tests (configure.ac): Check for alarm.
96645         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
96646         it.
96647         * doc/functions/memmem.texi: New file.
96648         * doc/gnulib.texi (Function Substitutes): Add memmem.
96649         Reported by Bruno Haible.
96651 2008-01-04  Bruno Haible  <bruno@clisp.org>
96653         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
96654         Require gl_HEADER_STRINGS_H_DEFAULTS, not
96655         gl_HEADER_STRING_H_DEFAULTS.
96657 2008-01-04  Eric Blake  <ebb9@byu.net>
96659         Shorten duration of memmem test.
96660         * tests/test-memmem.c (main): Use alarm to declare failure if test
96661         is taking too long.
96662         Reported by Ralf Wildenhues.
96664 2007-12-21  Simon Josefsson  <simon@josefsson.org>
96666         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
96667         string, needed by strerror.
96669 2008-01-03  Colin Watson  <cjwatson@debian.org>
96670             Bruno Haible  <bruno@clisp.org>
96672         * doc/gnulib-tool.texi (Localization): New section.
96674 2008-01-02  Bruno Haible  <bruno@clisp.org>
96676         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
96677         variables to 'unsigned char *' type.
96678         Reported by Paul Eggert.
96680 2008-01-02  Jim Meyering  <jim@meyering.net>
96682         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
96684 2007-12-31  Jim Meyering  <jim@meyering.net>
96686         Avoid use of private FTS type name.
96687         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
96689 2007-12-30  Karl Berry  <karl@gnu.org>
96691         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
96692         work around defect in Texinfo and/or the standalone Info browser.
96694 2007-12-30  Bruno Haible  <bruno@clisp.org>
96696         Unify 5 copies of the KMP code.
96697         * lib/str-kmp.h: New file.
96698         * lib/c-strcasestr.c: Include str-kmp.h.
96699         (knuth_morris_pratt): Remove function.
96700         (c_strcasestr): Update.
96701         * lib/c-strstr.c: Include str-kmp.h.
96702         (knuth_morris_pratt): Remove function.
96703         (c_strcasestr): Update.
96704         * lib/mbscasestr.c: Include str-kmp.h.
96705         (knuth_morris_pratt_unibyte): Remove function.
96706         * lib/mbsstr.c: Include str-kmp.h.
96707         (knuth_morris_pratt_unibyte): Remove function.
96708         * lib/strcasestr.c: Include str-kmp.h.
96709         (knuth_morris_pratt): Remove function.
96710         (strcasestr): Update.
96711         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
96712         * modules/c-strstr (Files): Likewise.
96713         * modules/mbscasestr (Files): Likewise.
96714         * modules/mbsstr (Files): Likewise.
96715         * modules/strcasestr (Files): Likewise.
96716         Suggested by Paul Eggert.
96718 2007-12-30  Bruno Haible  <bruno@clisp.org>
96720         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
96721         defined.
96723 2007-12-30  Bruno Haible  <bruno@clisp.org>
96725         * lib/xmalloca.h: Include xalloc.h.
96726         (xnmalloca): New macro.
96728 2007-12-30  Bruno Haible  <bruno@clisp.org>
96730         * lib/malloca.h (nmalloca): New macro.
96731         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
96732         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
96733         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
96734         knuth_morris_pratt_multibyte): Likewise.
96735         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
96736         knuth_morris_pratt_multibyte): Likewise.
96737         * lib/memmem.c (knuth_morris_pratt): Likewise.
96738         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
96740 2007-12-25  Bruno Haible  <bruno@clisp.org>
96742         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
96743         * lib/glob.c: Don't include openat.h.
96744         (link_exists2_p): Add back the code that deals with the
96745         !GLOB_ALTDIRFUNC case.
96746         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
96747         let it do the filename concatenation.
96748         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
96749         * modules/glob (Depends-on): Remove openat.
96751 2007-12-31  Bruno Haible  <bruno@clisp.org>
96753         * modules/dirfd (License): Change to LGPLv2+.
96754         Approved by Jim Meyering.
96756 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
96758         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
96759         when multiplying M by sizeof (size_t).
96761 2007-12-10  Martin Lambers  <marlam@marlam.de>
96763         Override getpagesize on mingw.
96764         * lib/getpagesize.c: New file.
96765         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
96766         * modules/getpagesize (Files): Add lib/getpagesize.c.
96767         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
96768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
96769         REPLACE_GETPAGESIZE.
96770         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
96772 2007-12-25  Bruno Haible  <bruno@clisp.org>
96774         * modules/localcharset (Notice): New field.
96775         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
96776         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
96778 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
96779             Bruno Haible  <bruno@clisp.org>
96781         Avoid using the syntax symbol() in formatted documentation.
96782         * MODULES.html.sh (func_module): When replacing symbol() with a
96783         hyperlink, remove the parentheses. Show an error if some remain.
96784         Recognize and render the '...' syntax.
96785         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
96786         Rework. Add paragraph about GCC's inlining.
96787         * doc/alloca.texi: Likewise.
96788         * doc/error.texi: Remove parentheses from symbol reference.
96789         * doc/gnulib-intro.texi: Likewise.
96790         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
96791         * modules/fnmatch (Description): Reword to say "the ... function".
96792         * modules/full-read (Description): Likewise.
96793         * modules/full-write (Description): Likewise.
96794         * modules/safe-read (Description): Likewise.
96795         * modules/safe-write (Description): Likewise.
96796         * modules/strchrnul (Description): Likewise.
96797         * modules/trim (Description): Likewise.
96798         * modules/error (Description): Remove parentheses from symbol
96799         references.
96800         * modules/verror (Description): Likewise.
96801         Reported by Karl Berry.
96803 2007-12-25  Bruno Haible  <bruno@clisp.org>
96805         Fixup after 2007-10-16 commit.
96806         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
96808 2007-12-24  Bruno Haible  <bruno@clisp.org>
96810         Make --enable-relocatable work with DESTDIR.
96811         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
96812         to compute installdir from destprog.
96813         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
96814         also set the RELOC_DESTDIR variable.
96815         Reported by Левашев Иван <octagram@bluebottle.com>.
96817 2007-12-24  Bruno Haible  <bruno@clisp.org>
96819         Fix link error due to xalloc_die().
96820         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
96821         of xreadlink.
96822         * lib/relocwrapper.c: Update comments.
96823         * build-aux/install-reloc: Remove xreadlink.c from file list.
96824         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
96825         xreadlink.c.
96826         Reported by Левашев Иван <octagram@bluebottle.com>.
96828 2007-12-24  Bruno Haible  <bruno@clisp.org>
96830         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
96831         * lib/setenv.h: Remove file.
96832         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
96833         lib/setenv.h.
96834         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
96835         (Depends-on): Add stdlib.
96836         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
96837         gl_FUNC_UNSETENV.
96838         (Include): Replace setenv.h with <stdlib.h>.
96839         * modules/unsetenv: New file.
96840         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
96841         * lib/unsetenv.c: Include <stdlib.h> first.
96842         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
96843         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
96844         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
96845         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
96846         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
96847         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
96849         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96850         * doc/functions/unsetenv.texi: Update.
96851         * modules/xsetenv (Depends-on): Add unsetenv.
96852         * modules/getdate (Depends-on): Likewise.
96853         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
96854         * lib/xsetenv.c: Don't include setenv.h.
96855         * lib/getdate.y: Likewise.
96856         * lib/relocwrapper.c: Likewise.
96857         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
96858         (Depends-on): Add stdlib.
96859         * NEWS: Mention the changes.
96860         Reported by Левашев Иван <octagram@bluebottle.com>.
96862 2007-12-23  Bruno Haible  <bruno@clisp.org>
96864         * lib/memmem.c (memmem): Use lowercase variable names. Tab
96865         indentation.
96867 2007-12-23  Bruno Haible  <bruno@clisp.org>
96869         * lib/c-strcasestr.c: Add more comments.
96870         * lib/c-strstr.c: Likewise.
96871         * lib/mbscasestr.c: Likewise.
96872         * lib/mbsstr.c: Likewise.
96873         * lib/strcasestr.c: Likewise.
96874         * lib/memmem.c: Likewise.
96876 2007-12-23  Bruno Haible  <bruno@clisp.org>
96878         * tests/test-memmem.c: Include <string.h> first.
96880 2007-12-22  Bruno Haible  <bruno@clisp.org>
96882         * gnulib-tool (func_create_testdir): Change $auxdir while generating
96883         the contents of $testsbase.
96884         Reported by Ralf Wildenhues.
96886 2007-12-22  Bruno Haible  <bruno@clisp.org>
96888         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
96889         two variables local_ldadd_before, local_ldadd_last.
96891 2007-12-20  Eric Blake  <ebb9@byu.net>
96893         Work around circular library issue when cross-compiling.
96894         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
96895         that progname.o does not need to pull in rpl_memcmp.
96897 2007-12-19  Eric Blake  <ebb9@byu.net>
96899         Fix memmem to avoid O(n^2) worst-case complexity.
96900         * lib/memmem.c (knuth_morris_pratt): New function.
96901         (memmem): Use it if first few naive iterations fail.
96902         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
96903         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
96904         * modules/memchr (License): Likewise.
96905         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
96906         malloca.
96907         * tests/test-memmem.c: Rewrite, borrowing ideas from
96908         test-mbsstr1.c; the old version wouldn't even compile!
96909         * modules/memmem-tests: New file.
96910         * lib/string.in.h (rpl_memmem): Add declaration.
96911         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
96912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
96913         REPLACE_MEMMEM.
96915 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
96917         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
96918         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
96919         before any system include files, and undef after them all.  This
96920         should fix a problem on VMS reported by John E. Malmberg in
96921         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
96923 2007-12-17  Eric Blake  <ebb9@byu.net>
96925         Revert addition of verify, for BSD/OS.
96926         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
96927         can't handle large files, for the sake of obsolete platforms.
96928         * modules/fseeko (Depends-on): Remove verify.
96929         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
96930         * doc/functions/ftello.texi (ftello): Likewise.
96931         * doc/functions/fgetpos.texi (fgetpos): Likewise.
96932         Reported by Larry Jones.
96934 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
96936         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
96937         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
96939 2007-12-17  Jim Meyering  <meyering@redhat.com>
96941         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
96942         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
96943         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
96944         * modules/getcwd (Depends-on): Add openat.
96945         Reported by Petr Salinger.
96947 2007-12-17  Bruno Haible  <bruno@clisp.org>
96949         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
96950         avoid a segmentation fault of the configure test on x86_64 systems.
96952 2007-12-15  Jim Meyering  <meyering@redhat.com>
96954         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
96956 2007-12-13  Eric Blake  <ebb9@byu.net>
96958         Another fseek test.
96959         * tests/test-fseek.c (main): Also test ungetc handling.
96960         * tests/test-fseeko.c (main): Likewise.
96961         * modules/fseeko (Depends-on): Add verify.
96962         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
96963         large.
96964         Reported by Larry Jones.
96966         Fix fseeko on mingw.
96967         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
96968         seek.
96970         Beef up fseek tests.
96971         * tests/test-fseek.c (main): Also test eof handling.
96972         * tests/test-fseeko.c (main): Likewise.
96973         Reported by Larry Jones.
96975 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
96977         Fix fseeko on BSD-based platforms.
96978         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
96979         successful seek.
96981 2007-12-12  Eric Blake  <ebb9@byu.net>
96983         Allow circular dependency of separate libtests.a
96984         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
96985         when use_libtests.
96987 2007-12-11  Eric Blake  <ebb9@byu.net>
96989         Fix bug with -0.0L in previous patch.
96990         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
96991         * tests/test-isnan.c (main): Also test on zeroes.
96992         * tests/test-isnanf.c (main): Likewise.
96993         * tests/test-isnanl.h (main): Likewise.
96995         Detect pseudo-denormals on x86 even when cross-compiling.
96996         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
96997         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
96998         invalid bit patterns that happen to satisfy ==.
97000         Avoid link failures with separate libtests.a.
97001         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
97002         last, to satisfy circular dependencies.
97004 2007-12-11  Eric Blake  <ebb9@byu.net>
97005         and Bruno Haible  <bruno@clisp.org>
97007         Fix OpenBSD 4.0 <float.h> handling of long double.
97008         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
97009         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
97010         * doc/headers/float.texi (float.h): Document OpenBSD bug.
97012 2007-12-11  Jim Meyering  <meyering@redhat.com>
97014         * users.txt: Add libvirt.
97016         Support versions of autoconf prior to 2.59c.
97017         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
97018         if it is not already defined.
97020 2007-12-09  Bruno Haible  <bruno@clisp.org>
97022         Let 'gnulib-tool --import' collect sources needed for the tests in
97023         tests/ rather than in lib/.
97024         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
97025         argument. If true, add rules to generate libtests.a, and put libtests.a
97026         into $(LDADD). Consider source files in subdirectories and set
97027         uses_subdirs.
97028         (func_emit_initmacro_start, func_emit_initmacro_end,
97029         func_emit_initmacro_done): Pass all arguments explicitly.
97030         (func_import): Determine two module lists main_modules,
97031         testsrelated_modules. Determine use_libtests. Determine two variables
97032         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
97033         instead of just sed_transform_lib_file. Determine two variables
97034         main_files and testsrelated_files. Compute 'files' as the union of
97035         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
97036         func_add_or_update. In the generated gnulib-comp.m4, collect the
97037         object files for tests/ in different variables than those for lib/.
97038         Substitute LIBTESTS_LIBDEPS.
97039         (func_create_testdir): Combine the uses_subdirs results from
97040         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
97042 2007-12-09  Bruno Haible  <bruno@clisp.org>
97044         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
97045         the build-aux directory.
97047 2007-12-09  Bruno Haible  <bruno@clisp.org>
97049         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
97050         introduced on 2006-09-09.
97052 2007-12-07  Jim Meyering  <meyering@redhat.com>
97054         Let these macros work also with autoconf-2.59.
97055         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
97056         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
97057         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97059 2007-12-06  Jim Meyering  <meyering@redhat.com>
97061         Avoid a configure-time syntax error in gl_FUNC_ACL.
97062         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
97063         function in each branch, before testing the cache variable.
97065 2007-12-04  Eric Blake  <ebb9@byu.net>
97067         Make scripts executable.
97068         * build-aux/config.guess: Add execute permissions.
97069         * build-aux/config.sub: Likewise.
97070         * build-aux/gendocs.sh: Likewise.
97072         Fix frexp on mingw.
97073         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
97074         cross-compiling.
97075         * doc/functions/frexp.texi (frexp): Document the bug.
97077         Make cygwin fseeko check more reliable.
97078         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
97079         version numbers, rather than unrelated feature check.
97080         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
97081         * doc/functions/ftello.texi (ftello): Likewise.
97082         Reported by Bruno Haible.
97084         * m4/strerror.m4: Bump version number.
97086 2007-12-03  Bruno Haible  <bruno@clisp.org>
97088         * doc/functions/mprotect.texi: Mention the mingw problem.
97090 2007-12-03  Eric Blake  <ebb9@byu.net>
97092         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
97093         REPLACE_STRERROR is initialized before this macro.
97095 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
97097         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
97098         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
97099         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
97100         put -lsec in even for programs other than 'ls'.  This fixes a problem
97101         for gettext reported by Bruno Haible in
97102         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
97103         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
97104         Add support for Solaris 10.  This isn't efficient, but should get the
97105         job done for now.
97107 2007-12-03  James Youngman  <jay@gnu.org>
97109         * doc/regexprops-generic.texi: change "an close-group" to "a
97110         close-group" and "illegal" to "not allowed".
97112 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97114         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
97115         pr_byname.h. Needed for the rare case when the maintainer has done
97116         "make maintainer-clean" in the source directory and then attempts a
97117         build outside the source directory.
97118         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
97119         scripts_byname.h.
97121 2007-12-02  Martin Lambers  <marlam@marlam.de>
97122             Bruno Haible  <bruno@clisp.org>
97124         * lib/getpagesize.h: Remove file.
97125         * lib/unistd.in.h: Include declaration of getpagesize here.
97126         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
97127         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
97128         HAVE_SYS_PARAM_H.
97129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
97130         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97131         * modules/getpagesize (Files): Remove lib/getpagesize.h.
97132         (Depends-on): Add unistd.
97133         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97134         (Include): Use <unistd.h> instead of getpagesize.h.
97135         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
97136         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97137         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
97138         gl_GETPAGESIZE invocation, already handled by module dependency.
97139         * lib/pagealign_alloc.c: Don't include getpagesize.h.
97141 2007-12-02  Bruno Haible  <bruno@clisp.org>
97143         * modules/strings-tests: New file.
97144         * tests/test-strings.c: New file.
97146         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
97147         * lib/strings.in.h: New file.
97148         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
97149         * m4/strings_h.m4: New file.
97150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
97151         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
97152         * modules/strings: New file.
97153         * modules/string (Makefile.am): Update.
97154         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97155         Reported by Karl Berry.
97157 2007-12-01  Eric Blake  <ebb9@byu.net>
97159         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
97160         accommodate fix in cygwin 1.5.25.
97162 2007-12-01  Jim Meyering  <meyering@redhat.com>
97164         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
97165         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
97166         that would inhibit utf8-optimization of a regexp containing line-
97167         or buffer-anchors, e.g., `^', `$'.
97169 2007-11-30  Bruno Haible  <bruno@clisp.org>
97171         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
97172         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
97173         glthread_recursive_lock_init.
97174         * lib/lock.c (glthread_recursive_lock_init)
97175         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
97176         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97178 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
97180         New function qset_acl, like set_acl but with syscall semantics.
97181         * lib/acl.h (qset_acl): New decl.
97182         * lib/acl.c (qset_acl): New function.
97183         (set_acl): Use new function.  Use more-consistent diagnostics.
97185 2007-11-28  Jim Meyering  <meyering@redhat.com>
97187         * modules/physmem (License): Change from GPL to LGPLv2+.
97189 2007-11-26  Bruno Haible  <bruno@clisp.org>
97191         * lib/vasnprintf.c (decode_long_double): Don't abort if the
97192         'long double' type has excess precision.
97193         Reported by Jim Meyering in
97194         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
97196 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97198         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
97199         Sync from <http://gnu.org/licenses>.
97200         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
97201         with license text from same location.
97202         * doc/maintain.texi, doc/standards.texi:  Sync from
97203         <http://savannah.gnu.org/projects/gnustandards>.
97205 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
97206         and Jim Meyering  <meyering@redhat.com>
97208         Adjust getdate' grammar to accept a slightly more regular language.
97209         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
97210         Before, the former was rejected.
97211         * lib/getdate.y (digits_to_date_time): New function, factored
97212         out of ...
97213         (number): ...here.  Just call digits_to_date_time.
97214         (hybrid): New non-terminal to handle an <unsigned number,
97215         signed relative offset> sequence consistently.
97217 2007-11-18  Jim Meyering  <meyering@redhat.com>
97219         Pull my changes from coreutils:
97220         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
97221         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
97222         use of $gnulib_tool_option_extras, so that it's separated from the
97223         preceding argument.
97225         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
97226         * build-aux/bootstrap (cp_mark_as_generated): Create any required
97227         parent destination directories before copying a file into place.
97229 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
97231         bootstrap: work also with 4-argument variant of AC_INIT
97232         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
97234 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
97236         Port test-getaddrinfo to Solaris.
97237         Problem reported by Bruno Haible in
97238         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
97239         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
97240         explanation of setting 'hints'.
97241         Don't reject an implementation merely because it returns EAI_SERVICE.
97242         (EAI_SERVICE): Define to 0 if not defined.
97244 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97246         The license of gnu-make and posix-shell is now "GPLed build tool".
97247         * modules/gnu-make (License): Likewise.
97248         * modules/posix-shell (License): Likewise.
97250         New module posix-shell, for determining a POSIX shell
97251         or perhaps something that is close enough to a POSIX shell.
97252         * m4/posix-shell.m4: New file.
97253         * modules/posix-shell: New file.
97255         * MODULES.html.sh: Mention new module.
97257         New module gnu-make, for determining whether we're using GNU Make.
97258         * m4/gnu-make.m4: New file.
97259         * modules/gnu-make: New file.
97260         * MODULES.html.sh: Mention new module.
97262 2007-11-14  Jim Meyering  <meyering@redhat.com>
97264         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
97265         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
97266         use this macro to create a function _definition_.
97267         Remove useless "#undef ARGMATCH_DIE".
97269 2007-11-14  Bruno Haible  <bruno@clisp.org>
97271         * lib/config.charset: Update for OpenBSD 4.1.
97272         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
97274 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
97276         Document 64-bit #if problems in stdint.texi.
97277         * doc/headers/stdint.texi (stdint.h): Mention problems with
97278         64-bit-#if, and how to work around them.
97280         Don't insist on 'long long int' support in the preprocessor.  It
97281         breaks too many things.  For example, PRIdMAX still uses a 'long
97282         long int' format with the latest Sun compiler, even though
97283         HAVE_LONG_LONG_INT isn't defined due to that compiler's
97284         preprocessor problem.  This causes the latest coreutils to dump
97285         core on Solaris 10 sparc with the Sun C compiler.
97286         Instead, fix the 2007-10-16 problem in a different way, by evaluating
97287         the troublesome expressions at configure-time, not at #if-time.
97288         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
97289         preprocessor.
97290         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
97291         compile-time C checks, done at 'configure'-time.
97292         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
97293         * modules/inttypes (Makefile): Substitute the new symbols that
97294         gl_INTTYPES_H now generates.
97295         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
97297 2007-11-12  Bruno Haible  <bruno@clisp.org>
97299         Tests for Unicode character classification functions.
97301         * modules/unictype/bidicategory-byname-tests: New file.
97302         * modules/unictype/bidicategory-name-tests: New file.
97303         * modules/unictype/bidicategory-of-tests: New file.
97304         * modules/unictype/bidicategory-test-tests: New file.
97305         * modules/unictype/block-list-tests: New file.
97306         * modules/unictype/block-of-tests: New file.
97307         * modules/unictype/block-test-tests: New file.
97308         * modules/unictype/category-C-tests: New file.
97309         * modules/unictype/category-Cc-tests: New file.
97310         * modules/unictype/category-Cf-tests: New file.
97311         * modules/unictype/category-Cn-tests: New file.
97312         * modules/unictype/category-Co-tests: New file.
97313         * modules/unictype/category-Cs-tests: New file.
97314         * modules/unictype/category-L-tests: New file.
97315         * modules/unictype/category-Ll-tests: New file.
97316         * modules/unictype/category-Lm-tests: New file.
97317         * modules/unictype/category-Lo-tests: New file.
97318         * modules/unictype/category-Lt-tests: New file.
97319         * modules/unictype/category-Lu-tests: New file.
97320         * modules/unictype/category-M-tests: New file.
97321         * modules/unictype/category-Mc-tests: New file.
97322         * modules/unictype/category-Me-tests: New file.
97323         * modules/unictype/category-Mn-tests: New file.
97324         * modules/unictype/category-N-tests: New file.
97325         * modules/unictype/category-Nd-tests: New file.
97326         * modules/unictype/category-Nl-tests: New file.
97327         * modules/unictype/category-No-tests: New file.
97328         * modules/unictype/category-P-tests: New file.
97329         * modules/unictype/category-Pc-tests: New file.
97330         * modules/unictype/category-Pd-tests: New file.
97331         * modules/unictype/category-Pe-tests: New file.
97332         * modules/unictype/category-Pf-tests: New file.
97333         * modules/unictype/category-Pi-tests: New file.
97334         * modules/unictype/category-Po-tests: New file.
97335         * modules/unictype/category-Ps-tests: New file.
97336         * modules/unictype/category-S-tests: New file.
97337         * modules/unictype/category-Sc-tests: New file.
97338         * modules/unictype/category-Sk-tests: New file.
97339         * modules/unictype/category-Sm-tests: New file.
97340         * modules/unictype/category-So-tests: New file.
97341         * modules/unictype/category-Z-tests: New file.
97342         * modules/unictype/category-Zl-tests: New file.
97343         * modules/unictype/category-Zp-tests: New file.
97344         * modules/unictype/category-Zs-tests: New file.
97345         * modules/unictype/category-and-not-tests: New file.
97346         * modules/unictype/category-and-tests: New file.
97347         * modules/unictype/category-byname-tests: New file.
97348         * modules/unictype/category-name-tests: New file.
97349         * modules/unictype/category-none-tests: New file.
97350         * modules/unictype/category-of-tests: New file.
97351         * modules/unictype/category-or-tests: New file.
97352         * modules/unictype/category-test-withtable-tests: New file.
97353         * modules/unictype/combining-class-tests: New file.
97354         * modules/unictype/ctype-alnum-tests: New file.
97355         * modules/unictype/ctype-alpha-tests: New file.
97356         * modules/unictype/ctype-blank-tests: New file.
97357         * modules/unictype/ctype-cntrl-tests: New file.
97358         * modules/unictype/ctype-digit-tests: New file.
97359         * modules/unictype/ctype-graph-tests: New file.
97360         * modules/unictype/ctype-lower-tests: New file.
97361         * modules/unictype/ctype-print-tests: New file.
97362         * modules/unictype/ctype-punct-tests: New file.
97363         * modules/unictype/ctype-space-tests: New file.
97364         * modules/unictype/ctype-upper-tests: New file.
97365         * modules/unictype/ctype-xdigit-tests: New file.
97366         * modules/unictype/decimal-digit-tests: New file.
97367         * modules/unictype/digit-tests: New file.
97368         * modules/unictype/mirror-tests: New file.
97369         * modules/unictype/numeric-tests: New file.
97370         * modules/unictype/property-alphabetic-tests: New file.
97371         * modules/unictype/property-ascii-hex-digit-tests: New file.
97372         * modules/unictype/property-bidi-arabic-digit-tests: New file.
97373         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
97374         * modules/unictype/property-bidi-block-separator-tests: New file.
97375         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
97376         * modules/unictype/property-bidi-common-separator-tests: New file.
97377         * modules/unictype/property-bidi-control-tests: New file.
97378         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
97379         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
97380         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
97381         * modules/unictype/property-bidi-european-digit-tests: New file.
97382         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
97383         * modules/unictype/property-bidi-left-to-right-tests: New file.
97384         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
97385         * modules/unictype/property-bidi-other-neutral-tests: New file.
97386         * modules/unictype/property-bidi-pdf-tests: New file.
97387         * modules/unictype/property-bidi-segment-separator-tests: New file.
97388         * modules/unictype/property-bidi-whitespace-tests: New file.
97389         * modules/unictype/property-byname-tests: New file.
97390         * modules/unictype/property-combining-tests: New file.
97391         * modules/unictype/property-composite-tests: New file.
97392         * modules/unictype/property-currency-symbol-tests: New file.
97393         * modules/unictype/property-dash-tests: New file.
97394         * modules/unictype/property-decimal-digit-tests: New file.
97395         * modules/unictype/property-default-ignorable-code-point-tests: New file.
97396         * modules/unictype/property-deprecated-tests: New file.
97397         * modules/unictype/property-diacritic-tests: New file.
97398         * modules/unictype/property-extender-tests: New file.
97399         * modules/unictype/property-format-control-tests: New file.
97400         * modules/unictype/property-grapheme-base-tests: New file.
97401         * modules/unictype/property-grapheme-extend-tests: New file.
97402         * modules/unictype/property-grapheme-link-tests: New file.
97403         * modules/unictype/property-hex-digit-tests: New file.
97404         * modules/unictype/property-hyphen-tests: New file.
97405         * modules/unictype/property-id-continue-tests: New file.
97406         * modules/unictype/property-id-start-tests: New file.
97407         * modules/unictype/property-ideographic-tests: New file.
97408         * modules/unictype/property-ids-binary-operator-tests: New file.
97409         * modules/unictype/property-ids-trinary-operator-tests: New file.
97410         * modules/unictype/property-ignorable-control-tests: New file.
97411         * modules/unictype/property-iso-control-tests: New file.
97412         * modules/unictype/property-join-control-tests: New file.
97413         * modules/unictype/property-left-of-pair-tests: New file.
97414         * modules/unictype/property-line-separator-tests: New file.
97415         * modules/unictype/property-logical-order-exception-tests: New file.
97416         * modules/unictype/property-lowercase-tests: New file.
97417         * modules/unictype/property-math-tests: New file.
97418         * modules/unictype/property-non-break-tests: New file.
97419         * modules/unictype/property-not-a-character-tests: New file.
97420         * modules/unictype/property-numeric-tests: New file.
97421         * modules/unictype/property-other-alphabetic-tests: New file.
97422         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
97423         * modules/unictype/property-other-grapheme-extend-tests: New file.
97424         * modules/unictype/property-other-id-continue-tests: New file.
97425         * modules/unictype/property-other-id-start-tests: New file.
97426         * modules/unictype/property-other-lowercase-tests: New file.
97427         * modules/unictype/property-other-math-tests: New file.
97428         * modules/unictype/property-other-uppercase-tests: New file.
97429         * modules/unictype/property-paired-punctuation-tests: New file.
97430         * modules/unictype/property-paragraph-separator-tests: New file.
97431         * modules/unictype/property-pattern-syntax-tests: New file.
97432         * modules/unictype/property-pattern-white-space-tests: New file.
97433         * modules/unictype/property-private-use-tests: New file.
97434         * modules/unictype/property-punctuation-tests: New file.
97435         * modules/unictype/property-quotation-mark-tests: New file.
97436         * modules/unictype/property-radical-tests: New file.
97437         * modules/unictype/property-sentence-terminal-tests: New file.
97438         * modules/unictype/property-soft-dotted-tests: New file.
97439         * modules/unictype/property-space-tests: New file.
97440         * modules/unictype/property-terminal-punctuation-tests: New file.
97441         * modules/unictype/property-test-tests: New file.
97442         * modules/unictype/property-titlecase-tests: New file.
97443         * modules/unictype/property-unassigned-code-value-tests: New file.
97444         * modules/unictype/property-unified-ideograph-tests: New file.
97445         * modules/unictype/property-uppercase-tests: New file.
97446         * modules/unictype/property-variation-selector-tests: New file.
97447         * modules/unictype/property-white-space-tests: New file.
97448         * modules/unictype/property-xid-continue-tests: New file.
97449         * modules/unictype/property-xid-start-tests: New file.
97450         * modules/unictype/property-zero-width-tests: New file.
97451         * modules/unictype/scripts-tests: New file.
97452         * modules/unictype/syntax-c-ident-tests: New file.
97453         * modules/unictype/syntax-c-whitespace-tests: New file.
97454         * modules/unictype/syntax-java-ident-tests: New file.
97455         * modules/unictype/syntax-java-whitespace-tests: New file.
97456         * tests/unictype/test-bidi_byname.c: New file.
97457         * tests/unictype/test-bidi_name.c: New file.
97458         * tests/unictype/test-bidi_of.c: New file.
97459         * tests/unictype/test-bidi_test.c: New file.
97460         * tests/unictype/test-block_list.c: New file.
97461         * tests/unictype/test-block_of.c: New file.
97462         * tests/unictype/test-block_test.c: New file.
97463         * tests/unictype/test-categ_and.c: New file.
97464         * tests/unictype/test-categ_and_not.c: New file.
97465         * tests/unictype/test-categ_byname.c: New file.
97466         * tests/unictype/test-categ_name.c: New file.
97467         * tests/unictype/test-categ_none.c: New file.
97468         * tests/unictype/test-categ_of.c: New file.
97469         * tests/unictype/test-categ_or.c: New file.
97470         * tests/unictype/test-categ_test_withtable.c: New file.
97471         * tests/unictype/test-combining.c: New file.
97472         * tests/unictype/test-decdigit.c: New file.
97473         * tests/unictype/test-digit.c: New file.
97474         * tests/unictype/test-mirror.c: New file.
97475         * tests/unictype/test-numeric.c: New file.
97476         * tests/unictype/test-pr_byname.c: New file.
97477         * tests/unictype/test-pr_test.c: New file.
97478         * tests/unictype/test-predicate-part1.h: New file.
97479         * tests/unictype/test-predicate-part2.h: New file.
97480         * tests/unictype/test-scripts.c: New file.
97481         * tests/unictype/test-sy_c_ident.c: New file.
97482         * tests/unictype/test-sy_java_ident.c: New file.
97484         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
97485         for Unicode 5.0.0.
97486         * tests/unictype/test-categ_Cc.c: Likewise.
97487         * tests/unictype/test-categ_Cf.c: Likewise.
97488         * tests/unictype/test-categ_Cn.c: Likewise.
97489         * tests/unictype/test-categ_Co.c: Likewise.
97490         * tests/unictype/test-categ_Cs.c: Likewise.
97491         * tests/unictype/test-categ_L.c: Likewise.
97492         * tests/unictype/test-categ_Ll.c: Likewise.
97493         * tests/unictype/test-categ_Lm.c: Likewise.
97494         * tests/unictype/test-categ_Lo.c: Likewise.
97495         * tests/unictype/test-categ_Lt.c: Likewise.
97496         * tests/unictype/test-categ_Lu.c: Likewise.
97497         * tests/unictype/test-categ_M.c: Likewise.
97498         * tests/unictype/test-categ_Mc.c: Likewise.
97499         * tests/unictype/test-categ_Me.c: Likewise.
97500         * tests/unictype/test-categ_Mn.c: Likewise.
97501         * tests/unictype/test-categ_N.c: Likewise.
97502         * tests/unictype/test-categ_Nd.c: Likewise.
97503         * tests/unictype/test-categ_Nl.c: Likewise.
97504         * tests/unictype/test-categ_No.c: Likewise.
97505         * tests/unictype/test-categ_P.c: Likewise.
97506         * tests/unictype/test-categ_Pc.c: Likewise.
97507         * tests/unictype/test-categ_Pd.c: Likewise.
97508         * tests/unictype/test-categ_Pe.c: Likewise.
97509         * tests/unictype/test-categ_Pf.c: Likewise.
97510         * tests/unictype/test-categ_Pi.c: Likewise.
97511         * tests/unictype/test-categ_Po.c: Likewise.
97512         * tests/unictype/test-categ_Ps.c: Likewise.
97513         * tests/unictype/test-categ_S.c: Likewise.
97514         * tests/unictype/test-categ_Sc.c: Likewise.
97515         * tests/unictype/test-categ_Sk.c: Likewise.
97516         * tests/unictype/test-categ_Sm.c: Likewise.
97517         * tests/unictype/test-categ_So.c: Likewise.
97518         * tests/unictype/test-categ_Z.c: Likewise.
97519         * tests/unictype/test-categ_Zl.c: Likewise.
97520         * tests/unictype/test-categ_Zp.c: Likewise.
97521         * tests/unictype/test-categ_Zs.c: Likewise.
97522         * tests/unictype/test-ctype_alnum.c: Likewise.
97523         * tests/unictype/test-ctype_alpha.c: Likewise.
97524         * tests/unictype/test-ctype_blank.c: Likewise.
97525         * tests/unictype/test-ctype_cntrl.c: Likewise.
97526         * tests/unictype/test-ctype_digit.c: Likewise.
97527         * tests/unictype/test-ctype_graph.c: Likewise.
97528         * tests/unictype/test-ctype_lower.c: Likewise.
97529         * tests/unictype/test-ctype_print.c: Likewise.
97530         * tests/unictype/test-ctype_punct.c: Likewise.
97531         * tests/unictype/test-ctype_space.c: Likewise.
97532         * tests/unictype/test-ctype_upper.c: Likewise.
97533         * tests/unictype/test-ctype_xdigit.c: Likewise.
97534         * tests/unictype/test-decdigit.h: Likewise.
97535         * tests/unictype/test-digit.h: Likewise.
97536         * tests/unictype/test-numeric.h: Likewise.
97537         * tests/unictype/test-pr_alphabetic.c: Likewise.
97538         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
97539         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
97540         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
97541         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
97542         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
97543         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
97544         * tests/unictype/test-pr_bidi_control.c: Likewise.
97545         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
97546         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
97547         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
97548         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
97549         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
97550         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
97551         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
97552         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
97553         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
97554         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
97555         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
97556         * tests/unictype/test-pr_combining.c: Likewise.
97557         * tests/unictype/test-pr_composite.c: Likewise.
97558         * tests/unictype/test-pr_currency_symbol.c: Likewise.
97559         * tests/unictype/test-pr_dash.c: Likewise.
97560         * tests/unictype/test-pr_decimal_digit.c: Likewise.
97561         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
97562         * tests/unictype/test-pr_deprecated.c: Likewise.
97563         * tests/unictype/test-pr_diacritic.c: Likewise.
97564         * tests/unictype/test-pr_extender.c: Likewise.
97565         * tests/unictype/test-pr_format_control.c: Likewise.
97566         * tests/unictype/test-pr_grapheme_base.c: Likewise.
97567         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
97568         * tests/unictype/test-pr_grapheme_link.c: Likewise.
97569         * tests/unictype/test-pr_hex_digit.c: Likewise.
97570         * tests/unictype/test-pr_hyphen.c: Likewise.
97571         * tests/unictype/test-pr_id_continue.c: Likewise.
97572         * tests/unictype/test-pr_id_start.c: Likewise.
97573         * tests/unictype/test-pr_ideographic.c: Likewise.
97574         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
97575         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
97576         * tests/unictype/test-pr_ignorable_control.c: Likewise.
97577         * tests/unictype/test-pr_iso_control.c: Likewise.
97578         * tests/unictype/test-pr_join_control.c: Likewise.
97579         * tests/unictype/test-pr_left_of_pair.c: Likewise.
97580         * tests/unictype/test-pr_line_separator.c: Likewise.
97581         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
97582         * tests/unictype/test-pr_lowercase.c: Likewise.
97583         * tests/unictype/test-pr_math.c: Likewise.
97584         * tests/unictype/test-pr_non_break.c: Likewise.
97585         * tests/unictype/test-pr_not_a_character.c: Likewise.
97586         * tests/unictype/test-pr_numeric.c: Likewise.
97587         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
97588         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
97589         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
97590         * tests/unictype/test-pr_other_id_continue.c: Likewise.
97591         * tests/unictype/test-pr_other_id_start.c: Likewise.
97592         * tests/unictype/test-pr_other_lowercase.c: Likewise.
97593         * tests/unictype/test-pr_other_math.c: Likewise.
97594         * tests/unictype/test-pr_other_uppercase.c: Likewise.
97595         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
97596         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
97597         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
97598         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
97599         * tests/unictype/test-pr_private_use.c: Likewise.
97600         * tests/unictype/test-pr_punctuation.c: Likewise.
97601         * tests/unictype/test-pr_quotation_mark.c: Likewise.
97602         * tests/unictype/test-pr_radical.c: Likewise.
97603         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
97604         * tests/unictype/test-pr_soft_dotted.c: Likewise.
97605         * tests/unictype/test-pr_space.c: Likewise.
97606         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
97607         * tests/unictype/test-pr_titlecase.c: Likewise.
97608         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
97609         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
97610         * tests/unictype/test-pr_uppercase.c: Likewise.
97611         * tests/unictype/test-pr_variation_selector.c: Likewise.
97612         * tests/unictype/test-pr_white_space.c: Likewise.
97613         * tests/unictype/test-pr_xid_continue.c: Likewise.
97614         * tests/unictype/test-pr_xid_start.c: Likewise.
97615         * tests/unictype/test-pr_zero_width.c: Likewise.
97616         * tests/unictype/test-sy_c_whitespace.c: Likewise.
97617         * tests/unictype/test-sy_java_whitespace.c: Likewise.
97619 2007-11-12  Bruno Haible  <bruno@clisp.org>
97621         Unicode character classification functions.
97622         * lib/unictype.h: New file.
97623         * modules/unictype/base: New file.
97624         * modules/unictype/category-L: New file.
97625         * modules/unictype/category-Lu: New file.
97626         * modules/unictype/category-Ll: New file.
97627         * modules/unictype/category-Lt: New file.
97628         * modules/unictype/category-Lm: New file.
97629         * modules/unictype/category-Lo: New file.
97630         * modules/unictype/category-M: New file.
97631         * modules/unictype/category-Mn: New file.
97632         * modules/unictype/category-Mc: New file.
97633         * modules/unictype/category-Me: New file.
97634         * modules/unictype/category-N: New file.
97635         * modules/unictype/category-Nd: New file.
97636         * modules/unictype/category-Nl: New file.
97637         * modules/unictype/category-No: New file.
97638         * modules/unictype/category-P: New file.
97639         * modules/unictype/category-Pc: New file.
97640         * modules/unictype/category-Pd: New file.
97641         * modules/unictype/category-Ps: New file.
97642         * modules/unictype/category-Pe: New file.
97643         * modules/unictype/category-Pi: New file.
97644         * modules/unictype/category-Pf: New file.
97645         * modules/unictype/category-Po: New file.
97646         * modules/unictype/category-S: New file.
97647         * modules/unictype/category-Sm: New file.
97648         * modules/unictype/category-Sc: New file.
97649         * modules/unictype/category-Sk: New file.
97650         * modules/unictype/category-So: New file.
97651         * modules/unictype/category-Z: New file.
97652         * modules/unictype/category-Zs: New file.
97653         * modules/unictype/category-Zl: New file.
97654         * modules/unictype/category-Zp: New file.
97655         * modules/unictype/category-C: New file.
97656         * modules/unictype/category-Cc: New file.
97657         * modules/unictype/category-Cf: New file.
97658         * modules/unictype/category-Cs: New file.
97659         * modules/unictype/category-Co: New file.
97660         * modules/unictype/category-Cn: New file.
97661         * modules/unictype/category-or: New file.
97662         * modules/unictype/category-of: New file.
97663         * modules/unictype/category-test: New file.
97664         * modules/unictype/category-test-withtable: New file.
97665         * modules/unictype/category-byname: New file.
97666         * modules/unictype/category-none: New file.
97667         * modules/unictype/category-and: New file.
97668         * modules/unictype/category-and-not: New file.
97669         * modules/unictype/category-name: New file.
97670         * modules/unictype/combining-class: New file.
97671         * modules/unictype/category-all: New file.
97672         * modules/unictype/bidicategory-all: New file.
97673         * modules/unictype/bidicategory-byname: New file.
97674         * modules/unictype/bidicategory-name: New file.
97675         * modules/unictype/bidicategory-of: New file.
97676         * modules/unictype/bidicategory-test: New file.
97677         * modules/unictype/decimal-digit: New file.
97678         * modules/unictype/digit: New file.
97679         * modules/unictype/numeric: New file.
97680         * modules/unictype/mirror: New file.
97681         * modules/unictype/property-white-space: New file.
97682         * modules/unictype/property-alphabetic: New file.
97683         * modules/unictype/property-other-alphabetic: New file.
97684         * modules/unictype/property-not-a-character: New file.
97685         * modules/unictype/property-default-ignorable-code-point: New file.
97686         * modules/unictype/property-other-default-ignorable-code-point: New
97687         file.
97688         * modules/unictype/property-deprecated: New file.
97689         * modules/unictype/property-logical-order-exception: New file.
97690         * modules/unictype/property-variation-selector: New file.
97691         * modules/unictype/property-private-use: New file.
97692         * modules/unictype/property-unassigned-code-value: New file.
97693         * modules/unictype/property-uppercase: New file.
97694         * modules/unictype/property-other-uppercase: New file.
97695         * modules/unictype/property-lowercase: New file.
97696         * modules/unictype/property-other-lowercase: New file.
97697         * modules/unictype/property-titlecase: New file.
97698         * modules/unictype/property-soft-dotted: New file.
97699         * modules/unictype/property-id-start: New file.
97700         * modules/unictype/property-other-id-start: New file.
97701         * modules/unictype/property-id-continue: New file.
97702         * modules/unictype/property-other-id-continue: New file.
97703         * modules/unictype/property-xid-start: New file.
97704         * modules/unictype/property-xid-continue: New file.
97705         * modules/unictype/property-pattern-white-space: New file.
97706         * modules/unictype/property-pattern-syntax: New file.
97707         * modules/unictype/property-join-control: New file.
97708         * modules/unictype/property-grapheme-base: New file.
97709         * modules/unictype/property-grapheme-extend: New file.
97710         * modules/unictype/property-other-grapheme-extend: New file.
97711         * modules/unictype/property-grapheme-link: New file.
97712         * modules/unictype/property-bidi-control: New file.
97713         * modules/unictype/property-bidi-left-to-right: New file.
97714         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
97715         * modules/unictype/property-bidi-arabic-right-to-left: New file.
97716         * modules/unictype/property-bidi-european-digit: New file.
97717         * modules/unictype/property-bidi-eur-num-separator: New file.
97718         * modules/unictype/property-bidi-eur-num-terminator: New file.
97719         * modules/unictype/property-bidi-arabic-digit: New file.
97720         * modules/unictype/property-bidi-common-separator: New file.
97721         * modules/unictype/property-bidi-block-separator: New file.
97722         * modules/unictype/property-bidi-segment-separator: New file.
97723         * modules/unictype/property-bidi-whitespace: New file.
97724         * modules/unictype/property-bidi-non-spacing-mark: New file.
97725         * modules/unictype/property-bidi-boundary-neutral: New file.
97726         * modules/unictype/property-bidi-pdf: New file.
97727         * modules/unictype/property-bidi-embedding-or-override: New file.
97728         * modules/unictype/property-bidi-other-neutral: New file.
97729         * modules/unictype/property-hex-digit: New file.
97730         * modules/unictype/property-ascii-hex-digit: New file.
97731         * modules/unictype/property-ideographic: New file.
97732         * modules/unictype/property-unified-ideograph: New file.
97733         * modules/unictype/property-radical: New file.
97734         * modules/unictype/property-ids-binary-operator: New file.
97735         * modules/unictype/property-ids-trinary-operator: New file.
97736         * modules/unictype/property-zero-width: New file.
97737         * modules/unictype/property-space: New file.
97738         * modules/unictype/property-non-break: New file.
97739         * modules/unictype/property-iso-control: New file.
97740         * modules/unictype/property-format-control: New file.
97741         * modules/unictype/property-dash: New file.
97742         * modules/unictype/property-hyphen: New file.
97743         * modules/unictype/property-punctuation: New file.
97744         * modules/unictype/property-line-separator: New file.
97745         * modules/unictype/property-paragraph-separator: New file.
97746         * modules/unictype/property-quotation-mark: New file.
97747         * modules/unictype/property-sentence-terminal: New file.
97748         * modules/unictype/property-terminal-punctuation: New file.
97749         * modules/unictype/property-currency-symbol: New file.
97750         * modules/unictype/property-math: New file.
97751         * modules/unictype/property-other-math: New file.
97752         * modules/unictype/property-paired-punctuation: New file.
97753         * modules/unictype/property-left-of-pair: New file.
97754         * modules/unictype/property-combining: New file.
97755         * modules/unictype/property-composite: New file.
97756         * modules/unictype/property-decimal-digit: New file.
97757         * modules/unictype/property-numeric: New file.
97758         * modules/unictype/property-diacritic: New file.
97759         * modules/unictype/property-extender: New file.
97760         * modules/unictype/property-ignorable-control: New file.
97761         * modules/unictype/property-test: New file.
97762         * modules/unictype/property-byname: New file.
97763         * modules/unictype/property-all: New file.
97764         * modules/unictype/scripts: New file.
97765         * modules/unictype/scripts-all: New file.
97766         * modules/unictype/block-of: New file.
97767         * modules/unictype/block-test: New file.
97768         * modules/unictype/block-list: New file.
97769         * modules/unictype/block-all: New file.
97770         * modules/unictype/syntax-c-whitespace: New file.
97771         * modules/unictype/syntax-java-whitespace: New file.
97772         * modules/unictype/syntax-c-ident: New file.
97773         * modules/unictype/syntax-java-ident: New file.
97774         * modules/unictype/ctype-alnum: New file.
97775         * modules/unictype/ctype-alpha: New file.
97776         * modules/unictype/ctype-cntrl: New file.
97777         * modules/unictype/ctype-digit: New file.
97778         * modules/unictype/ctype-graph: New file.
97779         * modules/unictype/ctype-lower: New file.
97780         * modules/unictype/ctype-print: New file.
97781         * modules/unictype/ctype-punct: New file.
97782         * modules/unictype/ctype-space: New file.
97783         * modules/unictype/ctype-upper: New file.
97784         * modules/unictype/ctype-xdigit: New file.
97785         * modules/unictype/ctype-blank: New file.
97786         * lib/unictype/bidi_byname.c: New file.
97787         * lib/unictype/bidi_name.c: New file.
97788         * lib/unictype/bidi_of.c: New file.
97789         * lib/unictype/bidi_test.c: New file.
97790         * lib/unictype/bitmap.h: New file.
97791         * lib/unictype/block_test.c: New file.
97792         * lib/unictype/blocks.c: New file.
97793         * lib/unictype/categ_C.c: New file.
97794         * lib/unictype/categ_Cc.c: New file.
97795         * lib/unictype/categ_Cf.c: New file.
97796         * lib/unictype/categ_Cn.c: New file.
97797         * lib/unictype/categ_Co.c: New file.
97798         * lib/unictype/categ_Cs.c: New file.
97799         * lib/unictype/categ_L.c: New file.
97800         * lib/unictype/categ_Ll.c: New file.
97801         * lib/unictype/categ_Lm.c: New file.
97802         * lib/unictype/categ_Lo.c: New file.
97803         * lib/unictype/categ_Lt.c: New file.
97804         * lib/unictype/categ_Lu.c: New file.
97805         * lib/unictype/categ_M.c: New file.
97806         * lib/unictype/categ_Mc.c: New file.
97807         * lib/unictype/categ_Me.c: New file.
97808         * lib/unictype/categ_Mn.c: New file.
97809         * lib/unictype/categ_N.c: New file.
97810         * lib/unictype/categ_Nd.c: New file.
97811         * lib/unictype/categ_Nl.c: New file.
97812         * lib/unictype/categ_No.c: New file.
97813         * lib/unictype/categ_P.c: New file.
97814         * lib/unictype/categ_Pc.c: New file.
97815         * lib/unictype/categ_Pd.c: New file.
97816         * lib/unictype/categ_Pe.c: New file.
97817         * lib/unictype/categ_Pf.c: New file.
97818         * lib/unictype/categ_Pi.c: New file.
97819         * lib/unictype/categ_Po.c: New file.
97820         * lib/unictype/categ_Ps.c: New file.
97821         * lib/unictype/categ_S.c: New file.
97822         * lib/unictype/categ_Sc.c: New file.
97823         * lib/unictype/categ_Sk.c: New file.
97824         * lib/unictype/categ_Sm.c: New file.
97825         * lib/unictype/categ_So.c: New file.
97826         * lib/unictype/categ_Z.c: New file.
97827         * lib/unictype/categ_Zl.c: New file.
97828         * lib/unictype/categ_Zp.c: New file.
97829         * lib/unictype/categ_Zs.c: New file.
97830         * lib/unictype/categ_and.c: New file.
97831         * lib/unictype/categ_and_not.c: New file.
97832         * lib/unictype/categ_byname.c: New file.
97833         * lib/unictype/categ_name.c: New file.
97834         * lib/unictype/categ_none.c: New file.
97835         * lib/unictype/categ_of.c: New file.
97836         * lib/unictype/categ_or.c: New file.
97837         * lib/unictype/categ_test.c: New file.
97838         * lib/unictype/combining.c: New file.
97839         * lib/unictype/ctype_alnum.c: New file.
97840         * lib/unictype/ctype_alpha.c: New file.
97841         * lib/unictype/ctype_blank.c: New file.
97842         * lib/unictype/ctype_cntrl.c: New file.
97843         * lib/unictype/ctype_digit.c: New file.
97844         * lib/unictype/ctype_graph.c: New file.
97845         * lib/unictype/ctype_lower.c: New file.
97846         * lib/unictype/ctype_print.c: New file.
97847         * lib/unictype/ctype_punct.c: New file.
97848         * lib/unictype/ctype_space.c: New file.
97849         * lib/unictype/ctype_upper.c: New file.
97850         * lib/unictype/ctype_xdigit.c: New file.
97851         * lib/unictype/decdigit.c: New file.
97852         * lib/unictype/digit.c: New file.
97853         * lib/unictype/identsyntaxmap.h: New file.
97854         * lib/unictype/mirror.c: New file.
97855         * lib/unictype/numeric.c: New file.
97856         * lib/unictype/pr_alphabetic.c: New file.
97857         * lib/unictype/pr_ascii_hex_digit.c: New file.
97858         * lib/unictype/pr_bidi_arabic_digit.c: New file.
97859         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
97860         * lib/unictype/pr_bidi_block_separator.c: New file.
97861         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
97862         * lib/unictype/pr_bidi_common_separator.c: New file.
97863         * lib/unictype/pr_bidi_control.c: New file.
97864         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
97865         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
97866         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
97867         * lib/unictype/pr_bidi_european_digit.c: New file.
97868         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
97869         * lib/unictype/pr_bidi_left_to_right.c: New file.
97870         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
97871         * lib/unictype/pr_bidi_other_neutral.c: New file.
97872         * lib/unictype/pr_bidi_pdf.c: New file.
97873         * lib/unictype/pr_bidi_segment_separator.c: New file.
97874         * lib/unictype/pr_bidi_whitespace.c: New file.
97875         * lib/unictype/pr_byname.c: New file.
97876         * lib/unictype/pr_byname.gperf: New file.
97877         * lib/unictype/pr_combining.c: New file.
97878         * lib/unictype/pr_composite.c: New file.
97879         * lib/unictype/pr_currency_symbol.c: New file.
97880         * lib/unictype/pr_dash.c: New file.
97881         * lib/unictype/pr_decimal_digit.c: New file.
97882         * lib/unictype/pr_default_ignorable_code_point.c: New file.
97883         * lib/unictype/pr_deprecated.c: New file.
97884         * lib/unictype/pr_diacritic.c: New file.
97885         * lib/unictype/pr_extender.c: New file.
97886         * lib/unictype/pr_format_control.c: New file.
97887         * lib/unictype/pr_grapheme_base.c: New file.
97888         * lib/unictype/pr_grapheme_extend.c: New file.
97889         * lib/unictype/pr_grapheme_link.c: New file.
97890         * lib/unictype/pr_hex_digit.c: New file.
97891         * lib/unictype/pr_hyphen.c: New file.
97892         * lib/unictype/pr_id_continue.c: New file.
97893         * lib/unictype/pr_id_start.c: New file.
97894         * lib/unictype/pr_ideographic.c: New file.
97895         * lib/unictype/pr_ids_binary_operator.c: New file.
97896         * lib/unictype/pr_ids_trinary_operator.c: New file.
97897         * lib/unictype/pr_ignorable_control.c: New file.
97898         * lib/unictype/pr_iso_control.c: New file.
97899         * lib/unictype/pr_join_control.c: New file.
97900         * lib/unictype/pr_left_of_pair.c: New file.
97901         * lib/unictype/pr_line_separator.c: New file.
97902         * lib/unictype/pr_logical_order_exception.c: New file.
97903         * lib/unictype/pr_lowercase.c: New file.
97904         * lib/unictype/pr_math.c: New file.
97905         * lib/unictype/pr_non_break.c: New file.
97906         * lib/unictype/pr_not_a_character.c: New file.
97907         * lib/unictype/pr_numeric.c: New file.
97908         * lib/unictype/pr_other_alphabetic.c: New file.
97909         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
97910         * lib/unictype/pr_other_grapheme_extend.c: New file.
97911         * lib/unictype/pr_other_id_continue.c: New file.
97912         * lib/unictype/pr_other_id_start.c: New file.
97913         * lib/unictype/pr_other_lowercase.c: New file.
97914         * lib/unictype/pr_other_math.c: New file.
97915         * lib/unictype/pr_other_uppercase.c: New file.
97916         * lib/unictype/pr_paired_punctuation.c: New file.
97917         * lib/unictype/pr_paragraph_separator.c: New file.
97918         * lib/unictype/pr_pattern_syntax.c: New file.
97919         * lib/unictype/pr_pattern_white_space.c: New file.
97920         * lib/unictype/pr_private_use.c: New file.
97921         * lib/unictype/pr_punctuation.c: New file.
97922         * lib/unictype/pr_quotation_mark.c: New file.
97923         * lib/unictype/pr_radical.c: New file.
97924         * lib/unictype/pr_sentence_terminal.c: New file.
97925         * lib/unictype/pr_soft_dotted.c: New file.
97926         * lib/unictype/pr_space.c: New file.
97927         * lib/unictype/pr_terminal_punctuation.c: New file.
97928         * lib/unictype/pr_test.c: New file.
97929         * lib/unictype/pr_titlecase.c: New file.
97930         * lib/unictype/pr_unassigned_code_value.c: New file.
97931         * lib/unictype/pr_unified_ideograph.c: New file.
97932         * lib/unictype/pr_uppercase.c: New file.
97933         * lib/unictype/pr_variation_selector.c: New file.
97934         * lib/unictype/pr_white_space.c: New file.
97935         * lib/unictype/pr_xid_continue.c: New file.
97936         * lib/unictype/pr_xid_start.c: New file.
97937         * lib/unictype/pr_zero_width.c: New file.
97938         * lib/unictype/scripts.c: New file.
97939         * lib/unictype/sy_c_ident.c: New file.
97940         * lib/unictype/sy_c_whitespace.c: New file.
97941         * lib/unictype/sy_java_ident.c: New file.
97942         * lib/unictype/sy_java_whitespace.c: New file.
97944         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
97945         Unicode 5.0.0.
97946         * lib/unictype/blocks.h: Likewise.
97947         * lib/unictype/categ_C.h: Likewise.
97948         * lib/unictype/categ_Cc.h: Likewise.
97949         * lib/unictype/categ_Cf.h: Likewise.
97950         * lib/unictype/categ_Cn.h: Likewise.
97951         * lib/unictype/categ_Co.h: Likewise.
97952         * lib/unictype/categ_Cs.h: Likewise.
97953         * lib/unictype/categ_L.h: Likewise.
97954         * lib/unictype/categ_Ll.h: Likewise.
97955         * lib/unictype/categ_Lm.h: Likewise.
97956         * lib/unictype/categ_Lo.h: Likewise.
97957         * lib/unictype/categ_Lt.h: Likewise.
97958         * lib/unictype/categ_Lu.h: Likewise.
97959         * lib/unictype/categ_M.h: Likewise.
97960         * lib/unictype/categ_Mc.h: Likewise.
97961         * lib/unictype/categ_Me.h: Likewise.
97962         * lib/unictype/categ_Mn.h: Likewise.
97963         * lib/unictype/categ_N.h: Likewise.
97964         * lib/unictype/categ_Nd.h: Likewise.
97965         * lib/unictype/categ_Nl.h: Likewise.
97966         * lib/unictype/categ_No.h: Likewise.
97967         * lib/unictype/categ_P.h: Likewise.
97968         * lib/unictype/categ_Pc.h: Likewise.
97969         * lib/unictype/categ_Pd.h: Likewise.
97970         * lib/unictype/categ_Pe.h: Likewise.
97971         * lib/unictype/categ_Pf.h: Likewise.
97972         * lib/unictype/categ_Pi.h: Likewise.
97973         * lib/unictype/categ_Po.h: Likewise.
97974         * lib/unictype/categ_Ps.h: Likewise.
97975         * lib/unictype/categ_S.h: Likewise.
97976         * lib/unictype/categ_Sc.h: Likewise.
97977         * lib/unictype/categ_Sk.h: Likewise.
97978         * lib/unictype/categ_Sm.h: Likewise.
97979         * lib/unictype/categ_So.h: Likewise.
97980         * lib/unictype/categ_Z.h: Likewise.
97981         * lib/unictype/categ_Zl.h: Likewise.
97982         * lib/unictype/categ_Zp.h: Likewise.
97983         * lib/unictype/categ_Zs.h: Likewise.
97984         * lib/unictype/categ_of.h: Likewise.
97985         * lib/unictype/combining.h: Likewise.
97986         * lib/unictype/ctype_alnum.h: Likewise.
97987         * lib/unictype/ctype_alpha.h: Likewise.
97988         * lib/unictype/ctype_blank.h: Likewise.
97989         * lib/unictype/ctype_cntrl.h: Likewise.
97990         * lib/unictype/ctype_digit.h: Likewise.
97991         * lib/unictype/ctype_graph.h: Likewise.
97992         * lib/unictype/ctype_lower.h: Likewise.
97993         * lib/unictype/ctype_print.h: Likewise.
97994         * lib/unictype/ctype_punct.h: Likewise.
97995         * lib/unictype/ctype_space.h: Likewise.
97996         * lib/unictype/ctype_upper.h: Likewise.
97997         * lib/unictype/ctype_xdigit.h: Likewise.
97998         * lib/unictype/decdigit.h: Likewise.
97999         * lib/unictype/digit.h: Likewise.
98000         * lib/unictype/mirror.h: Likewise.
98001         * lib/unictype/numeric.h: Likewise.
98002         * lib/unictype/pr_alphabetic.h: Likewise.
98003         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
98004         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
98005         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
98006         * lib/unictype/pr_bidi_block_separator.h: Likewise.
98007         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
98008         * lib/unictype/pr_bidi_common_separator.h: Likewise.
98009         * lib/unictype/pr_bidi_control.h: Likewise.
98010         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
98011         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
98012         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
98013         * lib/unictype/pr_bidi_european_digit.h: Likewise.
98014         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
98015         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
98016         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
98017         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
98018         * lib/unictype/pr_bidi_pdf.h: Likewise.
98019         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
98020         * lib/unictype/pr_bidi_whitespace.h: Likewise.
98021         * lib/unictype/pr_combining.h: Likewise.
98022         * lib/unictype/pr_composite.h: Likewise.
98023         * lib/unictype/pr_currency_symbol.h: Likewise.
98024         * lib/unictype/pr_dash.h: Likewise.
98025         * lib/unictype/pr_decimal_digit.h: Likewise.
98026         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
98027         * lib/unictype/pr_deprecated.h: Likewise.
98028         * lib/unictype/pr_diacritic.h: Likewise.
98029         * lib/unictype/pr_extender.h: Likewise.
98030         * lib/unictype/pr_format_control.h: Likewise.
98031         * lib/unictype/pr_grapheme_base.h: Likewise.
98032         * lib/unictype/pr_grapheme_extend.h: Likewise.
98033         * lib/unictype/pr_grapheme_link.h: Likewise.
98034         * lib/unictype/pr_hex_digit.h: Likewise.
98035         * lib/unictype/pr_hyphen.h: Likewise.
98036         * lib/unictype/pr_id_continue.h: Likewise.
98037         * lib/unictype/pr_id_start.h: Likewise.
98038         * lib/unictype/pr_ideographic.h: Likewise.
98039         * lib/unictype/pr_ids_binary_operator.h: Likewise.
98040         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
98041         * lib/unictype/pr_ignorable_control.h: Likewise.
98042         * lib/unictype/pr_iso_control.h: Likewise.
98043         * lib/unictype/pr_join_control.h: Likewise.
98044         * lib/unictype/pr_left_of_pair.h: Likewise.
98045         * lib/unictype/pr_line_separator.h: Likewise.
98046         * lib/unictype/pr_logical_order_exception.h: Likewise.
98047         * lib/unictype/pr_lowercase.h: Likewise.
98048         * lib/unictype/pr_math.h: Likewise.
98049         * lib/unictype/pr_non_break.h: Likewise.
98050         * lib/unictype/pr_not_a_character.h: Likewise.
98051         * lib/unictype/pr_numeric.h: Likewise.
98052         * lib/unictype/pr_other_alphabetic.h: Likewise.
98053         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
98054         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
98055         * lib/unictype/pr_other_id_continue.h: Likewise.
98056         * lib/unictype/pr_other_id_start.h: Likewise.
98057         * lib/unictype/pr_other_lowercase.h: Likewise.
98058         * lib/unictype/pr_other_math.h: Likewise.
98059         * lib/unictype/pr_other_uppercase.h: Likewise.
98060         * lib/unictype/pr_paired_punctuation.h: Likewise.
98061         * lib/unictype/pr_paragraph_separator.h: Likewise.
98062         * lib/unictype/pr_pattern_syntax.h: Likewise.
98063         * lib/unictype/pr_pattern_white_space.h: Likewise.
98064         * lib/unictype/pr_private_use.h: Likewise.
98065         * lib/unictype/pr_punctuation.h: Likewise.
98066         * lib/unictype/pr_quotation_mark.h: Likewise.
98067         * lib/unictype/pr_radical.h: Likewise.
98068         * lib/unictype/pr_sentence_terminal.h: Likewise.
98069         * lib/unictype/pr_soft_dotted.h: Likewise.
98070         * lib/unictype/pr_space.h: Likewise.
98071         * lib/unictype/pr_terminal_punctuation.h: Likewise.
98072         * lib/unictype/pr_titlecase.h: Likewise.
98073         * lib/unictype/pr_unassigned_code_value.h: Likewise.
98074         * lib/unictype/pr_unified_ideograph.h: Likewise.
98075         * lib/unictype/pr_uppercase.h: Likewise.
98076         * lib/unictype/pr_variation_selector.h: Likewise.
98077         * lib/unictype/pr_white_space.h: Likewise.
98078         * lib/unictype/pr_xid_continue.h: Likewise.
98079         * lib/unictype/pr_xid_start.h: Likewise.
98080         * lib/unictype/pr_zero_width.h: Likewise.
98081         * lib/unictype/scripts.h: Likewise.
98082         * lib/unictype/scripts_byname.gperf: Likewise.
98083         * lib/unictype/sy_c_ident.h: Likewise.
98084         * lib/unictype/sy_c_whitespace.h: Likewise.
98085         * lib/unictype/sy_java_ident.h: Likewise.
98086         * lib/unictype/sy_java_whitespace.h: Likewise.
98088         * lib/unictype/Makefile: New file.
98089         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
98090         glibc.
98091         * lib/unictype/3level.h: New file, copied from glibc.
98092         * lib/unictype/3levelbit.h: New file.
98094 2007-11-11  Bruno Haible  <bruno@clisp.org>
98096         * modules/gperf: New file.
98097         * modules/iconv_open (Depends-on): Add it.
98098         (Makefile.am): Remove the GPERF definition.
98100 2007-11-11  Bruno Haible  <bruno@clisp.org>
98102         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
98103         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
98105 2007-11-11  Bruno Haible  <bruno@clisp.org>
98107         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
98108         (usage): Remove function.
98110 2007-11-11  Bruno Haible  <bruno@clisp.org>
98112         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
98113         gl_FUNC_CEILF_LIBS.
98114         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
98115         gl_FUNC_CEIL_LIBS.
98116         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
98117         gl_FUNC_CEILL_LIBS.
98118         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
98119         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
98120         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
98122 2007-11-11  Bruno Haible  <bruno@clisp.org>
98124         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
98125         roundf were declared but do not exist on functions.
98126         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
98127         roundl were declared but do not exist on functions.
98128         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
98129         HAVE_FLOORL_AND_CEILL, respectively.
98130         Needed for Sun C on Solaris 10.
98132 2007-11-11  Bruno Haible  <bruno@clisp.org>
98134         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
98135         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
98136         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
98137         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
98138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
98139         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
98140         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
98141         HAVE_DECL_ROUNDF.
98142         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
98143         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
98144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
98145         of HAVE_DECL_ROUND*.
98146         * modules/math (Makefile.am): Update.
98148 2007-11-10  Bruno Haible  <bruno@clisp.org>
98150         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
98151         ptrdiff_t as m4/intl.m4.
98153 2007-11-10  Jim Meyering  <meyering@redhat.com>
98155         Avoid link failure for the argmatch test.
98156         * tests/test-argmatch.c (usage): Define function to avoid a link
98157         failure: argmatch_die requires a usage function.
98159 2007-11-09  Bruno Haible  <bruno@clisp.org>
98161         * doc/functions/snprintf.texi: Mention BeOS deficiency.
98162         * doc/functions/vsnprintf.texi: Likewise.
98163         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
98164         with a size argument < 2.
98166 2007-11-09  Bruno Haible  <bruno@clisp.org>
98168         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
98169         buffer. Fixes an inefficiency introduced on 2007-11-03.
98171 2007-11-09  Bruno Haible  <bruno@clisp.org>
98173         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
98174         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
98176 2007-11-08  Jim Meyering  <meyering@redhat.com>
98178         Change cache variable name prefix "jm_" to "gl_" everywhere.
98179         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
98180         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
98181         * m4/uptime.m4: s/gl_/jm_/
98183 2007-11-07  Bruno Haible  <bruno@clisp.org>
98185         Update to GNU gettext 0.17.
98186         * m4/intl.m4: Update to GNU gettext 0.17.
98187         * m4/po.m4: Likewise.
98188         * modules/gettext (Files): Remove m4/ulonglong.m4.
98189         (configure.ac): Require gettext infrastructure from version 0.17.
98191 2007-11-06  Bruno Haible  <bruno@clisp.org>
98193         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
98194         symbolic values are not defined in a public header.
98195         * lib/freadable.c (freadable) [QNX]: Likewise.
98196         * lib/freadahead.c (freadahead) [QNX]: Likewise.
98197         * lib/freading.c (freading) [QNX]: Likewise.
98198         * lib/fseterr.c (fseterr) [QNX]: Likewise.
98199         * lib/fwritable.c (fwritable) [QNX]: Likewise.
98200         * lib/fwriting.c (fwriting) [QNX]: Likewise.
98201         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
98202         Reported by Alain Magloire.
98204         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
98206 2007-11-05  Bruno Haible  <bruno@clisp.org>
98208         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
98209         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
98210         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
98211         Reported by Eric Blake.
98213 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98214             Bruno Haible  <bruno@clisp.org>
98216         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
98217         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
98218         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
98219         (malloc): Undefine also before including <stdlib.h>.
98220         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
98221         Needed on OSF/1 4.0.
98223 2007-11-05  Jim Meyering  <meyering@redhat.com>
98225         git-version-gen: sync from coreutils.
98226         * build-aux/git-version-gen: Add comments.
98227         Change the first '-' to '.' in the snapshot version string,
98228         e.g., 6.9-377-08144 -> 6.9.377-08144
98229         Remove first parameter.
98230         Don't declare a version "-dirty" merely because a time
98231         stamp has changed.
98233 2007-11-04  Bruno Haible  <bruno@clisp.org>
98235         * lib/lock.h: Protect all macro definitions containing an 'if'
98236         statement through a "do { ... } while (0)".
98237         * lib/tls.h: Likewise.
98239 2007-11-04  Bruno Haible  <bruno@clisp.org>
98241         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
98243 2007-11-04  Bruno Haible  <bruno@clisp.org>
98245         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
98246         * modules/fprintf-posix (Depends-on): Add nocrash.
98247         * modules/snprintf-posix (Depends-on): Likewise.
98248         * modules/sprintf-posix (Depends-on): Likewise.
98249         * modules/vasnprintf-posix (Depends-on): Likewise.
98250         * modules/vasprintf-posix (Depends-on): Likewise.
98251         * modules/vfprintf-posix (Depends-on): Likewise.
98252         * modules/vsnprintf-posix (Depends-on): Likewise.
98253         * modules/vsprintf-posix (Depends-on): Likewise.
98254         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98255         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98256         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98257         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98258         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98259         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98260         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98262 2007-11-04  Bruno Haible  <bruno@clisp.org>
98264         * modules/nocrash: New file.
98265         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
98266         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
98268 2007-11-04  Bruno Haible  <bruno@clisp.org>
98270         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
98271         precision handling.
98272         * tests/test-vasprintf-posix.c (test_function): Likewise.
98273         * tests/test-snprintf-posix.h (test_function): Likewise.
98274         * tests/test-sprintf-posix.h (test_function): Likewise.
98276         Fix *printf behaviour for large precisions on mingw and BeOS.
98277         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
98278         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
98279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
98280         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98281         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98282         gl_PRINTF_PRECISION and test its result. Invoke
98283         gl_PREREQ_VASNPRINTF_PRECISION.
98284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98288         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98290         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98291         * doc/functions/fprintf.texi: Update.
98292         * doc/functions/printf.texi: Update.
98293         * doc/functions/snprintf.texi: Update.
98294         * doc/functions/sprintf.texi: Update.
98295         * doc/functions/vfprintf.texi: Update.
98296         * doc/functions/vprintf.texi: Update.
98297         * doc/functions/vsnprintf.texi: Update.
98298         * doc/functions/vsprintf.texi: Update.
98300 2007-11-04  Bruno Haible  <bruno@clisp.org>
98302         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
98304 2007-11-04  Bruno Haible  <bruno@clisp.org>
98306         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
98307         Reported by Sylvain Beucler <beuc@gnu.org>.
98309 2007-11-03  Bruno Haible  <bruno@clisp.org>
98311         * tests/test-fprintf-posix2.sh: New file.
98312         * tests/test-fprintf-posix2.c: New file.
98313         * modules/fprintf-posix-tests (Files): Add them.
98314         (TESTS): Add test-fprintf-posix2.sh.
98315         (configure.ac): Check for getrlimit and setrlimit.
98316         (check_PROGRAMS): Add test-fprintf-posix2.
98318         * tests/test-printf-posix2.sh: New file.
98319         * tests/test-printf-posix2.c: New file.
98320         * modules/printf-posix-tests (Files): Add them.
98321         (TESTS): Add test-printf-posix2.sh.
98322         (configure.ac): Check for getrlimit and setrlimit.
98323         (check_PROGRAMS): Add test-printf-posix2.
98325         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
98326         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
98327         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
98328         (decode_double): New function, copied from decode_long_double.
98329         (scale10_round_decimal_decoded): New function, extracted from
98330         scale10_round_decimal_long_double.
98331         (scale10_round_decimal_long_double): Use it.
98332         (scale10_round_decimal_double): New function.
98333         (floorlog10): New function.
98334         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
98335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
98336         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98338         gl_PRINTF_ENOMEM and test its result. Invoke
98339         gl_PREREQ_VASNPRINTF_ENOMEM.
98340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98341         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98342         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98343         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98344         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98345         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98346         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98347         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
98348         * modules/snprintf-posix (Depends-on): Likewise.
98349         * modules/sprintf-posix (Depends-on): Likewise.
98350         * modules/vasnprintf-posix (Depends-on): Likewise.
98351         * modules/vasprintf-posix (Depends-on): Likewise.
98352         * modules/vfprintf-posix (Depends-on): Likewise.
98353         * modules/vsnprintf-posix (Depends-on): Likewise.
98354         * modules/vsprintf-posix (Depends-on): Likewise.
98355         * doc/functions/fprintf.texi: Update.
98356         * doc/functions/printf.texi: Update.
98357         * doc/functions/snprintf.texi: Update.
98358         * doc/functions/sprintf.texi: Update.
98359         * doc/functions/vfprintf.texi: Update.
98360         * doc/functions/vprintf.texi: Update.
98361         * doc/functions/vsnprintf.texi: Update.
98362         * doc/functions/vsprintf.texi: Update.
98364 2007-11-03  Bruno Haible  <bruno@clisp.org>
98366         * modules/frexp-nolibm-tests: New file.
98368         * modules/frexp-nolibm: New file.
98369         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
98371 2007-11-03  Bruno Haible  <bruno@clisp.org>
98373         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
98374         value is C99 compliant.
98375         Needed for OSF/1 5.1.
98377 2007-11-03  Bruno Haible  <bruno@clisp.org>
98379         Fix out-of-memory handling of vasnprintf.
98380         * lib/printf-parse.c: Include <errno.h>.
98381         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
98382         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
98383         is already set.
98385 2007-11-02  Eric Blake  <ebb9@byu.net>
98387         Fix tests on cygwin.
98388         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
98390 2007-11-01  Bruno Haible  <bruno@clisp.org>
98392         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
98393         warning.
98394         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
98395         needed for POSIX compatibility.
98397 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98399         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
98400         for compatibility with GNU.
98402 2007-11-01  Bruno Haible  <bruno@clisp.org>
98404         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
98405         (putenv): Renamed from rpl_putenv. Change argument type from
98406         'const char *' to 'char *'.
98407         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
98408         of defining putenv in config.h, just set REPLACE_PUTENV.
98409         * modules/putenv (Depends-on): Add stdlib.
98410         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
98411         (Include): Use <stdlib.h>.
98412         * lib/stdlib.in.h (putenv): New declaration.
98413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
98414         REPLACE_PUTENV.
98415         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
98416         REPLACE_PUTENV.
98417         Needed for MacOS X 10.5.0.
98418         Reported by Peter O'Gorman <peter@pogma.com>.
98420 2007-11-01  Jim Meyering  <meyering@redhat.com>
98422         Treat an empty date string exactly like "0".
98423         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
98424         if the remaining date string (to be parsed) is empty, use "0".
98425         Reported by Mischa Molhoek and discussed in this thread:
98426         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
98428 2007-10-31  Bruno Haible  <bruno@clisp.org>
98430         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
98431         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
98432         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
98433         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
98434         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
98435         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
98437 2007-10-31  Bruno Haible  <bruno@clisp.org>
98439         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
98440         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
98441         (AC_TYPE_LONG_LONG_INT): Use it.
98442         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
98443         it as well.
98444         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
98445         to m4/longlong.m4.
98446         * modules/stdint (Files): Remove m4/ulonglong.m4.
98447         * modules/strtoull (Files): Use m4/longlong.m4 instead of
98448         m4/ulonglong.m4.
98449         * modules/strtoumax (Files): Likewise.
98451 2007-10-30  Bruno Haible  <bruno@clisp.org>
98453         * modules/xvasprintf-posix: New file.
98454         Suggested by Eric Blake.
98456 2007-10-30  Bruno Haible  <bruno@clisp.org>
98458         * modules/xprintf-posix-tests: New file.
98459         * tests/test-xprintf-posix.sh: New file.
98460         * tests/test-xprintf-posix.c: New file.
98461         * tests/test-xfprintf-posix.c: New file.
98463         * modules/xprintf-posix: New file.
98465 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98467         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
98468         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
98469         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
98471 2007-10-29  Bruno Haible  <bruno@clisp.org>
98473         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
98474         contain the special marker '_cv_'.
98475         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
98476         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
98477         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
98478         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
98479         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
98480         Reported by Ralf Wildenhues.
98482 2007-10-29  Bruno Haible  <bruno@clisp.org>
98484         * gnulib-tool (func_import): When --lgpl is not specified, set
98485         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
98486         GPLv3.
98487         Reported by Simon Josefsson.
98489 2007-10-28  Bruno Haible  <bruno@clisp.org>
98491         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
98492         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
98493         HAVE_DECL_ISFINITE.
98494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98495         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
98496         HAVE_DECL_ISFINITE.
98498 2007-10-28  Bruno Haible  <bruno@clisp.org>
98500         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
98501         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
98503 2007-10-28  Bruno Haible  <bruno@clisp.org>
98505         Fix link errors with Sun C 5.0 on Solaris 10.
98506         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
98507         function is declared but not present in the compiler's libm.
98508         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
98509         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
98510         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
98511         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
98512         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
98513         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
98514         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
98515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98516         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
98517         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
98518         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
98519         HAVE_DECL_FLOORL.
98521 2007-10-28  Bruno Haible  <bruno@clisp.org>
98523         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
98524         gl_FUNC_FLOORL. Cache the result.
98525         (gl_FUNC_FLOORL): Use it.
98526         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
98527         gl_FUNC_CEILL. Cache the result.
98528         (gl_FUNC_CEILL): Use it.
98530         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
98531         gl_FUNC_FLOOR. Cache the result.
98532         (gl_FUNC_FLOOR): Use it.
98533         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
98534         gl_FUNC_CEIL. Cache the result.
98535         (gl_FUNC_CEIL): Use it.
98537         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
98538         gl_FUNC_FLOORF. Cache the result.
98539         (gl_FUNC_FLOORF): Use it.
98540         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
98541         gl_FUNC_CEILF. Cache the result.
98542         (gl_FUNC_CEILF): Use it.
98544 2007-10-28  Bruno Haible  <bruno@clisp.org>
98546         * gnulib-tool: Allow specifying the LGPL version number through
98547         --lgpl=2 or --lgpl=3.
98548         (func_usage): Document --lgpl with argument.
98549         Handle --lgpl=... arguments.
98550         (func_import): Recognize also gl_LGPL calls with an argument. When
98551         --lgpl=2 is used and the module's license is just LGPL, report an
98552         error. Set sed_transform_lib_file according to the lgpl variable. In
98553         the generated files, use --lgpl or gl_LGPL invocations with argument,
98554         if necessary.
98555         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
98556         an LGPv2+ license.
98557         * doc/gnulib-tool.texi (Modified imports): Update explanation of
98558         gl_LGPL macro.
98560 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98561             Bruno Haible  <bruno@clisp.org>
98563         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
98564         (u16_uctomb_aux): Likewise.
98565         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
98566         !HAVE_INLINE.
98567         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
98569 2007-10-28  Bruno Haible  <bruno@clisp.org>
98571         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
98572         Invoke AM_GETTEXT_OPTION if it exists.
98573         * modules/vasprintf: Likewise.
98574         * modules/verror: Likewise.
98575         * modules/xprintf: Likewise.
98576         * modules/xvasprintf: Likewise.
98578 2007-10-27  Ben Pfaff  <blp@gnu.org>
98580         * lib/math.in.h: Define isfinite macro and prototypes for
98581         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
98582         implementations.
98583         * m4/math_h.m4: New substitutions for isfinite module.
98584         * lib/isfinite.c: New file.
98585         * m4/isfinite.m4: New file.
98586         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
98587         * modules/isfinite: New file.
98588         * modules/isfinite-tests: New file.
98589         * tests/tests-isfinite.c: New file.
98590         * doc/functions/isfinite.texi: Mention isfinite module.
98591         * MODULES.html.sh: Mention new module.
98593 2007-10-27  Ben Pfaff  <blp@gnu.org>
98595         Ralf Wildenhues reported that Tru64 4.0D declares the round
98596         functions but does not have definitions.
98597         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
98598         cannot be found in any library, set the output variable to
98599         "missing" instead of "".
98600         * m4/round.m4: Also use our substitute if we cannot find round in
98601         any library, even if it is declared.
98602         * m4/roundf.m4: Likewise for roundf.
98603         * m4/roundl.m4: Likewise for roundl.
98604         * lib/math.in.h: Undefine roundf, round, roundl before defining
98605         their replacements, to allow for hypothetical systems where these
98606         may be defined as macros but not available in libraries.
98608 2007-10-27  Bruno Haible  <bruno@clisp.org>
98610         * doc/gnulib.texi: Invoke @firstparagraphindent.
98611         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
98612         changes in gnulib.
98613         (Source changes): New section.
98615 2007-10-26  Bruno Haible  <bruno@clisp.org>
98617         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
98618         borrowed from autoconf.
98620 2007-10-26  Bruno Haible  <bruno@clisp.org>
98622         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
98623         strerror returned the empty string. Needed on HP-UX 11.00.
98625 2007-10-24  Micah Cowan  <micah@cowan.name>
98627         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
98628         * build-aux/bootstrap: Remove support for now-unnecessary option,
98629         --cvs-user, and envvars CVS_USER, CVS_RSH.
98631 2007-10-24  Jim Meyering  <meyering@redhat.com>
98633         Avoid diagnostics from sha1sum when there is no cached checksum.
98634         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
98635         if the po.s1 file hasn't been created yet.
98637         * build-aux/bootstrap: Sync from coreutils:
98638         2007-10-24  Jim Meyering  <meyering@redhat.com>
98639         Get gnulib from the git repository, not from an obsolete cvs one.
98640         * build-aux/bootstrap: Suggestion from Micah Cowan.
98641         2007-10-04  Jim Meyering  <jim@meyering.net>
98642         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
98643         (update_po_files): Work also when there are no .po files in po/.
98645 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
98647         * README: Append ".git" to git and cg examples.
98648         Problem reported by Benoit Sigoure.
98650 2007-10-23  Micah Cowan  <micah@cowan.name>
98652         * users.txt: Add wget.
98654 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98656         Fix linking of some unistdio tests on FreeBSD.
98657         * modules/unistdio/u16-vsnprintf-tests
98658         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
98659         * modules/unistdio/u16-vsprintf-tests
98660         (test_u16_vsnprintf1_LDADD): Likewise.
98661         * modules/unistdio/u32-vsnprintf-tests
98662         (test_u32_vsnprintf1_LDADD): Likewise.
98663         * modules/unistdio/u32-vsprintf-tests
98664         (test_u32_vsprintf1_LDADD): Likewise.
98665         * modules/unistdio/u8-vsnprintf-tests
98666         (test_u8_vsnprintf1_LDADD): Likewise.
98667         * modules/unistdio/u8-vsprintf-tests
98668         (test_u8_vsprintf1_LDADD): Likewise.
98669         * modules/unistdio/ulc-vsnprintf-tests
98670         (test_ulc_vsnprintf1_LDADD): Likewise.
98671         * modules/unistdio/ulc-vsprintf-tests
98672         (test_ulc_vsprintf1_LDADD): Likewise.
98674         Fix linking of some uniconv tests on FreeBSD.
98675         * modules/uniconv/u16-conv-from-enc-tests
98676         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
98677         * modules/uniconv/u16-conv-to-enc-tests
98678         (test_u16_conv_to_enc_LDADD): Likewise.
98679         * modules/uniconv/u16-strconv-from-enc-tests
98680         (test_u16_strconv_from_enc_LDADD): Likewise.
98681         * modules/uniconv/u16-strconv-to-enc-tests
98682         (test_u16_strconv_to_enc_LDADD): Likewise.
98683         * modules/uniconv/u32-conv-from-enc-tests
98684         (test_u32_conv_from_enc_LDADD): Likewise.
98685         * modules/uniconv/u32-conv-to-enc-tests
98686         (test_u32_conv_to_enc_LDADD): Likewise.
98687         * modules/uniconv/u32-strconv-from-enc-tests
98688         (test_u32_strconv_from_enc_LDADD): Likewise.
98689         * modules/uniconv/u32-strconv-to-enc-tests
98690         (test_u32_strconv_to_enc_LDADD): Likewise.
98691         * modules/uniconv/u8-conv-from-enc-tests
98692         (test_u8_conv_from_enc_LDADD): Likewise.
98693         * modules/uniconv/u8-conv-to-enc-tests
98694         (test_u8_conv_to_enc_LDADD): Likewise.
98695         * modules/uniconv/u8-strconv-from-enc-tests
98696         (test_u8_strconv_from_enc_LDADD): Likewise.
98697         * modules/uniconv/u8-strconv-to-enc-tests
98698         (test_u8_strconv_to_enc_LDADD): Likewise.
98700 2007-10-22  Bruno Haible  <bruno@clisp.org>
98702         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
98703         size.
98705 2007-10-22  Eric Blake  <ebb9@byu.net>
98707         Tweak x*printf documentation.
98708         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
98709         variable name and comments.
98710         Suggested by Bruno Haible.
98712 2007-10-22  Bruno Haible  <bruno@clisp.org>
98714         * lib/acl.c (copy_acl): Fix file name in comment.
98716 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98718         Fix Tru64 problem with stdbool.h.
98719         * lib/stdbool.in.h (false, true):
98720         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
98721         Don't declare as an enum in this situation; it runs afoul of Tru64.
98722         Problem reported by Steven M. Schweda in
98723         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
98725 2007-10-22  Eric Blake  <ebb9@byu.net>
98727         Also wrap vf?printf.
98728         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
98729         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
98730         (xvprintf, xvfprintf): New functions.
98732 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98734         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
98735         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
98737         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
98738         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
98740 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98742         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
98743         by Bruno Haible.
98745 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98747         * lib/getloadavg.c
98748         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
98749         Undef `sys' after including sys/table.h, for Tru64 4.0D.
98751         * tests/test-i-ring.c: Work for C89.
98753 2007-10-22  Bruno Haible  <bruno@clisp.org>
98755         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
98756         -1u, in preprocessor expression, so that we don't test for the bug
98757         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
98758         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
98760 2007-10-22  Eric Blake  <ebb9@byu.net>
98762         * tests/test-yesno.sh: Silence stderr during test.
98764 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98766         * modules/crypto/gc-camellia: New file.
98768         * m4/gc-camellia.m4: New file.
98770         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
98772         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
98774 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98776         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
98777         --help to stdout.  Reported by sms@antinode.org (Steven
98778         M. Schweda).
98780 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98782         * users.txt: Fix link to libksba.
98784 2007-10-21  Ben Pfaff  <blp@gnu.org>
98786         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
98787         round.c roundf implementation that depends on floorf and ceilf to
98788         be tested unconditionally.
98790 2007-10-21  Ben Pfaff  <blp@gnu.org>
98792         * m4/check-libm-func.m4: Removed.
98793         * m4/check-math-lib.m4: New file.
98794         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
98795         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
98796         definition and lack of AC_LIBOBJ([roundf]).
98797         * m4/roundl.m4: Ditto, and similarly for roundl.
98798         * modules/round: Reference new m4 file.
98799         * modules/roundf: Ditto.
98800         * modules/roundl: Ditto.
98801         * tests/test-round2.c (main): Use ROUND instead of round.
98802         Bug report from Bruno Haible.
98804 2007-10-21  Bruno Haible  <bruno@clisp.org>
98806         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
98807         context.
98809 2007-10-21  Bruno Haible  <bruno@clisp.org>
98811         * tests/test-wcwidth.c (main): Allow negative result for some control
98812         characters.
98814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
98815         Needed on OSF/1 5.1.
98817 2007-10-21  Bruno Haible  <bruno@clisp.org>
98819         * tests/test-floorf1.c: Include isnanf.h.
98820         (main): Use isnanf() instead of isnan().
98821         * tests/test-ceilf1.c: Include isnanf.h.
98822         (main): Use isnanf() instead of isnan().
98823         * tests/test-truncf1.c: Include isnanf.h.
98824         (main): Use isnanf() instead of isnan().
98825         * tests/test-roundf1.c: Include isnanf.h.
98826         (main): Use isnanf() instead of isnan().
98828 2007-10-21  Eric Blake  <ebb9@byu.net>
98830         * users.txt: Update URL for m4.
98832 2007-10-21  Bruno Haible  <bruno@clisp.org>
98834         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
98836 2007-10-21  Bruno Haible  <bruno@clisp.org>
98838         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
98839         Git's management files if the CVS files are not present.
98841 2007-10-20  Bruno Haible  <bruno@clisp.org>
98843         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
98844         gcc-3.4.x.
98846 2007-10-20  Ben Pfaff  <blp@gnu.org>
98848         * lib/math.in.h: Declare round, roundf, roundl if we are providing
98849         implementations.
98850         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
98851         * lib/round.c: New file.
98852         * lib/roundf.c: New file.
98853         * lib/roundl.c: New file.
98854         * m4/round.m4: New file.
98855         * m4/roundf.m4: New file.
98856         * m4/roundl.m4: New file.
98857         * m4/check-libm-func-m4: New file.
98858         * modules/math: Replace round, roundf, roundl related @VARS@ in
98859         math.in.h.
98860         * modules/round: New file.
98861         * modules/round-tests: New file.
98862         * modules/roundf: New file.
98863         * modules/roundf-tests: New file.
98864         * modules/roundl: New file.
98865         * modules/roundl-tests: New file.
98866         * tests/test-round1.c: New file.
98867         * tests/test-round2.c: New file.
98868         * tests/test-roundf1.c: New file.
98869         * tests/test-roundf2.c: New file.
98870         * tests/test-roundl.c: New file.
98871         * doc/functions/round.texi: Mention round module.
98872         * doc/functions/roundf.texi: Mention roundf module.
98873         * doc/functions/roundl.texi: Mention roundl module.
98874         * MODULES.html.sh: Mention new modules.
98875         Thanks to Bruno Haible for suggestions.
98877 2007-10-20  Jim Meyering  <meyering@redhat.com>
98879         * lib/xprintf.c: Include <config.h> unconditionally.
98881         Change xprintf's license to GPL.
98882         * modules/xprintf (License): s/LGPL/GPL/, since this module
98883         depends on modules (exit and exitfail) which are GPL.
98884         Suggestion from Bruno Haible.
98886         xprintf fixes.
98887         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
98888         Use a clearer diagnostic.
98889         Patch from Bruno Haible.
98891 2007-10-20  Bruno Haible  <bruno@clisp.org>
98893         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
98894         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
98895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98897 2007-10-20  Bruno Haible  <bruno@clisp.org>
98899         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
98900         precision in the comparison result > x - 1 or similar.
98901         * tests/test-ceilf2.c (correct_result_p): Likewise.
98902         * tests/test-truncf2.c (correct_result_p): Likewise.
98903         * tests/test-trunc2.c (correct_result_p): Likewise.
98904         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98906 2007-10-20  Bruno Haible  <bruno@clisp.org>
98908         * modules/ceil: New file.
98909         * m4/ceil.m4: New file.
98910         * doc/functions/ceil.texi: Mention the 'ceil' module.
98912 2007-10-20  Bruno Haible  <bruno@clisp.org>
98914         * modules/floor: New file.
98915         * m4/floor.m4: New file.
98916         * doc/functions/floor.texi: Mention the 'floor' module.
98918 2007-10-20  Bruno Haible  <bruno@clisp.org>
98920         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
98921         of %a.
98922         * modules/floorf-tests (Depends-on): Likewise.
98923         * modules/truncf-tests (Depends-on): Likewise.
98924         * modules/trunc-tests (Depends-on): Likewise.
98925         Reported by Ben Pfaff.
98927 2007-10-19  Jim Meyering  <meyering@redhat.com>
98929         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
98930         Don't bother testing specific errno values.  Just test ferror.
98932         New module: xprintf
98933         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
98935 2007-10-19  Bruno Haible  <bruno@clisp.org>
98937         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
98938         syntax.
98939         * modules/javaexec (Makefile.am): Likewise.
98940         * modules/relocatable-prog (Makefile.am): Likewise.
98941         Suggested by Jim Meyering.
98943 2007-10-18  Bruno Haible  <bruno@clisp.org>
98945         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
98946         Reported by Jim Meyering.
98948 2007-10-18  Eric Blake  <ebb9@byu.net>
98950         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
98952 2007-10-18  Bruno Haible  <bruno@clisp.org>
98954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
98955         the format string into writable memory. Needed in Fortify conditions.
98957 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
98958             Bruno Haible  <bruno@clisp.org>
98960         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
98961         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
98962         * modules/trim (Depends-on): Add mbchar.
98963         (configure.ac): Add gl_FUNC_MBRTOWC.
98964         (Makefile.am): Augment lib_SOURCES.
98966 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
98968         Modify glob.c to use fstatat and dirfd, to simplify it.
98969         Suggested by Eric Blake.
98970         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
98971         Don't include <stdbool.h>; not used.
98972         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
98973         (link_exists_p): Simplify implementation, since we can now assume
98974         dirfd and fstatat.
98975         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
98977 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98979         * gnulib-tool (func_get_dependencies): Fix sed script to
98980         match only tests.
98982 2007-10-17  Bruno Haible  <bruno@clisp.org>
98984         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
98985         allow locale names without encoding suffix.
98986         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
98987         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98989 2007-10-16  Bruno Haible  <bruno@clisp.org>
98991         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
98992         * lib/getgroups.c (getgroups): Likewise.
98993         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
98995 2007-10-16  Bruno Haible  <bruno@clisp.org>
98997         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
98998         * modules/malloc-posix (License): Likewise.
98999         * modules/realloc-posix (License): Likewise.
99000         * modules/calloc-posix (License): Likewise.
99001         * modules/intprops (License): Change from GPL to LGPL, with
99002         Paul Eggert's approval.
99004 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99006         Merge glibc changes into lib/glob.c.
99008         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
99009         2007-10-15 04:59:03 UTC.  Here are the changes:
99011         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
99013         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
99015         * lib/glob.c: Add some branch prediction throughout.
99017         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
99019         [BZ #5103]
99020         * lib/glob.c (glob): Recognize patterns starting \/.
99022         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
99024         [BZ #3996]
99025         * lib/glob.c (attribute_hidden): Define if not defined.
99026         (glob): Unescape dirname, filename or username when needed and not
99027         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
99028         is NULL.  Handle unescaped [ in pattern without closing ].
99029         Don't pass GLOB_CHECK down to recursive glob for directories.
99030         (__glob_pattern_type): New function.
99031         (__glob_pattern_p): Implement using __glob_pattern_type.
99032         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
99033         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
99034         Remove unreachable code.
99036         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
99038         * lib/glob.c (glob_in_dir): Add some comments and asserts to
99039         explain why there are no leaks.
99041         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
99043         [BZ #3253]
99044         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
99045         time, rather allocate increasingly bigger arrays of pointers, if
99046         possible with alloca, if too large with malloc.
99048 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99050         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
99051         Problem reported by H.Merijn Brand in
99052         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
99053         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
99054         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99056 2007-10-15  Bruno Haible  <bruno@clisp.org>
99058         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
99059         with explicit rpl_ prefix.
99060         * lib/fopen.c (fopen): Likewise.
99061         * lib/freopen.c (freopen): Likewise.
99062         * lib/iconv.c (iconv): Likewise.
99063         * lib/iconv_close.c (iconv_close): Likewise.
99065 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99067         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
99069 2007-10-15  Bruno Haible  <bruno@clisp.org>
99071         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
99072         <stddef.h> instead of <stdlib.h> since we only need NULL.
99073         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99075 2007-10-15  Bruno Haible  <bruno@clisp.org>
99077         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
99078         Replace paragraph talking about LIBOBJS.
99079         Reported by Colin Watson <cjwatson@debian.org>.
99081 2007-10-15  Bruno Haible  <bruno@clisp.org>
99083         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
99084         <stdlib.h> before using NULL.
99086 2007-10-15  Simon Josefsson  <simon@josefsson.org>
99088         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
99089         Reported by Albert Chin <china@thewrittenword.com>.
99091 2007-10-14  Bruno Haible  <bruno@clisp.org>
99093         * modules/iconv_open-utf-tests: New file.
99094         * tests/test-iconv-utf.c: New file.
99096         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
99097         * modules/iconv_open-utf: New file.
99098         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
99099         (iconv, iconv_close): New declarations.
99100         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
99101         be defined.
99102         (iconv_open): Add special handling of conversion between UTF-8 and
99103         UTF-{16,32}{BE,LE}.
99104         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
99105         * lib/iconv_close.c: New file.
99106         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
99107         gl_FUNC_ICONV_OPEN.
99108         (gl_FUNC_ICONV_OPEN): Use it.
99109         (gl_FUNC_ICONV_OPEN_UTF): New macro.
99110         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
99111         and REPLACE_ICONV_UTF.
99112         * modules/iconv_open (Depends-on): Add c-strcase.
99113         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
99114         ICONV_CONST.
99115         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
99117 2007-10-13  Albert Chin  <china@thewrittenword.com>
99118             Bruno Haible  <bruno@clisp.org>
99120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
99121         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
99123 2007-10-13  Bruno Haible  <bruno@clisp.org>
99125         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
99126         defined, use the ISO C99 inline semantics.
99127         * lib/argp.h (ARGP_EI): Likewise.
99129 2007-10-13  Bruno Haible  <bruno@clisp.org>
99131         Handle 'inline' change in gcc 4.3.0.
99132         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
99133         argp_fmtstream_write, argp_fmtstream_set_lmargin,
99134         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
99135         argp_fmtstream_point): Disable 'extern' declaration if the function
99136         definition is going to be provided inline.
99137         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
99138         semantics, not the ISO C99 inline semantics.
99139         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
99140         'extern' declaration if the function definition is going to be provided
99141         inline.
99142         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
99143         the GNU C inline semantics, not the ISO C99 inline semantics. With
99144         GCC 4.2, avoid a warning.
99146 2007-10-13  Bruno Haible  <bruno@clisp.org>
99148         * lib/freading.h (freading): Enable the use of __freading for
99149         glibc >= 2.7.
99150         * lib/freading.c (freading): Likewise.
99152 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
99154         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
99155         "warning: C99 inline functions are not supported; using GNU89".
99157 2007-10-12  Bruno Haible  <bruno@clisp.org>
99159         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
99160         of 2.
99161         * tests/test-ceilf2.c: New file.
99162         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
99164         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
99165         * modules/ceilf-tests: Update.
99167 2007-10-12  Bruno Haible  <bruno@clisp.org>
99169         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
99170         of 2.
99171         * tests/test-floorf2.c: New file.
99172         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
99174         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
99175         * modules/floorf-tests: Update.
99177 2007-10-12  Bruno Haible  <bruno@clisp.org>
99179         * tests/test-trunc2.c: New file.
99180         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
99182         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
99183         * modules/trunc-tests: Update.
99185 2007-10-12  Bruno Haible  <bruno@clisp.org>
99187         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
99188         of 2.
99189         * tests/test-truncf2.c: New file.
99190         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
99192         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
99193         * modules/truncf-tests: Update.
99195 2007-10-11  Eric Blake  <ebb9@byu.net>
99197         Don't claim strerror is broken on Interix.
99198         * doc/functions/strerror.texi (strerror): Known broken systems are
99199         now Solaris 8, and not Interix.
99200         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
99201         Interix on cross-compile.
99202         Reported by Martin Koeppe in
99203         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
99205 2007-10-11  Bruno Haible  <bruno@clisp.org>
99207         * modules/i-ring-tests: New file.
99208         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
99209         instead of assert.
99211 2007-10-11  Bruno Haible  <bruno@clisp.org>
99213         * modules/filenamecat-tests: New file.
99214         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
99215         * lib/filenamecat.c: Remove test code.
99217 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
99219         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
99221         * lib/strerror.c: Include <string.h> always, to test interface,
99222         and to remove the need for the dummy.
99223         Include intprops.h to compute width instead of doing it ourselves
99224         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
99225         (strerror): Define it to return NULL if there's no system strerror.
99226         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
99227         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
99228         ancient pre-strerror Unix systems well any more.  Saying "unknown
99229         system error" is enough.
99230         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
99231         simpler strerror.c implementation.
99232         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
99233         Simplify the tests to reflect the simpler strerror implementation.
99234         * modules/strerror (Depends-on): Add intprops.
99236 2007-10-09  Eric Blake  <ebb9@byu.net>
99238         Silence test-fpending.
99239         * modules/fpending-tests (Files): Add wrapper script.
99240         * tests/test-fpending.sh: New file.
99242 2007-10-09  Bruno Haible  <bruno@clisp.org>
99244         * MODULES.html.sh (func_module): Don't create a hyperlink for
99245         function names like 'printf_frexp'.
99246         (Misc): Add crc, memxor.
99247         (Characteristics of floating types): New section.
99248         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
99249         isnanf-nolibm, signbit, trunc, truncf, truncl.
99250         (Enhancements for ISO C 99 functions): New subsection Input/output.
99251         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
99252         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
99253         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
99254         (Compatibility checks for POSIX:2001 functions): Add clock-time.
99255         (Enhancements for POSIX:2001 functions): Add chdir-long.
99256         (File system functions): Add areadlink, chdir-safer, read-file.
99257         Remove cycle-check.
99258         (File system as inode set): New section.
99259         (Date and time): Add gethrxtime.
99260         (Multithreading): Add openmp.
99261         (Internationalization functions): Add localename.
99262         (Unicode string functions): Add unistr/u*-mbsnlen.
99263         (Support for maintaining and releasing projects): Add git-version-gen.
99264         (Lone files): Remove directories.
99266 2007-10-08  Ben Pfaff  <blp@gnu.org>
99268         * lib/xmalloca.h: Fix typo in comment.
99270 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99272         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
99273         when avoiding problems with integer overflow.  Use a portable test
99274         instead.
99276 2007-10-08  Simon Josefsson  <simon@josefsson.org>
99278         * modules/dummy (License): Change to LGPLv2+.
99279         * modules/float (License): Likewise
99280         * modules/realloc (License): Likewise
99281         * modules/stdlib (License): Likewise
99283 2007-10-07  Bruno Haible  <bruno@clisp.org>
99285         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
99286         * floor.c (TWO_MANT_DIG): Likewise.
99287         * ceil.c (TWO_MANT_DIG): Likewise.
99288         Reported by Ben Pfaff.
99290 2007-10-07  Bruno Haible  <bruno@clisp.org>
99292         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
99293         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
99294         * lib/frexp.c (FUNC): Likewise.
99295         * lib/printf-frexp.h (printf_frexp): Likewise.
99296         * lib/printf-frexpl.h (printf_frexpl): Likewise.
99297         * lib/printf-frexp.c (FUNC): Likewise.
99298         Suggested by Jim Meyering.
99300 2007-10-07  Jim Meyering  <meyering@redhat.com>
99302         Make xnanosleep's integer overflow test more robust.
99303         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
99304         so that gcc-4.3.0 doesn't optimize away this test for overflow.
99306 2007-10-07  Bruno Haible  <bruno@clisp.org>
99308         * NEWS: Mention the license change.
99310         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
99311         abbreviations in the modules files.
99313         Change copyright notice from GPLv2+ to GPLv3+.
99314         * README: Change copyright notice.
99315         * MODULES.html.sh: Likewise.
99316         * build-aux/bootstrap.conf: Likewise.
99317         * build-aux/config.libpath: Likewise.
99318         * build-aux/csharpcomp.sh.in: Likewise.
99319         * build-aux/csharpexec.sh.in: Likewise.
99320         * build-aux/install-reloc: Likewise.
99321         * build-aux/javacomp.sh.in: Likewise.
99322         * build-aux/javaexec.sh.in: Likewise.
99323         * build-aux/ldd.sh.in: Likewise.
99324         * build-aux/reloc-ldflags: Likewise.
99325         * build-aux/relocatable.sh.in: Likewise.
99326         * build-aux/x-to-1.in: Likewise.
99327         * check-module: Likewise.
99328         * config/srclistvars.sh: Likewise.
99329         * gnulib-tool: Likewise.
99330         * lib/acl-internal.h: Likewise.
99331         * lib/acl.c: Likewise.
99332         * lib/acl.h: Likewise.
99333         * lib/acl_entries.c: Likewise.
99334         * lib/areadlink-with-size.c: Likewise.
99335         * lib/areadlink.c: Likewise.
99336         * lib/areadlink.h: Likewise.
99337         * lib/argmatch.c: Likewise.
99338         * lib/argmatch.h: Likewise.
99339         * lib/argp-ba.c: Likewise.
99340         * lib/argp-eexst.c: Likewise.
99341         * lib/argp-fmtstream.c: Likewise.
99342         * lib/argp-fmtstream.h: Likewise.
99343         * lib/argp-fs-xinl.c: Likewise.
99344         * lib/argp-help.c: Likewise.
99345         * lib/argp-namefrob.h: Likewise.
99346         * lib/argp-parse.c: Likewise.
99347         * lib/argp-pin.c: Likewise.
99348         * lib/argp-pv.c: Likewise.
99349         * lib/argp-pvh.c: Likewise.
99350         * lib/argp-xinl.c: Likewise.
99351         * lib/argp.h: Likewise.
99352         * lib/at-func.c: Likewise.
99353         * lib/atanl.c: Likewise.
99354         * lib/backupfile.c: Likewise.
99355         * lib/backupfile.h: Likewise.
99356         * lib/basename.c: Likewise.
99357         * lib/binary-io.h: Likewise.
99358         * lib/byteswap.in.h: Likewise.
99359         * lib/c-stack.c: Likewise.
99360         * lib/c-stack.h: Likewise.
99361         * lib/c-strcasestr.c: Likewise.
99362         * lib/c-strcasestr.h: Likewise.
99363         * lib/c-strstr.c: Likewise.
99364         * lib/c-strstr.h: Likewise.
99365         * lib/c-strtod.c: Likewise.
99366         * lib/calloc.c: Likewise.
99367         * lib/canon-host.c: Likewise.
99368         * lib/canon-host.h: Likewise.
99369         * lib/canonicalize-lgpl.c: Likewise.
99370         * lib/canonicalize.c: Likewise.
99371         * lib/canonicalize.h: Likewise.
99372         * lib/ceil.c: Likewise.
99373         * lib/ceilf.c: Likewise.
99374         * lib/ceill.c: Likewise.
99375         * lib/chdir-long.c: Likewise.
99376         * lib/chdir-long.h: Likewise.
99377         * lib/chdir-safer.c: Likewise.
99378         * lib/chdir-safer.h: Likewise.
99379         * lib/chown.c: Likewise.
99380         * lib/classpath.c: Likewise.
99381         * lib/classpath.h: Likewise.
99382         * lib/clean-temp.c: Likewise.
99383         * lib/clean-temp.h: Likewise.
99384         * lib/cloexec.c: Likewise.
99385         * lib/close-stream.c: Likewise.
99386         * lib/closein.c: Likewise.
99387         * lib/closein.h: Likewise.
99388         * lib/closeout.c: Likewise.
99389         * lib/closeout.h: Likewise.
99390         * lib/concat-filename.c: Likewise.
99391         * lib/copy-file.c: Likewise.
99392         * lib/copy-file.h: Likewise.
99393         * lib/count-one-bits.h: Likewise.
99394         * lib/crc.c: Likewise.
99395         * lib/crc.h: Likewise.
99396         * lib/creat-safer.c: Likewise.
99397         * lib/csharpcomp.c: Likewise.
99398         * lib/csharpcomp.h: Likewise.
99399         * lib/csharpexec.c: Likewise.
99400         * lib/csharpexec.h: Likewise.
99401         * lib/cycle-check.c: Likewise.
99402         * lib/cycle-check.h: Likewise.
99403         * lib/diacrit.c: Likewise.
99404         * lib/diacrit.h: Likewise.
99405         * lib/diffseq.h: Likewise.
99406         * lib/dirchownmod.c: Likewise.
99407         * lib/dirent.in.h: Likewise.
99408         * lib/dirfd.c: Likewise.
99409         * lib/dirfd.h: Likewise.
99410         * lib/dirname.c: Likewise.
99411         * lib/dirname.h: Likewise.
99412         * lib/dummy.c: Likewise.
99413         * lib/dup-safer.c: Likewise.
99414         * lib/dup2.c: Likewise.
99415         * lib/eealloc.h: Likewise.
99416         * lib/error.c: Likewise.
99417         * lib/error.h: Likewise.
99418         * lib/euidaccess.c: Likewise.
99419         * lib/exclude.c: Likewise.
99420         * lib/exclude.h: Likewise.
99421         * lib/execute.c: Likewise.
99422         * lib/execute.h: Likewise.
99423         * lib/exitfail.c: Likewise.
99424         * lib/exitfail.h: Likewise.
99425         * lib/expl.c: Likewise.
99426         * lib/fatal-signal.c: Likewise.
99427         * lib/fatal-signal.h: Likewise.
99428         * lib/fbufmode.c: Likewise.
99429         * lib/fbufmode.h: Likewise.
99430         * lib/fchdir.c: Likewise.
99431         * lib/fchmodat.c: Likewise.
99432         * lib/fchownat.c: Likewise.
99433         * lib/fcntl--.h: Likewise.
99434         * lib/fcntl-safer.h: Likewise.
99435         * lib/fcntl.in.h: Likewise.
99436         * lib/fd-safer.c: Likewise.
99437         * lib/fflush.c: Likewise.
99438         * lib/file-has-acl.c: Likewise.
99439         * lib/file-set.c: Likewise.
99440         * lib/file-type.c: Likewise.
99441         * lib/file-type.h: Likewise.
99442         * lib/fileblocks.c: Likewise.
99443         * lib/filemode.c: Likewise.
99444         * lib/filemode.h: Likewise.
99445         * lib/filename.h: Likewise.
99446         * lib/filenamecat.c: Likewise.
99447         * lib/filenamecat.h: Likewise.
99448         * lib/findprog.c: Likewise.
99449         * lib/findprog.h: Likewise.
99450         * lib/float.in.h: Likewise.
99451         * lib/floor.c: Likewise.
99452         * lib/floorf.c: Likewise.
99453         * lib/floorl.c: Likewise.
99454         * lib/fopen-safer.c: Likewise.
99455         * lib/fopen.c: Likewise.
99456         * lib/fpending.c: Likewise.
99457         * lib/fpending.h: Likewise.
99458         * lib/fprintf.c: Likewise.
99459         * lib/fprintftime.h: Likewise.
99460         * lib/fpucw.h: Likewise.
99461         * lib/fpurge.c: Likewise.
99462         * lib/fpurge.h: Likewise.
99463         * lib/freadable.c: Likewise.
99464         * lib/freadable.h: Likewise.
99465         * lib/freadahead.c: Likewise.
99466         * lib/freadahead.h: Likewise.
99467         * lib/freading.c: Likewise.
99468         * lib/freading.h: Likewise.
99469         * lib/free.c: Likewise.
99470         * lib/freopen.c: Likewise.
99471         * lib/frexp.c: Likewise.
99472         * lib/frexpl.c: Likewise.
99473         * lib/fseek.c: Likewise.
99474         * lib/fseterr.c: Likewise.
99475         * lib/fseterr.h: Likewise.
99476         * lib/fstatat.c: Likewise.
99477         * lib/fstrcmp.c: Likewise.
99478         * lib/fstrcmp.h: Likewise.
99479         * lib/fsusage.c: Likewise.
99480         * lib/fsusage.h: Likewise.
99481         * lib/ftell.c: Likewise.
99482         * lib/ftello.c: Likewise.
99483         * lib/fts-cycle.c: Likewise.
99484         * lib/fts.c: Likewise.
99485         * lib/fts_.h: Likewise.
99486         * lib/full-read.c: Likewise.
99487         * lib/full-read.h: Likewise.
99488         * lib/full-write.c: Likewise.
99489         * lib/full-write.h: Likewise.
99490         * lib/fwritable.c: Likewise.
99491         * lib/fwritable.h: Likewise.
99492         * lib/fwriteerror.c: Likewise.
99493         * lib/fwriteerror.h: Likewise.
99494         * lib/fwriting.c: Likewise.
99495         * lib/fwriting.h: Likewise.
99496         * lib/gcd.c: Likewise.
99497         * lib/gcd.h: Likewise.
99498         * lib/getcwd.c: Likewise.
99499         * lib/getdate.h: Likewise.
99500         * lib/getdate.y: Likewise.
99501         * lib/getdomainname.c: Likewise.
99502         * lib/getdomainname.h: Likewise.
99503         * lib/getgroups.c: Likewise.
99504         * lib/gethostname.c: Likewise.
99505         * lib/gethrxtime.c: Likewise.
99506         * lib/gethrxtime.h: Likewise.
99507         * lib/getloadavg.c: Likewise.
99508         * lib/getndelim2.c: Likewise.
99509         * lib/getndelim2.h: Likewise.
99510         * lib/getnline.c: Likewise.
99511         * lib/getnline.h: Likewise.
99512         * lib/getopt.c: Likewise.
99513         * lib/getopt.in.h: Likewise.
99514         * lib/getopt1.c: Likewise.
99515         * lib/getopt_int.h: Likewise.
99516         * lib/getpagesize.h: Likewise.
99517         * lib/getsubopt.c: Likewise.
99518         * lib/gettime.c: Likewise.
99519         * lib/getugroups.c: Likewise.
99520         * lib/getugroups.h: Likewise.
99521         * lib/getusershell.c: Likewise.
99522         * lib/gl_anyavltree_list1.h: Likewise.
99523         * lib/gl_anyavltree_list2.h: Likewise.
99524         * lib/gl_anyhash_list1.h: Likewise.
99525         * lib/gl_anyhash_list2.h: Likewise.
99526         * lib/gl_anylinked_list1.h: Likewise.
99527         * lib/gl_anylinked_list2.h: Likewise.
99528         * lib/gl_anyrbtree_list1.h: Likewise.
99529         * lib/gl_anyrbtree_list2.h: Likewise.
99530         * lib/gl_anytree_list1.h: Likewise.
99531         * lib/gl_anytree_list2.h: Likewise.
99532         * lib/gl_anytree_oset.h: Likewise.
99533         * lib/gl_anytreehash_list1.h: Likewise.
99534         * lib/gl_anytreehash_list2.h: Likewise.
99535         * lib/gl_array_list.c: Likewise.
99536         * lib/gl_array_list.h: Likewise.
99537         * lib/gl_array_oset.c: Likewise.
99538         * lib/gl_array_oset.h: Likewise.
99539         * lib/gl_avltree_list.c: Likewise.
99540         * lib/gl_avltree_list.h: Likewise.
99541         * lib/gl_avltree_oset.c: Likewise.
99542         * lib/gl_avltree_oset.h: Likewise.
99543         * lib/gl_avltreehash_list.c: Likewise.
99544         * lib/gl_avltreehash_list.h: Likewise.
99545         * lib/gl_carray_list.c: Likewise.
99546         * lib/gl_carray_list.h: Likewise.
99547         * lib/gl_linked_list.c: Likewise.
99548         * lib/gl_linked_list.h: Likewise.
99549         * lib/gl_linkedhash_list.c: Likewise.
99550         * lib/gl_linkedhash_list.h: Likewise.
99551         * lib/gl_list.c: Likewise.
99552         * lib/gl_list.h: Likewise.
99553         * lib/gl_oset.c: Likewise.
99554         * lib/gl_oset.h: Likewise.
99555         * lib/gl_rbtree_list.c: Likewise.
99556         * lib/gl_rbtree_list.h: Likewise.
99557         * lib/gl_rbtree_oset.c: Likewise.
99558         * lib/gl_rbtree_oset.h: Likewise.
99559         * lib/gl_rbtreehash_list.c: Likewise.
99560         * lib/gl_rbtreehash_list.h: Likewise.
99561         * lib/gl_sublist.c: Likewise.
99562         * lib/gl_sublist.h: Likewise.
99563         * lib/group-member.c: Likewise.
99564         * lib/group-member.h: Likewise.
99565         * lib/hard-locale.c: Likewise.
99566         * lib/hard-locale.h: Likewise.
99567         * lib/hash-pjw.c: Likewise.
99568         * lib/hash-pjw.h: Likewise.
99569         * lib/hash-triple.c: Likewise.
99570         * lib/hash.c: Likewise.
99571         * lib/hash.h: Likewise.
99572         * lib/human.c: Likewise.
99573         * lib/human.h: Likewise.
99574         * lib/i-ring.c: Likewise.
99575         * lib/i-ring.h: Likewise.
99576         * lib/idcache.c: Likewise.
99577         * lib/imaxabs.c: Likewise.
99578         * lib/imaxdiv.c: Likewise.
99579         * lib/inet_pton.c: Likewise.
99580         * lib/inet_pton.h: Likewise.
99581         * lib/intprops.h: Likewise.
99582         * lib/inttostr.c: Likewise.
99583         * lib/inttostr.h: Likewise.
99584         * lib/inttypes.in.h: Likewise.
99585         * lib/isapipe.c: Likewise.
99586         * lib/isdir.c: Likewise.
99587         * lib/isnan.c: Likewise.
99588         * lib/isnan.h: Likewise.
99589         * lib/isnanf.c: Likewise.
99590         * lib/isnanf.h: Likewise.
99591         * lib/isnanl-nolibm.h: Likewise.
99592         * lib/isnanl.c: Likewise.
99593         * lib/isnanl.h: Likewise.
99594         * lib/javacomp.c: Likewise.
99595         * lib/javacomp.h: Likewise.
99596         * lib/javaexec.c: Likewise.
99597         * lib/javaexec.h: Likewise.
99598         * lib/javaversion.c: Likewise.
99599         * lib/javaversion.h: Likewise.
99600         * lib/javaversion.java: Likewise.
99601         * lib/lbrkprop.h: Likewise.
99602         * lib/lchmod.h: Likewise.
99603         * lib/lchown.c: Likewise.
99604         * lib/ldexpl.c: Likewise.
99605         * lib/linebreak.c: Likewise.
99606         * lib/linebreak.h: Likewise.
99607         * lib/linebuffer.c: Likewise.
99608         * lib/linebuffer.h: Likewise.
99609         * lib/locale.in.h: Likewise.
99610         * lib/logl.c: Likewise.
99611         * lib/long-options.c: Likewise.
99612         * lib/long-options.h: Likewise.
99613         * lib/lstat.c: Likewise.
99614         * lib/lstat.h: Likewise.
99615         * lib/math.in.h: Likewise.
99616         * lib/mbchar.c: Likewise.
99617         * lib/mbchar.h: Likewise.
99618         * lib/mbfile.h: Likewise.
99619         * lib/mbiter.h: Likewise.
99620         * lib/mbscasecmp.c: Likewise.
99621         * lib/mbscasestr.c: Likewise.
99622         * lib/mbschr.c: Likewise.
99623         * lib/mbscspn.c: Likewise.
99624         * lib/mbslen.c: Likewise.
99625         * lib/mbsncasecmp.c: Likewise.
99626         * lib/mbsnlen.c: Likewise.
99627         * lib/mbspbrk.c: Likewise.
99628         * lib/mbspcasecmp.c: Likewise.
99629         * lib/mbsrchr.c: Likewise.
99630         * lib/mbssep.c: Likewise.
99631         * lib/mbsspn.c: Likewise.
99632         * lib/mbsstr.c: Likewise.
99633         * lib/mbstok_r.c: Likewise.
99634         * lib/mbswidth.c: Likewise.
99635         * lib/mbswidth.h: Likewise.
99636         * lib/mbuiter.h: Likewise.
99637         * lib/memcasecmp.c: Likewise.
99638         * lib/memcasecmp.h: Likewise.
99639         * lib/memchr.c: Likewise.
99640         * lib/memcmp.c: Likewise.
99641         * lib/memcoll.c: Likewise.
99642         * lib/memcoll.h: Likewise.
99643         * lib/memcpy.c: Likewise.
99644         * lib/memrchr.c: Likewise.
99645         * lib/mkancesdirs.c: Likewise.
99646         * lib/mkdir-p.c: Likewise.
99647         * lib/mkdir-p.h: Likewise.
99648         * lib/mkdir.c: Likewise.
99649         * lib/mkdirat.c: Likewise.
99650         * lib/mkdtemp.c: Likewise.
99651         * lib/mkstemp-safer.c: Likewise.
99652         * lib/mkstemp.c: Likewise.
99653         * lib/modechange.c: Likewise.
99654         * lib/modechange.h: Likewise.
99655         * lib/mountlist.c: Likewise.
99656         * lib/mountlist.h: Likewise.
99657         * lib/mpsort.c: Likewise.
99658         * lib/nanosleep.c: Likewise.
99659         * lib/obstack.c: Likewise.
99660         * lib/obstack.h: Likewise.
99661         * lib/open-safer.c: Likewise.
99662         * lib/open.c: Likewise.
99663         * lib/openat-die.c: Likewise.
99664         * lib/openat-priv.h: Likewise.
99665         * lib/openat-proc.c: Likewise.
99666         * lib/openat.c: Likewise.
99667         * lib/openat.h: Likewise.
99668         * lib/pagealign_alloc.c: Likewise.
99669         * lib/pagealign_alloc.h: Likewise.
99670         * lib/physmem.c: Likewise.
99671         * lib/physmem.h: Likewise.
99672         * lib/pipe-safer.c: Likewise.
99673         * lib/pipe.c: Likewise.
99674         * lib/pipe.h: Likewise.
99675         * lib/posixtm.c: Likewise.
99676         * lib/posixtm.h: Likewise.
99677         * lib/posixver.c: Likewise.
99678         * lib/printf-frexp.c: Likewise.
99679         * lib/printf-frexp.h: Likewise.
99680         * lib/printf-frexpl.c: Likewise.
99681         * lib/printf-frexpl.h: Likewise.
99682         * lib/printf.c: Likewise.
99683         * lib/progname.c: Likewise.
99684         * lib/progname.h: Likewise.
99685         * lib/progreloc.c: Likewise.
99686         * lib/putenv.c: Likewise.
99687         * lib/quote.c: Likewise.
99688         * lib/quote.h: Likewise.
99689         * lib/quotearg.c: Likewise.
99690         * lib/quotearg.h: Likewise.
99691         * lib/raise.c: Likewise.
99692         * lib/readline.c: Likewise.
99693         * lib/readline.h: Likewise.
99694         * lib/readlink.c: Likewise.
99695         * lib/readtokens.c: Likewise.
99696         * lib/readtokens.h: Likewise.
99697         * lib/readtokens0.c: Likewise.
99698         * lib/readtokens0.h: Likewise.
99699         * lib/readutmp.c: Likewise.
99700         * lib/readutmp.h: Likewise.
99701         * lib/realloc.c: Likewise.
99702         * lib/relocwrapper.c: Likewise.
99703         * lib/rename-dest-slash.c: Likewise.
99704         * lib/rename.c: Likewise.
99705         * lib/rmdir.c: Likewise.
99706         * lib/rpmatch.c: Likewise.
99707         * lib/safe-read.c: Likewise.
99708         * lib/safe-read.h: Likewise.
99709         * lib/safe-write.c: Likewise.
99710         * lib/safe-write.h: Likewise.
99711         * lib/same-inode.h: Likewise.
99712         * lib/same.c: Likewise.
99713         * lib/same.h: Likewise.
99714         * lib/save-cwd.c: Likewise.
99715         * lib/save-cwd.h: Likewise.
99716         * lib/savedir.c: Likewise.
99717         * lib/savedir.h: Likewise.
99718         * lib/savewd.c: Likewise.
99719         * lib/savewd.h: Likewise.
99720         * lib/search.in.h: Likewise.
99721         * lib/setenv.c: Likewise.
99722         * lib/setenv.h: Likewise.
99723         * lib/settime.c: Likewise.
99724         * lib/sh-quote.c: Likewise.
99725         * lib/sh-quote.h: Likewise.
99726         * lib/sig2str.c: Likewise.
99727         * lib/sig2str.h: Likewise.
99728         * lib/signal.in.h: Likewise.
99729         * lib/signbitd.c: Likewise.
99730         * lib/signbitf.c: Likewise.
99731         * lib/signbitl.c: Likewise.
99732         * lib/sigprocmask.c: Likewise.
99733         * lib/sincosl.c: Likewise.
99734         * lib/sleep.c: Likewise.
99735         * lib/sprintf.c: Likewise.
99736         * lib/sqrtl.c: Likewise.
99737         * lib/stat-time.h: Likewise.
99738         * lib/stdio--.h: Likewise.
99739         * lib/stdio-safer.h: Likewise.
99740         * lib/stdlib--.h: Likewise.
99741         * lib/stdlib-safer.h: Likewise.
99742         * lib/stdlib.in.h: Likewise.
99743         * lib/stpcpy.c: Likewise.
99744         * lib/stpncpy.c: Likewise.
99745         * lib/strchrnul.c: Likewise.
99746         * lib/strcspn.c: Likewise.
99747         * lib/strerror.c: Likewise.
99748         * lib/strftime.c: Likewise.
99749         * lib/strftime.h: Likewise.
99750         * lib/striconveh.c: Likewise.
99751         * lib/striconveh.h: Likewise.
99752         * lib/striconveha.c: Likewise.
99753         * lib/striconveha.h: Likewise.
99754         * lib/stripslash.c: Likewise.
99755         * lib/strnlen1.c: Likewise.
99756         * lib/strnlen1.h: Likewise.
99757         * lib/strtod.c: Likewise.
99758         * lib/strtoimax.c: Likewise.
99759         * lib/strtok_r.c: Likewise.
99760         * lib/strtol.c: Likewise.
99761         * lib/strtoll.c: Likewise.
99762         * lib/strtoul.c: Likewise.
99763         * lib/strtoull.c: Likewise.
99764         * lib/sysexits.in.h: Likewise.
99765         * lib/tempname.c: Likewise.
99766         * lib/tempname.h: Likewise.
99767         * lib/timespec.h: Likewise.
99768         * lib/tls.c: Likewise.
99769         * lib/tls.h: Likewise.
99770         * lib/tmpdir.c: Likewise.
99771         * lib/tmpdir.h: Likewise.
99772         * lib/tmpfile-safer.c: Likewise.
99773         * lib/tmpfile.c: Likewise.
99774         * lib/trigl.c: Likewise.
99775         * lib/trigl.h: Likewise.
99776         * lib/trim.c: Likewise.
99777         * lib/trim.h: Likewise.
99778         * lib/trunc.c: Likewise.
99779         * lib/truncf.c: Likewise.
99780         * lib/truncl.c: Likewise.
99781         * lib/tsearch.c: Likewise.
99782         * lib/unicodeio.c: Likewise.
99783         * lib/unicodeio.h: Likewise.
99784         * lib/unistd--.h: Likewise.
99785         * lib/unistd-safer.h: Likewise.
99786         * lib/unistdio/ulc-fprintf.c: Likewise.
99787         * lib/unistdio/ulc-vfprintf.c: Likewise.
99788         * lib/unlinkdir.c: Likewise.
99789         * lib/unlinkdir.h: Likewise.
99790         * lib/unlocked-io.h: Likewise.
99791         * lib/unsetenv.c: Likewise.
99792         * lib/userspec.c: Likewise.
99793         * lib/utime.c: Likewise.
99794         * lib/utimecmp.c: Likewise.
99795         * lib/utimecmp.h: Likewise.
99796         * lib/utimens.c: Likewise.
99797         * lib/verify.h: Likewise.
99798         * lib/verror.c: Likewise.
99799         * lib/verror.h: Likewise.
99800         * lib/version-etc-fsf.c: Likewise.
99801         * lib/version-etc.c: Likewise.
99802         * lib/version-etc.h: Likewise.
99803         * lib/vfprintf.c: Likewise.
99804         * lib/vprintf.c: Likewise.
99805         * lib/vsprintf.c: Likewise.
99806         * lib/w32spawn.h: Likewise.
99807         * lib/wait-process.c: Likewise.
99808         * lib/wait-process.h: Likewise.
99809         * lib/wcwidth.c: Likewise.
99810         * lib/write-any-file.c: Likewise.
99811         * lib/xalloc-die.c: Likewise.
99812         * lib/xalloc.h: Likewise.
99813         * lib/xasprintf.c: Likewise.
99814         * lib/xgetcwd.c: Likewise.
99815         * lib/xgetcwd.h: Likewise.
99816         * lib/xgetdomainname.c: Likewise.
99817         * lib/xgetdomainname.h: Likewise.
99818         * lib/xgethostname.c: Likewise.
99819         * lib/xmalloc.c: Likewise.
99820         * lib/xmalloca.c: Likewise.
99821         * lib/xmalloca.h: Likewise.
99822         * lib/xmemcoll.c: Likewise.
99823         * lib/xnanosleep.c: Likewise.
99824         * lib/xreadlink.c: Likewise.
99825         * lib/xreadlink.h: Likewise.
99826         * lib/xsetenv.c: Likewise.
99827         * lib/xsetenv.h: Likewise.
99828         * lib/xstriconv.c: Likewise.
99829         * lib/xstriconv.h: Likewise.
99830         * lib/xstrndup.c: Likewise.
99831         * lib/xstrndup.h: Likewise.
99832         * lib/xstrtod.c: Likewise.
99833         * lib/xstrtod.h: Likewise.
99834         * lib/xstrtol-error.c: Likewise.
99835         * lib/xstrtol.c: Likewise.
99836         * lib/xstrtol.h: Likewise.
99837         * lib/xtime.h: Likewise.
99838         * lib/xvasprintf.c: Likewise.
99839         * lib/xvasprintf.h: Likewise.
99840         * lib/yesno.c: Likewise.
99841         * lib/yesno.h: Likewise.
99842         * posix-modules: Likewise.
99843         * tests/test-alloca-opt.c: Likewise.
99844         * tests/test-arcfour.c: Likewise.
99845         * tests/test-arctwo.c: Likewise.
99846         * tests/test-argmatch.c: Likewise.
99847         * tests/test-argp-2.sh: Likewise.
99848         * tests/test-argp.c: Likewise.
99849         * tests/test-arpa_inet.c: Likewise.
99850         * tests/test-array_list.c: Likewise.
99851         * tests/test-array_oset.c: Likewise.
99852         * tests/test-atexit.c: Likewise.
99853         * tests/test-avltree_list.c: Likewise.
99854         * tests/test-avltree_oset.c: Likewise.
99855         * tests/test-avltreehash_list.c: Likewise.
99856         * tests/test-base64.c: Likewise.
99857         * tests/test-binary-io.c: Likewise.
99858         * tests/test-byteswap.c: Likewise.
99859         * tests/test-c-ctype.c: Likewise.
99860         * tests/test-c-strcasecmp.c: Likewise.
99861         * tests/test-c-strcasestr.c: Likewise.
99862         * tests/test-c-strncasecmp.c: Likewise.
99863         * tests/test-c-strstr.c: Likewise.
99864         * tests/test-canonicalize-lgpl.c: Likewise.
99865         * tests/test-canonicalize.c: Likewise.
99866         * tests/test-carray_list.c: Likewise.
99867         * tests/test-ceilf.c: Likewise.
99868         * tests/test-ceill.c: Likewise.
99869         * tests/test-count-one-bits.c: Likewise.
99870         * tests/test-crc.c: Likewise.
99871         * tests/test-dirname.c: Likewise.
99872         * tests/test-fbufmode.c: Likewise.
99873         * tests/test-fcntl.c: Likewise.
99874         * tests/test-fflush.c: Likewise.
99875         * tests/test-floorf.c: Likewise.
99876         * tests/test-floorl.c: Likewise.
99877         * tests/test-fopen.c: Likewise.
99878         * tests/test-fprintf-posix.c: Likewise.
99879         * tests/test-fprintf-posix.h: Likewise.
99880         * tests/test-fpurge.c: Likewise.
99881         * tests/test-freadable.c: Likewise.
99882         * tests/test-freadahead.c: Likewise.
99883         * tests/test-freading.c: Likewise.
99884         * tests/test-freopen.c: Likewise.
99885         * tests/test-frexp.c: Likewise.
99886         * tests/test-frexpl.c: Likewise.
99887         * tests/test-fseek.c: Likewise.
99888         * tests/test-fseeko.c: Likewise.
99889         * tests/test-fseterr.c: Likewise.
99890         * tests/test-fstrcmp.c: Likewise.
99891         * tests/test-ftell.c: Likewise.
99892         * tests/test-ftello.c: Likewise.
99893         * tests/test-fwritable.c: Likewise.
99894         * tests/test-fwriting.c: Likewise.
99895         * tests/test-getaddrinfo.c: Likewise.
99896         * tests/test-getpass.c: Likewise.
99897         * tests/test-gettimeofday.c: Likewise.
99898         * tests/test-hmac-md5.c: Likewise.
99899         * tests/test-hmac-sha1.c: Likewise.
99900         * tests/test-iconv.c: Likewise.
99901         * tests/test-iconvme.c: Likewise.
99902         * tests/test-inttypes.c: Likewise.
99903         * tests/test-isnan.c: Likewise.
99904         * tests/test-isnanf.c: Likewise.
99905         * tests/test-isnanl-nolibm.c: Likewise.
99906         * tests/test-isnanl.c: Likewise.
99907         * tests/test-isnanl.h: Likewise.
99908         * tests/test-ldexpl.c: Likewise.
99909         * tests/test-linked_list.c: Likewise.
99910         * tests/test-linkedhash_list.c: Likewise.
99911         * tests/test-locale.c: Likewise.
99912         * tests/test-localename.c: Likewise.
99913         * tests/test-lock.c: Likewise.
99914         * tests/test-lseek.c: Likewise.
99915         * tests/test-malloca.c: Likewise.
99916         * tests/test-math.c: Likewise.
99917         * tests/test-mbscasecmp.c: Likewise.
99918         * tests/test-mbscasestr1.c: Likewise.
99919         * tests/test-mbscasestr2.c: Likewise.
99920         * tests/test-mbscasestr3.c: Likewise.
99921         * tests/test-mbscasestr4.c: Likewise.
99922         * tests/test-mbschr.c: Likewise.
99923         * tests/test-mbscspn.c: Likewise.
99924         * tests/test-mbsncasecmp.c: Likewise.
99925         * tests/test-mbspbrk.c: Likewise.
99926         * tests/test-mbspcasecmp.c: Likewise.
99927         * tests/test-mbsrchr.c: Likewise.
99928         * tests/test-mbsspn.c: Likewise.
99929         * tests/test-mbsstr1.c: Likewise.
99930         * tests/test-mbsstr2.c: Likewise.
99931         * tests/test-mbsstr3.c: Likewise.
99932         * tests/test-md5.c: Likewise.
99933         * tests/test-memmem.c: Likewise.
99934         * tests/test-netinet_in.c: Likewise.
99935         * tests/test-open.c: Likewise.
99936         * tests/test-printf-frexp.c: Likewise.
99937         * tests/test-printf-frexpl.c: Likewise.
99938         * tests/test-printf-posix.c: Likewise.
99939         * tests/test-printf-posix.h: Likewise.
99940         * tests/test-rbtree_list.c: Likewise.
99941         * tests/test-rbtree_oset.c: Likewise.
99942         * tests/test-rbtreehash_list.c: Likewise.
99943         * tests/test-read-file.c: Likewise.
99944         * tests/test-rijndael.c: Likewise.
99945         * tests/test-search.c: Likewise.
99946         * tests/test-signbit.c: Likewise.
99947         * tests/test-sleep.c: Likewise.
99948         * tests/test-snprintf-posix.c: Likewise.
99949         * tests/test-snprintf-posix.h: Likewise.
99950         * tests/test-snprintf.c: Likewise.
99951         * tests/test-sprintf-posix.c: Likewise.
99952         * tests/test-sprintf-posix.h: Likewise.
99953         * tests/test-stat-time.c: Likewise.
99954         * tests/test-stdbool.c: Likewise.
99955         * tests/test-stdint.c: Likewise.
99956         * tests/test-stdio.c: Likewise.
99957         * tests/test-stdlib.c: Likewise.
99958         * tests/test-stpncpy.c: Likewise.
99959         * tests/test-strcasestr.c: Likewise.
99960         * tests/test-striconv.c: Likewise.
99961         * tests/test-striconveh.c: Likewise.
99962         * tests/test-striconveha.c: Likewise.
99963         * tests/test-string.c: Likewise.
99964         * tests/test-sys_select.c: Likewise.
99965         * tests/test-sys_socket.c: Likewise.
99966         * tests/test-sys_stat.c: Likewise.
99967         * tests/test-sys_time.c: Likewise.
99968         * tests/test-sysexits.c: Likewise.
99969         * tests/test-time.c: Likewise.
99970         * tests/test-tls.c: Likewise.
99971         * tests/test-trunc.c: Likewise.
99972         * tests/test-truncf.c: Likewise.
99973         * tests/test-truncl.c: Likewise.
99974         * tests/test-unistd.c: Likewise.
99975         * tests/test-vasnprintf-posix.c: Likewise.
99976         * tests/test-vasnprintf-posix2.c: Likewise.
99977         * tests/test-vasnprintf.c: Likewise.
99978         * tests/test-vasprintf-posix.c: Likewise.
99979         * tests/test-vasprintf.c: Likewise.
99980         * tests/test-verify.c: Likewise.
99981         * tests/test-vfprintf-posix.c: Likewise.
99982         * tests/test-vprintf-posix.c: Likewise.
99983         * tests/test-vsnprintf-posix.c: Likewise.
99984         * tests/test-vsnprintf.c: Likewise.
99985         * tests/test-vsprintf-posix.c: Likewise.
99986         * tests/test-wchar.c: Likewise.
99987         * tests/test-wctype.c: Likewise.
99988         * tests/test-wcwidth.c: Likewise.
99989         * tests/test-xstrtol.c: Likewise.
99990         * tests/test-xvasprintf.c: Likewise.
99991         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
99992         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
99993         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99994         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99995         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99996         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
99997         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99998         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99999         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100000         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
100001         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100002         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100003         * tests/uniname/test-uninames.c: Likewise.
100004         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
100005         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
100006         * tests/unistdio/test-u16-printf1.h: Likewise.
100007         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
100008         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
100009         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
100010         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
100011         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
100012         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
100013         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
100014         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
100015         * tests/unistdio/test-u32-printf1.h: Likewise.
100016         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
100017         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
100018         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
100019         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
100020         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
100021         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
100022         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
100023         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
100024         * tests/unistdio/test-u8-printf1.h: Likewise.
100025         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
100026         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
100027         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
100028         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
100029         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
100030         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
100031         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
100032         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
100033         * tests/unistdio/test-ulc-printf1.h: Likewise.
100034         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
100035         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
100036         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
100037         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
100038         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
100039         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
100040         * tests/uniwidth/test-u16-strwidth.c: Likewise.
100041         * tests/uniwidth/test-u16-width.c: Likewise.
100042         * tests/uniwidth/test-u32-strwidth.c: Likewise.
100043         * tests/uniwidth/test-u32-width.c: Likewise.
100044         * tests/uniwidth/test-u8-strwidth.c: Likewise.
100045         * tests/uniwidth/test-u8-width.c: Likewise.
100046         * tests/uniwidth/test-uc_width.c: Likewise.
100047         * config/srclist-update: Likewise.
100048         (fixlicense): Update to GPLv3+.
100050         Change copyright notice from LGPLv2.1+ to LGPLv3+.
100051         * tests/test-tsearch.c: Change copyright notice.
100053         Change copyright notice from LGPLv2.0+ to LGPLv3+.
100054         * lib/c-strcaseeq.h: Change copyright notice.
100055         * lib/streq.h: Likewise.
100056         * lib/uniconv.h: Likewise.
100057         * lib/uniconv/u-conv-from-enc.h: Likewise.
100058         * lib/uniconv/u-conv-to-enc.h: Likewise.
100059         * lib/uniconv/u-strconv-from-enc.h: Likewise.
100060         * lib/uniconv/u-strconv-to-enc.h: Likewise.
100061         * lib/uniconv/u16-conv-from-enc.c: Likewise.
100062         * lib/uniconv/u16-conv-to-enc.c: Likewise.
100063         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
100064         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
100065         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
100066         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
100067         * lib/uniconv/u32-conv-from-enc.c: Likewise.
100068         * lib/uniconv/u32-conv-to-enc.c: Likewise.
100069         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
100070         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
100071         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
100072         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
100073         * lib/uniconv/u8-conv-from-enc.c: Likewise.
100074         * lib/uniconv/u8-conv-to-enc.c: Likewise.
100075         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
100076         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
100077         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
100078         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
100079         * lib/uniname.h: Likewise.
100080         * lib/uniname/uniname.c: Likewise.
100081         * lib/unistdio.h: Likewise.
100082         * lib/unistdio/u-asnprintf.h: Likewise.
100083         * lib/unistdio/u-asprintf.h: Likewise.
100084         * lib/unistdio/u-printf-args.c: Likewise.
100085         * lib/unistdio/u-printf-args.h: Likewise.
100086         * lib/unistdio/u-printf-parse.h: Likewise.
100087         * lib/unistdio/u-snprintf.h: Likewise.
100088         * lib/unistdio/u-sprintf.h: Likewise.
100089         * lib/unistdio/u-vasprintf.h: Likewise.
100090         * lib/unistdio/u-vsnprintf.h: Likewise.
100091         * lib/unistdio/u-vsprintf.h: Likewise.
100092         * lib/unistdio/u16-asnprintf.c: Likewise.
100093         * lib/unistdio/u16-asprintf.c: Likewise.
100094         * lib/unistdio/u16-printf-parse.c: Likewise.
100095         * lib/unistdio/u16-snprintf.c: Likewise.
100096         * lib/unistdio/u16-sprintf.c: Likewise.
100097         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
100098         * lib/unistdio/u16-u16-asprintf.c: Likewise.
100099         * lib/unistdio/u16-u16-snprintf.c: Likewise.
100100         * lib/unistdio/u16-u16-sprintf.c: Likewise.
100101         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
100102         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
100103         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
100104         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
100105         * lib/unistdio/u16-vasnprintf.c: Likewise.
100106         * lib/unistdio/u16-vasprintf.c: Likewise.
100107         * lib/unistdio/u16-vsnprintf.c: Likewise.
100108         * lib/unistdio/u16-vsprintf.c: Likewise.
100109         * lib/unistdio/u32-asnprintf.c: Likewise.
100110         * lib/unistdio/u32-asprintf.c: Likewise.
100111         * lib/unistdio/u32-printf-parse.c: Likewise.
100112         * lib/unistdio/u32-snprintf.c: Likewise.
100113         * lib/unistdio/u32-sprintf.c: Likewise.
100114         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
100115         * lib/unistdio/u32-u32-asprintf.c: Likewise.
100116         * lib/unistdio/u32-u32-snprintf.c: Likewise.
100117         * lib/unistdio/u32-u32-sprintf.c: Likewise.
100118         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
100119         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
100120         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
100121         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
100122         * lib/unistdio/u32-vasnprintf.c: Likewise.
100123         * lib/unistdio/u32-vasprintf.c: Likewise.
100124         * lib/unistdio/u32-vsnprintf.c: Likewise.
100125         * lib/unistdio/u32-vsprintf.c: Likewise.
100126         * lib/unistdio/u8-asnprintf.c: Likewise.
100127         * lib/unistdio/u8-asprintf.c: Likewise.
100128         * lib/unistdio/u8-printf-parse.c: Likewise.
100129         * lib/unistdio/u8-snprintf.c: Likewise.
100130         * lib/unistdio/u8-sprintf.c: Likewise.
100131         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
100132         * lib/unistdio/u8-u8-asprintf.c: Likewise.
100133         * lib/unistdio/u8-u8-snprintf.c: Likewise.
100134         * lib/unistdio/u8-u8-sprintf.c: Likewise.
100135         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
100136         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
100137         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
100138         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
100139         * lib/unistdio/u8-vasnprintf.c: Likewise.
100140         * lib/unistdio/u8-vasprintf.c: Likewise.
100141         * lib/unistdio/u8-vsnprintf.c: Likewise.
100142         * lib/unistdio/u8-vsprintf.c: Likewise.
100143         * lib/unistdio/ulc-asnprintf.c: Likewise.
100144         * lib/unistdio/ulc-asprintf.c: Likewise.
100145         * lib/unistdio/ulc-printf-parse.c: Likewise.
100146         * lib/unistdio/ulc-snprintf.c: Likewise.
100147         * lib/unistdio/ulc-sprintf.c: Likewise.
100148         * lib/unistdio/ulc-vasnprintf.c: Likewise.
100149         * lib/unistdio/ulc-vasprintf.c: Likewise.
100150         * lib/unistdio/ulc-vsnprintf.c: Likewise.
100151         * lib/unistdio/ulc-vsprintf.c: Likewise.
100152         * lib/unistr.h: Likewise.
100153         * lib/unistr/u-cpy-alloc.h: Likewise.
100154         * lib/unistr/u-cpy.h: Likewise.
100155         * lib/unistr/u-endswith.h: Likewise.
100156         * lib/unistr/u-move.h: Likewise.
100157         * lib/unistr/u-set.h: Likewise.
100158         * lib/unistr/u-startswith.h: Likewise.
100159         * lib/unistr/u-stpcpy.h: Likewise.
100160         * lib/unistr/u-stpncpy.h: Likewise.
100161         * lib/unistr/u-strcat.h: Likewise.
100162         * lib/unistr/u-strcpy.h: Likewise.
100163         * lib/unistr/u-strcspn.h: Likewise.
100164         * lib/unistr/u-strdup.h: Likewise.
100165         * lib/unistr/u-strlen.h: Likewise.
100166         * lib/unistr/u-strncat.h: Likewise.
100167         * lib/unistr/u-strncpy.h: Likewise.
100168         * lib/unistr/u-strnlen.h: Likewise.
100169         * lib/unistr/u-strpbrk.h: Likewise.
100170         * lib/unistr/u-strspn.h: Likewise.
100171         * lib/unistr/u-strstr.h: Likewise.
100172         * lib/unistr/u-strtok.h: Likewise.
100173         * lib/unistr/u16-check.c: Likewise.
100174         * lib/unistr/u16-chr.c: Likewise.
100175         * lib/unistr/u16-cmp.c: Likewise.
100176         * lib/unistr/u16-cpy-alloc.c: Likewise.
100177         * lib/unistr/u16-cpy.c: Likewise.
100178         * lib/unistr/u16-endswith.c: Likewise.
100179         * lib/unistr/u16-mblen.c: Likewise.
100180         * lib/unistr/u16-mbsnlen.c: Likewise.
100181         * lib/unistr/u16-mbtouc-aux.c: Likewise.
100182         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
100183         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
100184         * lib/unistr/u16-mbtouc.c: Likewise.
100185         * lib/unistr/u16-mbtoucr.c: Likewise.
100186         * lib/unistr/u16-move.c: Likewise.
100187         * lib/unistr/u16-next.c: Likewise.
100188         * lib/unistr/u16-prev.c: Likewise.
100189         * lib/unistr/u16-set.c: Likewise.
100190         * lib/unistr/u16-startswith.c: Likewise.
100191         * lib/unistr/u16-stpcpy.c: Likewise.
100192         * lib/unistr/u16-stpncpy.c: Likewise.
100193         * lib/unistr/u16-strcat.c: Likewise.
100194         * lib/unistr/u16-strchr.c: Likewise.
100195         * lib/unistr/u16-strcmp.c: Likewise.
100196         * lib/unistr/u16-strcpy.c: Likewise.
100197         * lib/unistr/u16-strcspn.c: Likewise.
100198         * lib/unistr/u16-strdup.c: Likewise.
100199         * lib/unistr/u16-strlen.c: Likewise.
100200         * lib/unistr/u16-strmblen.c: Likewise.
100201         * lib/unistr/u16-strmbtouc.c: Likewise.
100202         * lib/unistr/u16-strncat.c: Likewise.
100203         * lib/unistr/u16-strncmp.c: Likewise.
100204         * lib/unistr/u16-strncpy.c: Likewise.
100205         * lib/unistr/u16-strnlen.c: Likewise.
100206         * lib/unistr/u16-strpbrk.c: Likewise.
100207         * lib/unistr/u16-strrchr.c: Likewise.
100208         * lib/unistr/u16-strspn.c: Likewise.
100209         * lib/unistr/u16-strstr.c: Likewise.
100210         * lib/unistr/u16-strtok.c: Likewise.
100211         * lib/unistr/u16-to-u32.c: Likewise.
100212         * lib/unistr/u16-to-u8.c: Likewise.
100213         * lib/unistr/u16-uctomb-aux.c: Likewise.
100214         * lib/unistr/u16-uctomb.c: Likewise.
100215         * lib/unistr/u32-check.c: Likewise.
100216         * lib/unistr/u32-chr.c: Likewise.
100217         * lib/unistr/u32-cmp.c: Likewise.
100218         * lib/unistr/u32-cpy-alloc.c: Likewise.
100219         * lib/unistr/u32-cpy.c: Likewise.
100220         * lib/unistr/u32-endswith.c: Likewise.
100221         * lib/unistr/u32-mblen.c: Likewise.
100222         * lib/unistr/u32-mbsnlen.c: Likewise.
100223         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
100224         * lib/unistr/u32-mbtouc.c: Likewise.
100225         * lib/unistr/u32-mbtoucr.c: Likewise.
100226         * lib/unistr/u32-move.c: Likewise.
100227         * lib/unistr/u32-next.c: Likewise.
100228         * lib/unistr/u32-prev.c: Likewise.
100229         * lib/unistr/u32-set.c: Likewise.
100230         * lib/unistr/u32-startswith.c: Likewise.
100231         * lib/unistr/u32-stpcpy.c: Likewise.
100232         * lib/unistr/u32-stpncpy.c: Likewise.
100233         * lib/unistr/u32-strcat.c: Likewise.
100234         * lib/unistr/u32-strchr.c: Likewise.
100235         * lib/unistr/u32-strcmp.c: Likewise.
100236         * lib/unistr/u32-strcpy.c: Likewise.
100237         * lib/unistr/u32-strcspn.c: Likewise.
100238         * lib/unistr/u32-strdup.c: Likewise.
100239         * lib/unistr/u32-strlen.c: Likewise.
100240         * lib/unistr/u32-strmblen.c: Likewise.
100241         * lib/unistr/u32-strmbtouc.c: Likewise.
100242         * lib/unistr/u32-strncat.c: Likewise.
100243         * lib/unistr/u32-strncmp.c: Likewise.
100244         * lib/unistr/u32-strncpy.c: Likewise.
100245         * lib/unistr/u32-strnlen.c: Likewise.
100246         * lib/unistr/u32-strpbrk.c: Likewise.
100247         * lib/unistr/u32-strrchr.c: Likewise.
100248         * lib/unistr/u32-strspn.c: Likewise.
100249         * lib/unistr/u32-strstr.c: Likewise.
100250         * lib/unistr/u32-strtok.c: Likewise.
100251         * lib/unistr/u32-to-u16.c: Likewise.
100252         * lib/unistr/u32-to-u8.c: Likewise.
100253         * lib/unistr/u32-uctomb.c: Likewise.
100254         * lib/unistr/u8-check.c: Likewise.
100255         * lib/unistr/u8-chr.c: Likewise.
100256         * lib/unistr/u8-cmp.c: Likewise.
100257         * lib/unistr/u8-cpy-alloc.c: Likewise.
100258         * lib/unistr/u8-cpy.c: Likewise.
100259         * lib/unistr/u8-endswith.c: Likewise.
100260         * lib/unistr/u8-mblen.c: Likewise.
100261         * lib/unistr/u8-mbsnlen.c: Likewise.
100262         * lib/unistr/u8-mbtouc-aux.c: Likewise.
100263         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
100264         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
100265         * lib/unistr/u8-mbtouc.c: Likewise.
100266         * lib/unistr/u8-mbtoucr.c: Likewise.
100267         * lib/unistr/u8-move.c: Likewise.
100268         * lib/unistr/u8-next.c: Likewise.
100269         * lib/unistr/u8-prev.c: Likewise.
100270         * lib/unistr/u8-set.c: Likewise.
100271         * lib/unistr/u8-startswith.c: Likewise.
100272         * lib/unistr/u8-stpcpy.c: Likewise.
100273         * lib/unistr/u8-stpncpy.c: Likewise.
100274         * lib/unistr/u8-strcat.c: Likewise.
100275         * lib/unistr/u8-strchr.c: Likewise.
100276         * lib/unistr/u8-strcmp.c: Likewise.
100277         * lib/unistr/u8-strcpy.c: Likewise.
100278         * lib/unistr/u8-strcspn.c: Likewise.
100279         * lib/unistr/u8-strdup.c: Likewise.
100280         * lib/unistr/u8-strlen.c: Likewise.
100281         * lib/unistr/u8-strmblen.c: Likewise.
100282         * lib/unistr/u8-strmbtouc.c: Likewise.
100283         * lib/unistr/u8-strncat.c: Likewise.
100284         * lib/unistr/u8-strncmp.c: Likewise.
100285         * lib/unistr/u8-strncpy.c: Likewise.
100286         * lib/unistr/u8-strnlen.c: Likewise.
100287         * lib/unistr/u8-strpbrk.c: Likewise.
100288         * lib/unistr/u8-strrchr.c: Likewise.
100289         * lib/unistr/u8-strspn.c: Likewise.
100290         * lib/unistr/u8-strstr.c: Likewise.
100291         * lib/unistr/u8-strtok.c: Likewise.
100292         * lib/unistr/u8-to-u16.c: Likewise.
100293         * lib/unistr/u8-to-u32.c: Likewise.
100294         * lib/unistr/u8-uctomb-aux.c: Likewise.
100295         * lib/unistr/u8-uctomb.c: Likewise.
100296         * lib/unitypes.h: Likewise.
100297         * lib/uniwidth.h: Likewise.
100298         * lib/uniwidth/cjk.h: Likewise.
100299         * lib/uniwidth/u16-strwidth.c: Likewise.
100300         * lib/uniwidth/u16-width.c: Likewise.
100301         * lib/uniwidth/u32-strwidth.c: Likewise.
100302         * lib/uniwidth/u32-width.c: Likewise.
100303         * lib/uniwidth/u8-strwidth.c: Likewise.
100304         * lib/uniwidth/u8-width.c: Likewise.
100305         * lib/uniwidth/width.c: Likewise.
100307 2007-10-07  Bruno Haible  <bruno@clisp.org>
100309         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
100310         The file is still under LGPL (see modules/inttypes).
100312 2007-10-06  Bruno Haible  <bruno@clisp.org>
100314         * modules/trunc (Dependencies): Add 'extensions'.
100315         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
100316         Reported by Ben Pfaff <blp@gnu.org>.
100318 2007-10-06  Bruno Haible  <bruno@clisp.org>
100320         * modules/freopen-tests: New file.
100321         * tests/test-freopen.c: New file.
100323         * modules/fopen-tests: New file.
100324         * tests/test-fopen.c: New file.
100326         * modules/fopen: New file.
100327         * lib/fopen.c: New file.
100328         * m4/fopen.m4: New file.
100329         * modules/freopen: New file.
100330         * lib/freopen.c: New file.
100331         * m4/freopen.m4: New file.
100332         * lib/stdio.in.h (fopen, freopen): New declarations.
100333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
100334         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100335         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
100336         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100337         * doc/functions/fopen.texi: Mention the 'fopen' module.
100338         * doc/functions/freopen.texi: Mention the 'freopen' module.
100340 2007-10-06  Bruno Haible  <bruno@clisp.org>
100342         * modules/open-tests: New file.
100343         * tests/test-open.c: New file.
100345         * modules/open: New file.
100346         * lib/open.c: New file.
100347         * m4/open.m4: New file.
100348         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
100349         lib/open.c does.
100350         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
100351         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
100352         macros.
100353         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
100354         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
100355         REPLACE_OPEN.
100356         * doc/functions/open.texi: Mention the 'open' module.
100358 2007-10-04  Bruno Haible  <bruno@clisp.org>
100360         * modules/ceill-tests: New file.
100361         * tests/test-ceill.c: New file.
100363         * modules/ceill: New file.
100364         * lib/ceill.c: Replace entire file.
100365         * m4/ceill.m4: New file.
100366         * lib/math.in.h (ceill): Replace declaration.
100367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
100368         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
100369         * doc/functions/ceill.texi: Mention the 'ceill' module.
100370         * modules/mathl (Files): Remove lib/ceill.c.
100371         (Depends-on): Add ceill.
100373 2007-10-04  Bruno Haible  <bruno@clisp.org>
100375         * modules/ceilf-tests: New file.
100376         * tests/test-ceilf.c: New file.
100378         * modules/ceilf: New file.
100379         * lib/ceil.c: New file.
100380         * lib/ceilf.c: New file.
100381         * m4/ceilf.m4: New file.
100382         * lib/math.in.h (ceilf): New declaration.
100383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
100384         HAVE_DECL_CEILF.
100385         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
100386         HAVE_DECL_CEILF.
100387         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
100389 2007-10-04  Bruno Haible  <bruno@clisp.org>
100391         * modules/floorl-tests: New file.
100392         * tests/test-floorl.c: New file.
100394         * modules/floorl: New file.
100395         * lib/floorl.c: Replace entire file.
100396         * m4/floorl.m4: New file.
100397         * lib/math.in.h (floorl): Replace declaration.
100398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
100399         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
100400         * doc/functions/floorl.texi: Mention the 'floorl' module.
100401         * modules/mathl (Files): Remove lib/floorl.c.
100402         (Depends-on): Add floorl.
100404 2007-10-04  Bruno Haible  <bruno@clisp.org>
100406         * modules/floorf-tests: New file.
100407         * tests/test-floorf.c: New file.
100409         * modules/floorf: New file.
100410         * lib/floor.c: New file.
100411         * lib/floorf.c: New file.
100412         * m4/floorf.m4: New file.
100413         * lib/math.in.h (floorf): New declaration.
100414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
100415         HAVE_DECL_FLOORF.
100416         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
100417         HAVE_DECL_FLOORF.
100418         * doc/functions/floorf.texi: Mention the 'floorf' module.
100420 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
100421             Bruno Haible  <bruno@clisp.org>
100423         Advertise for the Git server instead of the CVS server.
100424         * doc/gnulib-intro.texi (Steady Development): Mention the Git
100425         repository instead of the CVS one.
100426         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
100427         about all VCS systems generically.
100428         * doc/gnulib.texi (Introduction): Capitalize `Git'.
100430 2007-10-04  Bruno Haible  <bruno@clisp.org>
100432         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
100433         means.
100434         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
100436 2007-10-04  Bruno Haible  <bruno@clisp.org>
100438         * modules/truncl-tests: New file.
100439         * tests/test-truncl.c: New file.
100441         * modules/truncl: New file.
100442         * lib/truncl.c: New file.
100443         * m4/truncl.m4: New file.
100444         * lib/math.in.h (truncl): New declaration.
100445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
100446         HAVE_DECL_TRUNCL.
100447         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
100448         HAVE_DECL_TRUNCL.
100449         * doc/functions/truncl.texi: Mention the 'truncl' module.
100451 2007-10-04  Bruno Haible  <bruno@clisp.org>
100453         * modules/truncf-tests: New file.
100454         * tests/test-truncf.c: New file.
100456         * modules/truncf: New file.
100457         * lib/trunc.c: Make paramerizable through USE_* macros.
100458         * lib/truncf.c: New file.
100459         * m4/truncf.m4: New file.
100460         * lib/math.in.h (truncf): New declaration.
100461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
100462         HAVE_DECL_TRUNCF.
100463         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
100464         HAVE_DECL_TRUNCF.
100465         * doc/functions/truncf.texi: Mention the 'truncf' module.
100467 2007-10-03  Bruno Haible  <bruno@clisp.org>
100469         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
100470         augmentation also for tests modules.
100471         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
100472         * modules/atexit-tests (Makefile.am): Likewise.
100473         * modules/binary-io-tests (Makefile.am): Likewise.
100474         * modules/c-strcase-tests (Makefile.am): Likewise.
100475         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
100476         * modules/canonicalize-tests (Makefile.am): Likewise.
100477         * modules/closein-tests (Makefile.am): Likewise.
100478         * modules/fprintf-posix-tests (Makefile.am): Likewise.
100479         * modules/freadahead-tests (Makefile.am): Likewise.
100480         * modules/fseek-tests (Makefile.am): Likewise.
100481         * modules/fseeko-tests (Makefile.am): Likewise.
100482         * modules/ftell-tests (Makefile.am): Likewise.
100483         * modules/ftello-tests (Makefile.am): Likewise.
100484         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
100485         * modules/isnanl-tests (Makefile.am): Likewise.
100486         * modules/lseek-tests (Makefile.am): Likewise.
100487         * modules/mbscasecmp-tests (Makefile.am): Likewise.
100488         * modules/mbscasestr-tests (Makefile.am): Likewise.
100489         * modules/mbschr-tests (Makefile.am): Likewise.
100490         * modules/mbscspn-tests (Makefile.am): Likewise.
100491         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
100492         * modules/mbspbrk-tests (Makefile.am): Likewise.
100493         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
100494         * modules/mbsrchr-tests (Makefile.am): Likewise.
100495         * modules/mbsspn-tests (Makefile.am): Likewise.
100496         * modules/mbsstr-tests (Makefile.am): Likewise.
100497         * modules/printf-posix-tests (Makefile.am): Likewise.
100498         * modules/snprintf-posix-tests (Makefile.am): Likewise.
100499         * modules/sprintf-posix-tests (Makefile.am): Likewise.
100500         * modules/tsearch-tests (Makefile.am): Likewise.
100501         * modules/uniname/uniname-tests (Makefile.am): Likewise.
100502         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
100503         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
100504         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
100505         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
100506         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
100507         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
100508         * modules/vprintf-posix-tests (Makefile.am): Likewise.
100509         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
100510         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
100511         * modules/xstrtoimax-tests (Makefile.am): Likewise.
100512         * modules/xstrtol-tests (Makefile.am): Likewise.
100513         * modules/xstrtoumax-tests (Makefile.am): Likewise.
100514         * modules/yesno-tests (Makefile.am): Likewise.
100516 2007-10-03  Bruno Haible  <bruno@clisp.org>
100518         * modules/trunc-tests: New file.
100519         * tests/test-trunc.c: New file.
100521         * modules/trunc: New file.
100522         * lib/trunc.c: New file.
100523         * m4/trunc.m4: New file.
100524         * lib/math.in.h (trunc): New declaration.
100525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
100526         HAVE_DECL_TRUNC.
100527         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
100528         HAVE_DECL_TRUNC.
100529         * doc/functions/trunc.texi: Mention the 'trunc' module.
100531 2007-10-03  Bruno Haible  <bruno@clisp.org>
100533         * tests/test-fpending.c: New file, mostly copied
100534         from coreutils/lib/t-fpending.c.
100535         * modules/fpending-tests: New file.
100537 2007-10-03  Bruno Haible  <bruno@clisp.org>
100539         Port the stdio extensions to QNX (untested).
100540         * lib/fseterr.c (fseterr): Add support for QNX.
100541         * lib/fbufmode.c (fbufmode): Likewise.
100542         * lib/freadable.c (freadable): Likewise.
100543         * lib/fwritable.c (fwritable): Likewise.
100544         * lib/freading.c (freading): Likewise.
100545         * lib/fwriting.c (fwriting): Likewise.
100546         * lib/freadahead.c (freadahed): Likewise.
100547         * lib/fpurge.c (fpurge): Likewise.
100548         * lib/fseeko.c (rpl_fseeko): Likewise.
100550 2007-10-03  Bruno Haible  <bruno@clisp.org>
100551             Jim Meyering  <jim@meyering.net>
100552             Eric Blake  <ebb9@byu.net>
100554         * doc/relocatable.texi: Use @command instead of @program.
100556 2007-10-02  Jim Meyering  <jim@meyering.net>
100558         Perform one more "_.h" -> ".in.h" substitution.
100559         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
100560         instead of unistd_.h here, too.
100562 2007-10-01  Bruno Haible  <bruno@clisp.org>
100564         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
100565         Needed for the alloca-opt module.
100567 2007-09-30  Bruno Haible  <bruno@clisp.org>
100569         * lib/alloca.in.h: Renamed from lib/alloca_.h.
100570         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
100571         alloca_.h.
100572         * lib/argz.in.h: Renamed from lib/argz_.h.
100573         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
100574         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
100575         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
100576         byteswap_.h.
100577         * lib/dirent.in.h: Renamed from lib/dirent_.h.
100578         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
100579         dirent_.h.
100580         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
100581         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
100582         fcntl_.h.
100583         * lib/float.in.h: Renamed from lib/float_.h.
100584         * modules/float (Files, Makefile.am): Use float.in.h instead of
100585         float_.h.
100586         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
100587         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
100588         fnmatch_.h.
100589         * lib/getopt.in.h: Renamed from lib/getopt_.h.
100590         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
100591         getopt_.h.
100592         * lib/glob.in.h: Renamed from lib/glob_.h.
100593         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
100594         * lib/iconv.in.h: Renamed from lib/iconv_.h.
100595         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
100596         iconv_.h.
100597         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
100598         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
100599         inttypes_.h.
100600         * lib/locale.in.h: Renamed from lib/locale_.h.
100601         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
100602         locale_.h.
100603         * lib/math.in.h: Renamed from lib/math_.h.
100604         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
100605         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
100606         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
100607         of netinet_in_.h. Add dependency.
100608         * lib/poll.in.h: Renamed from lib/poll_.h.
100609         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
100610         * lib/search.in.h: Renamed from lib/search_.h.
100611         * modules/search (Files, Makefile.am): Use search.in.h instead of
100612         search_.h.
100613         * lib/signal.in.h: Renamed from lib/signal_.h.
100614         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
100615         _signal.h.
100616         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
100617         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
100618         stdbool_.h.
100619         * lib/stdint.in.h: Renamed from lib/stdint_.h.
100620         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
100621         stdint_.h.
100622         * lib/stdio.in.h: Renamed from lib/stdio_.h.
100623         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
100624         stdio_.h.
100625         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
100626         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
100627         stdlib_.h.
100628         * lib/string.in.h: Renamed from lib/string_.h.
100629         * modules/string (Files, Makefile.am): Use string.in.h instead of
100630         string_.h.
100631         * doc/gnulib-tool.texi (Initial import): Update.
100632         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
100633         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
100634         of sys_select_.h. Add dependency.
100635         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
100636         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
100637         of sys_socket_.h.
100638         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
100639         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
100640         sys_stat_.h.
100641         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
100642         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
100643         sys_time_.h.
100644         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
100645         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
100646         sysexits_.h.
100647         * lib/time.in.h: Renamed from lib/time_.h.
100648         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
100649         * lib/unistd.in.h: Renamed from lib/unistd_.h.
100650         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
100651         unistd_.h.
100652         * lib/wchar.in.h: Renamed from lib/wchar_.h.
100653         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
100654         wchar_.h.
100655         * lib/wctype.in.h: Renamed from lib/wctype_.h.
100656         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
100657         wctype_.h.
100658         * build-aux/bootstrap (slurp): Update.
100659         * lib/.cppi-disable: Update.
100661 2007-09-30  Bruno Haible  <bruno@clisp.org>
100663         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
100664         Needed on BeOS.
100666 2007-09-30  Bruno Haible  <bruno@clisp.org>
100668         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
100670 2007-09-29  Bruno Haible  <bruno@clisp.org>
100672         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
100674 2007-09-29  Bruno Haible  <bruno@clisp.org>
100676         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
100677         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
100678         * build-aux/install-reloc: Compile also areadlink.c.
100679         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
100681 2007-09-29  Bruno Haible  <bruno@clisp.org>
100683         * gnulib-tool (func_emit_initmacro_done): Indentation.
100685 2007-09-29  Bruno Haible  <bruno@clisp.org>
100687         * README: Add CVS checkout update instructions.
100688         Info from Bob Proulx <bob@proulx.com>.
100690 2007-09-28  Eric Blake  <ebb9@byu.net>
100692         Provide move-if-change.
100693         * build-aux/move-if-change: New file, based on best practice
100694         rather than any canonical upstream location.
100696 2007-09-28  Jim Meyering  <jim@meyering.net>
100698         Fix canonicalize loop-detection corner case.
100699         Do not attempt to stat the symlink values stored via seen_triple.
100700         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
100701         on linux-2.6.18, (but not 2.6.22).
100702         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
100703         triple_compare.  The former compares dev,ino,filename, while the latter
100704         would actually stat dirname(filename) when dev and ino were equal.
100705         * lib/hash-triple.c: Install <string.h>.
100706         (STREQ): Define.
100707         (triple_compare_ino_str): New function.
100708         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
100710 2007-09-28  Eric Blake  <ebb9@byu.net>
100712         Enforce that AC_REPLACE_FUNCS files exist.
100713         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
100714         override check for typos.
100716         Fix test-closein on Solaris 10.
100717         * tests/test-closein.c (main): Don't assume stdin can be inherited
100718         closed on all systems.
100719         * tests/test-closein.sh: Likewise.
100720         Reported by Piotr Tarnowski.
100722 2007-09-28  Jim Meyering  <jim@meyering.net>
100724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
100726 2007-09-27  Jim Meyering  <jim@meyering.net>
100728         canonicalize: Avoid a false-positive cycle failure.
100729         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
100730         Sort.  Remove cycle-check.
100731         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
100732         not cycle-check.h.
100733         (seen_triple): New function.
100734         (canonicalize_filename_mode): Use it instead of cycle-check.
100735         * tests/test-canonicalize.c: Add a test for this bug.
100736         * tests/test-canonicalize.sh: Set up and run the test.
100738         New module, file-set, from coreutils.
100739         * modules/file-set: Define it.
100740         * lib/file-set.c, lib/file-set.h: Implement.
100742         New module, hash-triple, from coreutils.
100743         * modules/hash-triple: Define it.
100744         * lib/hash-triple.c, lib/hash-triple.h: Implement.
100746 2007-09-25  Eric Blake  <ebb9@byu.net>
100748         Fix strerror on Interix.
100749         * lib/string_.h (strerror): Declare replacement.
100750         * doc/functions/strerror.texi (strerror): Document the Interix
100751         shortcoming.
100752         * modules/string (Makefile.am): Support new hooks.
100753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
100754         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
100755         gl_FUNC_STRERROR_SEPARATE.
100756         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
100757         * lib/strerror.c (rpl_strerror): Provide replacement.
100758         * modules/strerror (Depends-on): Add string.
100759         (configure.ac): Detect use of module.
100760         * tests/test-strerror.c: New file.
100761         * modules/strerror-tests: New test module.
100762         * modules/argp (Depends-on): Add strerror.
100763         * modules/error (Depends-on): Likewise.
100764         Reported by Martin Koeppe.
100766 2007-09-24  Bruno Haible  <bruno@clisp.org>
100768         * README: Update git instructions.
100770 2007-09-24  Eric Blake  <ebb9@byu.net>
100772         Revert fpending breakage from 2007-09-08.
100773         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
100774         __fpending.c.
100776 2007-09-24  Jim Meyering  <jim@meyering.net>
100778         filenamecat.c: Add a test.
100779         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
100780         showing how the function works when DIR is the empty string.
100782 2007-09-21  Simon Josefsson  <simon@josefsson.org>
100784         * tests/test-canonicalize.sh: Turn on executable bit.
100786 2007-09-19  Eric Blake  <ebb9@byu.net>
100788         * README: Update CVS instructions.
100790 2007-09-18  Bruno Haible  <bruno@clisp.org>
100792         * modules/areadlink: New file.
100793         * lib/areadlink.h (areadlink): New declaration.
100794         * lib/areadlink.c: New file, based on lib/xreadlink.c.
100796 2007-09-17  Jim Meyering  <jim@meyering.net>
100798         * lib/savewd.c (ESTALE) [!defined]: Define.
100799         Reported to be required on Interix by Martin Koeppe.
100801 2007-09-17  Bruno Haible  <bruno@clisp.org>
100803         * gnulib-tool (func_version): Use $version.
100805 2007-09-16  Bruno Haible  <bruno@clisp.org>
100807         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
100808         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
100809         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
100810         Reported by Greg Schafer <gschafer@zip.com.au>.
100812 2007-09-15  Bruno Haible  <bruno@clisp.org>
100814         * gnulib-tool (sed): Try a little harder to make bash understand the
100815         alias.
100816         Reported by Bruce Korb <bruce.korb@gmail.com>.
100818 2007-09-13  Eric Blake  <ebb9@byu.net>
100820         * ChangeLog: Remove conflict markers.
100822 2007-09-13  Simon Josefsson  <simon@josefsson.org>
100824         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
100825         Reported by Bruno Haible <bruno@clisp.org>.
100827 2007-09-12  Bruno Haible  <bruno@clisp.org>
100829         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
100830         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
100831         is not defined.
100833 2007-09-12  Eric Blake  <ebb9@byu.net>
100835         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
100836         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
100837         Autoconf definition.
100838         * modules/euidaccess (Depends-on): Add extensions, for
100839         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
100840         * modules/fnmatch (Depends-on): Likewise.
100841         * modules/getaddrinfo (Depends-on): Likewise.
100842         * modules/getdelim (Depends-on): Likewise.
100843         * modules/getline (Depends-on): Likewise.
100844         * modules/getsubopt (Depends-on): Likewise.
100845         * modules/gettext (Depends-on): Likewise.
100846         * modules/group-member (Depends-on): Likewise.
100847         * modules/mbchar (Depends-on): Likewise.
100848         * modules/memmem (Depends-on): Likewise.
100849         * modules/mempcpy (Depends-on): Likewise.
100850         * modules/memrchr (Depends-on): Likewise.
100851         * modules/pagealign_alloc (Depends-on): Likewise.
100852         * modules/readutmp (Depends-on): Likewise.
100853         * modules/stpcpy (Depends-on): Likewise.
100854         * modules/stpncpy (Depends-on): Likewise.
100855         * modules/strchrnul (Depends-on): Likewise.
100856         * modules/strndup (Depends-on): Likewise.
100857         * modules/strsep (Depends-on): Likewise.
100858         * modules/strverscmp (Depends-on): Likewise.
100859         * modules/vasprintf (Depends-on): Likewise.
100860         * modules/wcwidth (Depends-on): Likewise.
100861         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
100862         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
100863         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
100864         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
100865         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
100866         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
100867         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
100868         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
100869         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
100870         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
100871         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
100872         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
100873         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
100874         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
100875         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
100876         * m4/readutmp.m4 (gl_READUTMP): Likewise.
100877         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100878         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
100879         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100880         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
100881         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
100882         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
100883         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
100884         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
100885         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
100886         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
100887         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
100888         so that lock.m4 can be used in gettext without extensions module.
100890 2007-09-11  Bruno Haible  <bruno@clisp.org>
100892         * m4/isc-posix.m4: Remove file.
100893         Suggested by Eric Blake.
100895 2007-09-11  Eric Blake  <ebb9@byu.net>
100897         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
100899 2007-09-10  Bruno Haible  <bruno@clisp.org>
100901         * posix-modules: Fix typo in error message.
100902         Reported by Matt <mkraai@beckman.com>.
100904 2007-09-09  Bruno Haible  <bruno@clisp.org>
100906         * doc/functions/getdelim.texi: Update list of platforms lacking the
100907         function.
100908         * doc/functions/getline.texi: Likewise.
100910 2007-09-09  Jim Meyering  <jim@meyering.net>
100912         * lib/hash.c (hash_initialize): Detect calloc failure.
100913         Reported by Bruno Haible.
100915 2007-09-09  Bruno Haible  <bruno@clisp.org>
100917         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
100918         malloc or realloc fails.
100920 2007-09-09  Bruno Haible  <bruno@clisp.org>
100922         * modules/getcwd (Depends-on): Add malloc-posix.
100923         * modules/glob (Depends-on): Likewise.
100924         * modules/putenv (Depends-on): Likewise.
100925         * modules/strdup (Depends-on): Likewise.
100926         * modules/getdelim (Depends-on): Add realloc-posix.
100927         * modules/read-file (Depends-on): Likewise.
100929 2007-09-09  Bruno Haible  <bruno@clisp.org>
100931         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
100932         (gl_FUNC_MALLOC_POSIX): Require it.
100933         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
100934         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
100935         * modules/realloc (Files): Add m4/malloc.m4.
100936         * modules/calloc (Files): Likewise.
100938 2007-09-09  Bruno Haible  <bruno@clisp.org>
100940         * modules/malloc-posix: New file.
100941         * modules/malloc (Depends-on): Add malloc-posix.
100942         * lib/malloc.c: Include errno.h.
100943         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
100944         and a POSIX-compatible malloc into a single function. Set ENOMEM
100945         when returning NULL.
100946         * m4/malloc.m4: New file.
100947         * doc/functions/malloc.texi: Mention the malloc-posix module.
100948         * lib/stdlib_.h (malloc): New declaration.
100949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100950         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
100951         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
100952         and HAVE_MALLOC_POSIX.
100954 2007-09-09  Bruno Haible  <bruno@clisp.org>
100956         * modules/realloc-posix: New file.
100957         * modules/realloc (Depends-on): Add realloc-posix.
100958         * lib/realloc.c: Include errno.h.
100959         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
100960         and a POSIX-compatible realloc into a single function. Set ENOMEM
100961         when returning NULL.
100962         * m4/realloc.m4: New file.
100963         * doc/functions/realloc.texi: Mention the realloc-posix module.
100964         * lib/stdlib_.h (realloc): New declaration.
100965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100966         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
100967         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
100968         and HAVE_REALLOC_POSIX.
100970 2007-09-09  Bruno Haible  <bruno@clisp.org>
100972         * modules/calloc-posix: New file.
100973         * modules/calloc (Depends-on): Add calloc-posix.
100974         * lib/calloc.c: Include errno.h.
100975         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
100976         and a POSIX-compatible calloc into a single function. Set ENOMEM
100977         when returning NULL.
100978         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
100979         * doc/functions/calloc.texi: Mention the calloc-posix module.
100980         * lib/stdlib_.h (calloc): New declaration.
100981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
100982         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
100983         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
100984         and HAVE_CALLOC_POSIX.
100986 2007-09-09  Bruno Haible  <bruno@clisp.org>
100988         Allow for modules to show an arbitrary notice.
100989         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
100990         * gnulib-tool: New option --extract-notice.
100991         (func_usage): Document it.
100992         (sed_extract_prog): Update.
100993         (func_get_notice): New function.
100994         (func_modules_notice): New function.
100995         (func_import, func_create_testdir): Invoke it.
100996         Suggested by Jim Meyering.
100998 2007-09-09  Bruno Haible  <bruno@clisp.org>
101000         * gnulib-tool: New options --verbose, --quiet.
101001         (func_usage): Document them.
101002         (verbose): New variable.
101003         (func_execute_command): New function.
101004         (func_import): Don't show the module list and the file list if
101005         $verbose < 0.
101006         (func_create_testdir): Likewise. Use func_execute_command.
101007         (func_create_megatestdir): Use func_execute_command.
101009 2007-09-08  Bruno Haible  <bruno@clisp.org>
101011         * gnulib-tool (func_import): Prefer rsync over wget when available,
101012         for fetching the PO files.
101014 2007-09-08  Bruno Haible  <bruno@clisp.org>
101016         * posix-modules: New file. Portions copied from gnulib-tool.
101017         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
101019 2007-09-08  Jim Meyering  <jim@meyering.net>
101021         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
101022         * lib/fpending.h: Rename from __fpending.h.
101023         * lib/fpending.c: Rename from __fpending.c.
101024         Include "fpending.h", not "__fpending.h".
101025         * lib/__fpending.h, lib/__fpending.c: Remove files.
101026         * modules/fpending (Files): Reflect new file names.
101027         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
101029 2007-09-08  Bruno Haible  <bruno@clisp.org>
101031         * m4/inttypes-h.m4: Remove stub file.
101033 2007-09-07  Simon Josefsson  <simon@josefsson.org>
101035         * doc/headers/stdint.texi: Discuss #include_next issue.
101037 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101039         * build-aux/bootstrap: Remove obsolete comment about wget --help.
101041 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101043         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
101044         in variable name.
101046 2007-09-03  Jim Meyering  <jim@meyering.net>
101048         New module: git-version-gen.
101049         * modules/git-version-gen: New file.
101051         Import changes from coreutils for bootstrap script.
101053         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
101055         bootstrap: uses rsync to download the .po files
101056         * build-aux/bootstrap (po_download_command_format): New global.
101057         (download_po_files): Use rsync.
101058         (update_po_files): Don't remove .po files after download,
101059         so future rsync runs can take advantage of the copies.
101061         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
101063         Solve the unnecessary-.po-file-regeneration problem once and for all.
101064         * build-aux/bootstrap (download_po_files): New function, renamed from
101065         get_translations.  Now, downloads, but doesn't update LINGUAS.
101066         (update_po_files): New function.
101068         bootstrap: Ignore more.
101069         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
101070         uniwidth to e.g., lib/.gitignore.
101071         (slurp): Handle the sys_stat_.h -> sys mapping, too.
101073         * build-aux/bootstrap: New setting: vc_ignore.
101074         (insert_sorted_if_absent): Create $file if absent.
101075         Adapt to new, possibly empty, list: $vc_ignore.
101077         bootstrap: generate more ignorable names
101078         * build-aux/bootstrap (slurp): When generating ignorable names,
101079         also map .sin to .sed, .gperf to .c, and .y to .c.
101081 2007-09-03  Jim Meyering  <jim@meyering.net>
101083         * build-aux/git-version-gen: New file, from coreutils.  For details, see
101084         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
101086 2007-09-02  Bruno Haible  <bruno@clisp.org>
101088         Fix mis-recognition of 'mcs' on QNX 6.
101089         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
101090         output contains the string "Mono".
101091         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
101092         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
101094 2007-09-01  Bruno Haible  <bruno@clisp.org>
101096         Fix collision between uniwidth/* and linebreak modules.
101097         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
101098         u32_width): Remove declarations.
101099         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
101100         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
101101         streq3, streq2, streq1, streq0): Remove functions.
101102         (STREQ): Remove macro.
101103         (is_cjk_encoding): Remove function.
101104         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
101105         (uc_width, u8_width, u16_width, u32_width): Remove functions.
101106         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
101107         * NEWS: Document the change.
101109 2007-09-01  Bruno Haible  <bruno@clisp.org>
101111         * lib/streq.h: Add double-inclusion guard.
101113 2007-09-01  Karl Berry  <karl@gnu.org>
101115         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
101117 2007-08-28  Jim Meyering  <jim@meyering.net>
101119         Rename mreadlink_with_size to areadlink_with_size.
101120         * NEWS: Document the change.
101121         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
101122         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
101123         * lib/mreadlink.h: Rename this to...
101124         * lib/areadlink.h: ...this.
101125         * modules/mreadlink-with-size: Rename this to...
101126         * modules/areadlink-with-size: ...this.
101127         * lib/canonicalize.c: Reflect the renaming.
101128         * modules/canonicalize: Likewise.
101130 2007-08-26  Bruno Haible  <bruno@clisp.org>
101132         * gnulib-tool (func_import): When deciding which files to remove,
101133         consider also dangling symbolic links.
101134         Reported by Eric Blake.
101136 2007-08-26  Bruno Haible  <bruno@clisp.org>
101138         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
101140 2007-08-23  Simon Josefsson  <simon@josefsson.org>
101142         * lib/readline.c: Don't include getline.h, the prototype is now
101143         found in stdio.h.
101145 2007-08-23  Jim Meyering  <jim@meyering.net>
101147         Getdelim touchup.
101148         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
101149         around the funlockfile call, since funlockfile never sets errno.
101150         Don't set errno upon failed realloc.
101152 2007-08-22  Eric Blake  <ebb9@byu.net>
101154         Getline touchups.
101155         * lib/getdelim.c (getdelim): Revert regression that required *n to
101156         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
101157         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
101158         getdelim, rather than whether implementation is missing.
101159         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
101160         * lib/stdio_.h (getline): Also declare if replacement is
101161         required.
101162         * doc/functions/getdelim.texi: New file.
101163         * doc/functions/getline.texi: Likewise.
101164         * doc/gnulib.texi (Function Substitutes): Add new files.
101165         Reported by Bruno Haible.
101167 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
101169         * users.txt: Add Guile.
101171 2007-08-22  Eric Blake  <ebb9@byu.net>
101173         * tests/test-getdelim.c (main): Use remove, not unlink.
101174         * tests/test-getline.c (main): Likewise.
101176         Move getline and getdelim into stdio.h, per POSIX 200x.
101177         * modules/getline (Files): Remove getline.h.
101178         (Depends-on): Add stdio.
101179         (configure.ac): Add module indicator.
101180         * modules/getdelim (Files): Remove getdelim.h.
101181         (Depends-on): Add stdio.
101182         (configure.ac): Add module indicator.
101183         * modules/stdio (Makefile.am): Work with new indicators.
101184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
101185         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
101186         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101187         * lib/getdelim.h: Delete.
101188         * lib/getline.h: Delete.
101189         * lib/stdio_.h (getdelim, getline): Declare.
101190         * modules/getdelim-tests: New module.
101191         * modules/getline-tests: Likewise.
101192         * tests/test-getdelim.c: New file.
101193         * tests/test-getline.c: Likewise.
101194         * NEWS: Document the change.
101195         * lib/getline.c: Update choice of header.
101196         * lib/csharpcomp.c: Likewise.
101197         * lib/getpass.c: Likewise.
101198         * lib/javacomp.c: Likewise.
101199         * lib/javaversion.c: Likewise.
101200         * lib/yesno.c: Likewise.
101201         * lib/getdelim.c: Likewise.
101202         (getdelim): Set errno on failure, and avoid memory leak.
101204 2007-08-19  Bruno Haible  <bruno@clisp.org>
101206         * modules/closein (Depends-on): Add freadahead.
101207         * lib/closein.c: Include freadahead.h.
101208         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
101209         is zero.
101211 2007-08-19  Bruno Haible  <bruno@clisp.org>
101213         * modules/freadahead-tests: New file.
101214         * tests/test-freadahead.sh: New file.
101215         * tests/test-freadahead.c: New file.
101217         * modules/freadahead: New file.
101218         * lib/freadahead.h: New file.
101219         * lib/freadahead.c: New file.
101220         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
101221         fbufmode, fpurge, freadable, fwritable.
101223 2007-08-19  Eric Blake  <ebb9@byu.net>
101225         Test yesno in combination with closein.
101226         * lib/yesno.c (yesno): Document use of stdin.
101227         * modules/yesno-tests (Files): New module.
101228         * tests/test-yesno.c (main): New file.
101229         * tests/test-yesno.sh: Likewise.
101231 2007-08-19  Bruno Haible  <bruno@clisp.org>
101233         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
101234         * lib/fseeko.c (rpl_fseeko): Likewise.
101235         * lib/fseterr.c (fseterr): Likewise.
101237 2007-08-19  Bruno Haible  <bruno@clisp.org>
101239         * tests/test-lseek.c (main): Disable a test for BeOS.
101240         * doc/functions/lseek.texi: Document the BeOS bug.
101242 2007-08-19  Bruno Haible  <bruno@clisp.org>
101243             Eric Blake  <ebb9@byu.net>
101245         * lib/lseek.c: Include <sys/stat.h>.
101246         (rpl_lseek): Add workaround code also for Unix platforms.
101247         Needed for BeOS.
101248         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
101249         * doc/functions/lseek.texi: Document BeOS definiency.
101251 2007-08-18  Bruno Haible  <bruno@clisp.org>
101253         * modules/fstrcmp-tests: New file.
101254         * tests/test-fstrcmp.c: New file.
101256 2007-08-18  Bruno Haible  <bruno@clisp.org>
101258         * modules/fstrcmp: New file, from GNU gettext with modifications.
101259         * lib/fstrcmp.h: New file, from GNU gettext.
101260         * lib/fstrcmp.c: New file, from GNU gettext.
101261         * MODULES.html.sh (String handling): Add fstrcmp.
101263 2007-08-18  Bruno Haible  <bruno@clisp.org>
101265         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
101266         'bool'.
101267         (diag, compareseq): Remove const from the ctxt argument.
101268         (USE_HEURISTIC): Undefine at the end.
101270 2007-08-18  Jim Meyering  <jim@meyering.net>
101272         New file: lib/idcache.h
101273         * NEWS: Mention the addition.
101274         * modules/idcache (Files): Add lib/idcache.h
101275         * lib/idcache.c: Include "idcache.h".
101276         Don't include <sys/types.h>.
101277         Add a FIXME comment.
101278         Move file-scoped "static" declarations to the top.
101279         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
101281 2007-08-17  Bruno Haible  <bruno@clisp.org>
101282         and Paul Eggert  <eggert@cs.ucla.edu>
101284         * MODULES.html.sh: Add diffseq.
101285         * modules/diffseq: New file.
101286         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
101287         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
101289 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101291         Import changes from coreutils for bootstrap script.
101293         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
101295         * build-aux/bootstrap (slurp): Work even in environments where
101296         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
101297         current code does not slurp files whose names start with ".", and
101298         this looks like it might be a troublesome area.
101300         2007-07-11  Jim Meyering  <jim@meyering.net>
101302         If there's a GPL vN copyright comment, require that N == 3.
101304         2007-07-08  Jim Meyering  <jim@meyering.net>
101306         Run the coreutils-specific code only if tests/Makefile.am.in exists.
101307         * build-aux/bootstrap (mam_template): Move definition out of loop.
101309         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
101311         * build-aux/bootstrap (symlink_to_dir): Rename function from
101312         symlink_to_gnulib.  Add a directory parameter.  Update all
101313         callers.
101314         (cp_mark_as_generated): Also check for -- and link to -- files in
101315         gl/.
101317         2007-07-08  Jim Meyering  <jim@meyering.net>
101319         Adapt to deeper hierarchy in gnulib.
101320         * build-aux/bootstrap (symlink_to_dir): If the destination
101321         directory doesn't exist, create it. This is required at least for
101322         "lib/uniwidth/cjk.h".
101324         2007-05-15  Jim Meyering  <jim@meyering.net>
101326         * build-aux/bootstrap: Now that generated Makefile.am files
101327         are no longer under version control, they must be created at
101328         bootstrap time.
101330 2007-08-14  Ben Pfaff  <blp@gnu.org>
101332         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
101334 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
101336         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
101337         given the changes below.
101338         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
101339         even on hosts that have padding bits beyond the supported 64.
101341 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
101343         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
101344         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
101345         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
101346         depends on it.
101347         (xstrtol_error): Remove.
101348         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
101349         but with a different signature.
101350         (ATTRIBUTE_NORETURN, __attribute__): New macros.
101351         * lib/xstrtol-error.c: Include exitfail.h.
101352         (xstrtol_fatal): New function, with a different signature from the
101353         old xstrtol_error, so that the caller need not worry about passing
101354         in an exit status, or about storage management of the option argument.
101355         (xstrtol_error): Now a static function.  Redo signature to
101356         implement xstrtol_fatal.  Output the correct number of hyphens in
101357         front of the option so that the caller need not worry about
101358         storage management.
101359         (N_): New macro.
101360         (_): Remove; not used now.
101361         * modules/xstrtol: Depend on getopt.
101362         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
101363         of old STRTOL_FATAL_ERROR macro.
101364         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
101365         of test program.
101366         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
101367         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
101369 2007-08-08  Eric Blake  <ebb9@byu.net>
101371         * lib/xstrtol-error.c: Add missing include.
101373         Move xstrtol messages into gnulib domain, when --pobase is used.
101374         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
101375         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
101376         * modules/xstrtol (Files): Distribute new file.
101377         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
101378         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
101379         * tests/test-xstrtol.c: ...into new file.
101380         * tests/test-xstrtoul.c: Also test xstrtoul.
101381         * tests/test-xstrtoimax.c: Also test xstrtoimax.
101382         * tests/test-xstrtoumax.c: Also test xstrtoumax.
101383         * tests/test-xstrtol.sh: Drive the tests.
101384         * tests/test-xstrtoimax.sh: Likewise.
101385         * tests/test-xstrtoumax.sh: Likewise.
101386         * modules/xstrtol-tests: New module.
101387         * modules/xstrtoimax-tests: Likewise.
101388         * modules/xstrtoumax-tests: Likewise.
101390 2007-08-08  Jim Meyering  <jim@meyering.net>
101392         New function: mfile_name_concat.
101393         * lib/filenamecat.c (mfile_name_concat): New function, just like
101394         file_name_concat, but return NULL upon failure rather than exiting
101395         with a diagnostic.
101396         * lib/filenamecat.h: Declare it.
101398 2007-08-07  Bruno Haible  <bruno@clisp.org>
101400         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
101401         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
101402         warning from gcc.
101403         Reported by Eric Blake.
101405 2007-08-07  Simon Josefsson  <simon@josefsson.org>
101407         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
101408         * modules/crypto/arcfour (License): Likewise.
101409         * modules/crypto/des-tests (License): Likewise.
101410         * modules/crypto/gc-arctwo-tests (License): Likewise.
101411         * modules/crypto/gc-des-tests (License): Likewise.
101412         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
101413         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
101414         * modules/crypto/gc-md2-tests (License): Likewise.
101415         * modules/crypto/gc-md4-tests (License): Likewise.
101416         * modules/crypto/gc-md5-tests (License): Likewise.
101417         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
101418         * modules/crypto/gc-rijndael-tests (License): Likewise.
101419         * modules/crypto/gc-sha1-tests (License): Likewise.
101420         * modules/crypto/gc-tests (License): Likewise.
101421         * modules/crypto/hmac-md5 (License): Likewise.
101422         * modules/crypto/hmac-sha1 (License): Likewise.
101423         * modules/crypto/md2-tests (License): Likewise.
101424         * modules/crypto/md4-tests (License): Likewise.
101425         * modules/crypto/md5 (License): Likewise.
101426         * modules/crypto/rijndael (License): Likewise.
101427         * modules/crypto/sha1 (License): Likewise.
101428         * modules/memxor (License): Likewise.
101430 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101431         and Bruno Haible  <bruno@clisp.org>
101433         * NEWS: Describe interface changes to human, xstrtol.
101434         * lib/human.h: Include <xstrtol.h>.
101435         (human_options): Return enum strtol_error, not int.  Remove
101436         bool arg; take int * instead.
101437         * lib/human.c: Don't include "gettext.h".
101438         (_): Remove; no longer used.
101439         Don't include <xstrtol.h>, since human.h does it.
101440         (human_options): Adjust to abovementioned interface changes.
101441         Do not report error to stderr; that's now the caller's
101442         responsibility.
101443         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
101444         interface change.
101445         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
101446         Str, Argument_type_string.  All uses changed.  Put " argument"
101447         in diagnostics to make them clearer.  Change wording of suffix
101448         message for clarity.
101449         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
101450         Argument_type_string.
101451         (STRTOL_FATAL_WARN): Remove; no longer used.
101452         * modules/human (Depends-on): Remove gettext-h.
101454 2007-08-06  Simon Josefsson  <simon@josefsson.org>
101456         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
101458 2007-07-31  Bruno Haible  <bruno@clisp.org>
101460         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
101461         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
101462         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
101464 2007-07-31  Bruno Haible  <bruno@clisp.org>
101466         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
101467         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
101469 2007-07-30  Bruno Haible  <bruno@clisp.org>
101471         * modules/base64 (License): Use the synonymous term "LGPLv2+".
101472         * modules/c-ctype (License): Likewise.
101473         * modules/c-strcase (License): Likewise.
101474         * modules/check-version (License): Likewise.
101475         * modules/iconv (License): Likewise.
101476         * modules/iconv_open (License): Likewise.
101477         * modules/read-file (License): Likewise.
101478         * modules/striconv (License): Likewise.
101479         * modules/strverscmp (License): Likewise.
101480         * modules/vasprintf (License): Likewise.
101481         * modules/crypto/des (License): Likewise.
101482         * modules/crypto/gc (License): Likewise.
101483         * modules/crypto/gc-arcfour (License): Likewise.
101484         * modules/crypto/gc-arctwo (License): Likewise.
101485         * modules/crypto/gc-des (License): Likewise.
101486         * modules/crypto/gc-hmac-md5 (License): Likewise.
101487         * modules/crypto/gc-hmac-sha1 (License): Likewise.
101488         * modules/crypto/gc-md2 (License): Likewise.
101489         * modules/crypto/gc-md4 (License): Likewise.
101490         * modules/crypto/gc-md5 (License): Likewise.
101491         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
101492         * modules/crypto/gc-random (License): Likewise.
101493         * modules/crypto/gc-rijndael (License): Likewise.
101494         * modules/crypto/gc-sha1 (License): Likewise.
101495         * modules/crypto/md2 (License): Likewise.
101496         * modules/crypto/md4 (License): Likewise.
101498 2007-07-30  Jim Meyering  <jim@meyering.net>
101500         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
101501         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
101502         it has valid stat data.  This bug would cause du not to count the
101503         sizes of inaccessible directories.
101504         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
101505         in <http://bugzilla.redhat.com/250077>.
101507 2007-07-25  Peter O'Gorman  <peter@pogma.com>
101508             Bruno Haible  <bruno@clisp.org>
101510         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
101511         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
101512         #include_next, gives a diagnostic about it, but reports no error in
101513         the exit code.
101514         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
101516 2007-07-24  Ben Pfaff  <blp@gnu.org>
101518         Improve name: "count-one-bits" is better than "popcount".
101519         * MODULES.html.sh: Update name.
101520         * lib/popcount.h: Renamed lib/count-one-bits.h.
101521         (popcount): Renamed count_one_bits.
101522         (popcountl): Renamed count_one_bits_l.
101523         (popcountll): Renamed count_one_bits_ll.
101524         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
101525         * modules/popcount: Renamed module/count-one-bits.
101526         * modules/popcount-tests: Renamed module/count-one-bits-tests.
101527         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
101529 2007-07-23  Ben Pfaff  <blp@gnu.org>
101531         * lib/popcount.h (popcount32): Reduce size of constants, to allow
101532         better code generation, and add U to large constants to avoid
101533         warnings, in non-GCC case.
101534         Suggested by Bruno Haible.
101536 2007-07-23  Ben Pfaff  <blp@gnu.org>
101538         * lib/popcount.h: Use verify_true instead of if...abort.
101539         * modules/popcount: Depend on verify module.
101540         Suggested by Jim Meyering.
101542 2007-07-23  Bruno Haible  <bruno@clisp.org>
101544         * gnulib-tool (func_import): Create a .cvsignore file also when the
101545         directory is not yet in CVS but the toplevel directory is. When
101546         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
101547         Reported by Karl Berry.
101549 2007-07-22  Ben Pfaff  <blp@gnu.org>
101551         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
101552         case.
101553         Suggested by Eric Blake.
101555 2007-07-22  Ben Pfaff  <blp@gnu.org>
101557         New module: popcount.
101558         * MODULES.html.sh: Add popcount.
101559         * modules/popcount: New file.
101560         * modules/popcount-tests: New file.
101561         * tests/test-popcount.c: New file.
101562         * lib/popcount.h: New file.
101563         * m4/popcount.m4: New file.
101565 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
101567         * build-aux/announce-gen: Update to GPLv3.
101569         * build-aux/config.guess: Update from config.
101571 2007-07-21  Bruno Haible  <bruno@clisp.org>
101573         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
101574         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
101576 2007-07-20  Jim Meyering  <jim@meyering.net>
101578         * check-module: Diagnose a self-dependency.
101580 2007-07-19  Bruno Haible  <bruno@clisp.org>
101582         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
101583         empty.
101584         Reported by Eric Blake.
101586 2007-07-18  Bruno Haible  <bruno@clisp.org>
101588         * gnulib-tool: New options --po-base, --po-domain.
101589         (func_usage): Document them.
101590         (pobase, po_domain): New variables.
101591         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
101592         DEFAULT_TEXT_DOMAIN.
101593         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
101594         (func_import): Consider pobase and po_domain. Create a po/ directory.
101595         (func_create_testdir): Set pobase and po_domain to empty.
101596         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
101597         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
101599 2007-07-18  Bruno Haible  <bruno@clisp.org>
101601         * gnulib-tool (func_get_automake_snippet): Synthesize also an
101602         EXTRA_DIST augmentation for files in build-aux/.
101604 2007-07-16  Bruno Haible  <bruno@clisp.org>
101606         * modules/lseek (License): Use the synonymous term "LGPLv2+".
101607         * modules/getdelim (License): Likewise.
101609 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101611         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
101612         * modules/d-type (License): Likewise.
101613         * modules/extensions (License): Likewise.
101614         * modules/fnmatch (License): Likewise.
101615         * modules/fseeko (License): Likewise.
101616         * modules/getaddrinfo (License): Likewise.
101617         * modules/getline (License): Likewise.
101618         * modules/getlogin_r (License): Likewise.
101619         * modules/getpass (License): Likewise.
101620         * modules/gettimeofday (License): Likewise.
101621         * modules/glob (License): Likewise.
101622         * modules/inet_ntop (License): Likewise.
101623         * modules/malloc (License): Likewise.
101624         * modules/malloca (License): Likewise.
101625         * modules/memmem (License): Likewise.
101626         * modules/mempcpy (License): Likewise.
101627         * modules/memset (License): Likewise.
101628         * modules/minmax (License): Likewise.
101629         * modules/mktime (License): Likewise.
101630         * modules/netinet_in (License): Likewise.
101631         * modules/pathmax (License): Likewise.
101632         * modules/poll (License): Likewise.
101633         * modules/regex (License): Likewise.
101634         * modules/snprintf (License): Likewise.
101635         * modules/stdbool (License): Likewise.
101636         * modules/stdint (License): Likewise.
101637         * modules/stdio (License): Likewise.
101638         * modules/strcase (License): Likewise.
101639         * modules/strcasestr (License): Likewise.
101640         * modules/strdup (License): Likewise.
101641         * modules/string (License): Likewise.
101642         * modules/strndup (License): Likewise.
101643         * modules/strnlen (License): Likewise.
101644         * modules/strpbrk (License): Likewise.
101645         * modules/strptime (License): Likewise.
101646         * modules/strsep (License): Likewise.
101647         * modules/sys_select (License): Likewise.
101648         * modules/sys_socket (License): Likewise.
101649         * modules/sys_stat (License): Likewise.
101650         * modules/sys_time (License): Likewise.
101651         * modules/time (License): Likewise.
101652         * modules/time_r (License): Likewise.
101653         * modules/timegm (License): Likewise.
101654         * modules/unistd (License): Likewise.
101655         * modules/vsnprintf (License): Likewise.
101656         * modules/wctype (License): Likewise.
101658 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101660         * modules/argz (License): LGPLv2+.
101662 2007-07-15  Karl Berry  <karl@gnu.org>
101664         * doc/gnulib.texi: revise node structure per new fdl.texi.
101666 2007-07-14  Bruno Haible  <bruno@clisp.org>
101668         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
101669         the output file.
101670         * lib/uniname/uninames.h: Regenerated.
101672 2007-07-14  Karl Berry  <karl@gnu.org>
101674         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
101675         omitting sectioning and index commands.
101677 2007-07-13  Bruno Haible  <bruno@clisp.org>
101679         New gnulib-tool option --more-symlinks.
101680         * gnulib-tool (func_usage): Document --more-symlinks.
101681         (do_copyrights): New variable.
101682         Recognize option --more-symlinks.
101683         (func_import): Don't add a copyright notice transform to
101684         sed_transform_lib_file if do_copyrights is empty.
101686 2007-07-13  Bruno Haible  <bruno@clisp.org>
101688         * lib/vasnprintf.c (decimal_point_char): Define also if
101689         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
101690         && !NEED_PRINTF_DIRECTIVE_A.
101691         Reported by Clemens Koller <clemens.koller@anagramm.de> via
101692         Gary V. Vaughan <gary@gnu.org>.
101694 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
101696         * lib/inttypes_.h: Undo previous change, since it was fixed
101697         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
101699 2007-07-13  Bruno Haible  <bruno@clisp.org>
101701         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
101702         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
101704 2007-07-13  Jim Meyering  <jim@meyering.net>
101706         df: Don't fail for Tru64's "file-on-file mount".
101707         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
101708         so we fall through and use statfs instead.  Details here:
101709         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
101710         Reported by Albert Chin.
101712 2007-07-13  Bruno Haible  <bruno@clisp.org>
101714         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
101715         * modules/configmake (License): Likewise.
101716         * modules/gettext (License): Likewise.
101717         * modules/gettext-h (License): Likewise.
101718         * modules/include_next (License): Likewise.
101719         * modules/link-warning (License): Likewise.
101720         * modules/localcharset (License): Likewise.
101721         * modules/localename (License): Likewise.
101722         * modules/lock (License): Likewise.
101723         * modules/relocatable-lib-lgpl (License): Likewise.
101724         * modules/size_max (License): Likewise.
101725         * modules/vasnprintf (License): Likewise.
101726         * modules/wchar (License): Likewise.
101727         * modules/xsize (License): Likewise.
101729 2007-07-13  Bruno Haible  <bruno@clisp.org>
101731         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
101732         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
101734 2007-07-12  Bruno Haible  <bruno@clisp.org>
101736         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
101737         in the modules files.
101739 2007-07-11  Karl Berry  <karl@gnu.org>
101741         * MODULES.html.sh (func_module): use
101742          sed -e '\|^'"${includefile}"'$|d'
101743          instead of /.../d, to avoid errors on $includefile's containing /.
101745 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
101747         * gnulib-tool (func_import): Avoid duplication of --avoid
101748         statements
101749         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
101750         names to `_' in variable names.
101752 2007-07-10  Eric Blake  <ebb9@byu.net>
101754         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
101755         * NEWS: Document this change.
101757 2007-07-08  Bruno Haible  <bruno@clisp.org>
101759         Update to Unicode 5.0.
101760         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
101761         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
101762         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
101763         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
101764         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
101765         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
101766         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
101767         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
101768         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
101769         U+10A3F, U+1D242..U+1D244.
101770         (nonspacing_table_ind): Update.
101771         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
101772         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
101774 2007-07-08  Bruno Haible  <bruno@clisp.org>
101776         Update to Unicode 5.0.
101777         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
101778         code transform. Extend the name index field of unicode_name_to_code and
101779         unicode_code_to_name from 16 to 24 bits.
101780         * lib/uniname/uniname.c (unicode_character_name,
101781         unicode_name_character): Add the range 0x12xxx to the code transform.
101782         * lib/uniname/uninames.h: Regenerated.
101783         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
101785 2007-07-07  Bruno Haible  <bruno@clisp.org>
101787         * modules/wcwidth-tests: New file.
101788         * tests/test-wcwidth.c: New file.
101790         Work around MacOS X wcwidth() bug.
101791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
101792         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
101793         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
101794         original wcwidth in non-UTF-8 locales.
101795         * modules/wcwidth (Depends-on): Add localcharset, streq,
101796         uniwidth/width.
101797         * doc/functions/wcwidth.texi: Update.
101799 2007-07-07  Bruno Haible  <bruno@clisp.org>
101801         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
101802         (wcwidth): New declaration.
101803         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
101804         macros.
101805         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
101806         here. Prepare for creating <wchar.h> unconditionally.
101807         * modules/wchar (Depends-on): Add link-warning.
101808         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
101809         REPLACE_WCWIDTH, and GL_LINK_WARNING.
101810         * lib/wcwidth.h: Remove file.
101811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
101812         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
101813         * modules/wcwidth (Files): Remove lib/wcwidth.h.
101814         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
101815         (Include): Replace wcwidth.h with <wchar.h>.
101816         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
101817         * lib/mbchar.h: Don't include wcwidth.h.
101818         * lib/mbswidth.c: Likewise.
101819         * NEWS: Mention the change.
101821 2007-07-07  Bruno Haible  <bruno@clisp.org>
101823         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
101824         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
101825         definition with an external declaration.
101826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
101827         defined as a function. Remove AC_C_INLINE requirement.
101828         * modules/wcwidth (Files): Add lib/wcwidth.c.
101829         (Makefile.am): Remove redundant statement.
101831 2007-07-07  Bruno Haible  <bruno@clisp.org>
101833         * MODULES.html.sh (Unicode string functions): Add the new modules.
101835         * tests/uniwidth/test-u32-strwidth.c: New file.
101836         * modules/uniwidth/u32-strwidth-tests: New file.
101838         * lib/uniwidth/u32-strwidth.c: New file.
101839         * modules/uniwidth/u32-strwidth: New file.
101841         * tests/uniwidth/test-u16-strwidth.c: New file.
101842         * modules/uniwidth/u16-strwidth-tests: New file.
101844         * lib/uniwidth/u16-strwidth.c: New file.
101845         * modules/uniwidth/u16-strwidth: New file.
101847         * tests/uniwidth/test-u8-strwidth.c: New file.
101848         * modules/uniwidth/u8-strwidth-tests: New file.
101850         * lib/uniwidth/u8-strwidth.c: New file.
101851         * modules/uniwidth/u8-strwidth: New file.
101853         * tests/uniwidth/test-u32-width.c: New file.
101854         * modules/uniwidth/u32-width-tests: New file.
101856         * lib/uniwidth/u32-width.c: New file.
101857         * modules/uniwidth/u32-width: New file.
101859         * tests/uniwidth/test-u16-width.c: New file.
101860         * modules/uniwidth/u16-width-tests: New file.
101862         * lib/uniwidth/u16-width.c: New file.
101863         * modules/uniwidth/u16-width: New file.
101865         * tests/uniwidth/test-u8-width.c: New file.
101866         * modules/uniwidth/u8-width-tests: New file.
101868         * lib/uniwidth/u8-width.c: New file.
101869         * modules/uniwidth/u8-width: New file.
101871         * tests/uniwidth/test-uc_width.c: New file.
101872         * modules/uniwidth/width-tests: New file.
101874         * lib/uniwidth/width.c: New file, from GNU libiconv.
101875         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
101876         * modules/uniwidth/width: New file.
101878         * lib/uniwidth.h: New file, from GNU libiconv.
101879         * modules/uniwidth/base: New file.
101881 2007-07-07  Bruno Haible  <bruno@clisp.org>
101883         * lib/uniname.h: New file, from GNU gettext.
101884         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
101885         * lib/uniname/uninames.h: New file, from GNU gettext.
101886         * lib/uniname/uniname.c: New file, from GNU gettext.
101887         * tests/uniname/test-uninames.sh: New file.
101888         * tests/uniname/test-uninames.c: New file, from GNU gettext.
101889         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
101890         * modules/uniname/base: New file.
101891         * modules/uniname/uniname: New file.
101892         * modules/uniname/uniname-tests: New file.
101893         * MODULES.html.sh (Unicode string functions): Add the new modules.
101895 2007-07-06  Bruno Haible  <bruno@clisp.org>
101897         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
101899 2007-07-06  Bruno Haible  <bruno@clisp.org>
101901         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
101902         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
101903         includes <cygwin/sys_time.h> which includes <sys/select.h> which
101904         include <sys/time.h>.
101905         Reported by Eric Blake.
101907 2007-07-06  Eric Blake  <ebb9@byu.net>
101909         Fix testing canonicalize on cygwin.
101910         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
101911         Revert patch from 2007-06-19.
101912         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
101913         canonicalize module is also in use.
101914         * tests/test-canonicalize.c: New file.
101915         * tests/test-canonicalize.sh: Likewise.
101916         * modules/canonicalize-tests: Likewise.
101918 2007-07-06  Jim Meyering  <jim@meyering.net>
101920         * lib/getugroups.c (getugroups): Detect getgrent failure.
101921         Adjust comment to reflect reality: this function may return -1.
101923 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
101925         * build-aux/bootstrap (TP_URL,get_translations): Update to use
101926         the new TP address.
101927         (usage): Fix typo
101928         (gnulib_mk): New variable.
101930 2007-07-05  Jim Meyering  <jim@meyering.net>
101932         Don't let endgrent clobber errno, no matter how improbable.
101933         * lib/getugroups.c (getugroups): Save and restore errno around
101934         endgrent call.
101936         Close the group DB even when failing with 2^31 or more members.
101937         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
101939 2007-07-04  Jim Meyering  <jim@meyering.net>
101941         * lib/getugroups.h: New file.
101942         * lib/getugroups.c: Include "getugroups.h".
101943         Remove uses of "register" keyword.
101944         Move local variable, "cp", down into scope where used.
101945         Give "username" parameter the "const" attribute.
101946         * modules/getugroups (Files): Add lib/getugroups.h
101948 2007-07-04  Karl Berry  <karl@gnu.org>
101950         * MODULES.html.sh (func_all_modules): Complete rename of
101951         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
101953 2007-07-02  Bruno Haible  <bruno@clisp.org>
101955         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
101956         mode, when inttypes.h comes from gnulib.
101957         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
101959 2007-07-02  Simon Josefsson  <simon@josefsson.org>
101961         * NEWS: Mention lgpl module name change.
101963         * modules/lgpl-2.1: Renamed from lgpl.
101965         * NEWS: Mention gpl module name change.
101967         * modules/gpl-3.0: New file, based on gpl-2.0.
101969         * modules/gpl-2.0: Renamed from gpl.
101971         * modules/gpl: Fix filename, doc/gpl.texi is now found at
101972         doc/gpl-2.0.texi.
101974 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
101976         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
101977         #define __STDC_LIMIT_MACROS temporarily while including
101978         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
101979         Problem reported by Joel E. Denny in
101980         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
101982 2007-07-01  Bruno Haible  <bruno@clisp.org>
101984         * lib/unistdio.h: New file.
101985         * lib/unistdio/u-asnprintf.h: New file.
101986         * lib/unistdio/u-asprintf.h: New file.
101987         * lib/unistdio/u-printf-args.c: New file.
101988         * lib/unistdio/u-printf-args.h: New file.
101989         * lib/unistdio/u-printf-parse.h: New file.
101990         * lib/unistdio/u-snprintf.h: New file.
101991         * lib/unistdio/u-sprintf.h: New file.
101992         * lib/unistdio/u-vasprintf.h: New file.
101993         * lib/unistdio/u-vsnprintf.h: New file.
101994         * lib/unistdio/u-vsprintf.h: New file.
101995         * lib/unistdio/ulc-asnprintf.c: New file.
101996         * lib/unistdio/ulc-asprintf.c: New file.
101997         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
101998         * lib/unistdio/ulc-printf-parse.c: New file.
101999         * lib/unistdio/ulc-snprintf.c: New file.
102000         * lib/unistdio/ulc-sprintf.c: New file.
102001         * lib/unistdio/ulc-vasnprintf.c: New file.
102002         * lib/unistdio/ulc-vasprintf.c: New file.
102003         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
102004         * lib/unistdio/ulc-vsnprintf.c: New file.
102005         * lib/unistdio/ulc-vsprintf.c: New file.
102006         * lib/unistdio/u8-asnprintf.c: New file.
102007         * lib/unistdio/u8-asprintf.c: New file.
102008         * lib/unistdio/u8-printf-parse.c: New file.
102009         * lib/unistdio/u8-snprintf.c: New file.
102010         * lib/unistdio/u8-sprintf.c: New file.
102011         * lib/unistdio/u8-vasnprintf.c: New file.
102012         * lib/unistdio/u8-vasprintf.c: New file.
102013         * lib/unistdio/u8-vsnprintf.c: New file.
102014         * lib/unistdio/u8-vsprintf.c: New file.
102015         * lib/unistdio/u8-u8-asnprintf.c: New file.
102016         * lib/unistdio/u8-u8-asprintf.c: New file.
102017         * lib/unistdio/u8-u8-snprintf.c: New file.
102018         * lib/unistdio/u8-u8-sprintf.c: New file.
102019         * lib/unistdio/u8-u8-vasnprintf.c: New file.
102020         * lib/unistdio/u8-u8-vasprintf.c: New file.
102021         * lib/unistdio/u8-u8-vsnprintf.c: New file.
102022         * lib/unistdio/u8-u8-vsprintf.c: New file.
102023         * lib/unistdio/u16-asnprintf.c: New file.
102024         * lib/unistdio/u16-asprintf.c: New file.
102025         * lib/unistdio/u16-printf-parse.c: New file.
102026         * lib/unistdio/u16-snprintf.c: New file.
102027         * lib/unistdio/u16-sprintf.c: New file.
102028         * lib/unistdio/u16-vasnprintf.c: New file.
102029         * lib/unistdio/u16-vasprintf.c: New file.
102030         * lib/unistdio/u16-vsnprintf.c: New file.
102031         * lib/unistdio/u16-vsprintf.c: New file.
102032         * lib/unistdio/u16-u16-asnprintf.c: New file.
102033         * lib/unistdio/u16-u16-asprintf.c: New file.
102034         * lib/unistdio/u16-u16-snprintf.c: New file.
102035         * lib/unistdio/u16-u16-sprintf.c: New file.
102036         * lib/unistdio/u16-u16-vasnprintf.c: New file.
102037         * lib/unistdio/u16-u16-vasprintf.c: New file.
102038         * lib/unistdio/u16-u16-vsnprintf.c: New file.
102039         * lib/unistdio/u16-u16-vsprintf.c: New file.
102040         * lib/unistdio/u32-asnprintf.c: New file.
102041         * lib/unistdio/u32-asprintf.c: New file.
102042         * lib/unistdio/u32-printf-parse.c: New file.
102043         * lib/unistdio/u32-snprintf.c: New file.
102044         * lib/unistdio/u32-sprintf.c: New file.
102045         * lib/unistdio/u32-vasnprintf.c: New file.
102046         * lib/unistdio/u32-vasprintf.c: New file.
102047         * lib/unistdio/u32-vsnprintf.c: New file.
102048         * lib/unistdio/u32-vsprintf.c: New file.
102049         * lib/unistdio/u32-u32-asnprintf.c: New file.
102050         * lib/unistdio/u32-u32-asprintf.c: New file.
102051         * lib/unistdio/u32-u32-snprintf.c: New file.
102052         * lib/unistdio/u32-u32-sprintf.c: New file.
102053         * lib/unistdio/u32-u32-vasnprintf.c: New file.
102054         * lib/unistdio/u32-u32-vasprintf.c: New file.
102055         * lib/unistdio/u32-u32-vsnprintf.c: New file.
102056         * lib/unistdio/u32-u32-vsprintf.c: New file.
102057         * tests/unistdio/test-ulc-asnprintf1.c: New file.
102058         * tests/unistdio/test-ulc-asnprintf1.h: New file.
102059         * tests/unistdio/test-ulc-printf1.h: New file.
102060         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
102061         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
102062         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
102063         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
102064         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
102065         * tests/unistdio/test-ulc-vasprintf1.c: New file.
102066         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
102067         * tests/unistdio/test-ulc-vsprintf1.c: New file.
102068         * tests/unistdio/test-u8-asnprintf1.c: New file.
102069         * tests/unistdio/test-u8-asnprintf1.h: New file.
102070         * tests/unistdio/test-u8-printf1.h: New file.
102071         * tests/unistdio/test-u8-vasnprintf1.c: New file.
102072         * tests/unistdio/test-u8-vasnprintf2.c: New file.
102073         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
102074         * tests/unistdio/test-u8-vasnprintf3.c: New file.
102075         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
102076         * tests/unistdio/test-u8-vasprintf1.c: New file.
102077         * tests/unistdio/test-u8-vsnprintf1.c: New file.
102078         * tests/unistdio/test-u8-vsprintf1.c: New file.
102079         * tests/unistdio/test-u16-asnprintf1.c: New file.
102080         * tests/unistdio/test-u16-asnprintf1.h: New file.
102081         * tests/unistdio/test-u16-printf1.h: New file.
102082         * tests/unistdio/test-u16-vasnprintf1.c: New file.
102083         * tests/unistdio/test-u16-vasnprintf2.c: New file.
102084         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
102085         * tests/unistdio/test-u16-vasnprintf3.c: New file.
102086         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
102087         * tests/unistdio/test-u16-vasprintf1.c: New file.
102088         * tests/unistdio/test-u16-vsnprintf1.c: New file.
102089         * tests/unistdio/test-u16-vsprintf1.c: New file.
102090         * tests/unistdio/test-u32-asnprintf1.c: New file.
102091         * tests/unistdio/test-u32-asnprintf1.h: New file.
102092         * tests/unistdio/test-u32-printf1.h: New file.
102093         * tests/unistdio/test-u32-vasnprintf1.c: New file.
102094         * tests/unistdio/test-u32-vasnprintf2.c: New file.
102095         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
102096         * tests/unistdio/test-u32-vasnprintf3.c: New file.
102097         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
102098         * tests/unistdio/test-u32-vasprintf1.c: New file.
102099         * tests/unistdio/test-u32-vsnprintf1.c: New file.
102100         * tests/unistdio/test-u32-vsprintf1.c: New file.
102101         * modules/unistdio/base: New file.
102102         * modules/unistdio/u-printf-args: New file.
102103         * modules/unistdio/ulc-asnprintf: New file.
102104         * modules/unistdio/ulc-asprintf: New file.
102105         * modules/unistdio/ulc-fprintf: New file.
102106         * modules/unistdio/ulc-printf-parse: New file.
102107         * modules/unistdio/ulc-snprintf: New file.
102108         * modules/unistdio/ulc-sprintf: New file.
102109         * modules/unistdio/ulc-vasnprintf: New file.
102110         * modules/unistdio/ulc-vasprintf: New file.
102111         * modules/unistdio/ulc-vfprintf: New file.
102112         * modules/unistdio/ulc-vsnprintf: New file.
102113         * modules/unistdio/ulc-vsprintf: New file.
102114         * modules/unistdio/u8-asnprintf: New file.
102115         * modules/unistdio/u8-asprintf: New file.
102116         * modules/unistdio/u8-printf-parse: New file.
102117         * modules/unistdio/u8-snprintf: New file.
102118         * modules/unistdio/u8-sprintf: New file.
102119         * modules/unistdio/u8-vasnprintf: New file.
102120         * modules/unistdio/u8-vasprintf: New file.
102121         * modules/unistdio/u8-vsnprintf: New file.
102122         * modules/unistdio/u8-vsprintf: New file.
102123         * modules/unistdio/u8-u8-asnprintf: New file.
102124         * modules/unistdio/u8-u8-asprintf: New file.
102125         * modules/unistdio/u8-u8-snprintf: New file.
102126         * modules/unistdio/u8-u8-sprintf: New file.
102127         * modules/unistdio/u8-u8-vasnprintf: New file.
102128         * modules/unistdio/u8-u8-vasprintf: New file.
102129         * modules/unistdio/u8-u8-vsnprintf: New file.
102130         * modules/unistdio/u8-u8-vsprintf: New file.
102131         * modules/unistdio/u16-asnprintf: New file.
102132         * modules/unistdio/u16-asprintf: New file.
102133         * modules/unistdio/u16-printf-parse: New file.
102134         * modules/unistdio/u16-snprintf: New file.
102135         * modules/unistdio/u16-sprintf: New file.
102136         * modules/unistdio/u16-vasnprintf: New file.
102137         * modules/unistdio/u16-vasprintf: New file.
102138         * modules/unistdio/u16-vsnprintf: New file.
102139         * modules/unistdio/u16-vsprintf: New file.
102140         * modules/unistdio/u16-u16-asnprintf: New file.
102141         * modules/unistdio/u16-u16-asprintf: New file.
102142         * modules/unistdio/u16-u16-snprintf: New file.
102143         * modules/unistdio/u16-u16-sprintf: New file.
102144         * modules/unistdio/u16-u16-vasnprintf: New file.
102145         * modules/unistdio/u16-u16-vasprintf: New file.
102146         * modules/unistdio/u16-u16-vsnprintf: New file.
102147         * modules/unistdio/u16-u16-vsprintf: New file.
102148         * modules/unistdio/u32-asnprintf: New file.
102149         * modules/unistdio/u32-asprintf: New file.
102150         * modules/unistdio/u32-printf-parse: New file.
102151         * modules/unistdio/u32-snprintf: New file.
102152         * modules/unistdio/u32-sprintf: New file.
102153         * modules/unistdio/u32-vasnprintf: New file.
102154         * modules/unistdio/u32-vasprintf: New file.
102155         * modules/unistdio/u32-vsnprintf: New file.
102156         * modules/unistdio/u32-vsprintf: New file.
102157         * modules/unistdio/u32-u32-asnprintf: New file.
102158         * modules/unistdio/u32-u32-asprintf: New file.
102159         * modules/unistdio/u32-u32-snprintf: New file.
102160         * modules/unistdio/u32-u32-sprintf: New file.
102161         * modules/unistdio/u32-u32-vasnprintf: New file.
102162         * modules/unistdio/u32-u32-vasprintf: New file.
102163         * modules/unistdio/u32-u32-vsnprintf: New file.
102164         * modules/unistdio/u32-u32-vsprintf: New file.
102165         * modules/unistdio/ulc-asnprintf-tests: New file.
102166         * modules/unistdio/ulc-vasnprintf-tests: New file.
102167         * modules/unistdio/ulc-vasprintf-tests: New file.
102168         * modules/unistdio/ulc-vsnprintf-tests: New file.
102169         * modules/unistdio/ulc-vsprintf-tests: New file.
102170         * modules/unistdio/u8-asnprintf-tests: New file.
102171         * modules/unistdio/u8-vasnprintf-tests: New file.
102172         * modules/unistdio/u8-vasprintf-tests: New file.
102173         * modules/unistdio/u8-vsnprintf-tests: New file.
102174         * modules/unistdio/u8-vsprintf-tests: New file.
102175         * modules/unistdio/u16-asnprintf-tests: New file.
102176         * modules/unistdio/u16-vasnprintf-tests: New file.
102177         * modules/unistdio/u16-vasprintf-tests: New file.
102178         * modules/unistdio/u16-vsnprintf-tests: New file.
102179         * modules/unistdio/u16-vsprintf-tests: New file.
102180         * modules/unistdio/u32-asnprintf-tests: New file.
102181         * modules/unistdio/u32-vasnprintf-tests: New file.
102182         * modules/unistdio/u32-vasprintf-tests: New file.
102183         * modules/unistdio/u32-vsnprintf-tests: New file.
102184         * modules/unistdio/u32-vsprintf-tests: New file.
102185         * MODULES.html.sh (Unicode string functions): Add the new modules.
102187 2007-07-01  Bruno Haible  <bruno@clisp.org>
102189         * lib/sprintf.c (sprintf): Limit the available length estimation,
102190         to avoid address wraparound.
102191         * lib/vsprintf.c (vsprintf): Likewise.
102192         * modules/sprintf-posix (Dependencies): Add stdint.
102193         * modules/vsprintf-posix (Dependencies): Likewise.
102195 2007-07-01  Bruno Haible  <bruno@clisp.org>
102197         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
102198         Windows PATH as well. Conservative double-quoting. Comments.
102200 2007-07-01  Bruno Haible  <bruno@clisp.org>
102201             Eric Blake  <ebb9@byu.net>
102202             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102204         * gnulib-tool (self_abspathname): Fix algorithm to cope with
102205         empty components in $PATH, denoting '.'.
102207 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102209         * gnulib-tool: Fix indentation.
102210         (func_create_megatestdir): Likewise.
102211         Report by Bruno Haible.
102213 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102215         Sync from Automake.
102216         * build-aux/gnupload: Fix shell portability issues with for loops.
102217         Report by Karl Berry.
102219 2007-06-29  Simon Josefsson  <simon@josefsson.org>
102221         * build-aux/maint.mk (POURL): Use translationproject.org.
102223 2007-06-27  Simon Josefsson  <simon@josefsson.org>
102224             Bruno Haible  <bruno@clisp.org>
102226         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
102227         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
102228         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
102229         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
102230         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
102232 2007-06-27  Bruno Haible  <bruno@clisp.org>
102234         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
102235         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
102237 2007-06-26  Karl Berry  <karl@gnu.org>
102239         * MODULES.html.sh: remove xreadlink-with-size.
102241 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102243         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
102244         method that I hope also handles the double-include problem noted
102245         by Bruno Haible in
102246         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
102248 2007-06-23  Bruno Haible  <bruno@clisp.org>
102250         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102251         Don't let the 'mostlyclean' target fail if the last subdirectory could
102252         not be removed.
102253         Reported by Karl Berry.
102255 2007-06-23  Bruno Haible  <bruno@clisp.org>
102257         * gnulib-tool (echo): Add a speedier workaround for ksh.
102258         * tests/test-echo.sh: Likewise.
102260 2007-06-23  Bruno Haible  <bruno@clisp.org>
102262         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
102263         * tests/test-echo.sh: Likewise.
102265 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102267         * gnulib-tool (IFS): Initialize early, so we don't set it to
102268         empty later.
102269         (self_abspathname): Rewrite algorithm to set it, reindent.
102270         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
102271         (func_create_megatestdir): Merge some sed scripts.
102273 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102275         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
102276         exposed by Sun Studio 11 cc on Solaris 8.
102278 2007-06-22  Bruno Haible  <bruno@clisp.org>
102280         * gnulib-tool (echo): Ensure the echo primitive does not interpret
102281         backslashes.
102282         * tests/test-echo.sh: New file.
102284 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102286         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
102287         simplify `sed_replace_build_aux' scripts, they are portable but
102288         echoing them with `echo' is not.
102289         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
102291 2007-06-21  Karl Berry  <karl@gnu.org>
102293         * config/srclist.txt: guess we can't handle the licenses via
102294         srclist at the moment.
102296 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
102298         * MODULES.html.sh: Add include_next.
102299         * modules/include_next: New file.
102301 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
102303         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
102304         INCLUDE_NEXT.
102305         (gl_CHECK_NEXT_HEADERS): New macro.
102306         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
102307         the obsolescent gl_ABSOLUTE_HEADER.
102308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
102309         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
102310         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
102311         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
102312         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
102313         * m4/math_h.m4 (gl_MATH_H): Likewise.
102314         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
102315         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
102316         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
102317         * m4/stdint.m4 (gl_STDINT_H): Likewise.
102318         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
102319         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
102320         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
102321         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
102322         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
102323         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
102324         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
102325         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
102326         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
102327         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
102328         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
102329         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102330         * m4/inttypes.m4 (gl_INTTYPES_H): Define
102331         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
102332         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
102333         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
102334         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
102335         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
102336         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
102337         * lib/float_.h: Likewise.
102338         * lib/inttypes_.h: Likewise.
102339         * lib/math_.h: Likewise.
102340         * lib/search_.h: Likewise.
102341         * lib/signal_.h: Likewise.
102342         * lib/stdint_.h: Likewise.
102343         * lib/stdio_.h: Likewise.
102344         * lib/stdlib_.h: Likewise.
102345         * lib/string_.h: Likewise.
102346         * lib/sys_stat_.h: Likewise.
102347         * lib/sys_time_.h: Likewise.
102348         * lib/time_.h: Likewise.
102349         * lib/unistd_.h: Likewise.
102350         * lib/wchar_.h: Likewise.
102351         * lib/wctype_.h: Likewise.
102352         * lib/dirent_.h: Likewise.
102353         * lib/iconv_.h: Likewise.
102354         * lib/locale_.h: Likewise.
102355         * lib/netinet_in_.h: Likewise.
102356         * lib/sys_select_.h: Likewise.
102357         * lib/sys_socket_.h: Likewise.
102358         * lib/sysexits_.h: Likewise.
102359         * modules/fcntl (Depends-on): Depend on include_next, not
102360         absolute_header.
102361         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
102362         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
102363         * modules/fchdir: Likewise.
102364         * modules/float: Likewise.
102365         * modules/iconv_open: Likewise.
102366         * modules/inttypes: Likewise.
102367         * modules/locale: Likewise.
102368         * modules/math: Likewise.
102369         * modules/netinet_in: Likewise.
102370         * modules/search: Likewise.
102371         * modules/signal: Likewise.
102372         * modules/stdint: Likewise.
102373         * modules/stdio: Likewise.
102374         * modules/stdlib: Likewise.
102375         * modules/string: Likewise.
102376         * modules/sys_select: Likewise.
102377         * modules/sys_socket: Likewise.
102378         * modules/sys_stat: Likewise.
102379         * modules/sys_time: Likewise.
102380         * modules/sysexits: Likewise.
102381         * modules/time: Likewise.
102382         * modules/unistd: Likewise.
102383         * modules/wchar: Likewise.
102384         * modules/wctype: Likewise.
102385         * modules/sys_stat: Change maintainer to "all".
102386         * modules/unistd: Likewise.
102388 2007-06-20  Karl Berry  <karl@gnu.org>
102390         * config/srclist.txt: track www changes in license files.
102392 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
102394         * build-aux/bootstrap: Remove stray dot.
102395         Make sure build_aux settings are honored when linking
102396         gnulib_extra_files.
102398 2007-06-19  Eric Blake  <ebb9@byu.net>
102400         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102401         Allow compilation on cygwin.
102403 2007-06-19  Jim Meyering  <jim@meyering.net>
102405         xreadlink-with-size: Remove module.  No longer used.
102406         Ex-callers now use xreadlink or mreadlink-with-size.
102407         * modules/xreadlink-with-size: Remove module.
102408         * lib/xreadlink-with-size.c: Remove file.
102409         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
102410         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
102411         just before the function definition *is* accurate.
102413         Eliminate one way canonicalize_filename_mode could exit.
102414         * lib/canonicalize.c (canonicalize_filename_mode):
102415         Use mreadlink_with_size, not xreadlink_with_size.
102417 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
102419         Detect porting problems to FreeBSD/arm, which has time_t wider than
102420         long int.  Original problem reported for GNU diff by Xin Li in
102421         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
102422         * modules/getdate (Depends-on): Add intprops, verify.
102423         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
102424         is an integer type no wider than long int.
102426 2007-06-18  Jim Meyering  <jim@meyering.net>
102428         New module: mreadlink-with-size.
102429         * MODULES.html.sh: Add mreadlink-with-size.
102430         * modules/mreadlink-with-size: New module
102431         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
102432         not xreadlink-with-size.
102433         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
102435 2007-06-16  Bruno Haible  <bruno@clisp.org>
102437         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
102438         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
102439         Reported by Gary V. Vaughan <gary@gnu.org>.
102441 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
102443         Revamp lchown so that it lives in unistd.h where it belongs.
102444         * lib/lchown.h: Remove.
102445         * lib/dirchownmod.c: Don't include lib/lchown.h.
102446         * lib/fchownat.c: Likewise.
102447         * lib/openat.c: Likewise.
102448         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
102449         does not follow symlinks.
102450         (EOPNOTSUPP): Define if not defined.
102451         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
102452         is defined to 0.
102453         (lchown): New decl.
102454         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
102455         Do not check for lchown decl.
102456         Set REPLACE_LCHOWN.
102457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
102458         REPLACE_LCHOWN.
102459         * modules/chown: Make it clear it follows symlinks.
102460         * modules/lchown: Make it clear it doesn't follow symlinks.
102461         (Files): Remove lib/lchown.h
102462         (Depends-on): Add unistd.
102463         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
102464         (Include): Include <unistd.h>, not "lchown.h".
102465         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
102466         REPLACE_LCHOWN.
102468 2007-06-15  Jim Meyering  <jim@meyering.net>
102470         Change license (GPL to LGPL) of fsusage and dependents.
102471         * modules/fsusage (License): Change to LGPL.
102472         * modules/full-read (License): Likewise.
102473         * modules/full-write (License): Likewise.
102474         * modules/safe-read (License): Likewise.
102475         * modules/safe-write (License): Likewise.
102477 2007-06-14  Ben Pfaff  <blp@gnu.org>
102479         Missing part of allocsa -> malloca transition.
102480         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
102481         gl_MALLOCA.
102483 2007-06-12  Bruno Haible  <bruno@clisp.org>
102485         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
102486         to ia64, x86_64, i386.
102487         Reported by Eric Blake.
102489 2007-06-12  Bruno Haible  <bruno@clisp.org>
102491         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
102492         cross-compiling to x86_64.
102494 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
102496         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
102497         glitch reported by Ralf Wildenhues in
102498         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
102500         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
102501         Vin Shelton.
102503 2007-06-11  Bruno Haible  <bruno@clisp.org>
102505         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
102506         replacement string.
102507         Reported by Eric Blake.
102509 2007-06-10  Bruno Haible  <bruno@clisp.org>
102511         Prepare vasnprintf code for use with Unicode strings.
102512         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
102513         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
102514         TYPE_U32_STRING.
102515         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
102516         a_u32_string variants.
102517         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102518         * lib/printf-args.c: Don't include config.h and the specification
102519         header if PRINTF_FETCHARGS is already defined.
102520         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102521         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
102522         TYPE_U16_STRING, TYPE_U32_STRING.
102523         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
102524         u16_directive, u16_directives, u32_directive, u32_directives): New
102525         types.
102526         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
102527         New declarations.
102528         * lib/printf-parse.c: Don't include config.h and the specification
102529         header if PRINTF_PARSE is already defined. Eliminate the set of
102530         parameters for WIDE_CHAR_VERSION; the user of this file must provide
102531         them now. Include c-ctype.h.
102532         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
102533         directive and CHAR_T_ONLY_ASCII.
102534         * lib/vasnprintf.c: Don't include config.h and the specification header
102535         if VASNPRINTF is already defined.
102536         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
102537         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
102538         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
102539         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
102540         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
102541         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
102542         code accordingly.
102543         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
102544         pad_ourselves also in this case, with the 'c' and 's' directives, and
102545         with a different notion of "width".
102546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
102548 2007-06-10  Bruno Haible  <bruno@clisp.org>
102550         * modules/unistr/u32-mbsnlen: New file.
102551         * lib/unistr/u32-mbsnlen.c: New file.
102553         * modules/unistr/u16-mbsnlen: New file.
102554         * lib/unistr/u16-mbsnlen.c: New file.
102556         * modules/unistr/u8-mbsnlen: New file.
102557         * lib/unistr/u8-mbsnlen.c: New file.
102559         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
102560         declarations.
102562 2007-06-10  Bruno Haible  <bruno@clisp.org>
102564         * lib/string_.h (mbsnlen): New declaration.
102565         * lib/mbsnlen.c: New file.
102566         * m4/mbsnlen.m4: New file.
102567         * modules/mbsnlen: New file.
102568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
102569         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
102570         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
102572 2007-06-10  Bruno Haible  <bruno@clisp.org>
102574         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
102576 2007-06-10  Bruno Haible  <bruno@clisp.org>
102578         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
102579         * lib/mbuiter.h: Likewise.
102581 2007-06-10  Bruno Haible  <bruno@clisp.org>
102583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
102584         declaration.
102586 2007-06-10  Karl Berry  <karl@gnu.org>
102588         * config/srclist.txt: remove gettext entries, Bruno prefers
102589         to update individually.
102591 2007-06-10  Bruno Haible  <bruno@clisp.org>
102593         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
102594         'maxlen'. Ensure only length + width bytes are allocated, not
102595         length + 1 + width.
102597 2007-06-09  Bruno Haible  <bruno@clisp.org>
102599         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
102600         (CHAR_T): Remove macro.
102601         (VASNPRINTF): Update.
102603 2007-06-09  Bruno Haible  <bruno@clisp.org>
102605         * MODULES.html.sh (Unicode string functions): Add the new modules.
102607         * modules/uniconv/u32-conv-to-enc: New file.
102608         * lib/uniconv/u32-conv-to-enc.c: New file.
102609         * modules/uniconv/u32-conv-to-enc-tests: New file.
102610         * tests/uniconv/test-u32-conv-to-enc.c: New file.
102612         * modules/uniconv/u16-conv-to-enc: New file.
102613         * lib/uniconv/u16-conv-to-enc.c: New file.
102614         * lib/uniconv/u-conv-to-enc.h: New file.
102615         * modules/uniconv/u16-conv-to-enc-tests: New file.
102616         * tests/uniconv/test-u16-conv-to-enc.c: New file.
102618         * modules/uniconv/u8-conv-to-enc: New file.
102619         * lib/uniconv/u8-conv-to-enc.c: New file.
102620         * modules/uniconv/u8-conv-to-enc-tests: New file.
102621         * tests/uniconv/test-u8-conv-to-enc.c: New file.
102623         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
102624         u32_conv_to_encoding): New declarations.
102626 2007-06-09  Bruno Haible  <bruno@clisp.org>
102628         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
102630 2007-06-09  Bruno Haible  <bruno@clisp.org>
102632         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
102633         * modules/malloca: Renamed from modules/allocsa, updated.
102634         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
102635         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
102636         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
102637         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
102638         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
102639         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
102640         * modules/xmalloca: Renamed from modules/xallocsa, updated.
102641         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
102642         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
102643         * modules/c-strcasestr (Depends-on): Update.
102644         * lib/c-strcasestr.c: Update.
102645         * modules/c-strstr (Depends-on): Update.
102646         * lib/c-strstr.c: Update.
102647         * modules/canonicalize-lgpl (Depends-on): Update.
102648         * lib/canonicalize-lgpl.c: Update.
102649         * modules/clean-temp (Depends-on): Update.
102650         * lib/clean-temp.c: Update.
102651         * modules/csharpcomp (Depends-on): Update.
102652         * lib/csharpcomp.c: Update.
102653         * modules/csharpexec (Depends-on): Update.
102654         * lib/csharpexec.c: Update.
102655         * modules/javacomp (Depends-on): Update.
102656         * lib/javacomp.c: Update.
102657         * modules/javaexec (Depends-on): Update.
102658         * lib/javaexec.c: Update.
102659         * modules/mbscasestr (Depends-on): Update.
102660         * lib/mbscasestr.c: Update.
102661         * modules/mbsstr (Depends-on): Update.
102662         * lib/mbsstr.c: Update.
102663         * modules/setenv (Depends-on): Update.
102664         * lib/setenv.c: Update.
102665         * modules/strcasestr (Depends-on): Update.
102666         * lib/strcasestr.c: Update.
102667         * modules/striconveha (Depends-on): Update.
102668         * lib/striconveha.c: Update.
102669         * modules/relocatable-prog-wrapper (Files): Update.
102670         * lib/relocwrapper.c: Update.
102671         * build-aux/install-reloc: Update.
102672         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
102674 2007-06-08  Bruno Haible  <bruno@clisp.org>
102676         Port to uClibc.
102677         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
102678         * lib/fpurge.c (fpurge): Likewise.
102679         * lib/freading.c (freading): Likewise.
102680         * lib/fseeko.c (rpl_fseeko): Likewise.
102681         * lib/fseterr.c (fseterr): Likewise.
102682         * lib/fwriting.c (fwriting): Likewise.
102683         * tests/test-fflush.c (main): Avoid a failure on uClibc.
102685 2007-06-08  Bruno Haible  <bruno@clisp.org>
102687         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
102688         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
102689         * modules/gettext (Files): Add m4/intlmacosx.m4.
102691 2007-06-07  Bruno Haible  <bruno@clisp.org>
102693         * modules/localename-tests: New file.
102694         * tests/test-localename.c: New file.
102696         New module 'localename'.
102697         * lib/localename.h: New file.
102698         * lib/localename.c: New file, from GNU gettext.
102699         * m4/localename.m4: New file.
102700         * modules/localename: New file.
102702 2007-06-07  Bruno Haible  <bruno@clisp.org>
102704         Work around the lack of <wchar.h> on some builds of uClibc.
102705         * doc/headers/wchar.texi: Update.
102706         * lib/wchar_.h: Include <wchar.h> only if it exists.
102707         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
102708         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
102709         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
102710         doesn't exist.
102711         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
102712         * modules/mbfile (Depends-on): Add wchar.
102713         * modules/mbiter (Depends-on): Likewise.
102714         * modules/mbuiter (Depends-on): Likewise.
102715         Reported by Simon Josefsson.
102717 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
102719         Work around problem reported by Steven M. Schweda in
102720         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
102721         Tru64 5.1B with the Compaq compiler environment installed declares
102722         an 'isblank' function but does not define it in the C library.
102723         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
102724         * lib/regex_internal.h (isblank): Likewise.
102725         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
102726         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102728 2007-06-05  Bruno Haible  <bruno@clisp.org>
102730         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
102731         ia64.
102732         * modules/printf-safe: New file.
102733         * modules/fprintf-posix (Depends-on): Add printf-safe.
102734         * modules/printf-posix (Depends-on): Likewise.
102735         * modules/snprintf-posix (Depends-on): Likewise.
102736         * modules/sprintf-posix (Depends-on): Likewise.
102737         * modules/vasnprintf-posix (Depends-on): Likewise.
102738         * modules/vasprintf-posix (Depends-on): Likewise.
102739         * modules/vfprintf-posix (Depends-on): Likewise.
102740         * modules/vprintf-posix (Depends-on): Likewise.
102741         * modules/vsnprintf-posix (Depends-on): Likewise.
102742         * modules/vsprintf-posix (Depends-on): Likewise.
102743         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
102744         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
102745         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
102746         "no" on i386, x86_64, ia64.
102747         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
102748         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102749         on i386, x86_64, ia64.
102750         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
102751         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102752         on i386, x86_64, ia64.
102753         * tests/test-vasnprintf-posix.c: Include float.h.
102754         (LDBL80_WORDS): New macro.
102755         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102756         on i386, x86_64, ia64.
102757         * tests/test-vasprintf-posix.c: Include float.h.
102758         (LDBL80_WORDS): New macro.
102759         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102760         on i386, x86_64, ia64.
102761         * tests/test-snprintf-posix.c: Include float.h.
102762         * tests/test-sprintf-posix.c: Likewise.
102763         * tests/test-vsnprintf-posix.c: Likewise.
102764         * tests/test-vsprintf-posix.c: Likewise.
102766 2007-06-05  Bruno Haible  <bruno@clisp.org>
102768         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
102769         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
102770         non-IEEE numbers on i386, x86_64, ia64.
102771         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
102772         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
102773         * tests/test-isnanl.h: Include float.h.
102774         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
102776 2007-06-05  Bruno Haible  <bruno@clisp.org>
102778         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
102779         also the %a / %A. Handle the %a / %A code before this extra handling.
102781 2007-06-05  Bruno Haible  <bruno@clisp.org>
102783         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
102784         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
102786 2007-06-05  Bruno Haible  <bruno@clisp.org>
102788         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
102789         typo in variable name.
102791 2007-06-05  Eric Blake  <ebb9@byu.net>
102793         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
102794         Reported by Simon Josefsson.
102796 2007-06-04  Bruno Haible  <bruno@clisp.org>
102798         Avoid test failures on some PowerPC platforms.
102799         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
102800         Define differently for PowerPC.
102801         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
102802         Reported by Gary V. Vaughan <gary@gnu.org>.
102804 2007-06-02  Bruno Haible  <bruno@clisp.org>
102806         Fix test-stdint failure on FreeBSD/ia64.
102807         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
102808         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
102809         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
102810         * doc/headers/stdint.texi: Update.
102812 2007-06-01  Bruno Haible  <bruno@clisp.org>
102814         * tests/test-binary-io.c (main): Pass a third argument to open().
102815         Reported by Gary V. Vaughan <gary@gnu.org>.
102817 2007-06-01  Bruno Haible  <bruno@clisp.org>
102819         * doc/functions/frexpl.texi: Update for mingw.
102821 2007-06-01  Bruno Haible  <bruno@clisp.org>
102823         * tests/test-lseek.c (main): Disable test of errno for invalid third
102824         argument.
102825         * doc/functions/lseek.texi: Update.
102826         Reported by Gary V. Vaughan <gary@gnu.org>.
102828 2007-05-28  Bruno Haible  <bruno@clisp.org>
102830         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
102832 2007-05-31  Eric Blake  <ebb9@byu.net>
102834         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
102835         cross compiling.
102837 2007-05-30  Eric Blake  <ebb9@byu.net>
102838         and Bruno Haible  <bruno@clisp.org>
102840         Work around mingw test failures exposed by m4-1.4.9b.
102841         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
102842         * tests/test-unistd.c: Disable uid_t and git_t tests for the
102843         moment.
102845 2007-05-30  Bruno Haible  <bruno@clisp.org>
102847         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
102848         assuming that they are closed. Needed on HP-UX 11.
102850 2007-05-29  Bruno Haible  <bruno@clisp.org>
102852         Fix a problem with #include_next.
102853         * lib/dirent_.h: Split the double-inclusion guard.
102854         * lib/fcntl_.h: Likewise.
102855         * lib/float_.h: Likewise.
102856         * lib/iconv_.h: Likewise.
102857         * lib/inttypes_.h: Likewise.
102858         * lib/locale_.h: Likewise.
102859         * lib/math_.h: Likewise.
102860         * lib/netinet_in_.h: Likewise.
102861         * lib/search_.h: Likewise.
102862         * lib/signal_.h: Likewise.
102863         * lib/stdint_.h: Likewise.
102864         * lib/stdio_.h: Likewise.
102865         * lib/stdlib_.h: Likewise.
102866         * lib/string_.h: Likewise.
102867         * lib/sys_select_.h: Likewise.
102868         * lib/sys_socket_.h: Likewise.
102869         * lib/sys_stat_.h: Likewise.
102870         * lib/sys_time_.h: Likewise.
102871         * lib/sysexits_.h: Likewise.
102872         * lib/time_.h: Likewise.
102873         * lib/unistd_.h: Likewise.
102874         * lib/wchar_.h: Likewise.
102875         * lib/wctype_.h: Likewise.
102877 2007-05-29  Bruno Haible  <bruno@clisp.org>
102879         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
102880         for the moment.
102882 2007-05-29  Bruno Haible  <bruno@clisp.org>
102884         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
102885         invocation.
102886         Reported by Eric Blake.
102888 2007-05-29  Bruno Haible  <bruno@clisp.org>
102890         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
102891         compiling case.
102893 2007-05-29  Eric Blake  <ebb9@byu.net>
102894             Bruno Haible  <bruno@clisp.org>
102896         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
102897         cross compiles.
102899 2007-05-28  Eric Blake  <ebb9@byu.net>
102901         * modules/closein-tests (test_closein_LDADD): Support test on
102902         cygwin with libtool.
102904 2007-05-28  Bruno Haible  <bruno@clisp.org>
102906         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
102907         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
102908         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
102909         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
102910         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
102911         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
102912         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
102913         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
102914         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
102916 2007-05-28  Eric Blake  <ebb9@byu.net>
102918         Unconditionally include <config.h> in unit tests.
102919         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
102920         * tests/test-allocsa.c, tests/test-arcfour.c,
102921         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
102922         tests/test-array_list.c, tests/test-array_oset.c,
102923         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
102924         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
102925         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
102926         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
102927         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
102928         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
102929         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
102930         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
102931         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
102932         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
102933         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
102934         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
102935         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
102936         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
102937         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
102938         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
102939         test-md5.c, test-memmem.c, test-printf-posix.c,
102940         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
102941         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
102942         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
102943         test-strcasestr.c, test-striconv.c, test-striconveh.c,
102944         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
102945         test-vasnprintf-posix2.c, test-vasnprintf.c,
102946         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
102947         test-vfprintf-posix.c, test-vprintf-posix.c,
102948         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
102949         test-xvasprintf.c: Likewise.
102951 2007-05-28  Bruno Haible  <bruno@clisp.org>
102953         * gnulib-tool (func_import): Remember the --with-tests command-line
102954         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
102955         Reported by Eric Blake.
102957 2007-05-28  Bruno Haible  <bruno@clisp.org>
102959         * modules/ftell-tests: New file.
102960         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
102961         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
102963         * lib/ftell.c: New file.
102964         * modules/ftell: New file.
102965         * m4/ftell.m4: New file.
102966         * doc/functions/ftell.texi: Update.
102967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
102968         REPLACE_FTELL.
102969         * lib/stdio_.h (rpl_ftell): New declaration.
102970         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
102971         REPLACE_FTELL.
102973 2007-05-28  Eric Blake  <ebb9@byu.net>
102975         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
102977 2007-05-28  Bruno Haible  <bruno@clisp.org>
102979         * modules/fseek-tests: New file.
102980         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
102981         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
102983         * lib/fseek.c: New file.
102984         * modules/fseek: New file.
102985         * m4/fseek.m4: New file.
102986         * doc/functions/fseek.texi: Update.
102987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
102988         REPLACE_FSEEK.
102989         * lib/stdio_.h (rpl_fseek): New declaration.
102990         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
102991         REPLACE_FSEEK.
102993 2007-05-28  Bruno Haible  <bruno@clisp.org>
102995         * lib/stdio_.h (fflush): More comments.
102997 2007-05-28  Bruno Haible  <bruno@clisp.org>
102999         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
103000         runtime test.
103002 2007-05-28  Eric Blake  <ebb9@byu.net>
103004         Improve lseek module.
103005         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
103006         * lib/unistd_.h (lseek): Scale back link warning message.
103007         * tests/test-lseek.c: Beef up test.
103008         * tests/test-lseek.sh: Exercise more facets of lseek.
103009         Reported by Bruno Haible.
103011 2007-05-28  Bruno Haible  <bruno@clisp.org>
103013         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
103014         to define.
103016 2007-05-27  Bruno Haible  <bruno@clisp.org>
103018         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
103020 2007-05-27  Bruno Haible  <bruno@clisp.org>
103022         * modules/openmp: New file.
103023         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
103024         Noah Misch.
103026 2007-05-26  Bruno Haible  <bruno@clisp.org>
103028         * modules/chdir-long (Depends-on): Add fchdir.
103029         * modules/chdir-safer (Depends-on): Likewise.
103030         * modules/fts (Depends-on): Likewise.
103031         * modules/fts-lgpl (Depends-on): Likewise.
103032         * modules/openat (Depends-on): Likewise.
103033         * modules/savewd (Depends-on): Likewise.
103035 2007-05-24  Eric Blake  <ebb9@byu.net>
103037         Fix lseek on mingw.
103038         * modules/lseek: New module.
103039         * m4/lseek.m4: New file.
103040         * lib/lseek.c: New file.
103041         * modules/lseek-tests: New file.
103042         * tests/test-lseek.c: New file.
103043         * tests/test-lseek.sh: New file.
103044         * MODULES.html.sh: Document lseek module.
103045         * modules/fflush (Depends-on): Add lseek, fseeko.
103046         * modules/fseeko (Depends-on): Likewise.
103047         * modules/ftello (Depends-on): Likewise.
103048         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
103049         broken.
103050         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
103051         broken.
103052         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
103053         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
103054         * lib/ftello.c (rpl_ftello): Likewise.
103055         * tests/test-fseeko.c (main): Test this.
103056         * tests/test-fseeko.sh: Likewise.
103057         * tests/test-ftello.c (main): Likewise.
103058         * tests/test-ftello.sh: Likewise.
103059         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
103060         implies replacing fseek.
103061         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
103062         HAVE_FTELLO.
103063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
103064         * modules/unistd (Makefile.am): Likewise.
103065         * lib/unistd_.h (lseek): Declare a replacement.
103066         * doc/functions/lseek.texi (lseek): Document this fix.
103067         * doc/functions/fseek.texi (fseek): Likewise.
103068         * doc/functions/ftell.texi (ftell): Likewise.
103070 2007-05-24  Bruno Haible  <bruno@clisp.org>
103072         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
103073         in the printed representation of a NaN.
103074         * tests/test-vasprintf-posix.c (test_function): Likewise.
103075         * tests/test-snprintf-posix.h (test_function): Likewise.
103076         * tests/test-sprintf-posix.h (test_function): Likewise.
103077         Reported by Eric Blake.
103079 2007-05-23  Eric Blake  <ebb9@byu.net>
103081         Fix fseeko/ftello on cygwin 1.5.24.
103082         * doc/functions/fseeko.texi (fseeko): Document the fix.
103083         * doc/functions/ftello.texi (ftello): Document the fix.
103084         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
103085         * doc/functions/stdout.text (stdout): New file.
103086         * doc/functions/stderr.text (stderr): New file.
103087         * doc/gnulib.texi (Function Substitutes): Use new files.
103088         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
103089         prior to 1.7.0.
103090         * tests/test-ftello.c (main): Likewise for ftello.
103091         * tests/test-fseeko.sh: New file.
103092         * tests/test-ftello.sh: New file.
103093         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
103094         with seekable stdin.
103095         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
103096         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
103097         (gl_REPLACE_FSEEKO): New macro.
103098         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
103099         * modules/fseeko (Files): Distribute fseeko.c.
103100         * modules/ftello (Files): Distribute ftello.c.
103101         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
103102         mode.
103103         * lib/ftello.c (rpl_ftello): New file.
103104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
103105         fseeko, ftello.
103106         (gl_STDIN_LARGE_OFFSET): New macro.
103107         * modules/stdio (Makefile.am): Perform the replacement.
103108         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
103110 2007-05-23  Bruno Haible  <bruno@clisp.org>
103112         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
103113         GNULIB_POSIXCHECK is defined.
103115 2007-05-21  Bruno Haible  <bruno@clisp.org>
103117         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
103118         Check also the output for NaN arguments. When cross-compiling, guess
103119         no on IRIX.
103120         * lib/vasnprintf.c: Update comments.
103121         * tests/test-vasnprintf-posix.c (strisnan): New function.
103122         (test_function): Use it.
103123         * tests/test-vasprintf-posix.c (strisnan): New function.
103124         (test_function): Use it.
103125         * tests/test-snprintf-posix.h (strisnan): New function.
103126         (test_function): Use it.
103127         * tests/test-sprintf-posix.h (strisnan): New function.
103128         (test_function): Use it.
103129         Reported by Eric Blake.
103131 2007-05-20  Bruno Haible  <bruno@clisp.org>
103133         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
103134         numbers that fails on BeOS.
103135         * doc/functions/frexpl.texi: Update.
103137 2007-05-20  Jim Meyering  <jim@meyering.net>
103139         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
103140         forced upon us by glibc-2.6.
103142 2007-05-20  Bruno Haible  <bruno@clisp.org>
103144         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
103145         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
103146         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
103147         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
103148         NEED_PRINTF_INFINITE.
103149         (is_infinitel): New function.
103150         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
103151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
103152         gl_PREREQ_VASNPRINTF_INFINITE.
103153         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
103154         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103155         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
103156         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
103157         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
103158         gl_PREREQ_VASNPRINTF_INFINITE.
103159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103166         * doc/functions/fprintf.texi: Update.
103167         * doc/functions/printf.texi: Update.
103168         * doc/functions/snprintf.texi: Update.
103169         * doc/functions/sprintf.texi: Update.
103170         * doc/functions/vfprintf.texi: Update.
103171         * doc/functions/vprintf.texi: Update.
103172         * doc/functions/vsnprintf.texi: Update.
103173         * doc/functions/vsprintf.texi: Update.
103175 2007-05-20  Bruno Haible  <bruno@clisp.org>
103177         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
103178         was not found in libc.
103179         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
103181 2007-05-20  Bruno Haible  <bruno@clisp.org>
103183         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103184         printed as "-nan" instead of "nan".
103185         * tests/test-vasprintf-posix.c (test_function): Likewise.
103186         * tests/test-snprintf-posix.h (test_function): Likewise.
103187         * tests/test-sprintf-posix.h (test_function): Likewise.
103188         Needed for HP-UX 11.
103190 2007-05-20  Jim Meyering  <jim@meyering.net>
103192         Fix buggy test for the fchownat-deref bug.
103193         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
103194         symlink required for the run-test.  Without it, this test would
103195         always declare that fchownat doesn't work, and client code would
103196         unnecessarily use the replacement function with fixed libc.
103197         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
103198         Reported by Greg Schafer.
103200 2007-05-19  Bruno Haible  <bruno@clisp.org>
103202         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
103203         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
103204         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
103205         Needed for IRIX 6.5 and Solaris 2.5.1.
103207 2007-05-19  Bruno Haible  <bruno@clisp.org>
103209         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
103210         (test_function): Skip tests involving -0.0 on platforms where
103211         -0.0 = 0.0.
103212         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
103213         (test_function): Skip tests involving -0.0 on platforms where
103214         -0.0 = 0.0.
103215         * tests/test-snprintf-posix.h (have_minus_zero): New function.
103216         (test_function): Skip tests involving -0.0 on platforms where
103217         -0.0 = 0.0.
103218         * tests/test-sprintf-posix.h (have_minus_zero): New function.
103219         (test_function): Skip tests involving -0.0 on platforms where
103220         -0.0 = 0.0.
103221         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
103222         tests.
103223         * tests/test-printf-posix.h (test_function): Likewise.
103224         * tests/test-printf-posix.output: Remove all -0.0 related results.
103225         Needed for IRIX 6.5.
103227 2007-05-19  Bruno Haible  <bruno@clisp.org>
103229         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103230         printed as "nan0x7fffffff" instead of "nan".
103231         * tests/test-vasprintf-posix.c (test_function): Likewise.
103232         * tests/test-snprintf-posix.h (test_function): Likewise.
103233         * tests/test-sprintf-posix.h (test_function): Likewise.
103234         * tests/test-fprintf-posix.h (NaN): Remove macro.
103235         (test_function): Remove all NaN related tests.
103236         * tests/test-printf-posix.h (NaN): Remove macro.
103237         (test_function): Remove all NaN related tests.
103238         * tests/test-printf-posix.output: Remove all NaN related results.
103239         Needed for IRIX 6.5.
103241 2007-05-19  Bruno Haible  <bruno@clisp.org>
103243         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
103244         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
103246 2007-05-19  Bruno Haible  <bruno@clisp.org>
103248         * lib/float_.h: New file.
103249         * m4/float_h.m4: New file.
103250         * modules/float: New file.
103251         * modules/isnanl (Dependencies): Add float.
103252         * modules/isnanl-nolibm (Dependencies): Likewise.
103253         * modules/mathl (Dependencies): Likewise.
103254         * modules/printf-frexpl (Dependencies): Likewise.
103255         * modules/signbit (Dependencies): Likewise.
103256         * modules/vasnprintf (Dependencies): Likewise.
103257         * doc/headers/float.texi: Update.
103259 2007-05-19  Jim Meyering  <jim@meyering.net>
103261         * lib/utimens.c (gl_futimens): Rename from futimens,
103262         now that glibc-2.6 declares futimens.
103263         * lib/utimens.h: Likewise.
103265 2007-05-19  Bruno Haible  <bruno@clisp.org>
103267         Avoid test failures on mingw.
103268         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
103269         * tests/test-printf-posix.sh: Likewise.
103270         * tests/test-vfprintf-posix.sh: Likewise.
103271         * tests/test-vprintf-posix.sh: Likewise.
103273 2007-05-19  Bruno Haible  <bruno@clisp.org>
103275         Fix *printf result for NaN, Inf, -0.0 on mingw.
103276         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
103277         * lib/vasnprintf.c: Include math.h and isnan.h.
103278         (is_infinite_or_zero): New function.
103279         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
103280         values in the %f, %F, %e, %E, %g, %G directives.
103281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
103282         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103283         gl_PRINTF_INFINITE and test its result. Invoke
103284         gl_PREREQ_VASNPRINTF_INFINITE.
103285         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103286         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103292         * doc/functions/fprintf.texi: Update.
103293         * doc/functions/printf.texi: Update.
103294         * doc/functions/snprintf.texi: Update.
103295         * doc/functions/sprintf.texi: Update.
103296         * doc/functions/vfprintf.texi: Update.
103297         * doc/functions/vprintf.texi: Update.
103298         * doc/functions/vsnprintf.texi: Update.
103299         * doc/functions/vsprintf.texi: Update.
103301 2007-05-19  Bruno Haible  <bruno@clisp.org>
103303         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
103304         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
103305         Instead of multiplying with 10^k, set extra_zeroes to k.
103306         (scale10_round_long_double): Remove function.
103308 2007-05-18  Bruno Haible  <bruno@clisp.org>
103310         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
103311         introduced on 2007-05-06.
103313 2007-05-18  Bruno Haible  <bruno@clisp.org>
103315         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
103316         %g directives.
103317         * tests/test-vasprintf-posix.c (test_function): Likewise.
103318         * tests/test-snprintf-posix.h (test_function): Likewise.
103319         * tests/test-sprintf-posix.h (test_function): Likewise.
103321 2007-05-18  Bruno Haible  <bruno@clisp.org>
103323         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
103324         (strmatch): New function.
103325         (test_function): Test the %f directive on numbers of various exponents.
103326         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
103327         (strmatch): New function.
103328         (test_function): Test the %f directive on numbers of various exponents.
103329         * tests/test-snprintf-posix.h (strmatch): New function.
103330         (test_function): Test the %f directive on numbers of various exponents.
103331         * tests/test-sprintf-posix.h (strmatch): New function.
103332         (test_function): Test the %f directive on numbers of various exponents.
103333         * tests/test-snprintf-posix.c (SIZEOF): New macro.
103334         * tests/test-sprintf-posix.c (SIZEOF): New macro.
103335         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
103336         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
103338 2007-05-18  Bruno Haible  <bruno@clisp.org>
103340         Add support for 'long double' number output.
103341         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
103342         * lib/vasnprintf.c: Include math.h and float+.h.
103343         (mp_limb_t): New type.
103344         (GMP_LIMB_BITS): New macro.
103345         (mp_twolimb_t): New type.
103346         (GMP_TWOLIMB_BITS): New macro.
103347         (mpn_t): New type.
103348         (multiply, divide, convert_to_decimal, decode_long_double,
103349         scale10_round_long_double, scale10_round_decimal_long_double,
103350         floorlog10l): New functions.
103351         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
103352         for the %f, %F, %e, %E, %g, %G directives.
103353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
103354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103355         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
103356         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
103357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103364         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
103365         * modules/snprintf-posix (Depends-on): Likewise.
103366         * modules/sprintf-posix (Depends-on): Likewise.
103367         * modules/vasnprintf-posix (Depends-on): Likewise.
103368         * modules/vasprintf-posix (Depends-on): Likewise.
103369         * modules/vfprintf-posix (Depends-on): Likewise.
103370         * modules/vsnprintf-posix (Depends-on): Likewise.
103371         * modules/vsprintf-posix (Depends-on): Likewise.
103372         * modules/vasnprintf (Files): Add lib/float+.h.
103373         * doc/functions/fprintf.texi: Update.
103374         * doc/functions/printf.texi: Update.
103375         * doc/functions/snprintf.texi: Update.
103376         * doc/functions/sprintf.texi: Update.
103377         * doc/functions/vfprintf.texi: Update.
103378         * doc/functions/vprintf.texi: Update.
103379         * doc/functions/vsnprintf.texi: Update.
103380         * doc/functions/vsprintf.texi: Update.
103382 2007-05-18  Bruno Haible  <bruno@clisp.org>
103384         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
103386 2007-05-18  Bruno Haible  <bruno@clisp.org>
103388         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
103389         for printing 64-bit integers. Needed for mingw.
103391 2007-05-18  Bruno Haible  <bruno@clisp.org>
103393         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
103394         gl_FUNC_FREXPL_WORKS.
103395         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
103397 2007-05-18  Bruno Haible  <bruno@clisp.org>
103399         * modules/frexpl-nolibm-tests: New file.
103401         * modules/frexpl-nolibm: New file.
103402         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
103404 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103406         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
103407         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103408         GCC 4.2, which otherwise issues a lot of warnings.
103409         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
103410         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
103411         Likewise.
103412         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
103413         * modules/iconv_open (iconv.h): Likewise.
103414         * modules/locale (locale.h): Likewise.
103415         * modules/netinet_in (netinet/in.h): Likewise.
103416         * modules/sys_select (sys_select.h): Likewise.
103417         * modules/sys_socket (sys/socket.h): Likewise.
103418         * modules/sys_stat (sys/stat.h): Likewise.
103419         * modules/sysexits (sysexits.h): Likewise.
103420         * modules/unistd (unistd.h): Likewise.
103422 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103424         * modules/closein-tests (Makefile.am): Distribute
103425         `test-closein.sh'.
103427 2007-05-17  Bruno Haible  <bruno@clisp.org>
103429         * tests/test-printf-posix.output: Renamed from
103430         tests/test-fprintf-posix.out.
103431         * modules/fprintf-posix-tests: Update.
103432         * modules/printf-posix-tests: Update.
103433         * modules/vfprintf-posix-tests: Update.
103434         * modules/vprintf-posix-tests: Update.
103435         * tests/test-fprintf-posix.sh: Update.
103436         * tests/test-printf-posix.sh: Update.
103437         * tests/test-vfprintf-posix.sh: Update.
103438         * tests/test-vprintf-posix.sh: Update.
103439         Reported by Ralf Wildenhues.
103441 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103443         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
103444         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103445         GCC 4.2, which otherwise issues a lot of warnings.
103446         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
103447         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
103448         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
103449         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
103450         it should no longer be needed.
103451         * lib/string_.h: Likewise.
103452         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
103453         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
103454         * modules/inttypes (inttypes.h): Likewise.
103455         * modules/math (math.h): Likewise.
103456         * modules/search (search.h): Likewise.
103457         * modules/signal (signal.h): Likewise.
103458         * modules/stdint (stdint.h): Likewise.
103459         * modules/stdio (stdio.h): Likewise.
103460         * modules/stdlib (stdlib.h): Likewise.
103461         * modules/string (string.h): Likewise.
103462         * modules/sys_time (sys/time.h): Likewise.
103463         * modules/time (time.h): Likewise.
103464         * modules/wchar (wchar.h): Likewise.
103465         * modules/wctype (wtype.h): Likewise.
103467 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
103469         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
103471 2007-05-13  Bruno Haible  <bruno@clisp.org>
103473         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
103474         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103475         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
103476         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103477         (gl_PREREQ_STRTOK_R): Don't require it here.
103479 2007-05-13  Bruno Haible  <bruno@clisp.org>
103481         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
103482         when used in C++ mode.
103484 2007-05-12  Bruno Haible  <bruno@clisp.org>
103486         * lib/linebuffer.h: Tweak doc.
103487         * lib/linebuffer.c: Likewise.
103489 2007-05-12  James Youngman  <jay@gnu.org>
103491         * lib/linebuffer.c (readlinebuffer_delim): New function,
103492         like readlinebuffer, but use a caller-specified delimiter.
103493         (readlinebuffer): Just call readlinebuffer_delim with '\n'
103494         as the delimiter.
103495         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
103497 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103499         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
103500         * modules/openat (Files): Remove openat-die.c.
103501         (Depends-on): Add openat-die.
103502         * modules/openat-die: New module.
103504 2007-05-06  Bruno Haible  <bruno@clisp.org>
103506         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
103507         Update with info about Cygwin.
103508         * doc/functions/fprintf.texi: Update.
103509         * doc/functions/printf.texi: Update.
103510         * doc/functions/snprintf.texi: Update.
103511         * doc/functions/sprintf.texi: Update.
103512         * doc/functions/vfprintf.texi: Update.
103513         * doc/functions/vprintf.texi: Update.
103514         * doc/functions/vsnprintf.texi: Update.
103515         * doc/functions/vsprintf.texi: Update.
103516         Reported by Eric Blake.
103518 2007-05-06  Bruno Haible  <bruno@clisp.org>
103520         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
103521         padding ourselves for the floating-point directives.
103522         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
103523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
103524         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103525         gl_PRINTF_FLAG_ZERO and test its result. Invoke
103526         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
103527         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103528         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103529         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103530         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103531         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103533         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103534         * tests/test-snprintf-posix.h (test_function): Also check the width
103535         and some flags in the %f directive.
103536         * tests/test-sprintf-posix.h (test_function): Likewise.
103537         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103538         * tests/test-vasprintf-posix.c (test_function): Likewise.
103539         * doc/functions/fprintf.texi: Update.
103540         * doc/functions/printf.texi: Update.
103541         * doc/functions/snprintf.texi: Update.
103542         * doc/functions/sprintf.texi: Update.
103543         * doc/functions/vfprintf.texi: Update.
103544         * doc/functions/vprintf.texi: Update.
103545         * doc/functions/vsnprintf.texi: Update.
103546         * doc/functions/vsprintf.texi: Update.
103548 2007-05-06  Bruno Haible  <bruno@clisp.org>
103550         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
103551         pass the ' flag character to sprintf or snprintf.
103552         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
103553         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
103554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103555         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
103556         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
103557         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103558         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103559         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103560         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103561         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103564         * tests/test-snprintf-posix.h (test_function): Also check the grouping
103565         flag.
103566         * tests/test-sprintf-posix.h (test_function): Likewise.
103567         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103568         * tests/test-vasprintf-posix.c (test_function): Likewise.
103569         * doc/functions/fprintf.texi: Update.
103570         * doc/functions/printf.texi: Update.
103571         * doc/functions/snprintf.texi: Update.
103572         * doc/functions/sprintf.texi: Update.
103573         * doc/functions/vfprintf.texi: Update.
103574         * doc/functions/vprintf.texi: Update.
103575         * doc/functions/vsnprintf.texi: Update.
103576         * doc/functions/vsprintf.texi: Update.
103578 2007-05-01  Bruno Haible  <bruno@clisp.org>
103580         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
103582 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
103584         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
103585         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
103587 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
103589         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
103590         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
103591         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
103593 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
103595         * lib/argp-help.c (struct hol_entry): New member `ord'.
103596         (HOL_ENTRY_PTRCMP): Use ord for comparison
103597         (hol_sort): Initialize ord.
103599 2007-05-01  Bruno Haible  <bruno@clisp.org>
103601         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
103602         Reported by Eric Blake.
103603         * doc/gnulib.texi (Function Substitutes): Update.
103605 2007-05-01  Bruno Haible  <bruno@clisp.org>
103607         * doc/functions.texi: Remove file, now redundant through
103608         doc/functions/*.texi.
103610 2007-05-01  Bruno Haible  <bruno@clisp.org>
103612         * modules/argp (Depends-on): Add sleep.
103614 2007-05-01  Bruno Haible  <bruno@clisp.org>
103616         * modules/sleep-tests: New file.
103617         * tests/test-sleep.c: New file.
103619         * modules/sleep: New file.
103620         * lib/sleep.c: New file.
103621         * m4/sleep.m4: New file.
103622         * lib/unistd_.h (sleep): New declaration.
103623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
103624         HAVE_SLEEP.
103625         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
103626         * doc/functions/sleep.texi: Document the sleep module.
103628 2007-05-01  Bruno Haible  <bruno@clisp.org>
103630         * lib/sigprocmask.h: Remove file.
103631         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
103632         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
103633         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
103634         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
103635         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
103636         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
103637         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
103638         HAVE_SIGSET_T as a shell variable.
103639         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
103640         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
103641         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
103642         (Depends-on): Add signal. Remove verify.
103643         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
103644         (Include): Mention <signal.h> instead of sigprocmask.h.
103645         * NEWS: Mention the change.
103646         * lib/fatal-signal.c: Don't include sigprocmask.h.
103648 2007-05-01  Bruno Haible  <bruno@clisp.org>
103650         * modules/signal: New file.
103651         * lib/signal_.h: New file.
103652         * m4/signal_h.m4: New file.
103654 2007-05-01  Bruno Haible  <bruno@clisp.org>
103656         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
103657         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
103658         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
103659         HAVE_WCTYPE_CTMP_BUG into wctype.h.
103661 2007-05-01  Bruno Haible  <bruno@clisp.org>
103663         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
103664         configure time.
103665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
103666         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
103667         * modules/sys_stat (Makefile.am): Substitute their values into
103668         sys/stat.h.
103670 2007-05-01  Bruno Haible  <bruno@clisp.org>
103672         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
103673         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
103674         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
103676 2007-05-01  Bruno Haible  <bruno@clisp.org>
103678         * doc/header/assert.texi: Undo last change: don't mention the gnulib
103679         'assert' module here.
103681 2007-05-01  Bruno Haible  <bruno@clisp.org>
103683         * doc/functions/*.texi: New files.
103684         * doc/functions/google-ranking.txt: New file.
103685         * doc/gnulib.texi (Function Substitutes): New chapter.
103686         (ctime, inet_ntoa): Remove sections.
103687         * doc/ctime.texi: Remove file.
103688         * doc/inet_ntoa.texi: Remove file.
103689         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
103690         dependencies.
103691         (%.info): New rule, specifying a --reference-limit.
103693 2007-05-01  Bruno Haible  <bruno@clisp.org>
103695         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
103697 2007-05-01  Bruno Haible  <bruno@clisp.org>
103699         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
103700         the portability of 'mkdir' to mingw systems.
103702 2007-05-01  Bruno Haible  <bruno@clisp.org>
103704         * doc/headers/google-ranking.txt: New file.
103706 2007-04-30  Eric Blake  <ebb9@byu.net>
103708         Prefer fseeko to fseek.
103709         * modules/getpass (Depends-on): Add fseeko.
103710         * lib/getpass.c (getpass): Use fseeko, not fseek.
103712 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
103714         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
103715         assumes the sorting is stable, while most qsort implementations
103716         are not.  Use argument addresses to ensure they never compare as
103717         equal.
103719         * tests/test-argp-2.sh (usage-indent test): Fix output
103720         (func_compare): Restore diff options
103721         * tests/test-argp.c: Restore #include "progname.h"
103723 2007-04-29  Bruno Haible  <bruno@clisp.org>
103725         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
103726         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103727         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
103728         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103729         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
103730         (configure.ac): Define CHECK_SNPRINTF_POSIX.
103731         (TESTS, check_PROGRAMS): Add test-snprintf.
103732         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
103733         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
103734         (TESTS, check_PROGRAMS): Add test-vsnprintf.
103735         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
103736         assertions that fail on HP-UX, OSF/1, or IRIX.
103737         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
103739 2007-04-29  Bruno Haible  <bruno@clisp.org>
103741         * MODULES.html.sh (posix_functions): Remove 'contents'.
103743 2007-04-29  Karl Berry  <karl@gnu.org>
103745         * config/srclist.txt (gendocs_template_min): new entry.
103747 2007-04-29  Bruno Haible  <bruno@clisp.org>
103749         Work around fpurge bug on BSD systems.
103750         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
103751         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
103752         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
103753         fpurge to rpl_fpurge if the system already has this function.
103754         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
103755         the case where the system already has this function. Correct invariants
103756         on BSD systems.
103757         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
103758         BSD systems.
103760 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
103762         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
103763         proposed by Sven Verdoolaege.
103765         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
103766         options.
103767         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
103768         (usage and help tests): Update
103770 2007-04-29  Bruno Haible  <bruno@clisp.org>
103772         * tests/test-fflush.c (main): Use a file of size 17, not 10.
103773         Print more information in case of failure. Disable a test on BeOS.
103775 2007-04-29  Bruno Haible  <bruno@clisp.org>
103777         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
103778         This helps debugging on systems on which no gdb is available.
103780 2007-04-29  Bruno Haible  <bruno@clisp.org>
103782         * lib/freading.h: Improve comments.
103783         * lib/fwriting.h: Likewise.
103784         * tests/test-freading.c (main): Don't check freading immediately after
103785         repositioning. Needed for glibc.
103787 2007-04-29  Bruno Haible  <bruno@clisp.org>
103789         * lib/freading.c (freading): Trivial simplification.
103791 2007-04-28  Bruno Haible  <bruno@clisp.org>
103793         * tests/test-fwriting.c (main): Also test the interaction between
103794         fflush and fwriting.
103795         * modules/fwriting-tests (Depends-on): Add fflush.
103797         * tests/test-freading.c (main): Also test the interaction between
103798         fflush and freading.
103799         * modules/freading-tests (Depends-on): Add fflush.
103801 2007-04-28  Bruno Haible  <bruno@clisp.org>
103803         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
103804         fseeko and ftello.
103805         Suggested by Eric Blake.
103807 2007-04-28  Jim Meyering  <jim@meyering.net>
103809         Avoid false-negative in gl_STDINT_H's C99 conformance test.
103810         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
103811         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
103813 2007-04-27  Eric Blake  <ebb9@byu.net>
103815         * doc/headers/assert.texi (assert.h): Document assert module use.
103817 2007-04-27  Bruno Haible  <bruno@clisp.org>
103819         * doc/headers/*.texi: New files.
103820         * doc/gnulib.texi (Header File Substitutes): New chapter.
103821         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
103822         dependencies.
103823         (standards.info ,standards.html, standards.dvi): Update dependencies.
103824         (mostlyclean, clean): New targets.
103826 2007-04-27  Bruno Haible  <bruno@clisp.org>
103828         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
103829         * modules/sysexits (Files, Makefile.am): Update.
103831         * lib/sys_socket_.h: Renamed from lib/socket_.h.
103832         * modules/sys_socket (Files, Makefile.am): Update.
103834         * lib/sys_stat_.h: Renamed from lib/stat_.h.
103835         * modules/sys_stat (Files, Makefile.am): Update.
103837 2007-04-27  Eric Blake  <ebb9@byu.net>
103839         * lib/freading.h: Improve comments.
103840         * lib/fwriting.h: Likewise.
103841         * lib/fflush.c: Likewise.
103843         Fix closein for mingw.
103844         * modules/closein-tests: Add tests for closein.
103845         * tests/test-closein.c: New file.
103846         * tests/test-closein.sh: Likewise.
103847         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
103848         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
103850 2007-04-27  Bruno Haible  <bruno@clisp.org>
103852         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
103853         version is < 6.
103854         * lib/math_.h [__DECC]: Likewise.
103855         * lib/stdio_.h [__DECC]: Likewise.
103856         * lib/stdlib_.h [__DECC]: Likewise.
103857         * lib/string_.h [__DECC]: Likewise.
103858         * lib/time_.h [__DECC]: Likewise.
103859         * lib/wchar_.h [__DECC]: Likewise.
103860         * lib/wctype_.h [__DECC]: Likewise.
103862 2007-04-27  Bruno Haible  <bruno@clisp.org>
103864         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
103866 2007-04-27  Bruno Haible  <bruno@clisp.org>
103868         * lib/fflush.c: Add comments.
103869         * modules/fpurge-tests (Depends-on): Add fflush.
103870         * modules/freadable-tests (Depends-on): Likewise.
103871         * modules/fwritable-tests (Depends-on): Likewise.
103873 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
103875         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
103876         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
103877         Report by Bruno Haible <bruno@clisp.org>.
103879 2007-04-26  Eric Blake  <ebb9@byu.net>
103881         Fix fflush on mingw.
103882         * modules/fflush (Depends-on): Add freading.
103883         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
103884         but unread data.
103886 2007-04-26  Eric Blake  <ebb9@byu.net>
103887         and Bruno Haible  <bruno@clisp.org>
103889         Implement freading and fwriting.
103890         * lib/freading.c: New file.
103891         * lib/freading.h: Likewise.
103892         * m4/freading.m4: Likewise.
103893         * modules/freading: Likewise.
103894         * modules/freading-tests: Likewise.
103895         * tests/test-freading.c: Likewise.
103896         * lib/fwriting.c: New file.
103897         * lib/fwriting.h: Likewise.
103898         * m4/fwriting.m4: Likewise.
103899         * modules/fwriting: Likewise.
103900         * modules/fwriting-tests: Likewise.
103901         * tests/test-fwriting.c: Likewise.
103902         * MODULES.html.sh (File stream based Input/Output): Mention them.
103904 2007-04-26  Bruno Haible  <bruno@clisp.org>
103906         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
103907         'long' when we assume it.
103908         Suggested by Eric Blake.
103910 2007-04-26  Bruno Haible  <bruno@clisp.org>
103912         Ensure fseeko, ftello are declared on glibc systems.
103913         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
103914         * modules/fseeko (configure.ac-early): Likewise.
103915         * modules/ftello (configure.ac-early): Likewise.
103916         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
103917         AC_FUNC_FSEEKO for this.
103918         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
103919         (gl_CHECK_FSEEKO): Remove macro.
103921 2007-04-26  Bruno Haible  <bruno@clisp.org>
103923         * tests/test-fflush.c (main): Also check the ftell result after
103924         fflush and fseek/fseeko.
103925         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
103926         file descriptor position cache in the stream.
103927         * lib/fseeko.c (rpl_fseeko): Likewise.
103929 2007-04-26  Bruno Haible  <bruno@clisp.org>
103931         * modules/fflush-tests (Depends-on): Add fseeko.
103933 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
103934             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103936         * lib/argz_.h: ensure error_t definition is obtained in same
103937         mechanism system argz.h would have.
103938         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
103939         argz facilities are known bad.  Err on the side of caution if
103940         cross-compiling.
103942 2007-04-25  Eric Blake  <ebb9@byu.net>
103944         * lib/fpurge.c (includes): Use stdlib.h for free.
103945         * tests/test-fflush.c (main): Also test fflush-fseeko.
103947 2007-04-25  Bruno Haible  <bruno@clisp.org>
103949         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
103950         * lib/fseeko.c: New file.
103951         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
103952         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
103953         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
103954         gl_FUNC_FSEEKO.
103955         (gl_FUNC_FSEEKO): Invoke it.
103956         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
103957         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
103958         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
103960 2007-04-25  Bruno Haible  <bruno@clisp.org>
103962         * modules/fflush (Depends-on): Add ftello.
103964 2007-04-25  Bruno Haible  <bruno@clisp.org>
103966         * modules/ftello-tests: New file.
103967         * tests/test-ftello.c: New file.
103969         * modules/ftello: New file.
103970         * m4/ftello.m4: New file.
103971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
103972         HAVE_FTELLO.
103973         * lib/stdio_.h (ftello): New declaration.
103974         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
103975         HAVE_FTELLO.
103977 2007-04-25  Bruno Haible  <bruno@clisp.org>
103979         * modules/fseeko-tests: New file.
103980         * tests/test-fseeko.c: New file.
103982         * modules/fseeko: New file.
103983         * m4/fseeko.m4: New file.
103984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
103985         HAVE_FSEEKO.
103986         * lib/stdio_.h (fseeko): New declaration.
103987         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
103988         HAVE_FSEEKO.
103990 2007-04-25  Bruno Haible  <bruno@clisp.org>
103992         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
103994 2007-04-25  Bruno Haible  <bruno@clisp.org>
103996         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
103997         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
103998         * tests/test-unistd.c: Likewise.
103999         * tests/test-fcntl.c: Likewise.
104001 2007-04-23  Eric Blake  <ebb9@byu.net>
104003         * lib/fflush.c: Fix missing include.
104004         Reported by Bruno Haible.
104006 2007-04-23  Bruno Haible  <bruno@clisp.org>
104008         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
104009         Reported by Eric Blake.
104011 2007-04-23  Bruno Haible  <bruno@clisp.org>
104013         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
104015 2007-04-23  Bruno Haible  <bruno@clisp.org>
104017         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
104019 2007-04-23  Bruno Haible  <bruno@clisp.org>
104021         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
104022         Needed on HP-UX 11.
104024 2007-04-16  Eric Blake  <ebb9@byu.net>
104026         Make fflush rely on fpurge.
104027         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
104028         open coding all variants.
104029         * modules/fflush (Depends-on): Add fpurge and unistd.
104030         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
104031         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
104033         Fix --with-tests compilation on cygwin.
104034         * modules/argmatch-tests (Makefile.am): List gnulib library first
104035         in LDADD.
104036         * modules/argp-tests (Makefile.am): Likewise.
104037         * modules/array-list-tests (Makefile.am): Likewise.
104038         * modules/array-oset-tests (Makefile.am): Likewise.
104039         * modules/avltree-list-tests (Makefile.am): Likewise.
104040         * modules/avltree-oset-tests (Makefile.am): Likewise.
104041         * modules/avltreehash-list-tests (Makefile.am): Likewise.
104042         * modules/carray-list-tests (Makefile.am): Likewise.
104043         * modules/dirname-tests (Makefile.am): Likewise.
104044         * modules/frexp-tests (Makefile.am): Likewise.
104045         * modules/isnanl-tests (Makefile.am): Likewise.
104046         * modules/linked-list-tests (Makefile.am): Likewise.
104047         * modules/linkedhash-list-tests (Makefile.am): Likewise.
104048         * modules/lock-tests (Makefile.am): Likewise.
104049         * modules/rbtree-list-tests (Makefile.am): Likewise.
104050         * modules/rbtree-oset-tests (Makefile.am): Likewise.
104051         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
104052         * modules/tls-tests (Makefile.am): Likewise.
104053         * modules/tsearch-tests (Makefile.am): Likewise.
104054         * modules/xvasprintf-tests (Makefile.am): Likewise.
104056         Fix fpurge for cygwin.
104057         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
104058         value.
104059         * modules/fpurge-tests (Depends-on): Clean up trash.
104061 2007-04-16  Simon Josefsson  <simon@josefsson.org>
104063         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
104065         * m4/autobuild.m4: Re-indent.
104067 2007-04-13  Bruno Haible  <bruno@clisp.org>
104069         * modules/fpurge-tests: New file.
104070         * tests/test-fpurge.c: New file.
104072         * modules/fpurge: New file.
104073         * lib/fpurge.h: New file.
104074         * lib/fpurge.c: New file.
104075         * m4/fpurge.m4: New file.
104077 2007-04-13  Bruno Haible  <bruno@clisp.org>
104079         * modules/fbufmode-tests: New file.
104080         * tests/test-fbufmode.c: New file.
104082         * modules/fbufmode: New file.
104083         * lib/fbufmode.h: New file.
104084         * lib/fbufmode.c: New file.
104085         * m4/fbufmode.m4: New file.
104087 2007-04-13  Bruno Haible  <bruno@clisp.org>
104089         * modules/fwritable-tests: New file.
104090         * tests/test-fwritable.c: New file.
104092         * modules/fwritable: New file.
104093         * lib/fwritable.h: New file.
104094         * lib/fwritable.c: New file.
104095         * m4/fwritable.m4: New file.
104097 2007-04-13  Bruno Haible  <bruno@clisp.org>
104099         * modules/freadable-tests: New file.
104100         * tests/test-freadable.c: New file.
104102         * modules/freadable: New file.
104103         * lib/freadable.h: New file.
104104         * lib/freadable.c: New file.
104105         * m4/freadable.m4: New file.
104107 2007-04-13  Bruno Haible  <bruno@clisp.org>
104109         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
104110         MOSTLYCLEANFILES.
104112 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104114         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
104115         gzip bootstrap.conf to avoid dragging in i18n machinery.
104116         (gnulib_tool_option): Use it.
104118 2007-04-13  Bruno Haible  <bruno@clisp.org>
104120         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
104121         %F directives.
104122         * tests/test-vasprintf-posix.c (test_function): Likewise.
104123         * tests/test-snprintf-posix.h (test_function): Likewise.
104124         * tests/test-sprintf-posix.h (test_function): Likewise.
104125         * tests/test-fprintf-posix.h (test_function): Likewise.
104126         * tests/test-printf-posix.h (test_function): Likewise.
104127         * tests/test-fprintf-posix.out: Likewise.
104129 2007-04-13  Bruno Haible  <bruno@clisp.org>
104131         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
104132         * modules/tls-tests (configure.ac): Likewise.
104133         Reported by Arto C. Nirkko <anirkko@insel.ch>.
104135 2007-04-13  Bruno Haible  <bruno@clisp.org>
104137         * lib/tls.c (glthread_tls_get): Fix return type.
104138         Patch by Arto C. Nirkko <anirkko@insel.ch>.
104140 2007-04-12  Eric Blake  <ebb9@byu.net>
104142         * modules/gettime (Depends-on): Remove gettime.
104143         Reported by Dmitry V. Levin.
104145 2007-04-12  Bruno Haible  <bruno@clisp.org>
104147         * modules/fflush (Include): Mention <stdio.h>.
104148         * modules/strtoimax (Include): Mention <inttypes.h>.
104149         * modules/strtoumax (Include): Likewise.
104151 2007-04-12  Eric Blake  <ebb9@byu.net>
104153         * .cvsignore: New file.
104154         * .gitignore: Likewise.
104156 2007-04-12  Bruno Haible  <bruno@clisp.org>
104158         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
104159         not before, since $(LDADD) often contains libgnu.a.
104160         * modules/striconv-tests (test_striconv_LDADD): Likewise.
104161         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
104162         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
104163         Needed on Cygwin.
104165 2007-04-12  Eric Blake  <ebb9@byu.net>
104167         Work around glibc's failure to flush stdin on fclose.
104168         * lib/closein.c (close_stdin): Flush stdin before closing.
104170         Work around glibc's failure to reset seekable stdin on exit.
104171         * modules/closein: New module.
104172         * lib/closein.c: New file.
104173         * lib/closein.h: Likewise.
104174         * m4/closein.m4: Likewise.
104175         * MODULES.html.sh (File stream based Input/Output): Document it.
104177 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104179         * gnulib-tool: Rename generated 'autobuild' script to
104180         'do-autobuild' in --create-megatestdir output.
104182         * doc/gnulib.texi (Build robot for gnulib): Fix.
104184 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104186         * modules/sysexits (Depends-on): Add absolute-header.
104188 2007-04-12  Eric Blake  <ebb9@byu.net>
104190         No need to preserve errno on success.
104191         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
104192         Reported by Bruno Haible.
104194 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104196         * MODULES.html.sh (Support for maintaining and releasing
104197         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
104199 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104201         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
104203 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104205         * modules/autobuild: New module.
104207         * m4/autobuild.m4: New file.
104209 2007-04-11  Bruno Haible  <bruno@clisp.org>
104211         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
104212         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
104213         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
104214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
104215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
104222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
104225         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104226         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104227         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
104228         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104229         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104230         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
104231         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104232         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
104234         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104235         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104236         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
104237         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104238         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104239         Reported by Eric Blake.
104241 2007-04-11  Bruno Haible  <bruno@clisp.org>
104243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
104245 2007-04-10  Bruno Haible  <bruno@clisp.org>
104247         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
104248         for NaN and Infinity. Needed on FreeBSD 6.1.
104249         * tests/test-vasnprintf-posix.c (test_function): Undo last change
104250         regarding results for "%010a" of Infinity and NaN.
104251         * tests/test-vasprintf-posix.c (test_function): Likewise.
104252         * tests/test-snprintf-posix.h (test_function): Likewise.
104253         * tests/test-sprintf-posix.h (test_function): Likewise.
104254         * tests/test-fprintf-posix.h (test_function): Likewise.
104255         * tests/test-printf-posix.h (test_function): Likewise.
104256         * tests/test-fprintf-posix.out: Likewise.
104258 2007-04-10  Bruno Haible  <bruno@clisp.org>
104260         * modules/locale-tests: New file.
104261         * tests/test-locale.c: New file.
104263         * modules/locale: New file.
104264         * lib/locale_.h: New file.
104265         * m4/locale_h.m4: New file.
104267 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
104268             Bruno Haible  <bruno@clisp.org>
104270         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
104271         be determined, test for availability of the copysignf, copysign,
104272         copysignl functions.
104273         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
104274         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
104275         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
104277 2007-04-09  Eric Blake  <ebb9@byu.net>
104279         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
104280         * modules/stdio (Makefile.am): Support fflush.
104281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
104282         * modules/fflush: New file.
104283         * lib/fflush.c: Likewise.
104284         * m4/fflush.m4: Likewise.
104285         * modules/fflush-tests: New test.
104286         * tests/test-fflush.c: Likewise.
104287         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
104289 2007-04-06  Bruno Haible  <bruno@clisp.org>
104291         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
104292         (VASNPRINTF): Use signbit for faster determination whether to print a
104293         minus sign.
104294         * modules/vasnprintf (Files): Remove lib/float+.h.
104295         * modules/fprintf-posix (Depends-on): Add signbit.
104296         * modules/snprintf-posix (Depends-on): Likewise.
104297         * modules/sprintf-posix (Depends-on): Likewise.
104298         * modules/vasnprintf-posix (Depends-on): Likewise.
104299         * modules/vasprintf-posix (Depends-on): Likewise.
104300         * modules/vfprintf-posix (Depends-on): Likewise.
104301         * modules/vsnprintf-posix (Depends-on): Likewise.
104302         * modules/vsprintf-posix (Depends-on): Likewise.
104304 2007-04-06  Bruno Haible  <bruno@clisp.org>
104306         * tests/test-frexp.c (main): Test also the sign bit of zero results.
104307         * tests/test-frexpl.c (main): Likewise.
104308         * tests/test-ldexpl.c (main): Likewise.
104309         * modules/frexp-tests (Depends-on): Add signbit.
104310         * modules/frexpl-tests (Depdends-on): Likewise.
104311         * modules/ldexpl-tests (Depdends-on): Likewise.
104313 2007-04-06  Bruno Haible  <bruno@clisp.org>
104315         * modules/signbit-tests: New file.
104316         * tests/test-signbit.c: New file.
104318         * modules/signbit: New file.
104319         * lib/signbitf.c: New file.
104320         * lib/signbitd.c: New file.
104321         * lib/signbitl.c: New file.
104322         * m4/signbit.m4: New file.
104323         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
104324         (signbit): New macro.
104325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
104326         REPLACE_SIGNBIT.
104327         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
104328         REPLACE_FREXPL into math.h.
104330 2007-04-06  Bruno Haible  <bruno@clisp.org>
104332         * modules/isnanf-nolibm-tests: New file.
104333         * tests/test-isnanf.c: New file.
104335         * modules/isnanf-nolibm: New file.
104336         * lib/isnanf.h: New file.
104337         * lib/isnanf.c: New file.
104338         * lib/isnan.c: Consider the USE_FLOAT macro.
104339         * m4/isnanf.m4: New file.
104341 2007-04-06  Bruno Haible  <bruno@clisp.org>
104343         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
104344         (Link): New section.
104346         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
104348 2007-04-06  Bruno Haible  <bruno@clisp.org>
104350         Assume the 'long double' type.
104351         * m4/longdouble.m4: Remove file.
104352         * config/srclist.txt: Don't mention longdouble.m4.
104353         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
104354         * lib/float+.h: Likewise.
104355         * lib/frexp.c: Likewise.
104356         * lib/printf-args.h: Likewise.
104357         * lib/printf-args.c: Likewise.
104358         * lib/printf-frexp.c: Likewise.
104359         * lib/printf-parse.c: Likewise.
104360         * lib/vasnprintf.c: Likewise.
104361         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
104362         * m4/intl.m4: Likewise.
104363         * m4/isnanl.m4: Likewise.
104364         * m4/printf.m4: Likewise.
104365         * m4/printf-frexpl.m4: Likewise.
104366         * m4/vasnprintf.m4: Likewise.
104367         * modules/allocsa (Files): Remove m4/longdouble.m4.
104368         * modules/gettext (Files): Likewise.
104369         * modules/relocatable-prog-wrapper (Files): Likewise.
104370         * modules/vasnprintf (Files): Likewise.
104371         * modules/isnanl (Files): Likewise.
104372         (Include): Simplify.
104373         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
104374         (Include): Simplify.
104375         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
104376         (Include): Simplify.
104377         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
104378         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104379         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
104380         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104381         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104382         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104383         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
104384         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104385         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104386         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104387         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
104388         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104389         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
104390         * tests/test-isnanl.c: Likewise.
104391         * tests/test-snprintf-posix.h: Likewise.
104392         * tests/test-sprintf-posix.h: Likewise.
104393         * tests/test-vasnprintf-posix.c: Likewise.
104394         * tests/test-vasnprintf-posix2.c: Likewise.
104395         * tests/test-vasprintf-posix.c: Likewise.
104397 2007-04-06  Bruno Haible  <bruno@clisp.org>
104399         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
104400         * lib/math_.h [__DECC]: Include the overridden include file through
104401         #include_next, outside the double-inclusion guard.
104402         * lib/stdio_.h [__DECC]: Likewise.
104403         * lib/stdlib_.h [__DECC]: Likewise.
104404         * lib/string_.h [__DECC]: Likewise.
104405         * lib/time_.h [__DECC]: Likewise.
104406         * lib/wchar_.h [__DECC]: Likewise.
104407         * lib/wctype_.h [__DECC]: Likewise.
104408         * lib/inttypes_.h [__DECC]: Likewise.
104409         Reported by Albert Chin <china@thewrittenword.com> in
104410         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
104412 2007-04-04  Eric Blake  <ebb9@byu.net>
104414         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
104415         1.5.x.
104417 2007-04-04  Bruno Haible  <bruno@clisp.org>
104419         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
104420         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
104422 2007-04-04  Bruno Haible  <bruno@clisp.org>
104424         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
104425         results for "%010a" of Infinity and NaN.
104426         * tests/test-vasprintf-posix.c (test_function): Likewise.
104427         * tests/test-snprintf-posix.h (test_function): Likewise.
104428         * tests/test-sprintf-posix.h (test_function): Likewise.
104429         * tests/test-fprintf-posix.h (test_function): Remove these tests.
104430         * tests/test-printf-posix.h (test_function): Likewise.
104431         * tests/test-fprintf-posix.out: Update.
104432         Needed for FreeBSD 6.1.
104434 2007-04-04  Bruno Haible  <bruno@clisp.org>
104436         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
104437         directly used by the gnulib modules nor by gnulib-tool.
104439 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104441         * DEPENDENCIES: Give overall description of version dependency
104442         desirability.  Use more-typical names for apps.
104443         Add shell, coreutils, diffutils, grep, tar, gzip.
104445 2007-04-04  Simon Josefsson  <simon@josefsson.org>
104447         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
104449 2007-04-04  Karl Berry  <karl@gnu.org>
104451         * MODULES.html.sh (func_module): missing '.
104453 2007-04-03  Bruno Haible  <bruno@clisp.org>
104455         * modules/argmatch-tests (Makefile.am): New variable
104456         test_argmatch_LDADD.
104457         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
104458         * modules/array-list-tests (Makefile.am): New variable
104459         test_array_list_LDADD.
104460         * modules/array-oset-tests (Makefile.am): New variable
104461         test_array_oset_LDADD.
104462         * modules/avltree-list-tests (Makefile.am): New variable
104463         test_avltree_list_LDADD.
104464         * modules/avltree-oset-tests (Makefile.am): New variable
104465         test_avltree_oset_LDADD.
104466         * modules/avltreehash-list-tests (Makefile.am): New variable
104467         test_avltreehash_list_LDADD.
104468         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
104469         test_canonicalize_lgpl_LDADD.
104470         * modules/carray-list-tests (Makefile.am): New variable
104471         test_carray_list_LDADD.
104472         * modules/dirname-tests (Makefile.am): New variable
104473         test_dirname_LDADD.
104474         * modules/linked-list-tests (Makefile.am): New variable
104475         test_linked_list_LDADD.
104476         * modules/linkedhash-list-tests (Makefile.am): New variable
104477         test_linkedhash_list_LDADD.
104478         * modules/rbtree-list-tests (Makefile.am): New variable
104479         test_rbtree_list_LDADD.
104480         * modules/rbtree-oset-tests (Makefile.am): New variable
104481         test_rbtree_oset_LDADD.
104482         * modules/rbtreehash-list-tests (Makefile.am): New variable
104483         test_rbtreehash_list_LDADD.
104484         * modules/xvasprintf-tests (Makefile.am): New variable
104485         test_xvasprintf_LDADD.
104486         Reported by Eric Blake.
104488 2007-04-03  Eric Blake  <ebb9@byu.net>
104490         * DEPENDENCIES: Weaken m4 requirements.
104492 2007-04-03  Bruno Haible  <bruno@clisp.org>
104494         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
104495         * modules/isnanl-tests (configure.ac): Likewise.
104497 2007-04-03  Ben Pfaff  <blp@gnu.org>
104499         * modules/iconv_open: Add $(srcdir)/ to source directory
104500         references in Makefile fragments that call gperf, to fix VPATH
104501         builds.
104503 2007-04-03  Bruno Haible  <bruno@clisp.org>
104505         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
104506         * lib/ldexpl.c: Undo last change.
104508 2007-04-03  Bruno Haible  <bruno@clisp.org>
104510         * modules/printf-frexpl (Depends-on): Undo last change.
104511         (Files): Add m4/ldexpl.m4.
104513 2007-04-03  Bruno Haible  <bruno@clisp.org>
104515         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
104516         * modules/isnanl (Link): New section.
104518         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
104519         * modules/frexp (Link): New section.
104521         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
104522         * modules/frexpl (Link): New section.
104524         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
104525         * modules/ldexpl (Link): New section.
104527 2007-04-03  Bruno Haible  <bruno@clisp.org>
104529         * modules/TEMPLATE-EXTENDED: New file.
104530         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
104532 2007-04-03  Bruno Haible  <bruno@clisp.org>
104534         * DEPENDENCIES: New file.
104535         Suggested by Simon Josefsson.
104537 2007-04-03  Bruno Haible  <bruno@clisp.org>
104539         * doc/gnulib.texi: Escape @.
104541 2007-04-03  James Youngman  <jay@gnu.org>
104542         and Paul Eggert  <eggert@cs.ucla.edu>
104544         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
104545         birthtime on all systems that have birthtime, not just those which
104546         use st_birthtimensec rather than st_birthtim.  Putting zero in
104547         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
104548         that the birth time is not available for files on an NFS mount.
104550 2007-04-03  Simon Josefsson  <simon@josefsson.org>
104552         * modules/memxor: Move back from crypto/, suggested by Bruno.
104553         * modules/crypto/hmac-sha1: Fix memxor dependency.
104555         * modules/crypto/gc: Moved from ../.
104557 2007-04-02  Eric Blake  <ebb9@byu.net>
104559         * lib/ldexpl.c (includes): Avoid libm.
104561         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
104563 2007-04-02  Bruno Haible  <bruno@clisp.org>
104565         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
104566         on IRIX.
104568 2007-04-02  Bruno Haible  <bruno@clisp.org>
104570         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
104571         x86 or x86_64 platforms running MacOS X.
104572         Reported by Ryan Schmidt <@ryandesign.com>.
104574 2007-04-02  Bruno Haible  <bruno@clisp.org>
104576         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
104577         i386.
104579 2007-04-01  Simon Josefsson  <simon@josefsson.org>
104581         * modules/crypto/arcfour: Moved from ../.
104582         * modules/crypto/arcfour-tests: Moved from ../.
104583         * modules/crypto/arctwo: Moved from ../.
104584         * modules/crypto/arctwo-tests: Moved from ../.
104585         * modules/crypto/des: Moved from ../.
104586         * modules/crypto/des-tests: Moved from ../.
104587         * modules/crypto/gc-arcfour: Moved from ../.
104588         * modules/crypto/gc-arcfour-tests: Moved from ../.
104589         * modules/crypto/gc-arctwo: Moved from ../.
104590         * modules/crypto/gc-arctwo-tests: Moved from ../.
104591         * modules/crypto/gc-des: Moved from ../.
104592         * modules/crypto/gc-des-tests: Moved from ../.
104593         * modules/crypto/gc-hmac-md5: Moved from ../.
104594         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
104595         * modules/crypto/gc-hmac-sha1: Moved from ../.
104596         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
104597         * modules/crypto/gc-md2: Moved from ../.
104598         * modules/crypto/gc-md2-tests: Moved from ../.
104599         * modules/crypto/gc-md4: Moved from ../.
104600         * modules/crypto/gc-md4-tests: Moved from ../.
104601         * modules/crypto/gc-md5: Moved from ../.
104602         * modules/crypto/gc-md5-tests: Moved from ../.
104603         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
104604         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
104605         * modules/crypto/gc-random: Moved from ../.
104606         * modules/crypto/gc-rijndael: Moved from ../.
104607         * modules/crypto/gc-rijndael-tests: Moved from ../.
104608         * modules/crypto/gc-sha1: Moved from ../.
104609         * modules/crypto/gc-sha1-tests: Moved from ../.
104610         * modules/crypto/gc-tests: Moved from ../.
104611         * modules/crypto/hmac-md5: Moved from ../.
104612         * modules/crypto/hmac-md5-tests: Moved from ../.
104613         * modules/crypto/hmac-sha1: Moved from ../.
104614         * modules/crypto/hmac-sha1-tests: Moved from ../.
104615         * modules/crypto/md2: Moved from ../.
104616         * modules/crypto/md2-tests: Moved from ../.
104617         * modules/crypto/md4: Moved from ../.
104618         * modules/crypto/md4-tests: Moved from ../.
104619         * modules/crypto/md5: Moved from ../.
104620         * modules/crypto/md5-tests: Moved from ../.
104621         * modules/crypto/memxor: Moved from ../.
104622         * modules/crypto/rijndael: Moved from ../.
104623         * modules/crypto/rijndael-tests: Moved from ../.
104624         * modules/crypto/sha1: Moved from ../.
104626 2007-03-30  James Youngman  <jay@gnu.org>
104628         * tests/test-stat-time.c (prepare_test): use chmod() rather than
104629         rename() to change the ctime of a file (because ctime is unaffected
104630         by rename on jfs2 on AIX 5.1).
104631         (main): Start by doing cleanup, in case a previous run failed leaving
104632         test files behind.
104634 2007-03-31  Bruno Haible  <bruno@clisp.org>
104636         Support old proprietary implementations of iconv.
104637         * modules/iconv_open: New file.
104638         * lib/iconv_.h: New file.
104639         * m4/iconv_h.m4: New file.
104640         * lib/iconv_open.c: New file.
104641         * lib/iconv_open-aix.gperf: New file.
104642         * lib/iconv_open-hpux.gperf: New file.
104643         * lib/iconv_open-irix.gperf: New file.
104644         * lib/iconv_open-osf.gperf: New file.
104645         * m4/iconv_open.m4: New file.
104646         * modules/linebreak (Depends-on): Add iconv_open.
104647         * modules/striconv (Depends-on): Likewise.
104648         * modules/striconveh (Depends-on): Likewise.
104649         * modules/unicodeio (Depends-on): Likewise.
104650         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
104651         (iconv_t)(-1).
104652         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
104653         conversion if cd is (iconv_t)(-1).
104654         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
104655         is not possible.
104657 2007-03-31  Bruno Haible  <bruno@clisp.org>
104659         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104660         work on Solaris either. Protect also second use of "autodetect_jp".
104662 2007-03-31  Bruno Haible  <bruno@clisp.org>
104664         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
104665         the function is not present.
104667 2007-03-31  Bruno Haible  <bruno@clisp.org>
104669         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
104670         the function is not present.
104672 2007-03-31  Bruno Haible  <bruno@clisp.org>
104674         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
104675         a bug in HP-UX iconv_open().
104677 2007-03-31  Bruno Haible  <bruno@clisp.org>
104679         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
104680         (Mathematics <math.h>): New section, add fpieee.
104681         (Input/output <stdio.h>): Add fseterr.
104682         (Mathematics <math.h>): New section, add printf-frexp.
104683         (Container data structures): Add sublist.
104684         (Core language properties): Add fpucw, inline.
104685         (Functions for greatest-width integer types <inttypes.h>): Add
104686         imaxabs, imaxdiv, inttypes.
104687         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
104688         isnanl-nolibm, ldexp.
104689         (Mathematics <math.h>): New section, add printf-frexpl.
104690         (Support for systems lacking POSIX:2001): Add fprintf-posix,
104691         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
104692         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
104693         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
104694         (Unicode string functions): Add unistr/u*-mbtoucr.
104695         (Java): Add javacomp-script, javaexec-script.
104696         (C#): Add csharpcomp-script, csharpexec-script.
104697         (Support for building libraries and executables): Add havelib,
104698         relocatable-*.
104699         (Support for maintaining and releasing projects): Renamed from
104700         'Support for maintaining and release projects'. Add announce-gen.
104702 2007-03-31  Bruno Haible  <bruno@clisp.org>
104704         * README: Talk primarily about git.
104705         (git and CVS): Renamed from CVS.
104706         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
104707         gnulib is available through git.
104708         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
104710 2007-03-30  Bruno Haible  <bruno@clisp.org>
104712         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
104713         * lib/poll_.h: Likewise.
104714         * lib/stat_.h: Likewise.
104715         * lib/sys_time_.h: Likewise.
104716         * lib/sysexit_.h: Likewise.
104717         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
104718         * lib/stdbool_.h: Likewise.
104719         * lib/byteswap_.h: Add double-inclusion guard.
104721 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
104723         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
104725 2007-03-30  Karl Berry  <karl@gnu.org>
104727         * config/srclist-update: double space after USA in the license
104728         substitution, since that's how it's usually (?) written.
104730 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
104732         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
104733         reported by Bruno Haible.
104735 2007-03-29  Bruno Haible  <bruno@clisp.org>
104737         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
104738         a bug in AIX iconv().
104740 2007-03-29  Bruno Haible  <bruno@clisp.org>
104742         * modules/ldexpl-tests: New file.
104743         * tests/test-ldexpl.c: New file.
104745 2007-03-29  Bruno Haible  <bruno@clisp.org>
104747         * lib/ldexpl.c: Include fpucw.h.
104748         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
104749         multiplication.
104750         * modules/ldexpl (Depends-on): Add fpucw.
104752 2007-03-29  Bruno Haible  <bruno@clisp.org>
104754         * modules/ldexpl: New file.
104755         * m4/ldexpl.m4: New file.
104756         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
104757         set.
104758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
104759         REPLACE_LDEXPL.
104760         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
104761         REPLACE_LDEXPL.
104762         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104763         gl_FUNC_LDEXPL_WORKS.
104764         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
104765         * modules/mathl (Files): Remove lib/ldexpl.c.
104766         (Depends-on): Add ldexpl.
104768 2007-03-29  Bruno Haible  <bruno@clisp.org>
104770         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
104772 2007-03-29  Bruno Haible  <bruno@clisp.org>
104774         * tests/test-striconveh.c (main): Don't assume that a direct conversion
104775         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
104776         and possibly also HP-UX.
104777         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104778         work on AIX, IRIX, HP-UX, OSF/1.
104779         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
104780         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
104781         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
104782         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
104783         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
104784         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
104786 2007-03-29  Bruno Haible  <bruno@clisp.org>
104788         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
104790 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104792         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
104793         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
104795 2007-03-29  Eric Blake  <ebb9@byu.net>
104797         * lib/acl-internal.h: Remove redundant include.
104798         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
104799         Cygwin when a file is locked.
104801 2007-03-29  Bruno Haible  <bruno@clisp.org>
104803         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
104804         file.
104805         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
104807 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104809         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
104810         try to remove a parent directory if the child couldn't be removed
104811         (except for the first rmdir, which could fail because the child
104812         doesn't exist).  Problem reported by Jeff Blaine in
104813         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
104815 2007-03-28  Bruno Haible  <bruno@clisp.org>
104817         * lib/striconveh.c (utf8conv_carefully): New function.
104818         (mem_cd_iconveh_internal): Invoke it.
104820 2007-03-28  Bruno Haible  <bruno@clisp.org>
104822         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
104823         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
104824         input.
104825         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
104826         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
104827         unistr/u8-uctomb.
104829 2007-03-28  Bruno Haible  <bruno@clisp.org>
104831         * modules/unistr/u8-mbtoucr: New file.
104832         * lib/unistr/u8-mbtoucr.c: New file.
104833         * modules/unistr/u16-mbtoucr: New file.
104834         * lib/unistr/u16-mbtoucr.c: New file.
104835         * modules/unistr/u16-mbtoucr: New file.
104836         * lib/unistr/u16-mbtoucr.c: New file.
104837         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
104839 2007-03-27  Simon Josefsson  <simon@josefsson.org>
104840             Bruno Haible  <bruno@clisp.org>
104842         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
104843         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
104844         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
104846         * m4/stdio_h.m4: Add stubs for vasprintf too.
104848         * modules/stdio: Support vasprintf in sed command.
104850         * modules/vasprintf: Depend on stdio for prototypes.  Remove
104851         vasprintf.h.  Add stdio module indicator.
104853         * lib/stdio_.h: Declare asprintf and vasprintf, based on
104854         vasprintf.h.
104856         * lib/vasprintf.h: File removed.
104858         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
104859         * lib/vasprintf.c: Ditto.
104860         * lib/xvasprintf.c: Ditto.
104861         * tests/test-vasprintf-posix.c: Ditto.
104862         * tests/test-vasprintf.c: Ditto.
104864 2007-03-27  Bruno Haible  <bruno@clisp.org>
104866         Make vasnprintf multithread-safe.
104867         * lib/vasnprintf.c (decimal_point_char): New function.
104868         (VASNPRINTF): Use it.
104869         Suggested by Simon Josefsson.
104871 2007-03-27  Eric Blake  <ebb9@byu.net>
104873         Support sub-second birthtime on cygwin.
104874         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
104875         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
104876         (get_stat_birthtime): Also work with st_birthtim.
104878 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
104880         * lib/stat-time.h (USE_BIRTHTIME): Remove.
104881         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
104882         (get_stat_birthtime_ns): Do not try to use "spare" fields.
104883         (get_stat_birthtime_ns): Simplify compile-time tests.
104884         (get_stat_birthtime): Change the API to look like
104885         get_stat_mtime etc., except return a negative tv_nsec on error.
104886         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
104887         Don't check for "spare" fields.
104888         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
104889         or for struct stat.st_birthtime, as these tests aren't used.
104890         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
104892 2007-03-27  Bruno Haible  <bruno@clisp.org>
104894         * lib/stat-time.h: Include <sys/stat.h>.
104896 2007-03-27  James Youngman  <jay@gnu.org>
104898         * lib/stat-time.h (get_stat_birthtime): New function for
104899           retrieving st_birthtime as provided by UFS2 (hence *BSD).
104900         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
104901           and its variants.
104902         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
104903         * modules/stat-time-test: New file.
104904         * tests/test-stat-time.c: New test, devised by Bruno Haible.
104906 2007-03-26  Bruno Haible  <bruno@clisp.org>
104908         Better support of signalling NaNs.
104909         * lib/atanl.c: Include isnanl.h.
104910         (atanl): Perform test for NaN at the beginning of the function and
104911         through a call to isnanl.
104912         * lib/cosl.c: Include isnanl.h.
104913         (cosl): Perform test for NaN at the beginning of the function and
104914         through a call to isnanl.
104915         * lib/ldexpl.c: Include isnanl.h.
104916         (ldexpl): Perform test for NaN through a call to isnanl.
104917         * lib/logl.c: Include isnanl.h.
104918         (logl): Perform test for NaN at the beginning of the function and
104919         through a call to isnanl.
104920         * lib/sinl.c: Include isnanl.h.
104921         (sinl): Perform test for NaN at the beginning of the function and
104922         through a call to isnanl.
104923         * lib/sqrtl.c: Include isnanl.h.
104924         (sqrtl): Perform test for NaN at the beginning of the function and
104925         through a call to isnanl.
104926         * lib/tanl.c: Include isnanl.h.
104927         (tanl): Perform test for NaN at the beginning of the function and
104928         through a call to isnanl.
104929         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
104930         * modules/mathl (Depends-on): Add isnanl.
104932 2007-03-26  Eric Blake  <ebb9@byu.net>
104934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
104935         regression in logic sense of previous patch.
104937 2007-03-26  Bruno Haible  <bruno@clisp.org>
104939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
104940         unportable shell command "if ! ...".
104941         Reported by Ralf Wildenhues.
104943 2007-03-25  Bruno Haible  <bruno@clisp.org>
104945         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
104946         <sysexits.h> file, and only add EX_CONFIG.
104947         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
104948         absolute file name and whether it is sufficient. Substitute also
104949         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
104950         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
104951         ABSOLUTE_SYSEXITS_H into sysexits.h.
104953 2007-03-25  Bruno Haible  <bruno@clisp.org>
104955         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
104956         hints is NULL.
104958 2007-03-25  Bruno Haible  <bruno@clisp.org>
104960         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
104961         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
104963 2007-03-25  Bruno Haible  <bruno@clisp.org>
104965         * lib/vasnprintf.c: Include langinfo.h.
104966         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
104967         multithread-safe.
104968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
104969         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
104970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
104976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104977         Reported by Simon Josefsson.
104979 2007-03-25  Bruno Haible  <bruno@clisp.org>
104981         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
104982         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
104983         * modules/vasnprintf (Depends-on): Add stdint.
104985 2007-03-25  Bruno Haible  <bruno@clisp.org>
104987         * modules/fpieee: New file.
104988         * m4/fpieee.m4: New file.
104989         * modules/isnan-nolibm (Depends-on): Add fpieee.
104990         * modules/isnanl-nolibm (Depends-on): Add fpieee.
104991         * modules/isnanl (Depends-on): Add fpieee.
104993 2007-03-25  Bruno Haible  <bruno@clisp.org>
104995         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
104997 2007-03-25  Bruno Haible  <bruno@clisp.org>
104999         Avoid test failures on IRIX 6.5.
105000         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
105001         (main): Use it.
105002         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
105003         macros.
105004         (main): Use them.
105006 2007-03-25  Bruno Haible  <bruno@clisp.org>
105008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
105009         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
105010         exists but doesn't work.
105011         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
105012         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
105013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
105014         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
105015         math.h.
105017 2007-03-25  Bruno Haible  <bruno@clisp.org>
105019         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
105020         returns inf. Needed on IRIX 6.5.
105022 2007-03-25  Bruno Haible  <bruno@clisp.org>
105024         * tests/test-frexpl.c: Include isnanl-nolibm.h.
105025         (main): Use isnanl instead of x != x idiom.
105026         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
105028         * tests/test-frexp.c: Include isnan.h.
105029         (main): Use isnan instead of x != x idiom.
105030         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
105032 2007-03-25  Bruno Haible  <bruno@clisp.org>
105034         * tests/test-frexp.c (NaN): New function/macro.
105035         (main): Use it instead of 0.0 / 0.0.
105036         * tests/test-isnan.c (NaN): New function/macro.
105037         (main): Use it instead of 0.0 / 0.0.
105038         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
105039         (test_function): Use it instead of 0.0 / 0.0.
105040         * tests/test-vasprintf-posix.c (NaN): New function/macro.
105041         (test_function): Use it instead of 0.0 / 0.0.
105042         * tests/test-snprintf-posix.h (NaN): New function/macro.
105043         (test_function): Use it instead of 0.0 / 0.0.
105044         * tests/test-sprintf-posix.h (NaN): New function/macro.
105045         (test_function): Use it instead of 0.0 / 0.0.
105046         * tests/test-fprintf-posix.h (NaN): New function/macro.
105047         (test_function): Use it instead of 0.0 / 0.0.
105048         * tests/test-printf-posix.h (NaN): New function/macro.
105049         (test_function): Use it instead of 0.0 / 0.0.
105051         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
105053 2007-03-25  Bruno Haible  <bruno@clisp.org>
105055         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
105057 2007-03-25  Bruno Haible  <bruno@clisp.org>
105059         * lib/regexec.c (merge_state_with_log): Make static.
105061 2007-03-25  Bruno Haible  <bruno@clisp.org>
105063         * lib/trigl.c (kernel_rem_pio2): Make static.
105065 2007-03-25  Bruno Haible  <bruno@clisp.org>
105067         * lib/sincosl.c (sincosl_table): Make static.
105069 2007-03-25  Bruno Haible  <bruno@clisp.org>
105071         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
105072         if the compiler does not support C99.
105074 2007-03-25  Bruno Haible  <bruno@clisp.org>
105076         * modules/time (Makefile.am): Ensure all rule action lines start with a
105077         tab.
105079 2007-03-24  Bruno Haible  <bruno@clisp.org>
105081         * modules/tsearch-tests: New file.
105082         * tests/test-tsearch.sh: New file.
105083         * tests/test-tsearch.c: New file, mostly copied from glibc.
105085         * modules/search-tests: New file.
105086         * tests/test-search.c: New file.
105088         * modules/search: New file.
105089         * lib/search_.h: New file, incorporating lib/tsearch.h.
105090         * m4/search_h.m4: New file.
105091         * lib/tsearch.h: Remove file.
105092         * lib/tsearch.c: Include search.h instead of tsearch.h.
105093         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
105094         HAVE_TSEARCH.
105095         * modules/tsearch (Files): Remove lib/tsearch.h.
105096         (Depends-on): Add search.
105097         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
105098         (Include): Change tsearch.h into search.h.
105100 2007-03-24  Bruno Haible  <bruno@clisp.org>
105102         * modules/fpucw: New file.
105103         * lib/fpucw.h: New file.
105104         * lib/frexp.c: Include fpucw.h.
105105         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105106         (FUNC): Use them.
105107         * lib/printf-frexp.c: Include fpucw.h.
105108         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105109         (FUNC): Use them.
105110         * lib/vasnprintf.c: Include fpucw.h.
105111         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
105112         'long double' calculations.
105113         * tests/test-frexpl.c: Include fpucw.h.
105114         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105115         * tests/test-printf-frexpl.c: Include fpucw.h.
105116         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105117         * modules/frexpl (Depends-on): Add fpucw.
105118         * modules/printf-frexpl (Depends-on): Likewise.
105119         * modules/fprintf-posix (Depends-on): Likewise.
105120         * modules/snprintf-posix (Depends-on): Likewise.
105121         * modules/sprintf-posix (Depends-on): Likewise.
105122         * modules/vasnprintf-posix (Depends-on): Likewise.
105123         * modules/vasprintf-posix (Depends-on): Likewise.
105124         * modules/vfprintf-posix (Depends-on): Likewise.
105125         * modules/vsnprintf-posix (Depends-on): Likewise.
105126         * modules/vsprintf-posix (Depends-on): Likewise.
105127         * modules/frexpl-tests (Depends-on): Likewise.
105128         * modules/printf-frexpl-tests (Depends-on): Likewise.
105130 2007-03-24  Bruno Haible  <bruno@clisp.org>
105132         * lib/float+.h: New file.
105133         * lib/isnan.c: Include float+.h.
105134         (SIZE): New macro.
105135         (FUNC): Compare only SIZE bytes of the value.
105136         * lib/vasnprintf.c: Include float+.h.
105137         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
105138         SIZEOF_LDBL or SIZEOF_DBL bytes.
105139         * modules/isnan-nolibm (Files): Add lib/float+.h.
105140         * modules/isnanl-nolibm (Files): Add lib/float+.h.
105141         * modules/isnanl (Files): Add lib/float+.h.
105142         * modules/vasnprintf (Files): Add lib/float+.h.
105144 2007-03-24  Bruno Haible  <bruno@clisp.org>
105146         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
105147         include isnanl-nolibm.h.
105149 2007-03-24  Bruno Haible  <bruno@clisp.org>
105151         * tests/test-read-file.c (main): Don't produce spurious output for
105152         expected situations. Make the test fail if it encountered unexpected
105153         results.
105155 2007-03-24  Bruno Haible  <bruno@clisp.org>
105157         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
105158         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
105160 2007-03-24  Bruno Haible  <bruno@clisp.org>
105162         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
105164 2007-03-24  Bruno Haible  <bruno@clisp.org>
105166         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
105167         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
105169         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
105170         * modules/utf8-ucs4: Turn into a symbolic link to module
105171         unistr/u8-mbtouc.
105173         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
105174         utf8-ucs4-unsafe.
105175         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
105176         unistr/u8-mbtouc-unsafe.
105178         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
105179         * modules/utf16-ucs4: Turn into a symbolic link to module
105180         unistr/u16-mbtouc.
105182         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
105183         utf16-ucs4-unsafe.
105184         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
105185         unistr/u16-mbtouc-unsafe.
105187         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
105188         * modules/ucs4-utf8: Turn into a symbolic link to module
105189         unistr/u8-ubtomb.
105191         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
105192         * modules/ucs4-utf16: Turn into a symbolic link to module
105193         unistr/u16-ubtomb.
105195 2007-03-24  Bruno Haible  <bruno@clisp.org>
105197         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
105198         Enable the function only if HAVE_INLINE.
105199         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
105200         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105201         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
105202         Enable the function only if HAVE_INLINE.
105203         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
105204         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105205         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
105206         Enable the function only if HAVE_INLINE.
105207         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
105208         Enable the function only if HAVE_INLINE.
105209         * modules/utf8-ucs4: Update.
105210         * modules/utf8-ucs4-unsafe: Update.
105211         * modules/utf16-ucs4: Update.
105212         * modules/utf16-ucs4-unsafe: Update.
105213         * modules/ucs4-utf8: Update.
105214         * modules/ucs4-utf16: Update.
105216 2007-03-24  Bruno Haible  <bruno@clisp.org>
105218         * lib/utf8-ucs4.h: Remove file.
105219         * lib/utf8-ucs4-unsafe.h: Remove file.
105220         * lib/utf16-ucs4.h: Remove file.
105221         * lib/utf16-ucs4-unsafe.h: Remove file.
105222         * lib/ucs4-utf8.h: Remove file.
105223         * lib/ucs4-utf16.h: Remove file.
105224         * lib/unistr.h: Include their previous contents.
105225         * m4/utf-ucs4.m4: Remove file.
105226         * m4/ucs4-utf.m4: Remove file.
105227         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
105228         (Depends-on): Add unistr/base.
105229         (configure.ac): Remove gl_UTF_UCS4.
105230         (Makefile.am): Update.
105231         (Include): Change to unistr.h.
105232         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
105233         (Depends-on): Add unistr/base.
105234         (configure.ac): Remove gl_UTF_UCS4.
105235         (Makefile.am): Update.
105236         (Include): Change to unistr.h.
105237         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
105238         (Depends-on): Add unistr/base.
105239         (configure.ac): Remove gl_UTF_UCS4.
105240         (Makefile.am): Update.
105241         (Include): Change to unistr.h.
105242         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
105243         (Depends-on): Add unistr/base.
105244         (configure.ac): Remove gl_UTF_UCS4.
105245         (Makefile.am): Update.
105246         (Include): Change to unistr.h.
105247         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
105248         (Depends-on): Add unistr/base.
105249         (configure.ac): Remove gl_UCS4_UTF.
105250         (Makefile.am): Update.
105251         (Include): Change to unistr.h.
105252         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
105253         (Depends-on): Add unistr/base.
105254         (configure.ac): Remove gl_UCS4_UTF.
105255         (Makefile.am): Update.
105256         (Include): Change to unistr.h.
105257         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
105258         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
105259         utf8-ucs4-unsafe.h.
105260         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
105261         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
105262         utf16-ucs4-unsafe.h.
105263         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
105264         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
105265         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
105266         * lib/unistr/u8-strchr.c: Likewise.
105267         * lib/unistr/u8-strrchr.c: Likewise.
105268         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
105269         * lib/unistr/u16-strchr.c: Likewise.
105270         * lib/unistr/u16-strrchr.c: Likewise.
105271         * lib/striconveh.c: Update.
105272         * lib/linebreak.c: Update.
105274 2007-03-24  Bruno Haible  <bruno@clisp.org>
105276         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
105277         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
105279 2007-03-22  Bruno Haible  <bruno@clisp.org>
105281         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
105283 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105285         * MODULES.html.sh (File system functions): New module write-any-file.
105286         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
105287         * m4/write-any-file.m4: New files.
105289 2007-03-23  Eric Blake  <ebb9@byu.net>
105291         * gnulib-tool: Rearrange space-tab sequences, since some editors
105292         like to eat them.
105294 2007-03-23  Eric Blake  <ebb9@byu.net>
105296         * lib/version-etc.c (version_etc_va): Update license wording to
105297         be more concise.  Recommended by Richard Stallman.
105299 2007-03-22  Bruno Haible  <bruno@clisp.org>
105301         * lib/poll.c (MSG_PEEK): New fallback definition.
105303 2007-03-22  Bruno Haible  <bruno@clisp.org>
105305         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
105306         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
105307         (main): Update.
105308         Fixes a compilation error on BeOS.
105310 2007-03-22  Bruno Haible  <bruno@clisp.org>
105312         * modules/frexpl-tests: New file.
105313         * tests/test-frexpl.c: New file.
105315         * modules/frexpl: New file.
105316         * m4/frexpl.m4: New file.
105317         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
105318         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
105319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
105320         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
105321         (Depends-on): Add frexpl. Remove isnanl-nolibm.
105322         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
105324 2007-03-22  Bruno Haible  <bruno@clisp.org>
105326         * lib/frexpl.c: Share code with lib/frexp.c.
105327         * modules/mathl (Files): Add lib/frexp.c.
105328         (Depends-on): Add isnanl-nolibm.
105330 2007-03-22  Bruno Haible  <bruno@clisp.org>
105332         * modules/printf-frexp (Files): Add m4/frexp.m4.
105333         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
105334         only if the found frexp function actually works.
105336 2007-03-22  Bruno Haible  <bruno@clisp.org>
105338         * lib/frexp.c: Remove older implementation that uses divisions.
105340 2007-03-21  Bruno Haible  <bruno@clisp.org>
105342         * modules/frexp-tests: New file.
105343         * tests/test-frexp.c: New file.
105345         * modules/frexp: New file.
105346         * lib/frexp.c: New file.
105347         * m4/frexp.m4: New file.
105348         * lib/math_.h (frexp): New declaration.
105349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
105350         REPLACE_FREXP.
105351         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
105353 2007-03-21  Bruno Haible  <bruno@clisp.org>
105355         * modules/isnanl-tests: New file.
105356         * tests/test-isnanl.c: New file.
105358         * modules/isnanl: New file.
105359         * lib/isnanl.h: New file.
105360         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
105361         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
105362         gl_FUNC_ISNANL_WORKS.
105363         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
105364         New macros.
105366 2007-03-21  Bruno Haible  <bruno@clisp.org>
105368         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
105369         lib/isnanl.h.
105370         (Include): Update.
105371         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
105372         * lib/vasnprintf.c: Update.
105373         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
105374         tests/test-isnanl.h, remove tests/test-isnanl.c.
105375         (Makefile.am): Update.
105376         * tests/test-isnanl-nolibm.c: New file.
105377         * tests/test-isnanl.h: New file.
105378         * tests/test-isnanl.c: Remove file.
105380 2007-03-21  Jim Meyering  <jim@meyering.net>
105382         When trying to open ".", treat ESTALE like EACCES.
105383         * lib/savewd.c (savewd_save): Resort to forking not just upon
105384         failure with EACCES, but also when errno is ESTALE.
105386 2007-03-20  Bruno Haible  <bruno@clisp.org>
105388         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
105389         Needed on AIX 5.1. Reported by Matthew Woehlke.
105391 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105393         Suggestions by Bruno Haible:
105394         * lib/acl-internal.h: Include "gettext.h" rather than rolling
105395         our own.
105396         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
105397         * modules/acl (Depends-on): Add gettext.
105399 2007-03-19  Bruno Haible  <bruno@clisp.org>
105401         * modules/iconvme: Remove file.
105402         * lib/iconvme.h: Remove file.
105403         * lib/iconvme.c: Remove file.
105404         * m4/iconvme.m4: Remove file.
105406 2007-03-19  Bruno Haible  <bruno@clisp.org>
105408         * doc/relocatable-maint.texi: Break long shell script line.
105409         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105411 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105413         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
105414         handle file_has_acl.
105415         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
105416         * lib/acl.c: Move header inclusions and related macro defns into
105417         lib/acl-internal.h.
105418         (S_ISLNK): Remove defn, since that's now done for us.
105419         (file_has_acl): Move to lib/file-has-acl.c.
105420         Call acl_trivial if available.  This is the crucial part of the fix.
105421         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
105422         shared within the library.  Rewrite a bit, partly to make it compatible
105423         with the GNU coding style.
105424         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
105425         Remove unnecessary double-quotes.
105426         Don't test for acl_to_text; the build will catch that.
105427         Replace acl_entries if it doesn't exist and it is needed.
105428         Check for -lsec and acl_trivial (as used on Solaris 10).
105429         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
105430         lib/file-has-acl.c.
105431         (Depends-on): Add sys_stat, for S_ISLNK.
105433 2007-03-19  Ben Pfaff  <blp@gnu.org>
105435         * doc/gnulib.texi: Fix typos.
105436         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105438 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105440         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
105441         If size is zero here, buf must be zero.
105443 2007-03-19  Simon Josefsson  <simon@josefsson.org>
105445         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
105446         <bruno@clisp.org>.
105448 2007-03-18  Bruno Haible  <bruno@clisp.org>
105450         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
105451         Suggested by Eric Blake.
105453 2007-03-18  Ben Pfaff  <blp@gnu.org>
105455         * doc/relocatable.texi: Recommend using as prefix a directory
105456         that does not exist and will never be created.  Based on
105457         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
105458         and others.
105460 2007-03-17  Bruno Haible  <bruno@clisp.org>
105462         * lib/fchownat.c: Include lchown.h.
105464 2007-03-17  Bruno Haible  <bruno@clisp.org>
105466         Fix endless loop when the given allocated size was > INT_MAX.
105467         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
105468         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
105469         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
105470         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
105471         * lib/sprintf.c (sprintf): Likewise.
105473 2007-03-17  Bruno Haible  <bruno@clisp.org>
105475         * tests/test-argp-2.sh (func_compare): Output a context diff.
105477 2007-03-17  Bruno Haible  <bruno@clisp.org>
105479         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
105480         locale's decimal-point character.
105482 2007-03-17  Bruno Haible  <bruno@clisp.org>
105484         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
105485         before comparing it. Needed because on some platforms (e.g. x86) a
105486         'long double' occupies less bytes than sizeof (long double).
105488 2007-03-17  Bruno Haible  <bruno@clisp.org>
105490         * tests/test-crc.c (main): Make printf statements 64-bit clean.
105491         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
105492         * tests/test-getaddrinfo.c (simple): Likewise.
105493         * tests/test-read-file.c (main): Likewise.
105495 2007-03-17  Bruno Haible  <bruno@clisp.org>
105497         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
105499 2007-03-17  Bruno Haible  <bruno@clisp.org>
105501         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
105502         unused variable.
105504 2007-03-17  Bruno Haible  <bruno@clisp.org>
105506         * tests/test-c-strcasecmp.c: Include c-strcase.h.
105507         * tests/test-c-strncasecmp.c: Likewise.
105509 2007-03-17  Bruno Haible  <bruno@clisp.org>
105511         * modules/stdlib (Depends-on): Add unistd.
105512         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
105513         Needed for MacOS X 10.3.
105515 2007-03-17  Bruno Haible  <bruno@clisp.org>
105517         * lib/unistr/u-strdup.h: Include <stdlib.h>.
105519 2007-03-17  Bruno Haible  <bruno@clisp.org>
105521         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
105523 2007-03-17  Bruno Haible  <bruno@clisp.org>
105525         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
105526         to reflect files copied from gnulib (with or without modifications).
105527         Suggested by Jim Meyering.
105529 2007-03-17  Eric Blake  <ebb9@byu.net>
105531         * NEWS: Document stdlib change from 2007-02-18.
105533 2007-03-17  Jim Meyering  <jim@meyering.net>
105535         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
105536         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
105537         someone uses a name containing shell meta-characters.
105538         Reported by Alfred M. Szmidt.
105540         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
105542 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105544         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
105545         and copy gettext configuration files only if configure.ac contains
105546         a use of AM_GNU_GETTEXT_VERSION.
105548 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105550         * build-aux/bootstrap (gnulib_name): New variable.
105551         (gnulib_tool_options): Use it.
105553 2007-03-13  Simon Josefsson  <simon@josefsson.org>
105555         * tests/test-des.c: Use new namespace.
105557 2007-03-15  Bruno Haible  <bruno@clisp.org>
105559         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
105560         Reported by James Youngman <jay@gnu.org>.
105562 2007-03-15  Bruno Haible  <bruno@clisp.org>
105564         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
105565         declared prototype. Needed with cc on OSF/1 5.1.
105567 2007-03-15  Bruno Haible  <bruno@clisp.org>
105569         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
105570         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
105571         (struct gl_list_implementation): Add dispose_fn argument to the
105572         'create_empty', 'create' methods.
105573         (struct gl_list_impl_base): Add field 'dispose_fn'.
105574         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
105575         argument.
105576         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
105577         dispose_fn argument.
105578         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
105579         dispose_fn on the dropped values.
105580         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
105581         dispose_fn argument.
105582         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
105583         dropped values.
105584         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
105585         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105586         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
105587         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105588         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
105589         argument.
105590         (gl_tree_list_free): Call dispose_fn on the dropped values.
105591         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
105592         the dropped values.
105593         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
105594         Add dispose_fn argument.
105595         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
105596         Call dispose_fn on the dropped values.
105597         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
105598         Add dispose_fn argument.
105599         (gl_sublist_create): Initialize the 'dispose_fn' field.
105600         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
105601         * tests/test-array_list.c (main): Update.
105602         * tests/test-carray_list.c (main): Update.
105603         * tests/test-avltree_list.c (main): Update.
105604         * tests/test-rbtree_list.c (main): Update.
105605         * tests/test-avltreehash_list.c (main): Update.
105606         * tests/test-rbtreehash_list.c (main): Update.
105607         * tests/test-linked_list.c (main): Update.
105608         * tests/test-linkedhash_list.c (main): Update.
105609         * tests/test-array_oset.c (main): Update.
105611 2007-03-15  Bruno Haible  <bruno@clisp.org>
105613         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
105614         (gl_oset_create_empty): Add dispose_fn argument.
105615         (struct gl_oset_implementation): Add dispose_fn argument to
105616         'create_empty' method.
105617         (struct gl_oset_impl_base): Add dispose_fn field.
105618         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
105619         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
105620         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
105621         values.
105622         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
105623         (gl_tree_oset_free): Call dispose_fn on the dropped values.
105624         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105625         dropped value.
105626         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105627         dropped value.
105628         * tests/test-array_oset.c (main): Update.
105629         * tests/test-avltree_oset.c (main): Update.
105630         * tests/test-rbtree_oset.c (main): Update.
105631         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
105633 2007-03-13  Bruno Haible  <bruno@clisp.org>
105635         * tests/test-stdbool.c (i): Update after last patch.
105637 2007-03-12  Bruno Haible  <bruno@clisp.org>
105639         * lib/quotearg.c: Include <wctype.h> early, before the definition of
105640         the iswprint macro. Needed on Solaris 2.5.1.
105642 2007-03-12  Bruno Haible  <bruno@clisp.org>
105644         * tests/test-printf-frexp.c (main): Declare x as volatile.
105646 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105648         * doc/gnulib.texi (Build robot for gnulib): New section.
105650 2007-03-12  Jim Meyering  <jim@meyering.net>
105652         * build-aux/bootstrap: New file.
105653         * build-aux/bootstrap.conf: New file, from coreutils.
105655 2007-03-11  Bruno Haible  <bruno@clisp.org>
105657         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
105659 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105661         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
105662         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
105663         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
105665 2007-03-11  Bruno Haible  <bruno@clisp.org>
105667         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
105668         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
105670 2007-03-11  Bruno Haible  <bruno@clisp.org>
105672         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
105673         formula. Needed for SunPRO C 5.0.
105675 2007-03-11  Bruno Haible  <bruno@clisp.org>
105677         * modules/long-options (Depends-on): Add getopt.
105679 2007-03-11  Bruno Haible  <bruno@clisp.org>
105681         * modules/modechange (Depends-on): Add stdbool.
105683 2007-03-11  Bruno Haible  <bruno@clisp.org>
105685         * modules/i-ring (Depends-on): Add stdbool.
105687 2007-03-11  Bruno Haible  <bruno@clisp.org>
105689         * modules/gc-des (Depends-on): Add stdbool.
105691 2007-03-11  Bruno Haible  <bruno@clisp.org>
105693         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
105695 2007-03-11  Bruno Haible  <bruno@clisp.org>
105697         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
105699 2007-03-11  Bruno Haible  <bruno@clisp.org>
105701         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
105703 2007-03-11  Bruno Haible  <bruno@clisp.org>
105705         * lib/vasnprintf.c (sprintf): Undefine.
105707 2007-03-11  Bruno Haible  <bruno@clisp.org>
105709         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
105710         initializers in SunPRO C and Compaq C compilers.
105712 2007-03-11  Bruno Haible  <bruno@clisp.org>
105714         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
105715         decrementing code ANSI C compliant.
105717 2007-03-11  Bruno Haible  <bruno@clisp.org>
105719         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
105720         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
105722 2007-03-11  Bruno Haible  <bruno@clisp.org>
105724         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
105725         <stdbool.h> substitute doesn't pass.
105727 2007-03-11  Bruno Haible  <bruno@clisp.org>
105729         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
105731 2007-03-11  Bruno Haible  <bruno@clisp.org>
105733         * gnulib-tool (func_create_megatestdir): Create also an autobuild
105734         script, for submission to autobuild.josefsson.org.
105736 2007-03-10  Bruno Haible  <bruno@clisp.org>
105738         * modules/canonicalize-lgpl-tests: New file.
105739         * tests/test-canonicalize-lgpl.sh: New file.
105740         * tests/test-canonicalize-lgpl.c: New file.
105742         * modules/c-strcase-tests: New file.
105743         * tests/test-c-strcase.sh: New file.
105744         * tests/test-c-strcasecmp.c: New file.
105745         * tests/test-c-strncasecmp.c: New file.
105747         * modules/atexit-tests: New file.
105748         * tests/test-atexit.sh: New file.
105749         * tests/test-atexit.c: New file.
105751 2007-03-10  Bruno Haible  <bruno@clisp.org>
105753         * tests/test-binary-io.sh: Use temporary filenames that are not so
105754         likely to clash with those of other tests (in a parallel make).
105755         * tests/test-binary-io.c: Likewise.
105757 2007-03-10  Bruno Haible  <bruno@clisp.org>
105759         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
105760         fallback; use #error instead.
105761         Suggested by Simon Josefsson.
105763 2007-03-10  Bruno Haible  <bruno@clisp.org>
105765         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
105766         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
105767         first and the last.
105769 2007-03-10  Bruno Haible  <bruno@clisp.org>
105771         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
105773 2007-03-10  Bruno Haible  <bruno@clisp.org>
105775         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
105776         "make distcheck".
105777         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
105778         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
105779         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
105781 2007-03-10  Bruno Haible  <bruno@clisp.org>
105783         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
105784         variable.
105785         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
105786         variable.
105788 2007-03-09  Eric Blake  <ebb9@byu.net>
105789         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
105791         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
105792         types are not being provided by gnulib.
105793         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
105794         types are supported.
105796 2007-03-10  Bruno Haible  <bruno@clisp.org>
105798         * lib/stdio_.h (__attribute__): New macro.
105799         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
105800         vsprintf): Specify __attribute__ __format__ for GCC.
105801         Suggested by Eric Blake.
105803 2007-03-09  Bruno Haible  <bruno@clisp.org>
105805         * modules/printf-posix-tests: New file.
105806         * tests/test-printf-posix.sh: New file.
105807         * tests/test-printf-posix.c: New file.
105809         * modules/printf-posix: New file.
105810         * lib/printf.c: New file.
105811         * m4/printf-posix-rpl.m4: New file.
105812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
105813         REPLACE_PRINTF.
105814         * lib/stdio_.h (printf): New declaration.
105815         (format, __format__, ____printf____, ____scanf____, ____strftime____,
105816         ____strfmon____): New macros.
105817         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
105818         REPLACE_PRINTF.
105820 2007-03-09  Bruno Haible  <bruno@clisp.org>
105822         * tests/test-vasnprintf-posix2.sh: New file.
105823         * tests/test-vasnprintf-posix2.c: New file.
105824         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
105825         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
105826         (Makefile.am): Activate test-vasnprintf-posix2.sh.
105828         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
105829         a locale dependent decimal point, rather than always '.'.
105831 2007-03-09  Eric Blake  <ebb9@byu.net>
105833         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
105834         spite of platforms like Tandem/NSK that define it to -1.
105836 2007-03-08  Bruno Haible  <bruno@clisp.org>
105838         * modules/vprintf-posix-tests: New file.
105839         * tests/test-vprintf-posix.sh: New file.
105840         * tests/test-vprintf-posix.c: New file.
105841         * tests/test-printf-posix.h: New file.
105843         * modules/vprintf-posix: New file.
105844         * lib/vprintf.c: New file.
105845         * m4/vprintf-posix.m4: New file.
105846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
105847         REPLACE_VPRINTF.
105848         * lib/stdio_.h (vprintf): New declaration.
105849         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
105850         REPLACE_VPRINTF.
105852 2007-03-08  Bruno Haible  <bruno@clisp.org>
105854         * modules/fprintf-posix-tests: New file.
105855         * tests/test-fprintf-posix.sh: New file.
105856         * tests/test-fprintf-posix.c: New file.
105858         * modules/fprintf-posix: New file.
105859         * lib/fprintf.c: New file.
105860         * m4/fprintf-posix.m4: New file.
105861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
105862         REPLACE_FPRINTF.
105863         * lib/stdio_.h (fprintf): New declaration.
105864         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
105865         REPLACE_FPRINTF.
105867 2007-03-08  Bruno Haible  <bruno@clisp.org>
105869         * modules/vfprintf-posix-tests: New file.
105870         * tests/test-vfprintf-posix.sh: New file.
105871         * tests/test-vfprintf-posix.c: New file.
105872         * tests/test-fprintf-posix.h: New file.
105873         * tests/test-fprintf-posix.out: New file.
105875         * modules/vfprintf-posix: New file.
105876         * lib/vfprintf.c: New file.
105877         * m4/vfprintf-posix.m4: New file.
105878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
105879         REPLACE_VFPRINTF.
105880         * lib/stdio_.h (vfprintf): New declaration.
105881         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
105882         REPLACE_VFPRINTF.
105884 2007-03-08  Bruno Haible  <bruno@clisp.org>
105886         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
105888 2007-03-08  Bruno Haible  <bruno@clisp.org>
105890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
105891         instead of 'expr' invocations.
105892         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105893         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105897         Suggested by Paul Eggert.
105899 2007-03-08  Bruno Haible  <bruno@clisp.org>
105901         * modules/fseterr-tests: New file.
105902         * tests/test-fseterr.c: New file.
105904         * modules/fseterr: New file.
105905         * lib/fseterr.h: New file.
105906         * lib/fseterr.c: New file.
105908 2007-03-08  Bruno Haible  <bruno@clisp.org>
105910         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
105911         * lib/getopt_.h: Likewise.
105912         * lib/mbswidth.h: Likewise.
105913         * lib/setenv.h: Likewise.
105914         * lib/vasnprintf.h: Likewise.
105915         * lib/vasprintf.h: Likewise.
105916         * lib/verror.h: Likewise.
105917         * lib/xsetenv.h: Likewise.
105918         * lib/xvasprintf.h: Likewise.
105920 2007-03-08  Jim Meyering  <jim@meyering.net>
105922         * users.txt: Add parted.
105924         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
105926 2007-03-07  Bruno Haible  <bruno@clisp.org>
105928         * m4/printf.m4: Make the shell script snippets copy&pastable.
105930 2007-03-02  Bruno Haible  <bruno@clisp.org>
105932         * lib/netinet_in_.h: New file.
105933         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
105934         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
105935         * modules/netinet_in (Files): Add lib/netinet_in_.h.
105936         (Depends-on): Add absolute-header.
105937         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
105938         into netinet/in.h.
105940 2007-03-03  Bruno Haible  <bruno@clisp.org>
105942         * lib/sys_select_.h: New file.
105943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
105944         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
105945         * modules/sys_select (Files): Add lib/sys_select_.h.
105946         (Depends-on): Add absolute-header.
105947         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
105948         into sys/select.h.
105950 2007-03-02  Bruno Haible  <bruno@clisp.org>
105952         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
105953         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
105954         values.
105955         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
105956         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
105957         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
105958         * modules/sys_socket (Depends-on): Add absolute-header.
105959         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
105960         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
105961         (Include): Remove requirement of inclusion of <sys/types.h>.
105963 2007-03-02  Bruno Haible  <bruno@clisp.org>
105965         * lib/byteswap_.h (bswap_32): Fix formula.
105967 2007-03-06  Bruno Haible  <bruno@clisp.org>
105969         * modules/sprintf-posix-tests: New file.
105970         * tests/test-sprintf-posix.c: New file.
105972         * modules/sprintf-posix: New file.
105973         * lib/sprintf.c: New file.
105974         * m4/sprintf-posix.m4: New file.
105975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
105976         REPLACE_SPRINTF.
105977         * lib/stdio_.h (sprintf): New declaration.
105978         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
105979         REPLACE_SPRINTF.
105981 2007-03-06  Bruno Haible  <bruno@clisp.org>
105983         * modules/vsprintf-posix-tests: New file.
105984         * tests/test-vsprintf-posix.c: New file.
105985         * tests/test-sprintf-posix.h: New file.
105987         * modules/vsprintf-posix: New file.
105988         * lib/vsprintf.c: New file.
105989         * m4/vsprintf-posix.m4: New file.
105990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
105991         REPLACE_VSPRINTF.
105992         * lib/stdio_.h (vsprintf): New declaration.
105993         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
105994         REPLACE_VSPRINTF.
105996 2007-03-06  Bruno Haible  <bruno@clisp.org>
105998         * modules/vsnprintf (Depend-on): Remove minmax.
106000 2007-03-06  Bruno Haible  <bruno@clisp.org>
106002         * modules/snprintf-posix-tests: New file.
106003         * tests/test-snprintf-posix.c: New file.
106005         * modules/snprintf-posix: New file.
106006         * m4/snprintf-posix.m4: New file.
106007         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
106008         gl_FUNC_SNPRINTF.
106009         (gl_FUNC_SNPRINTF): Invoke it.
106010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
106011         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
106012         is set.
106013         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
106015 2007-03-06  Bruno Haible  <bruno@clisp.org>
106017         * modules/vsnprintf-posix-tests: New file.
106018         * tests/test-vsnprintf-posix.c: New file.
106019         * tests/test-snprintf-posix.h: New file.
106021         * modules/vsnprintf-posix: New file.
106022         * m4/vsnprintf-posix.m4: New file.
106023         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
106024         gl_FUNC_VSNPRINTF.
106025         (gl_FUNC_VSNPRINTF): Invoke it.
106026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
106027         * lib/stdio_.h (vsnprintf): Define as a replacement if
106028         REPLACE_VSNPRINTF is set.
106029         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
106031 2007-03-06  Bruno Haible  <bruno@clisp.org>
106033         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
106034         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
106036 2007-03-06  Bruno Haible  <bruno@clisp.org>
106038         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
106039         (asinl): Declare also if HAVE_DECL_ASINL is set.
106040         (atanl): Declare also if HAVE_DECL_ATANL is set.
106041         (ceill): Declare also if HAVE_DECL_CEILL is set.
106042         (cosl): Declare also if HAVE_DECL_COSL is set.
106043         (expl): Declare also if HAVE_DECL_EXPL is set.
106044         (floorl): Declare also if HAVE_DECL_FLOORL is set.
106045         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
106046         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
106047         (logl): Declare also if HAVE_DECL_LOGL is set.
106048         (sinl): Declare also if HAVE_DECL_SINL is set.
106049         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
106050         (tanl): Declare also if HAVE_DECL_TANL is set.
106051         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
106052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
106053         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
106054         declaration of frexpl, ldexpl.
106055         * modules/printf-frexpl (Depends-on): Add math.
106056         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
106058 2007-03-05  Bruno Haible  <bruno@clisp.org>
106060         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
106061         frexpl and ldexpl are declared.
106062         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
106064 2007-03-05  Bruno Haible  <bruno@clisp.org>
106066         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
106067         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
106069 2007-03-05  Bruno Haible  <bruno@clisp.org>
106071         * lib/stdio_.h: Include <stddef.h>.
106073 2007-03-05  Bruno Haible  <bruno@clisp.org>
106075         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
106077 2007-03-05  Bruno Haible  <bruno@clisp.org>
106079         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
106080         NetBSD 4, from Ralf Wildenhues.
106082 2007-03-04  Bruno Haible  <bruno@clisp.org>
106084         * lib/vasprintf.h: Update #if logic for the case when the functions
106085         exist but are overridden.
106087 2007-03-04  Bruno Haible  <bruno@clisp.org>
106089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
106090         implementations: glibc-2.4 and MacOS X 10.3.
106091         * tests/test-vasnprintf-posix.c (test_function): Test also the case
106092         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
106093         * tests/test-vasprintf-posix.c (test_function): Likewise.
106095 2007-03-04  Bruno Haible  <bruno@clisp.org>
106097         * modules/vasprintf-posix-tests: New file.
106098         * tests/test-vasprintf-posix.c: New file.
106100         * modules/vasprintf-posix: New file.
106101         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
106102         defined.
106103         * m4/vasprintf-posix.m4: New file.
106104         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
106105         gl_FUNC_VASPRINTF.
106106         (gl_FUNC_VASPRINTF): Invoke it.
106107         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
106108         here.
106109         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
106111 2007-03-04  Bruno Haible  <bruno@clisp.org>
106113         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
106114         REPLACE_GETTIMEOFDAY.
106115         * modules/sys_time (Makefile.am): Likewise.
106116         * m4/sys_time_h.m4: Likewise.
106117         * m4/gettimeofday.m4: Likewise.
106119 2007-03-04  Bruno Haible  <bruno@clisp.org>
106121         * modules/vasnprintf-posix-tests: New file.
106122         * tests/test-vasnprintf-posix.c: New file.
106124         * modules/vasnprintf-posix: New file.
106125         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
106126         printf-frexpl.h.
106127         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
106128         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
106129         REPLACE_VASNPRINTF is defined.
106130         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
106131         gl_FUNC_VASNPRINTF.
106132         (gl_FUNC_VASNPRINTF): Invoke it.
106133         * m4/vasnprintf-posix.m4: New file.
106134         * m4/printf.m4: New file.
106136 2007-03-04  Bruno Haible  <bruno@clisp.org>
106138         Compile progreloc.c only if --enable-relocatable is specified.
106139         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
106140         if --enable-relocatable was specified.
106141         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
106142         lib_SOURCES.
106144 2007-03-04  Jim Meyering  <jim@meyering.net>
106146         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
106147         Use it consistently, rather than enumerating errno constants.
106149 2007-03-04  Bruno Haible  <bruno@clisp.org>
106151         * modules/xvasprintf-tests: New file.
106152         * tests/test-xvasprintf.c: New file.
106154         * modules/vasprintf-tests: New file.
106155         * tests/test-vasprintf.c: New file.
106157         * modules/vasnprintf-tests: New file.
106158         * tests/test-vasnprintf.c: New file.
106160         * modules/vsnprintf-tests: New file.
106161         * tests/test-vsnprintf.c: New file.
106163         * modules/snprintf-tests: New file.
106164         * tests/test-snprintf.c: New file.
106166 2007-03-04  Bruno Haible  <bruno@clisp.org>
106168         Compile relocatable.c only if --enable-relocatable is specified.
106169         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
106170         gl_RELOCATABLE_LIBRARY.
106171         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
106172         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
106173         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
106174         gl_RELOCATABLE_LIBRARY.
106175         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
106176         (Makefile.am): Remove lib_SOURCES.
106177         * modules/relocatable-lib-lgpl (configure.ac): Invoke
106178         gl_RELOCATABLE_LIBRARY.
106179         (Makefile.am): Remove lib_SOURCES.
106180         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
106181         always.
106182         * modules/relocatable-prog-wrapper (configure.ac): Invoke
106183         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
106185 2007-03-04  Bruno Haible  <bruno@clisp.org>
106187         * modules/argmatch-tests: New file.
106188         * tests/test-argmatch.c: New file.
106190         * tests/test-allocsa.c (main): Halve the number of loop runs.
106192         * modules/alloca-opt-tests: New file.
106193         * tests/test-alloca-opt.c: New file.
106195 2007-03-04  Jim Meyering  <jim@meyering.net>
106197         Work around difference between Linux ACLs and Solaris 10 ZFS.
106198         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
106199         for EINVAL.
106201 2007-03-03  Bruno Haible  <bruno@clisp.org>
106203         * modules/relocatable-prog (Depends-on): Add back progreloc's
106204         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
106206 2007-03-03  Bruno Haible  <bruno@clisp.org>
106208         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
106209         * modules/relocatable-lib: New file.
106211 2007-03-03  Bruno Haible  <bruno@clisp.org>
106213         * modules/relocatable-prog: Renamed from modules/relocatable.
106214         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
106216 2007-03-03  Bruno Haible  <bruno@clisp.org>
106218         * modules/relocatable-script (Files): Add doc/relocatable.texi,
106219         m4/relocatable-lib.m4.
106220         (Depends-on): Remove 'relocatable'.
106221         (configure.ac): Add gl_RELOCATABLE_NOP.
106223 2007-03-03  Bruno Haible  <bruno@clisp.org>
106225         * modules/relocatable-prog-wrapper: New file.
106226         * modules/relocatable (Depends-on): Add it. Remove all other
106227         dependencies except progname.
106228         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
106230         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
106231         (gl_FUNC_STRERROR): Nop.
106232         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
106234         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
106235         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
106237         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
106238         (gl_FUNC_READLINK): Update.
106240         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
106242 2007-03-03  Bruno Haible  <bruno@clisp.org>
106244         * lib/xreadlink.c: Include <unistd.h> unconditionally.
106245         * modules/xreadlink (Depends-on): Add unistd.
106246         * modules/xreadlink-with-size (Depends-on): Likewise.
106248 2007-03-03  Bruno Haible  <bruno@clisp.org>
106250         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
106251         extracted from gt_FUNC_SETENV.
106252         (gt_FUNC_SETENV): Remove macro.
106253         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
106254         remove gt_FUNC_SETENV.
106256 2007-03-03  Bruno Haible  <bruno@clisp.org>
106258         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
106259         ENABLE_RELOCATABLE here.
106260         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
106262 2007-03-03  Bruno Haible  <bruno@clisp.org>
106264         * modules/rbtreehash-list-tests (Depends-on): Add progname.
106265         * tests/test-rbtreehash_list.c: Include progname.h.
106266         (main): Call set_program_name.
106268         * modules/rbtree-oset-tests (Depends-on): Add progname.
106269         * tests/test-rbtree_oset.c: Include progname.h.
106270         (main): Call set_program_name.
106272         * modules/rbtree-list-tests (Depends-on): Add progname.
106273         * tests/test-rbtree_list.c: Include progname.h.
106274         (main): Call set_program_name.
106276         * modules/linked-list-tests (Depends-on): Add progname.
106277         * tests/test-linked_list.c: Include progname.h.
106278         (main): Call set_program_name.
106280 2007-03-03  Bruno Haible  <bruno@clisp.org>
106282         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
106283         All uses of __restrict changed to _Restrict_.
106284         * lib/glob_.h (__restrict): Remove macro.
106286 2007-03-02  Bruno Haible  <bruno@clisp.org>
106288         * modules/gettext (configure.ac): Require gettext infrastructure
106289         from version 0.16.1.
106291 2007-03-02  Bruno Haible  <bruno@clisp.org>
106293         * modules/linkedhash-list-tests (Depends-on): Add progname.
106294         * tests/test-linkedhash_list.c: Include progname.h.
106295         (main): Call set_program_name.
106297         * modules/carray-list-tests (Depends-on): Add progname.
106298         * tests/test-carray_list.c: Include progname.h.
106299         (main): Call set_program_name.
106301         * modules/avltreehash-list-tests (Depends-on): Add progname.
106302         * tests/test-avltreehash_list.c: Include progname.h.
106303         (main): Call set_program_name.
106305         * modules/avltree-oset-tests (Depends-on): Add progname.
106306         * tests/test-avltree_oset.c: Include progname.h.
106307         (main): Call set_program_name.
106309         * modules/avltree-list-tests (Depends-on): Add progname.
106310         * tests/test-avltree_list.c: Include progname.h.
106311         (main): Call set_program_name.
106313         * modules/array-oset-tests (Depends-on): Add progname.
106314         * tests/test-array_oset.c: Include progname.h.
106315         (main): Call set_program_name.
106317         * modules/array-list-tests (Depends-on): Add progname.
106318         * tests/test-array_list.c: Include progname.h.
106319         (main): Call set_program_name.
106321         * modules/argp-tests (Depends-on): Add progname.
106322         * tests/test-argp.c: Include argp.h first. Include progname.h.
106323         (main): Call set_program_name.
106325 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
106327         * doc/gnulib-tool.texi (Initial import): Reword description of
106328         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
106329         limited effect even if defined after the first system include.
106331 2007-03-01  Bruno Haible  <bruno@clisp.org>
106333         * build-aux/config.libpath: Update to libtool-1.5.22.
106334         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
106336 2007-03-01  Bruno Haible  <bruno@clisp.org>
106338         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
106339         foo_CFLAGS.
106340         Reported by Ralf Wildenhues.
106342 2007-03-01  Bruno Haible  <bruno@clisp.org>
106344         * build-aux/install-reloc: Remove object files left over by some
106345         compilers.
106346         Reported by Ralf Wildenhues.
106348 2007-03-01  Bruno Haible  <bruno@clisp.org>
106350         * build-aux/install-reloc: Break long lines.
106352 2007-03-01  Bruno Haible  <bruno@clisp.org>
106354         * doc/relocatable.texi: Document that it may not work on OpenBSD.
106355         Reported by Ralf Wildenhues.
106357 2007-03-01  Bruno Haible  <bruno@clisp.org>
106359         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
106360         include ordering constraints.
106362 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106364         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
106365         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
106366         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
106367         as another example.
106368         * lib/time_.h: Fix misspelling.
106369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106370         Require gl_HEADER_TIME_H_DEFAULTS.
106371         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
106372         * m4/time_r.m4 (gl_TIME_R): Likewise.
106373         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
106375 2007-03-01  Bruno Haible  <bruno@clisp.org>
106377         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
106378         * m4/utimens.m4 (gl_UTIMENS): Likewise.
106380 2007-03-01  Jim Meyering  <jim@meyering.net>
106382         * modules/xreadlink (Maintainer): Add my name.
106383         * modules/xreadlink-with-size (Depends-on): Alphabetize.
106385 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
106386             Bruno Haible  <bruno@clisp.org>
106388         * build-aux/install-reloc: Compile also c-ctype.c.
106389         * build-aux/relocatable.sh.in: New file.
106390         * doc/relocatable.texi: New file.
106391         * doc/relocatable-maint.texi: New file.
106392         * doc/gnulib.texi: Include relocatable-maint.texi.
106393         * lib/progreloc.c: Include unistd.h unconditionally.
106394         * lib/relocwrapper.c: Include unistd.h unconditionally.
106395         Include c-ctype.h.
106396         (add_dotbin): Use c_tolower.
106397         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
106398         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
106399         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
106400         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
106401         to m4/relocatable-lib.m4.
106402         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
106403         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
106404         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
106405         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
106406         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
106407         * modules/relocatable: New file.
106408         * modules/relocatable-lib: New file.
106409         * modules/relocatable-script: New file.
106411 2007-02-28  Bruno Haible  <bruno@clisp.org>
106413         Import --enable-relocatable infrastructure.
106414         * build-aux/config.libpath: New file, from GNU gettext.
106415         * build-aux/install-reloc: New file, from GNU gettext.
106416         * build-aux/reloc-ldflags: New file, from GNU gettext.
106417         * lib/relocatable.h: New file, from GNU gettext.
106418         * lib/relocatable.c: New file, from GNU gettext.
106419         * lib/relocwrapper.c: New file, from GNU gettext.
106420         * m4/relocatable.m4: New file, from GNU gettext.
106422 2007-02-28  Bruno Haible  <bruno@clisp.org>
106424         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
106426         * modules/xreadlink: New file, from GNU gettext with modifications.
106427         * lib/xreadlink.c: New file, from GNU gettext.
106428         * lib/xreadlink.h: Add comments.
106429         (xreadlink): New declaration.
106431         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
106432         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
106433         lib/xreadlink-with-size.c.
106434         (configure.ac): Remove gl_XREADLINK invocation.
106435         (Makefile.am): Augment lib_SOURCES.
106436         * m4/xreadlink.m4: Remove file.
106437         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
106438         (xreadlink_with_size): Renamed from xreadink.
106439         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
106440         * modules/canonicalize (Depends-on): Replace xreadlink with
106441         xreadlink-with-size.
106442         * lib/canonicalize.c (canonicalize_filename_mode): Update.
106444 2007-02-25  Jim Meyering  <jim@meyering.net>
106446         * build-aux/announce-gen: When complaining about excess arguments,
106447         list them.
106449 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106451         * README: Document signed integer overflow situation more
106452         accurately.
106454 2007-02-25  Bruno Haible  <bruno@clisp.org>
106456         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
106457         'a' or 'A' conversion.
106459 2007-02-25  Bruno Haible  <bruno@clisp.org>
106461         * modules/filename: Renamed from modules/pathname.
106462         (Files): Replace lib/pathname.h with lib/filename.h. Replace
106463         lib/concatpath.c with lib/concat-filename.c.
106464         (Makefile.am): Update.
106465         (Include): Replace pathname.h with filename.h.
106466         * lib/filename.h: Renamed from lib/pathname.h.
106467         (concatenated_filename): Renamed from concatenated_pathname.
106468         * lib/concat-filename.c: Renamed from lib/concatpath.c.
106469         (concatenated_filename): Renamed from concatenated_pathname.
106470         * lib/findprog.c: Include filename.h instead of pathname.h.
106471         (find_in_path): Update.
106472         * lib/javacomp.c: Include filename.h instead of pathname.h.
106473         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
106474         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
106475         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
106476         is_oldgcj_14_13_usable, is_javac_usable): Update.
106477         * lib/javaexec.c: Include filename.h instead of pathname.h.
106478         (execute_java_class): Update.
106479         * modules/findprog: Update.
106480         * modules/javacomp: Update.
106481         * modules/javaexec: Update.
106482         * MODULES.html.sh (File system functions): Add 'filename', remove
106483         'pathname'.
106485 2007-02-25  Bruno Haible  <bruno@clisp.org>
106487         * modules/printf-frexpl-tests: New file.
106488         * tests/test-printf-frexpl.c: New file.
106490         * modules/printf-frexpl: New file.
106491         * lib/printf-frexpl.h: New file.
106492         * lib/printf-frexpl.c: New file.
106493         * m4/printf-frexpl.m4: New file.
106495 2007-02-25  Bruno Haible  <bruno@clisp.org>
106497         * modules/printf-frexp-tests: New file.
106498         * tests/test-printf-frexp.c: New file.
106500         * modules/printf-frexp: New file.
106501         * lib/printf-frexp.h: New file.
106502         * lib/printf-frexp.c: New file.
106503         * m4/printf-frexp.m4: New file.
106505 2007-02-25  Bruno Haible  <bruno@clisp.org>
106507         Assume automake >= 1.10 for the tests.
106508         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
106509         * modules/arctwo-tests: Likewise.
106510         * modules/argp-tests: Likewise.
106511         * modules/avltree-list-tests: Likewise.
106512         * modules/avltree-oset-tests: Likewise.
106513         * modules/avltreehash-list-tests: Likewise.
106514         * modules/carray-list-tests: Likewise.
106515         * modules/crc-tests: Likewise.
106516         * modules/des-tests: Likewise.
106517         * modules/gc-arcfour-tests: Likewise.
106518         * modules/gc-arctwo-tests: Likewise.
106519         * modules/gc-des-tests: Likewise.
106520         * modules/gc-hmac-md5-tests: Likewise.
106521         * modules/gc-hmac-sha1-tests: Likewise.
106522         * modules/gc-md2-tests: Likewise.
106523         * modules/gc-md4-tests: Likewise.
106524         * modules/gc-md5-tests: Likewise.
106525         * modules/gc-pbkdf2-sha1-tests: Likewise.
106526         * modules/gc-rijndael-tests: Likewise.
106527         * modules/gc-sha1-tests: Likewise.
106528         * modules/gc-tests: Likewise.
106529         * modules/getaddrinfo-tests: Likewise.
106530         * modules/hmac-md5-tests: Likewise.
106531         * modules/hmac-sha1-tests: Likewise.
106532         * modules/linked-list-tests: Likewise.
106533         * modules/linkedhash-list-tests: Likewise.
106534         * modules/lock-tests: Likewise.
106535         * modules/md2-tests: Likewise.
106536         * modules/md4-tests: Likewise.
106537         * modules/md5-tests: Likewise.
106538         * modules/rbtree-list-tests: Likewise.
106539         * modules/rbtree-oset-tests: Likewise.
106540         * modules/rbtreehash-list-tests: Likewise.
106541         * modules/read-file-tests: Likewise.
106542         * modules/rijndael-tests: Likewise.
106543         * modules/stdint-tests: Likewise.
106544         * modules/tls-tests: Likewise.
106546 2007-02-24  Bruno Haible  <bruno@clisp.org>
106548         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
106549         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
106550         function; instead check whether isnan with a double argument links.
106551         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
106552         function; instead check whether isnan with a 'long double' argument
106553         links.
106554         Reported by Eric Blake <ebb9@byu.net>.
106556 2007-02-24  Bruno Haible  <bruno@clisp.org>
106558         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
106559         defined.
106560         * lib/isnanl.c: Remove all code. Just include isnan.c.
106561         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
106563 2007-02-25  Jim Meyering  <jim@meyering.net>
106565         Avoid conflicting types for 'unsetenv' on FreeBSD.
106566         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
106567         conflicting with FreeBSD's (5.0 and 6.1) function declaration
106568         in stdlib.h.
106570 2007-02-24  Bruno Haible  <bruno@clisp.org>
106572         * modules/isnanl-nolibm-tests: New file.
106573         * tests/test-isnanl.c: New file.
106575         * modules/isnanl-nolibm: New file.
106576         * lib/isnanl.h: New file.
106577         * lib/isnanl.c: New file.
106578         * m4/isnanl.m4: New file.
106580 2007-02-24  Bruno Haible  <bruno@clisp.org>
106582         * modules/isnan-nolibm-tests: New file.
106583         * tests/test-isnan.c: New file.
106585         * modules/isnan-nolibm: New file.
106586         * lib/isnan.h: New file.
106587         * lib/isnan.c: New file.
106588         * m4/isnan.m4: New file.
106590 2007-02-24  Bruno Haible  <bruno@clisp.org>
106592         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
106593         assume that an exponent fits in 20 bits.
106595 2007-02-24  Jim Meyering  <jim@meyering.net>
106597         * m4/regex.m4: Update the description of the configure-time option,
106598         --without-included-regex, to state accurately what the defaults are,
106599         and perhaps to give people an idea why using this option is risky.
106601 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
106603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
106604         loops on small arguments.  This attempts to avoid the problem
106605         Bruno Haible reported for AIX 4.3.2 in
106606         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
106608 2007-02-23  Bruno Haible  <bruno@clisp.org>
106610         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
106611         Needed for help2man.
106613 2007-02-23  Karl Berry  <karl@gnu.org>
106615         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
106616         exists, foo.h should be cvs-ignored, not committed.
106618 2007-02-23  Eric Blake  <ebb9@byu.net>
106620         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
106621         * lib/stat-time.h (includes): Likewise.
106622         * lib/utimecmp.c (includes): Likewise.
106623         * lib/utimens.h (includes): Likewise.
106624         * lib/getdate.y (includes): Also include "timespec.h" for use
106625         internal to the module.
106626         * modules/utimens (Depends-on): Revert yesterday's patch.
106627         * modules/nanosleep (Depends-on): Add missing dependency.
106629 2007-02-22  Bruno Haible  <bruno@clisp.org>
106631         * lib/glob.c: Don't include getlogin_r.h.
106633 2007-02-22  Jim Meyering  <jim@meyering.net>
106635         * modules/utimens (Depends-on): Add timespec, required for
106636         utimens.h's inclusion of timespec.h.
106638 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
106640         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
106641         long unreadable paths in GNU/Linux.  Problem reported by Andreas
106642         Schwab in
106643         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
106644         I'll try to think of a better way to fix the Solaris problem.
106646         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
106647         like glibc; on Solaris 10, it fails with errno == EINVAL.
106648         POSIX says the behavior is unspecified if the first argument is NULL,
106649         so play it safe and never pass NULL to the system getcwd.
106651 2007-02-21  Jim Meyering  <jim@meyering.net>
106653         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
106654         of gettimeofday.  It would conflict with the one now always
106655         provided via sys_time_.h.  Reported by Matthew Woehlke, as
106656         an IRIX 6.5 build failure.
106658 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
106660         Minor fixups to port to Solaris 10 with Sun C 5.8.
106661         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
106662         * modules/getcwd (Depends-on): Add dirfd.
106663         * lib/putenv.c (putenv): #undef it.
106664         (rpl_putenv): New decl.
106665         (malloc, free): Include <stdlib.h> rather than prototyping separately.
106667 2007-02-20  Bruno Haible  <bruno@clisp.org>
106669         * modules/stdio-tests: New file.
106670         * tests/test-stdio.c: New file.
106672         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
106673         (Depends-on): Add stdio.
106674         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106675         (Include): Use <stdio.h> instead of vsnprintf.h.
106676         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106677         HAVE_DECL_VSNPRINTF.
106678         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
106680         * modules/snprintf (Files): Remove lib/snprintf.h.
106681         (Depends-on): Add stdio.
106682         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106683         (Include): Use <stdio.h> instead of snprintf.h.
106684         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106685         HAVE_DECL_SNPRINTF.
106686         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
106687         * lib/getaddrinfo.c: Likewise.
106689         * modules/stdio: New file.
106690         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
106691         * lib/snprintf.h: Remove file.
106692         * lib/vsnprintf.h: Remove file.
106693         * lib/.cppi-disable: Remove snprintf.h.
106694         * m4/stdio_h.m4: New file.
106695         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
106697 2007-02-20  Jim Meyering  <jim@meyering.net>
106699         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
106700         used by e.g., mingw.  From Bruno Haible.
106702 2007-02-19  Bruno Haible  <bruno@clisp.org>
106704         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
106705         warnings.
106706         Reported by Ben Pfaff <blp@cs.stanford.edu>.
106708 2007-02-19  Bruno Haible  <bruno@clisp.org>
106710         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
106711         from mingw users.
106713 2007-02-19  Bruno Haible  <bruno@clisp.org>
106715         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
106716         warnings.
106717         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
106719 2007-02-19  Jim Meyering  <jim@meyering.net>
106721         Don't use FD after a successful "fdopendir (fd)".
106722         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
106723         Reset it by calling dirfd on the just-obtained DIR*.
106725         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
106726         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
106728 2007-02-18  Bruno Haible  <bruno@clisp.org>
106730         * lib/readlink.c: Include <unistd.h>.
106731         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
106732         HAVE_READLINK.
106733         * modules/readlink (Depends-on): Add unistd.
106734         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106735         (Include): Add <unistd.h>.
106737         * lib/getlogin_r.h: Remove file.
106738         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
106739         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
106740         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
106741         HAVE_DECL_GETLOGIN_R.
106742         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
106743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106744         (Include): Use <unistd.h> instead of getlogin_r.h.
106746         * lib/getcwd.h: Remove file.
106747         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
106748         * lib/xgetcwd.c: Likewise.
106749         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
106750         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
106751         * modules/getcwd (Files): Remove lib/getcwd.h.
106752         (Depends-on): Add unistd.
106753         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106754         (Include): Use <unistd.h> instad of getcwd.h.
106756         * lib/ftruncate.c: Include <unistd.h> first.
106757         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
106758         Set HAVE_FTRUNCATE.
106759         * modules/ftruncate (Depends-on): Add unistd.
106760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106762         * lib/fchdir.c: Include <unistd.h> first.
106763         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
106764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
106765         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
106766         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106767         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
106769         * lib/dup2.c: Include <unistd.h> first.
106770         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
106771         HAVE_DUP2.
106772         * modules/dup2 (Depends-on): Add unistd.
106773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106775         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
106776         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
106777         REPLACE_CHOWN. Don't define chown as a macro here.
106778         * modules/chown (Depends-on): Add unistd.
106779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106781         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
106782         Add definition for GL_LINK_WARNING.
106783         (chown, dup2): New declarations.
106784         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
106785         link warning.
106786         (ftruncate): New declaration.
106787         (getcwd): New declaration, taken from old getcwd.h.
106788         (getlogin_r): New declaration, taken from old getlogin_r.h.
106789         (readlink): New declaration.
106790         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
106791         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
106792         (gl_PREREQ_UNISTD): Remove macro.
106793         (gl_UNISTD_MODULE_INDICATOR): New macro.
106794         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
106795         many new variables. Don't set UNISTD_H.
106796         * modules/unistd (Description): Change.
106797         (Depends-on): Add link-warning.
106798         (configure.ac): Update.
106799         (Makefile.am): Create unistd.h always. Substitute many new variables
106800         into it.
106802 2007-02-18  Bruno Haible  <bruno@clisp.org>
106804         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
106805         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
106806         HAVE_GETSUBOPT.
106807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
106808         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
106809         * lib/getsubopt.h: Remove file.
106810         * modules/getsubopt (Files): Remove lib/getsubopt.h.
106811         (Depends-on): Add stdlib.
106812         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106813         (Includes): Use <stdlib.h> instead of getsubopt.h.
106814         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
106815         Set HAVE_GETSUBOPT.
106816         * lib/getsubopt.c: Don't include getsubopt.h.
106818 2007-02-18  Bruno Haible  <bruno@clisp.org>
106820         * modules/fchdir (Depends-on): Add dup2.
106822 2007-02-18  Bruno Haible  <bruno@clisp.org>
106824         * lib/stdlib_.h: Handle glibc's special invocation convention
106825         specially.
106827 2007-02-18  Bruno Haible  <bruno@clisp.org>
106829         * modules/stdlib-tests: New file.
106830         * tests/test-stdlib.c: New file.
106832         * modules/mkstemp (Files): Remove lib/mkstemp.h.
106833         (Depends-on): Add stdlib.
106834         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106835         (Includes): Use <stdlib.h> instead of mkstemp.h.
106836         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106837         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
106838         * lib/mkstemp.c: Don't include mkstemp.h.
106839         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
106840         * lib/stdlib--.h: Don't include mkstemp.h.
106842         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
106843         (Depends-on): Add stdlib.
106844         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106845         (Includes): Use <stdlib.h> instead of mkdtemp.h.
106846         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106847         HAVE_MKDTEMP.
106848         * lib/mkdtemp.c: Don't include mkdtemp.h.
106849         * lib/clean-temp.c: Don't include mkdtemp.h.
106851         * modules/exit (Files): Remove lib/exit.h.
106852         (Depends-on): Add stdlib.
106853         (Makefile.am): Remove lib_SOURCES.
106854         (Include): Use <stdlib.h> instead of exit.h.
106855         * lib/argmatch.c: Don't include exit.h.
106856         * lib/execute.c: Likewise.
106857         * lib/pagealign_alloc.c: Likewise.
106858         * lib/pipe.c: Likewise.
106859         * lib/wait-process.c: Likewise.
106860         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
106861         * lib/exitfail.c: Likewise.
106862         * lib/savewd.c: Likewise.
106863         * lib/xsetenv.c: Likewise.
106865         * modules/stdlib: New file.
106866         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
106867         and extra comments about mkstemp().
106868         * lib/exit.h: Remove file.
106869         * lib/mkdtemp.h: Remove file.
106870         * lib/mkstemp.h: Remove file.
106871         * m4/stdlib_h.m4: New file.
106872         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
106874 2007-02-18  Bruno Haible  <bruno@clisp.org>
106876         * modules/math-tests: New file.
106877         * tests/test-math.c: New file.
106879         * modules/math: New file.
106880         * modules/mathl (Files): Remove lib/mathl.h.
106881         (Depends-on): Add math.
106882         (Makefile.am): Don't mention mathl.h.
106883         (Include): Use <math.h> instead of mathl.h.
106884         * lib/math_.h: New file.
106885         * lib/mathl.h: Remove file.
106886         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
106887         mathl.h.
106888         * lib/asinl.c: Likewise.
106889         * lib/atanl.c: Likewise.
106890         * lib/ceill.c: Likewise.
106891         * lib/cosl.c: Likewise.
106892         * lib/expl.c: Likewise.
106893         * lib/floorl.c: Likewise.
106894         * lib/frexpl.c: Likewise.
106895         * lib/ldexpl.c: Likewise.
106896         * lib/logl.c: Likewise.
106897         * lib/sincosl.c: Likewise.
106898         * lib/sinl.c: Likewise.
106899         * lib/sqrtl.c: Likewise.
106900         * lib/tanl.c: Likewise.
106901         * lib/trigl.c: Likewise.
106902         * m4/math_h.m4: New file.
106903         * MODULES.html.sh (Mathematics): Add math.
106905 2007-02-17  Bruno Haible  <bruno@clisp.org>
106907         * modules/wctype-tests: New file.
106908         * tests/test-wctype.c: New file.
106910         * modules/wchar-tests: New file.
106911         * tests/test-wchar.c: New file.
106913         * modules/unistd-tests: New file.
106914         * tests/test-unistd.c: New file.
106916         * modules/time-tests: New file.
106917         * tests/test-time.c: New file.
106919         * modules/sysexits-tests: New file.
106920         * tests/test-sysexits.c: New file.
106922         * modules/sys_time-tests: New file.
106923         * tests/test-sys_time.c: New file.
106925         * modules/sys_stat-tests: New file.
106926         * tests/test-sys_stat.c: New file.
106928         * modules/sys_socket-tests: New file.
106929         * tests/test-sys_socket.c: New file.
106931         * modules/sys_select-tests: New file.
106932         * tests/test-sys_select.c: New file.
106934         * modules/string-tests: New file.
106935         * tests/test-string.c: New file.
106937         * modules/stdbool-tests: New file.
106938         * tests/test-stdbool.c: New file.
106940         * modules/netinet_in-tests: New file.
106941         * tests/test-netinet_in.c: New file.
106943         * modules/inttypes-tests: New file.
106944         * tests/test-inttypes.c: New file.
106946         * modules/fcntl-tests: New file.
106947         * tests/test-fcntl.c: New file.
106949         * modules/byteswap-tests: New file.
106950         * tests/test-byteswap.c: New file.
106952         * modules/arpa_inet-tests: New file.
106953         * tests/test-arpa_inet.c: New file.
106955 2007-02-17  Bruno Haible  <bruno@clisp.org>
106957         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
106958         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
106959         if the corresponding module is not enabled. Emit link warnings if
106960         the function is used nevertheless.
106961         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
106962         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
106963         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
106964         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
106965         * modules/inttypes (Depends-on): Add link-warning.
106966         (Makefile.am): Copy the contents of build-aux/link-warning.h into
106967         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
106968         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
106969         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
106970         * modules/imaxdiv (configure.ac): Likewise.
106971         * modules/strtoimax (configure.ac): Likewise.
106972         * modules/strtoumax (configure.ac): Likewise.
106974 2007-02-17  Bruno Haible  <bruno@clisp.org>
106976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
106977         gl_STRING_MODULE_INDICATOR_DEFAULTS.
106978         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
106979         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
106981 2007-02-17  Bruno Haible  <bruno@clisp.org>
106983         * modules/link-warning: New file.
106984         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
106985         * lib/string_.h (GL_LINK_WARNING): Remove definition.
106986         * modules/string (Depends-on): Add link-warning.
106987         (Makefile.am): Copy the contents of build-aux/link-warning.h into
106988         string.h.
106989         * MODULES.html.sh (Support for building libraries and executables): Add
106990         link-warning.
106992 2007-02-17  Bruno Haible  <bruno@clisp.org>
106994         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
106995         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
106996         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
106997         long lines.
106999 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
107000             Bruno Haible  <bruno@clisp.org>
107002         * modules/tmpfile: New file.
107003         * lib/tmpfile.c: New file.
107004         * m4/tmpfile.m4: New file.
107005         * MODULES.html.sh (func_all_modules): New section "Input/output".
107007 2007-02-15  Bruno Haible  <bruno@clisp.org>
107009         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
107010         (supports_delete_on_close): New function.
107011         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
107013 2007-02-14  Bruno Haible  <bruno@clisp.org>
107015         * modules/mbspcasecmp-tests: New file.
107016         * tests/test-mbspcasecmp.sh: New file.
107017         * tests/test-mbspcasecmp.c: New file.
107019         New module mbspcasecmp.
107020         * modules/mbspcasecmp: New file.
107021         * lib/mbspcasecmp.c: New file.
107022         * lib/string_.h (strncasecmp): Change warning message.
107023         (mbspcasecmp): New declaration.
107024         * m4/mbspcasecmp.m4: New file.
107025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107026         GNULIB_MBSPCASECMP.
107027         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
107028         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
107030 2007-02-14  Bruno Haible  <bruno@clisp.org>
107032         * modules/mbsncasecmp-tests: New file.
107033         * tests/test-mbsncasecmp.sh: New file.
107034         * tests/test-mbsncasecmp.c: New file.
107036         New module mbsncasecmp.
107037         * modules/mbsncasecmp: New file.
107038         * lib/mbsncasecmp.c: New file.
107039         * lib/string_.h (mbsncasecmp): New declaration.
107040         * m4/mbsncasecmp.m4: New file.
107041         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107042         GNULIB_MBSNCASECMP.
107043         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
107044         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
107046 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107048         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
107049         Verify that it doesn't overlap with our flags.
107050         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
107051         do not have the desired effect in multibyte locales; instead, use
107052         mbscasecmp.
107053         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
107054         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
107055         we don't require GNU fnmatch ourselves (if our users require it, they
107056         should do so explicitly).
107058         Fix regex code so it doesn't rely on strcasecmp.
107059         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
107060         Otherwise, include gnulib's langinfo.h.
107061         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
107062         undesirable behavior in non-C locales.  Instead, rely on localecharset.
107063         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
107064         * modules/regex (FILES): Remove m4/codeset.m4.
107065         (Depends-on): Add localcharset.  Remove strcase.
107067 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107069         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
107070         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
107072 2007-02-13  Bruno Haible  <bruno@clisp.org>
107074         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
107075         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107077 2007-02-12  Bruno Haible  <bruno@clisp.org>
107079         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107080         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
107081         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
107082         time warning rather than a link error.
107084 2007-02-12  Bruno Haible  <bruno@clisp.org>
107086         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
107087         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
107088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107090 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107092         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
107093         args, not 2.
107095 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107097         New module 'time', so that apps can include <time.h> as per
107098         POSIX and GNU instead of separate include files like time_r.h
107099         and timegm.h.  This implementation tries out a simpler approach
107100         for replacing decls in standard include files (as compared to
107101         the string module), somewhat as an experiment.
107103         * config/srclist.txt: Comment out mktime.c for now.
107104         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
107105         since it doesn't apply any more.  Use generic wording instead.
107106         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
107107         'time'.
107108         * lib/time_.h, m4/time_h.m4, modules/time: New files.
107109         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
107110         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
107111         Don't include <sys/types.h>; no longer needed since we assume C89.
107112         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
107113         * lib/strftime.c: Likewise.
107114         * lib/time_r.c: Likewise.
107115         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
107116         * lib/nanosleep.c: Include <time.h> first, to check interface.
107117         * lib/strptime.c: Likewise.
107118         * lib/time_r.c: Likewise.
107119         * lib/timegm.c: Likewise.
107120         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
107121         needed.
107122         * lib/timegm.c: Don't include timegm.h; no longer needed.
107123         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
107124         time.h now handles any problems in that area.
107125         (struct timespec, nanosleep): Remove; time.h now arranges for these.
107126         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
107127         that time.h defines struct timespec.
107128         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
107129         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
107130         handles that.
107131         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
107132         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
107133         needed.  Set REPLACE_LOCALTIME.
107134         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
107135         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
107136         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
107137         nanosleep; time_h.m4 now does that.  Don't require
107138         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
107139         module handles this now.
107140         * modules/getdate (Depends-on): Remove timespec.  Add time.
107141         * modules/nanosleep (Depends-on): Likewise.
107142         * modules/stat-time (Depends-on): Likewise.
107143         * modules/nanosleep (Include): Include time.h, not timespec.h.
107144         * modules/strptime (Files): Remove lib/strptime.h.
107145         (Depends-on): Add extensions, time.
107146         (Include): Include time.h, not strptime.h.
107147         * modules/time_r (Files): Remove lib/time_r.h.
107148         (Depends-on): Add time.
107149         (Include): Include time.h, not time_r.h.
107150         * modules/timegm: Likewise.
107151         * modules/timespec (Description): Now does timespec-related decls
107152         of our own, instead of struct timespec itself.
107153         (Depends-on): Add time; remove extensions.
107154         (Maintainer): Add self.
107155         * modules/utimecmp (Depends-on): Add time; remove timespec.
107156         * modules/utimens (Depends-on): Likewise.
107157         * modules/xnanosleep (Depends-on): Likewise.
107159 2007-02-11  Bruno Haible  <bruno@clisp.org>
107161         * lib/c-strstr.c: Include allocsa.h.
107162         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107163         * lib/c-strcasestr.c: Include allocsa.h.
107164         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107165         * lib/strcasestr.c: Include allocsa.h.
107166         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107167         * lib/mbsstr.c: Include allocsa.h.
107168         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107169         allocsa/freesa instead of malloc/free.
107170         * lib/mbscasestr.c: Include allocsa.h.
107171         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107172         allocsa/freesa instead of malloc/free.
107173         * modules/c-strstr (Depends-on): Add allocsa.
107174         * modules/c-strcasestr (Depends-on): Likewise.
107175         * modules/strcasestr (Depends-on): Likewise.
107176         * modules/mbsstr (Depends-on): Likewise.
107177         * modules/mbscasestr (Depends-on): Likewise.
107179 2007-02-11  Bruno Haible  <bruno@clisp.org>
107181         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
107183         * modules/mbsspn-tests: New file.
107184         * tests/test-mbsspn.sh: New file.
107185         * tests/test-mbsspn.c: New file.
107187 2007-02-11  Bruno Haible  <bruno@clisp.org>
107189         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
107191         * modules/mbspbrk-tests: New file.
107192         * tests/test-mbspbrk.sh: New file.
107193         * tests/test-mbspbrk.c: New file.
107195 2007-02-11  Bruno Haible  <bruno@clisp.org>
107197         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
107198         unneeded cast.
107200         * modules/mbscspn-tests: New file.
107201         * tests/test-mbscspn.sh: New file.
107202         * tests/test-mbscspn.c: New file.
107204 2007-02-11  Bruno Haible  <bruno@clisp.org>
107206         * modules/mbscasecmp-tests: New file.
107207         * tests/test-mbscasecmp.sh: New file.
107208         * tests/test-mbscasecmp.c: New file.
107210 2007-02-11  Bruno Haible  <bruno@clisp.org>
107212         Ensure O(n) worst-case complexity of mbscasestr.
107213         * lib/mbscasestr.c: Include stdbool.h.
107214         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107215         functions.
107216         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
107217         the bookkeeping indicates that it's worth it.
107218         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
107220         * modules/mbscasestr-tests: New file.
107221         * tests/test-mbscasestr1.c: New file.
107222         * tests/test-mbscasestr2.sh: New file.
107223         * tests/test-mbscasestr2.c: New file.
107224         * tests/test-mbscasestr3.sh: New file.
107225         * tests/test-mbscasestr3.c: New file.
107226         * tests/test-mbscasestr4.sh: New file.
107227         * tests/test-mbscasestr4.c: New file.
107228         * m4/locale-tr.m4: New file.
107230 2007-02-11  Bruno Haible  <bruno@clisp.org>
107232         Ensure O(n) worst-case complexity of mbsstr.
107233         * lib/mbsstr.c: Include stdbool.h.
107234         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107235         functions.
107236         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
107237         bookkeeping indicates that it's worth it.
107238         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
107240         * modules/mbsstr-tests: New file.
107241         * tests/test-mbsstr1.c: New file.
107242         * tests/test-mbsstr2.sh: New file.
107243         * tests/test-mbsstr2.c: New file.
107244         * tests/test-mbsstr3.sh: New file.
107245         * tests/test-mbsstr3.c: New file.
107246         * m4/locale-fr.m4: New file.
107248 2007-02-11  Bruno Haible  <bruno@clisp.org>
107250         * lib/mbsrchr.c (mbsrchr): Fix bug.
107252         * modules/mbsrchr-tests: New file.
107253         * tests/test-mbsrchr.sh: New file.
107254         * tests/test-mbsrchr.c: New file.
107256 2007-02-11  Bruno Haible  <bruno@clisp.org>
107258         * lib/mbschr.c (mbschr): Fix bug.
107260         * modules/mbschr-tests: New file.
107261         * tests/test-mbschr.sh: New file.
107262         * tests/test-mbschr.c: New file.
107263         * m4/locale-zh.m4: New file.
107265 2007-02-11  Bruno Haible  <bruno@clisp.org>
107267         Support for copying multibyte string iterators.
107268         * lib/mbiter.h: Include <string.h>.
107269         (mbiter_multi_copy): New function.
107270         (mbi_copy): New macro.
107271         * lib/mbuiter.h: Include <string.h>.
107272         (mbuiter_multi_copy): New function.
107273         (mbui_copy): New macro.
107275 2007-02-11  Bruno Haible  <bruno@clisp.org>
107277         New module mbslen.
107278         * modules/mbslen: New file.
107279         * lib/mbslen.c: New file.
107280         * lib/string_.h (mbslen): New declaration.
107281         * m4/mbslen.m4: New file.
107282         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107283         GNULIB_MBSLEN.
107284         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
107285         * MODULES.html.sh (Internationalization functions): Add mbslen.
107287 2007-02-11  Bruno Haible  <bruno@clisp.org>
107289         Ensure O(n) worst-case complexity of strcasestr substitute.
107290         * lib/strcasestr.c: Include stdbool.h.
107291         (knuth_morris_pratt): New function.
107292         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107293         bookkeeping indicates that it's worth it.
107294         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
107296         * modules/strcasestr-tests: New file.
107297         * tests/test-strcasestr.c: New file.
107299 2007-02-11  Bruno Haible  <bruno@clisp.org>
107301         Ensure O(n) worst-case complexity of c_strcasestr.
107302         * lib/c-strcasestr.c: Include stdbool.h, string.h.
107303         (knuth_morris_pratt): New function.
107304         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
107305         the bookkeeping indicates that it's worth it.
107306         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
107308         * modules/c-strcasestr-tests: New file.
107309         * tests/test-c-strcasestr.c: New file.
107311 2007-02-11  Bruno Haible  <bruno@clisp.org>
107313         Ensure O(n) worst-case complexity of c_strstr.
107314         * lib/c-strstr.c: Include stdbool.h, string.h.
107315         (knuth_morris_pratt): New function.
107316         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107317         bookkeeping indicates that it's worth it.
107318         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
107320         * lib/c-strstr.c: Complete rewrite for maintainability.
107322         * modules/c-strstr-tests: New file.
107323         * tests/test-c-strstr.c: New file.
107325 2007-02-11  Bruno Haible  <bruno@clisp.org>
107327         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
107328         5.2.1 and earlier, whereby \055 was treated just like the range
107329         delimiter '-'.
107330         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
107332 2007-02-08  Bruno Haible  <bruno@clisp.org>
107334         * modules/regex (Depends-on): Add stdbool.
107335         Reported by Dalibor Topic <robilad@kaffe.org>.
107337 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
107339         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
107340         Prefer returning from main to exiting from it.
107341         Remove unnecessary parens after sizeof.
107343 2007-02-05  Bruno Haible  <bruno@clisp.org>
107345         New module mbssep.
107346         * modules/mbssep: New file.
107347         * lib/mbssep.c: New file.
107348         * lib/string_.h (strsep): Add a conditional link warning.
107349         (mbssep): New declaration.
107350         * m4/mbssep.m4: New file.
107351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107352         GNULIB_MBSSEP.
107353         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
107354         * MODULES.html.sh (Internationalization functions): Add mbssep.
107356 2007-02-05  Bruno Haible  <bruno@clisp.org>
107358         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
107359         Optimize search in case of 1 delimiter.
107361 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107363         * lib/acl.h: Include sys/types.h before sys/acl.h.
107365 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107367         Merge upstream fix for glibc bugzilla #3957:
107369         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
107371         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
107372         bit for RE_HAT_LISTS_NOT_NEWLINE.
107373         (build_charclass_op): Remove bogus comment.
107375 2007-02-05  Simon Josefsson  <simon@josefsson.org>
107377         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
107379 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107381         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
107382         * lib/memmem.c [!defined _LIBC]: Include config.h.
107384 2007-02-04  Bruno Haible  <bruno@clisp.org>
107386         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
107387         warning message.
107389 2007-02-04  Bruno Haible  <bruno@clisp.org>
107391         New module mbstok_r.
107392         * modules/mbstok_r: New file.
107393         * lib/mbstok_r.c: New file.
107394         * lib/string_.h (strtok_r): Change argument names to match the
107395         comments. Add a conditional link warning.
107396         (mbstok_r): New declaration.
107397         * m4/mbstok_r.m4: New file.
107398         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107399         GNULIB_MBSTOK_R.
107400         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
107401         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
107403 2007-02-04  Bruno Haible  <bruno@clisp.org>
107405         New module mbsspn.
107406         * modules/mbsspn: New file.
107407         * lib/mbsspn.c: New file.
107408         * lib/string_.h (strspn): Add a conditional link warning.
107409         (mbsspn): New declaration.
107410         * m4/mbsspn.m4: New file.
107411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107412         GNULIB_MBSSPN.
107413         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
107414         * MODULES.html.sh (Internationalization functions): Add mbsspn.
107416 2007-02-04  Bruno Haible  <bruno@clisp.org>
107418         New module mbspbrk.
107419         * modules/mbspbrk: New file.
107420         * lib/mbspbrk.c: New file.
107421         * lib/string_.h (strpbrk): Add a conditional link warning.
107422         (mbspbrk): New declaration.
107423         * m4/mbspbrk.m4: New file.
107424         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107425         GNULIB_MBSPBRK.
107426         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
107427         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
107429 2007-02-04  Bruno Haible  <bruno@clisp.org>
107431         New module mbscspn.
107432         * modules/mbscspn: New file.
107433         * lib/mbscspn.c: New file.
107434         * lib/string_.h (strcspn): Add a conditional link warning.
107435         (mbscspn): New declaration.
107436         * m4/mbscspn.m4: New file.
107437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107438         GNULIB_MBSCSPN.
107439         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
107440         * MODULES.html.sh (Internationalization functions): Add mbscspn.
107442 2007-02-04  Bruno Haible  <bruno@clisp.org>
107444         New module mbscasestr, reduced goal of strcasestr.
107445         * modules/mbscasestr: New file.
107446         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
107447         (mbscasestr): Renamed from strcasestr.
107448         * lib/strcasestr.c: Don't include mbuiter.h.
107449         (strcasestr): Remove support for multibyte locales.
107450         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
107451         Change the conditional link warning.
107452         (mbscasestr): New declaration.
107453         * m4/mbscasestr.m4: New file.
107454         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
107455         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
107456         REPLACE_STRCASESTR.
107457         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
107458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107459         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107460         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
107461         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
107462         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107463         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
107464         (Depends-on): Remove mbuiter.
107465         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
107467 2007-02-04  Bruno Haible  <bruno@clisp.org>
107469         Simplify handling of strncasecmp.
107470         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
107471         the conditional link warning.
107472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107473         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
107474         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
107475         * modules/strcase (configure.ac): Don't invoke
107476         gl_STRING_MODULE_INDICATOR.
107477         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
107479 2007-02-04  Bruno Haible  <bruno@clisp.org>
107481         New module mbscasecmp, reduced goal of strcasecmp.
107482         * modules/mbscasecmp: New file.
107483         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
107484         (mbscasecmp): Renamed from strcasecmp.
107485         * lib/strcasecmp.c: Don't include mbuiter.h.
107486         (strcasecmp): Remove support for multibyte locales.
107487         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
107488         Change the conditional link warning.
107489         (mbscasecmp): New declaration.
107490         * m4/mbscasecmp.m4: New file.
107491         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
107492         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
107493         REPLACE_STRCASECMP.
107494         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
107495         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107496         GNULIB_MBSCASECMP.
107497         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
107498         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
107499         * modules/strcase (Files): Remove m4/mbrtowc.m4.
107500         (Depends-on): Remove mbuiter.
107501         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
107503 2007-02-04  Bruno Haible  <bruno@clisp.org>
107505         New module mbsstr. Remove module strstr.
107506         * modules/mbsstr: New file.
107507         * modules/strstr: Remove file.
107508         * lib/mbsstr.c: Renamed from lib/strstr.c.
107509         (mbsstr): Renamed from strstr.
107510         * lib/string_.h (strstr): Remove declaration. Change the conditional
107511         link warning.
107512         (mbsstr): New declaration.
107513         * m4/mbsstr.m4: New file.
107514         * m4/strstr.m4: Remove file.
107515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
107516         REPLACE_STRSTR.
107517         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
107518         Don't initialize GNULIB_STRSTR.
107519         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
107520         substitute GNULIB_STRSTR and REPLACE_STRSTR.
107521         * MODULES.html.sh (Internationalization functions): Add mbsstr.
107522         (Support for systems lacking ANSI C 89): Remove strstr.
107524 2007-02-04  Bruno Haible  <bruno@clisp.org>
107526         New module mbsrchr.
107527         * modules/mbsrchr: New file.
107528         * lib/mbsrchr.c: New file.
107529         * lib/string_.h (strrchr): Add a conditional link warning.
107530         (mbsrchr): New declaration.
107531         * m4/mbsrchr.m4: New file.
107532         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107533         GNULIB_MBSRCHR.
107534         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
107535         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
107537 2007-02-04  Bruno Haible  <bruno@clisp.org>
107539         New module mbschr.
107540         * modules/mbschr: New file.
107541         * lib/mbschr.c: New file.
107542         * lib/string_.h (strchr): Add a conditional link warning.
107543         (mbschr): New declaration.
107544         * m4/mbschr.m4: New file.
107545         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107546         GNULIB_MBSCHR.
107547         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
107548         * MODULES.html.sh (Internationalization functions): Add mbschr.
107550 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107552         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
107554         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
107556 2007-02-04  Bruno Haible  <bruno@clisp.org>
107558         New module description section 'configure.ac-early'.
107559         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
107560         (func_get_autoconf_early_snippet): New function.
107561         (func_import, func_create_testdir): Use it. Remove special cases for
107562         modules 'extensions' and 'lock'.
107563         * modules/extensions (configure.ac-early): Require
107564         gl_USE_SYSTEM_EXTENSIONS.
107565         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
107567 2007-02-04  Bruno Haible  <bruno@clisp.org>
107569         Make use of gcj-4.3's -fsource and -ftarget option.
107570         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
107571         and if so try the options -fsource and -ftarget.
107572         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
107573         source_version, ftarget_option, target_version arguments.
107574         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
107575         (is_envjavac_oldgcj_14_14_usable): Renamed from
107576         is_envjavac_gcj_14_14_usable.
107577         (is_envjavac_oldgcj_14_13_usable): Renamed from
107578         is_envjavac_gcj_14_13_usable.
107579         (is_gcj_present): Update.
107580         (is_gcj_43, is_gcj43_usable): New functions.
107581         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
107582         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
107583         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
107584         try the options -fsource and -ftarget.
107586 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107588         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
107589         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
107590         larger value.
107592 2007-02-03  Jim Meyering  <jim@meyering.net>
107594         Give tools a better chance to allocate space for very large buffers.
107595         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
107597         Make pwd and readlink work also when run with an unreadable parent dir
107598         on systems with openat support.
107599         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
107600         provided getcwd function, even when we have openat support.
107601         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
107603 2007-02-02  Bruno Haible  <bruno@clisp.org>
107605         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107606         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
107607         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
107608         portability problems if one of these functions is only used on specific
107609         platforms.
107610         Reported by Paul Eggert.
107612 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
107614         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
107615         is causing more trouble than it's curing.
107616         * lib/regex_internal.h (__mempcpy): Remove.
107617         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
107618         (and make the code a tad smaller to boot).
107619         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
107621 2007-02-02  Jim Meyering  <jim@meyering.net>
107623         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
107624         section, not in the Makefile.am: one.
107626 2007-02-02  Eric Blake  <ebb9@byu.net>
107628         * lib/strchrnul.c: Always include config.h first.
107630         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
107631         gnulib strstr is not necessary here.
107633 2007-02-02  Simon Josefsson  <simon@josefsson.org>
107635         * m4/socklen.m4: Fix typo.
107637 2007-02-02  Eric Blake  <ebb9@byu.net>
107639         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
107640         * modules/netinet_in (Makefile.am): Likewise.
107642 2007-02-01  Bruno Haible  <bruno@clisp.org>
107644         * lib/string_.h (GL_LINK_WARNING): New macro.
107645         (strcasecmp, strstr, strcasestr): If provided by the system,
107646         conditionally define as a macro that leads to a warning instead of to
107647         an error.
107648         (strncasecmp): Conditionally define as a macro that leads to a warning.
107650 2007-02-01  Karl Berry  <karl@gnu.org>
107652         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
107654 2007-02-01  Bruno Haible  <bruno@clisp.org>
107656         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
107657         renamings.
107659 2007-02-01  Eric Blake  <ebb9@byu.net>
107661         * modules/regex (Depends-on): Revert dependence on mempcpy.
107662         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
107663         module's definition of mempcpy.
107664         Reported by Paul Eggert.
107666 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107668         * lib/string_.h: If the gnulib module XYZ is not present, undefine
107669         the symbol XYZ before redefining it.  This fixes a problem with
107670         programs that don't use XYZ, when compiled on systems that define
107671         XYZ to something else.
107673 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
107675         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
107676         occurs when "mkdir -m foo" creates a setgid directory that is (1)
107677         writeable to group or other and (2) is intended to have a special
107678         mode bit that is set or cleared.  In such a case, the directory
107679         should be neither group- nor other-writeable until the special
107680         mode bits are right.
107682 2007-01-31  Eric Blake  <ebb9@byu.net>
107684         * modules/mountlist (Depends-on): Add strstr.
107686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
107687         bug.
107688         * modules/string (Makefile.am): Remove redundant replacement.
107689         * modules/regex (Depends-on): Add mempcpy.
107691 2007-01-31  Bruno Haible  <bruno@clisp.org>
107693         New module description field 'Link'.
107694         * gnulib-tool (func_usage): Document --extract-link-directive.
107695         (sed_extract_prog): Recognize 'Link' directive.
107696         (func_get_link_directive): New function.
107697         (func_import): Show summary of link directives.
107698         Handle --extract-link-directive option.
107699         * modules/acl (Link): New section.
107700         * modules/clock-time (Link): New section.
107701         * modules/euidaccess (Link): New section.
107702         * modules/gettext (Link): New section.
107703         * modules/iconv (Link): New section.
107704         * modules/lock (Link): New section.
107705         * modules/nanosleep (Link): New section.
107706         * modules/readline (Link): New section.
107708 2007-01-27  Bruno Haible  <bruno@clisp.org>
107710         Enforce the use of gnulib modules for unportable <string.h> functions.
107711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
107712         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
107713         (gl_HEADER_STRING_H_BODY): Require it.
107714         * lib/string_.h: If the gnulib module XYZ is not present, redefine
107715         the symbol XYZ to one that gives a link error.
107716         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
107717         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
107718         * modules/mempcpy (configure.ac): Likewise.
107719         * modules/memrchr (configure.ac): Likewise.
107720         * modules/stpcpy (configure.ac): Likewise.
107721         * modules/stpncpy (configure.ac): Likewise.
107722         * modules/strcase (configure.ac): Likewise.
107723         * modules/strcasestr (configure.ac): Likewise.
107724         * modules/strchrnul (configure.ac): Likewise.
107725         * modules/strdup (configure.ac): Likewise.
107726         * modules/strndup (configure.ac): Likewise.
107727         * modules/strnlen (configure.ac): Likewise.
107728         * modules/strpbrk (configure.ac): Likewise.
107729         * modules/strsep (configure.ac): Likewise.
107730         * modules/strstr (configure.ac): Likewise.
107731         * modules/strtok_r (configure.ac): Likewise.
107733 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
107735         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
107737 2007-01-30  Jim Meyering  <jim@meyering.net>
107739         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
107741 2007-01-29  Bruno Haible  <bruno@clisp.org>
107743         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
107744         * lib/execute.c: Likewise.
107745         * lib/pipe.c: Likewise.
107746         * lib/printf-args.h: Likewise.
107747         * lib/printf-args.c: Likewise.
107748         * lib/printf-parse.c: Likewise.
107749         * lib/vasnprintf.c: Likewise.
107751 2007-01-29  Eric Blake  <ebb9@byu.net>
107753         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
107754         declaration.
107756 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
107758         * lib/strptime.h (strptime): Use 'restrict' for args where
107759         POSIX requires this.
107760         * lib/strptime.c (strptime): Likewise.
107761         Change license notice from LGPL to GPL, since gnulib-tool will
107762         change this as needed.
107763         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
107764         defined.
107765         Include "strptime.h" first, to check interface.
107766         Do not #undef _LIBC and _NL_CURRENT.
107767         Do not include <stdlib.h>; no longer needed.
107768         Include "time_r.h" and declare ptime_locale_status
107769         only if _LIBC is not defined.
107770         (__P): Remove unused macro.
107771         (match_string): Bring back glibc version, but use it only if _LIBC
107772         is defined.
107773         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
107774         Remove unnecessary assertion and abort() call.
107775         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
107776         * m4/strptime.m4: Fix serial number comment.
107777         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
107778         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
107779         (Depends-on): Add time_r.
107781 2007-01-29  Bruno Haible  <bruno@clisp.org>
107783         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107784         strptime.
107785         * modules/strptime (Depends-on): Add stdbool.
107786         * lib/strptime.h: Include <time.h> always. Add comments.
107788 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107790         * modules/strptime: New file.
107791         * lib/strptime.h: New file.
107792         * lib/strptime.c: New file.
107793         * m4/strptime.m4: New file.
107795 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107797         * MODULES.html.sh: New module mpsort.
107798         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
107800         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
107801         a circularity problem with HP-UX ia64 reported by Bob Proulx in
107802         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
107803         All uses changed.
107804         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
107805         All uses changed.
107806         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
107807         to _Restrict_.
107808         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
107809         the parameter matches the prototype.
107811 2007-01-28  Jim Meyering  <jim@meyering.net>
107813         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
107814         sys/time.h here, reverting that part of the previous patch:
107815         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
107817 2007-01-28  Bruno Haible  <bruno@clisp.org>
107819         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
107820         value of $(SYS_TIME_H).
107821         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
107822         remove it conditionally, too. [added by Jim Meyering]
107823         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
107824         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
107825         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
107826         GETTIMEOFDAY_REPLACEMENT to 1.
107828 2007-01-28  Bruno Haible  <bruno@clisp.org>
107830         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
107831         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
107832         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
107833         Set UNISTD_H instead of UNISTD_H2.
107834         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
107836 2007-01-28  Bruno Haible  <bruno@clisp.org>
107838         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
107839         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
107841 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107843         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
107844         (func_create_testdir): Ensure C locale for `grep' and `tr'
107845         character ranges.
107846         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
107847         ACLOCAL_AMFLAGS parsing state machine.
107849 2007-01-27  Bruno Haible  <bruno@clisp.org>
107851         * modules/unistr/base: Update.
107853 2007-01-27  Bruno Haible  <bruno@clisp.org>
107855         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
107856         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
107857         * modules/unistr/u32-mbtouc-unsafe: Renamed from
107858         modules/unistr/u32-mbtouc.
107859         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
107860         * lib/unistr.h: Update.
107861         * lib/linebreak.c: Update.
107862         * modules/unistr/u32-mbtouc: Renamed from
107863         modules/unistr/u32-mbtouc-safe.
107864         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
107865         * lib/unistr.h: Update.
107866         * lib/unistr/u32-to-u8.c: Update.
107867         * lib/unistr/u32-to-u16.c: Update.
107869 2007-01-27  Bruno Haible  <bruno@clisp.org>
107871         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
107872         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
107873         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
107874         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
107875         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
107876         * modules/unistr/u16-mbtouc-unsafe: Renamed from
107877         modules/unistr/u16-mbtouc.
107878         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
107879         * lib/unistr.h: Update.
107880         * lib/linebreak.c: Update.
107881         * modules/linebreak: Update.
107882         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
107883         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
107884         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
107885         * modules/unistr/u16-mbtouc: Renamed from
107886         modules/unistr/u16-mbtouc-safe.
107887         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
107888         * lib/unistr.h: Update.
107889         * lib/unistr/u16-to-u8.c: Update.
107890         * modules/unistr/u16-to-u8: Update.
107891         * lib/unistr/u16-to-u32.c: Update.
107892         * modules/unistr/u16-to-u32: Update.
107894 2007-01-27  Bruno Haible  <bruno@clisp.org>
107896         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
107897         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
107898         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
107899         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
107900         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
107901         * modules/unistr/u8-mbtouc-unsafe: Renamed from
107902         modules/unistr/u8-mbtouc.
107903         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
107904         * lib/unistr.h: Update.
107905         * lib/striconveh.c: Update.
107906         * modules/striconveh: Update.
107907         * lib/linebreak.c: Update.
107908         * modules/linebreak: Update.
107909         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
107910         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
107911         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
107912         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
107913         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
107914         * lib/unistr.h: Update.
107915         * lib/striconveh.c: Update.
107916         * modules/striconveh: Update.
107917         * lib/unistr/u8-to-u16.c: Update.
107918         * modules/unistr/u8-to-u16: Update.
107919         * lib/unistr/u8-to-u32.c: Update.
107920         * modules/unistr/u8-to-u32: Update.
107922 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107924         Sync from Libtool.
107925         * lib/argz.c: Do not include strings.h nor memory.h, include
107926         string.h unconditionally.  Patch by Simon Josefsson.
107928 2007-01-27  Bruno Haible  <bruno@clisp.org>
107930         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
107931         from gl_HEADER_STRING_H_BODY.
107932         (gl_HEADER_STRING_H_BODY): Require it.
107933         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
107934         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
107935         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
107936         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
107937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
107938         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
107939         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
107940         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
107941         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
107942         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
107943         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
107944         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
107945         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
107946         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
107947         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
107949 2007-01-27  Bruno Haible  <bruno@clisp.org>
107951         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
107952         check_PROGRAMS into noinst_PROGRAMS.
107953         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
107954         check_PROGRAMS in this case.
107955         (func_import): Set for_test to false.
107956         (func_create_testdir): Set for_test to true.
107958 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107959             Bruno Haible  <bruno@clisp.org>
107961         * modules/strcasestr (Files): Remove lib/strcasestr.h.
107962         (Depends-on): Add string.
107963         (Includes): Use <string.h> instead of strcasestr.h.
107964         * modules/string (Makefile.am): Also substitute the value of
107965         REPLACE_STRCASESTR.
107966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
107967         assume strcasestr is declared in <string.h> not <strings.h>. Also
107968         set REPLACE_STRCASESTR.
107969         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
107970         REPLACE_STRCASESTR.
107971         * lib/strcasestr.h: Remove file.
107972         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
107973         * lib/string_.h (strcasestr): New declaration.
107975 2007-01-27  Bruno Haible  <bruno@clisp.org>
107977         * lib/string_.h: Use 'extern'.
107979 2007-01-27  Jim Meyering  <jim@meyering.net>
107981         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
107982         of set-but-not-used local, "q".
107984         * lib/mempcpy.c: Include <config.h> before <string.h>.
107985         This fixes a compilation error on HP-UX, due to the system's
107986         "restrict"-using mempcpy prototype.
107988 2007-01-26  Bruno Haible  <bruno@clisp.org>
107990         Small optimization.
107991         * lib/javacomp.c: Include c-strstr.h.
107992          (is_envjavac_gcj): Use c_strstr instead of strstr.
107993         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
107995 2007-01-26  Bruno Haible  <bruno@clisp.org>
107997         * MODULES.html.sh (Unicode string functions): Add the new modules.
107999         * modules/uniconv/u32-strconv-to-locale: New file.
108000         * lib/uniconv/u32-strconv-to-locale.c: New file.
108002         * modules/uniconv/u16-strconv-to-locale: New file.
108003         * lib/uniconv/u16-strconv-to-locale.c: New file.
108005         * modules/uniconv/u8-strconv-to-locale: New file.
108006         * lib/uniconv/u8-strconv-to-locale.c: New file.
108008         * modules/uniconv/u32-strconv-from-locale: New file.
108009         * lib/uniconv/u32-strconv-from-locale.c: New file.
108011         * modules/uniconv/u16-strconv-from-locale: New file.
108012         * lib/uniconv/u16-strconv-from-locale.c: New file.
108014         * modules/uniconv/u8-strconv-from-locale: New file.
108015         * lib/uniconv/u8-strconv-from-locale.c: New file.
108017         * modules/uniconv/u32-strconv-to-enc: New file.
108018         * lib/uniconv/u32-strconv-to-enc.c: New file.
108019         * modules/uniconv/u32-strconv-to-enc-tests: New file.
108020         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
108022         * modules/uniconv/u16-strconv-to-enc: New file.
108023         * lib/uniconv/u16-strconv-to-enc.c: New file.
108024         * lib/uniconv/u-strconv-to-enc.h: New file.
108025         * modules/uniconv/u16-strconv-to-enc-tests: New file.
108026         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
108028         * modules/uniconv/u8-strconv-to-enc: New file.
108029         * lib/uniconv/u8-strconv-to-enc.c: New file.
108030         * modules/uniconv/u8-strconv-to-enc-tests: New file.
108031         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
108033         * modules/uniconv/u32-strconv-from-enc: New file.
108034         * lib/uniconv/u32-strconv-from-enc.c: New file.
108035         * modules/uniconv/u32-strconv-from-enc-tests: New file.
108036         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
108038         * modules/uniconv/u16-strconv-from-enc: New file.
108039         * lib/uniconv/u16-strconv-from-enc.c: New file.
108040         * modules/uniconv/u16-strconv-from-enc-tests: New file.
108041         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
108043         * modules/uniconv/u8-strconv-from-enc: New file.
108044         * lib/uniconv/u8-strconv-from-enc.c: New file.
108045         * lib/uniconv/u-strconv-from-enc.h: New file.
108046         * modules/uniconv/u8-strconv-from-enc-tests: New file.
108047         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
108049         * modules/uniconv/u32-conv-from-enc: New file.
108050         * lib/uniconv/u32-conv-from-enc.c: New file.
108051         * modules/uniconv/u32-conv-from-enc-tests: New file.
108052         * tests/uniconv/test-u32-conv-from-enc.c: New file.
108054         * modules/uniconv/u16-conv-from-enc: New file.
108055         * lib/uniconv/u16-conv-from-enc.c: New file.
108056         * lib/uniconv/u-conv-from-enc.h: New file.
108057         * modules/uniconv/u16-conv-from-enc-tests: New file.
108058         * tests/uniconv/test-u16-conv-from-enc.c: New file.
108060         * modules/uniconv/u8-conv-from-enc: New file.
108061         * lib/uniconv/u8-conv-from-enc.c: New file.
108062         * modules/uniconv/u8-conv-from-enc-tests: New file.
108063         * tests/uniconv/test-u8-conv-from-enc.c: New file.
108065         * modules/uniconv/base: New file.
108066         * lib/uniconv.h: New file.
108068 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
108070         * doc/gnulib-tool.texi (Initial import): Update to match current
108071         behavior with strdup module.
108072         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
108073         * lib/memmem.h: Remove; all uses removed.  This is now done
108074         by <string.h>.
108075         * lib/mempcpy.h: Likewise.
108076         * lib/memrchr.h: Likewise.
108077         * lib/stpcpy.h: Likewise.
108078         * lib/stpncpy.h: Likewise.
108079         * lib/strcase.h: Likewise.
108080         * lib/strchrnul.h: Likewise.
108081         * lib/strdup.h: Likewise.
108082         * lib/strndup.h: Likewise.
108083         * lib/strnlen.h: Likewise.
108084         * lib/strpbrk.h: Likewise.
108085         * lib/strsep.h: Likewise.
108086         * lib/strstr.h: Likewise.
108087         * lib/strtok_r.h: Likewise.
108088         * lib/string_.h: New file.
108089         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
108090         Rely on <string.h> instead.
108091         * lib/canon-host.c: Likewise.
108092         * lib/chdir-long.c: Likewise.
108093         * lib/concatpath.c: Likewise.
108094         * lib/exclude.c: Likewise.
108095         * lib/fchdir.c: Likewise.
108096         * lib/getaddrinfo.c: Likewise.
108097         * lib/getcwd.c: Likewise.
108098         * lib/getsubopt.c: Likewise.
108099         * lib/glob.c: Likewise.
108100         * lib/hard-locale.c: Likewise.
108101         * lib/iconvme.c: Likewise.
108102         * lib/javacomp.c: Likewise.
108103         * lib/mempcpy.c: Likewise.
108104         * lib/memrchr.c: Likewise.
108105         * lib/regex_internal.h: Likewise.
108106         * lib/stpncpy.c: Likewise.
108107         * lib/strcasecmp.c: Likewise.
108108         * lib/strchrnul.c: Likewise.
108109         * lib/strdup.c: Likewise.
108110         * lib/striconv.c: Likewise.
108111         * lib/striconveh.c: Likewise.
108112         * lib/striconveha.c: Likewise.
108113         * lib/strncasecmp.c: Likewise.
108114         * lib/strndup.c: Likewise.
108115         * lib/strnlen.c: Likewise.
108116         * lib/strsep.c: Likewise.
108117         * lib/strstr.c: Likewise.
108118         * lib/strtok_r.c: Likewise.
108119         * lib/userspec.c: Likewise.
108120         * lib/w32spawn.h: Likewise.
108121         * lib/xstrndup.c: Likewise.
108122         * lib/mountlist.c (strstr): Remove decl.
108123         * m4/string_h.m4: New file.
108124         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
108125         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
108126         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
108127         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
108128         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
108129         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
108130         Set REPLACE_STRCASECMP if necessary.
108131         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
108132         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
108133         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
108134         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
108135         HAVE_DECL_STRDUP if necessary.
108136         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
108137         since gl_FUNC_STRNDUP does that now.
108138         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
108139         Check for decl here...
108140         (gl_PREREQ_STRNLEN): ... not here.
108141         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
108142         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
108143         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
108144         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
108145         necessary.
108146         * modules/string: New file.
108147         * modules/memmem (Files): Remove special-purpose include file.
108148         (Depends-on): Add string.
108149         (Include): Include <string.h>, not the removed file.
108150         * modules/mempcpy: Likewise.
108151         * modules/memrchr: Likewise.
108152         * modules/stpcpy: Likewise.
108153         * modules/stpncpy: Likewise.
108154         * modules/strcase: Likewise.
108155         * modules/strchrnul: Likewise.
108156         * modules/strdup: Likewise.
108157         * modules/strndup: Likewise.
108158         * modules/strnlen: Likewise.
108159         * modules/strpbrk: Likewise.
108160         * modules/strsep: Likewise.
108161         * modules/strstr: Likewise.
108162         * modules/strtok_r: Likewise.
108163         * tests/test-dirname.c: Don't include "strdup.h", since
108164         <string.h> now suffices.
108165         * tests/test-memmem.c: Don't include "memmem.h", since
108166         <string.h> now suffices.
108168 2007-01-25  Bruno Haible  <bruno@clisp.org>
108170         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
108171         *resultp is 0.
108173         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
108174         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
108175         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
108176         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
108178         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
108179         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
108180         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
108181         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
108182         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
108183         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
108185 2007-01-24  Bruno Haible  <bruno@clisp.org>
108187         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
108188         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
108189         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
108190         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
108191         gl_FUNC_FTS_CORE.
108192         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
108193         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
108194         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108195         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
108196         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
108197         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
108198         gl_FUNC_FCHOWNAT.
108199         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
108200         gl_FUNC_STRFTIME.
108201         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
108202         Reported by Ralf Wildenhues.
108204 2007-01-24  Bruno Haible  <bruno@clisp.org>
108206         Drop AC_REQUIRE calls that are redundant with the module dependencies.
108207         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
108208         gl_GETADDRINFO.
108209         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
108210         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
108211         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
108213 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
108215         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
108216         Don't use 'exit'; just return from 'main'.
108217         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
108219         * lib/fnmatch_.h: Readjust white space and comments to match
108220         glibc, to avoid spurious diffs.
108222 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108224         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
108225         2004-12-01 change by Jakub Jelinek, since this code won't compile
108226         if !LIBC.  Problem reported by Bob Proulx.
108228 2007-01-23  Bruno Haible  <bruno@clisp.org>
108230         * lib/striconveh.c: Include c-strcaseeq.h.
108231         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
108232         * modules/striconveh (Depends-on): Add c-strcaseeq.
108234 2007-01-23  Bruno Haible  <bruno@clisp.org>
108236         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
108238         * modules/c-strcaseeq: New file.
108239         * lib/c-strcaseeq.h: New file.
108241         * modules/streq: New file.
108242         * lib/streq.h: New file.
108244 2007-01-23  Bruno Haible  <bruno@clisp.org>
108246         * modules/striconveha-tests: New file.
108247         * tests/test-striconveha.c: New file.
108249         * lib/striconveha.h: Include <stdbool.h>.
108250         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
108251         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
108252         (mem_iconveha_notranslit): Renamed from mem_iconveha.
108253         (mem_iconveha): New function.
108254         (str_iconveha_notranslit): Renamed from str_iconveha.
108255         (str_iconveha): New function.
108256         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
108257         c-strcase.
108259 2007-01-23  Bruno Haible  <bruno@clisp.org>
108261         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
108262         encodings without forgiving before trying any encoding with handler.
108263         (str_iconveha): Try all encodings without forgiving before trying any
108264         encoding with handler.
108266 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108268         Import the following changes from libc.
108270         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108272         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
108274         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
108276         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
108277         normal_bracket label.
108279         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
108281         [BZ #361]
108282         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
108283         to normal_bracket after fetching the next character.
108285 2007-01-22  Bruno Haible  <bruno@clisp.org>
108287         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
108288         argument.
108289         * lib/striconveh.c (iconv_carefully_1): New function.
108290         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
108291         argument.
108292         (str_cd_iconveh): Update.
108293         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
108294         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
108295         * tests/test-striconveh.c (MAGIC): New macro.
108296         (new_offsets): New function.
108297         (main): Test call with and without offsets.
108299 2007-01-22  Bruno Haible  <bruno@clisp.org>
108301         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
108302         * modules/sys_select (Makefile.am): Likewise.
108303         * modules/sys_socket (Makefile.am): Likewise.
108304         * modules/sys_time (Makefile.am): Likewise.
108306 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
108308         * modules/gettimeofday (License): Change from GPL to LGPL, since
108309         gettimeofday is a library function.
108311 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108313         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
108315 2007-01-21  Bruno Haible  <bruno@clisp.org>
108317         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
108319 2007-01-21  Bruno Haible  <bruno@clisp.org>
108321         * modules/striconveha: New file.
108322         * lib/striconveha.h: New file.
108323         * lib/striconveha.c: New file.
108324         * MODULES.html.sh (Internationalization functions): Add striconveha.
108325         * lib/striconv.c (str_iconv): Optimize the case of an empty input
108326         string.
108327         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
108329 2007-01-21  Bruno Haible  <bruno@clisp.org>
108331         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
108332         * lib/striconveh.c (str_iconveh): Likewise.
108334 2007-01-21  Bruno Haible  <bruno@clisp.org>
108336         * lib/striconveh.h (mem_iconveh): New declaration.
108337         * lib/striconveh.c (mem_iconveh): New function.
108338         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
108340 2007-01-21  Bruno Haible  <bruno@clisp.org>
108342         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
108344         * lib/striconveh.h (mem_cd_iconveh): Change specification.
108345         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
108346         original result buffer.
108347         (str_cd_iconveh): Update.
108348         * tests/test-striconveh.c (main): Update.
108350         * lib/striconv.h (mem_cd_iconv): Change specification.
108351         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
108352         result buffer.
108353         (str_cd_iconv): Update.
108354         * tests/test-striconv.c (main): Update.
108356 2007-01-21  Bruno Haible  <bruno@clisp.org>
108358         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
108360 2007-01-20  Jim Meyering  <jim@meyering.net>
108362         * lib/userspec.c (parse_with_separator): If a user or group string
108363         starts with "+", skip the corresponding name-to-ID look-up, since
108364         such a look-up must fail: user and group names may not include "+".
108366 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
108368         * lib/poll.c: Include sys/time.h and time.h unconditionally,
108369         since we now assume the sys_time module.
108370         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
108371         check for sys/time.h; no longer needed.
108372         * modules/poll (Depends-on): Depend on sys_time.
108374 2007-01-18  Bruno Haible  <bruno@clisp.org>
108376         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
108377         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108379         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
108380         gettimeofday.
108382         * tests/test-gettimeofday.c: Include <time.h>.
108383         (dummy): Remove variable.
108385         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
108386         gl_HEADER_SYS_TIME_H.
108387         (gl_HEADER_SYS_TIME_H): New macro.
108389         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
108390         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108391         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
108392         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
108393         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108394         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
108395         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
108396         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108397         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
108398         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
108399         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108401         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
108402         last change; it caused a compilation error when cross-compiling to
108403         Cygwin.
108405 2007-01-18  Jim Meyering  <jim@meyering.net>
108407         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
108408         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
108409         than the race-prone "test -d sys || mkdir sys".
108410         (configure.ac): Use AC_PROG_MKDIR_P.
108411         * modules/sys_select: Likewise.
108412         * modules/sys_socket: Likewise.
108413         * modules/sys_time: Likewise.
108415 2007-01-18  Eric Blake  <ebb9@byu.net>
108417         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
108418         replace gettimeofday.
108419         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
108420         name, to avoid infinite recursion.
108422 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
108424         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
108425         module sys_time.
108426         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
108427         assume timespec.h defines struct timeval.
108428         * lib/settime.c: Likewise.
108429         * lib/utimens.c: Likewise.
108430         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
108431         since we now assume the gettimeofday module.
108432         * lib/tempname.c (__gen_tempname): Likewise.
108433         * lib/gettimeofday.h: Remove.
108434         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
108435         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
108436         Include <time.h>, for 'time()'.
108437         (localtime_buffer_addr): Also use this workaround if
108438         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
108439         to simplify the uses.  All uses changed.
108440         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
108441         that #undef is inside {}, and 'const' follows type name consistently.
108442         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
108443         (gettimeofday): Do not use the maximum possible value for
108444         tv->tv_usec, since that might break usages other than ls.c.
108445         Instead, we'll leave ls.c alone.  This undoes today's patch
108446         by Bruno.  Add a compile-time warning for 1s-clock resolution;
108447         we've never observed the problem but might as well keep the
108448         canary.
108449         * lib/nanosleep.c: Include timespec.h first, for interface check.
108450         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
108451         now assume the sys_time module.
108452         * lib/tempname.c: Likewise.
108453         * lib/timespec.h: Likewise.
108454         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
108455         needed.
108456         * lib/strftime.c: Likewise.
108457         * lib/timespec.h: Likewise.
108458         * lib/posixtm.c: Include posixtm.h first, for interface check.
108459         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
108460         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
108461         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
108462         * lib/sys_time_.h: New file.
108463         * lib/timespec.h (struct timespec): Use long int, not long.
108464         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108465         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
108466         Remove obsolescent call to AC_HEADER_TIME.
108467         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
108468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108469         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108470         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
108471         Likewise.
108472         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
108473         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
108474         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
108475         into the sys_time module.  Check for gettimeofday just once.
108476         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
108477         for gettimeofday signature to just check the signature.  Merely
108478         compile it, since linking doesn't test signature.  Improve test for
108479         whether gettimeofday.o is actually needed.
108480         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
108481         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
108482         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
108483         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108484         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
108485         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
108486         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
108487         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
108488         than worrying about sys/time.h.
108489         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108490         Don't bother worrying about TIME_WITH_SYS_TIME.
108491         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
108492         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
108493         * m4/sys_time_h.m4: New file.
108494         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
108495         Don't include sys/time.h.  Return from main rather than exiting.
108496         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
108497         all uses changed.
108498         * modules/gethrxtime (Depends-on): Add sys_time.
108499         * modules/gettime (Depends-on): Likewise.
108500         * modules/gettimeofday (Depends-on): Likewise.
108501         * modules/nanosleep (Depends-on): Likewise.
108502         * modules/settime (Depends-on): Likewise.
108503         * modules/tempname (Depends-on): Likewise.
108504         * modules/utimens (Depends-on): Likewise.
108505         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
108506         (Include): Change back to <sys/time.h>.
108507         (Maintainer): Add self.
108508         * modules/sys_time: New file.
108509         * modules/tempname (Depends-on): Add gettimeofday.
108510         * tests/test-gettimeofday.c: Include <sys/time.h>
108511         rather than gettimeofday.h.
108513 2007-01-17  Bruno Haible  <bruno@clisp.org>
108515         * gnulib-tool (func_get_license): Revert last patch. Instead, let
108516         the license default to GPL.
108517         (func_create_testdir): Don't complain if a module is LGPL and its
108518         tests module depends on GPLed modules.
108520 2007-01-17  Bruno Haible  <bruno@clisp.org>
108522         * lib/gettimeofday.c (gettimeofday): Add code for the case
108523         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
108524         maximum possible value for tv->tv_usec, rather than the minimum one.
108526 2005-10-08  Martin Lambers  <marlam@marlam.de>
108527 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108528 2007-01-16  Bruno Haible  <bruno@clisp.org>
108530         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
108531         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
108532         gl_FUNC_GETTIMEOFDAY.
108533         (Include): Add gettimeofday.h.
108534         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
108535         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
108536         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
108537         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
108538         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
108539         * lib/gettimeofday.h: New file.
108540         * lib/gettimeofday.c: Include <sys/timeb.h>.
108541         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
108542         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108543         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
108544         fall back on time().
108546         * tests/test-gettimeofday.c: New file.
108547         * modules/gettimeofday-tests: New file.
108549 2007-01-16  Eric Blake  <ebb9@byu.net>
108551         * modules/fnmatch (Depends-on): Depend on wchar.
108552         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
108553         * m4/fnmatch.m4: Likewise.
108554         * modules/mbchar (Makefile.am): Assume <wchar.h>.
108555         * m4/mbchar.m4: Likewise.
108556         * modules/mbswidth (Depends-on): Depend on wchar.
108557         * lib/mbswidth.c: Assume <wchar.h>.
108558         * m4/mbswidth.m4: Likewise.
108559         * modules/quotearg (Depends-on): Depend on wchar.
108560         * lib/quotearg.c: Assume <wchar.h>.
108561         * m4/quotearg.m4: Likewise.
108562         * modules/regex (Depends-on): Depend on wchar.
108563         * lib/regex_internal.h: Assume <wchar.h>.
108564         * m4/regex.m4: Likewise.
108565         * modules/stdint (Depends-on): Depend on wchar.
108566         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
108567         * m4/stdint.m4: Likewise.
108568         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
108569         * modules/strftime (Depends-on): Depend on wchar.
108570         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
108571         * modules/strtol (Depends-on): Depend on wchar.
108572         * lib/strtol.c: Assume <wchar.h>.
108573         * modules/wcwidth (Depends-on): Depend on wchar.
108574         * lib/wcwidth.h: Assume <wchar.h>.
108575         * m4/wcwidth.m4: Likewise.
108577 2007-01-16  Bruno Haible  <bruno@clisp.org>
108579         * modules/csharpexec-script: New, created from...
108580         * modules/csharpexec: ... this.
108582 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
108584         * modules/javaexec-script: New, created from...
108585         * modules/javaexec: ... this.
108587 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108589         * modules/poll (Dependencies): Add sys_select.
108591 2007-01-15  Jim Meyering  <jim@meyering.net>
108593         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
108594         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
108595         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
108596         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
108598 2007-01-15  Bruno Haible  <bruno@clisp.org>
108600         * modules/striconveh: New file.
108601         * lib/striconveh.h: New file.
108602         * lib/striconveh.c: New file.
108603         * MODULES.html.sh (Internationalization functions): Add striconveh.
108605         * modules/striconveh-tests: New file.
108606         * tests/test-striconveh.c: New file.
108608 2007-01-15  Bruno Haible  <bruno@clisp.org>
108610         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
108611         not from GNU libiconv or GNU libc.
108613 2007-01-15  Bruno Haible  <bruno@clisp.org>
108615         * doc/gnulib-intro.texi (Copyright): Explain the different license
108616         terms for module descriptions, autoconf macros, tests, documentation.
108618 2007-01-14  Bruno Haible  <bruno@clisp.org>
108620         * modules/striconv-tests: New file.
108621         * tests/test-striconv.c: New file.
108623 2007-01-14  Bruno Haible  <bruno@clisp.org>
108625         * modules/iconv-tests: New file.
108626         * tests/test-iconv.c: New file.
108628 2007-01-14  Bruno Haible  <bruno@clisp.org>
108630         * gnulib-tool (func_get_license): For test modules, use the license of
108631         the main module.
108633 2007-01-14  Bruno Haible  <bruno@clisp.org>
108635         * modules/iconv (Include): Clarify that <iconv.h> can only be included
108636         if iconv is found to exist.
108638 2007-01-14  Bruno Haible  <bruno@clisp.org>
108640         * modules/c-ctype-tests: New file.
108641         * tests/test-c-ctype.c: New file.
108643 2007-01-14  Bruno Haible  <bruno@clisp.org>
108645         * modules/binary-io-tests: New file.
108646         * tests/test-binary-io.sh: New file.
108647         * tests/test-binary-io.c: New file.
108649 2007-01-14  Bruno Haible  <bruno@clisp.org>
108651         * modules/array-oset-tests: New file.
108652         * tests/test-array_oset.c: New file.
108654 2007-01-14  Bruno Haible  <bruno@clisp.org>
108656         * modules/array-list-tests: New file.
108657         * tests/test-array_list.c: New file.
108659 2007-01-14  Bruno Haible  <bruno@clisp.org>
108661         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
108662         and make.
108663         Reported by Simon Josefsson in
108664         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
108666 2007-01-14  Bruno Haible  <bruno@clisp.org>
108668         * modules/allocsa-tests: New file.
108669         * tests/test-allocsa.c: New file.
108671 2007-01-14  Bruno Haible  <bruno@clisp.org>
108673         * modules/fchdir (Depends-on): Add absolute-header.
108674         * modules/unistd (Depends-on): Likewise.
108676 2006-12-30  Bruno Haible  <bruno@clisp.org>
108678         * modules/fchdir: New file.
108679         * modules/unistd (Files): Add lib/unistd_.h.
108680         (Makefile.am): Generate unistd.h from unistd_.h.
108681         * lib/fchdir.c: New file.
108682         * lib/dirent_.h: New file.
108683         * lib/unistd_.h: New file.
108684         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
108685         * m4/fchdir.m4: New file.
108686         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
108687         (gl_HEADER_UNISTD): Invoke it.
108688         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
108689         function.
108690         * lib/backupfile.c (opendir, closedir): Undefine.
108691         * lib/chown.c (open, close): Undefine.
108692         * lib/clean-temp.c (open, close): Undefine.
108693         * lib/copy-file.c (open, close): Undefine.
108694         * lib/execute.c (open, close): Undefine.
108695         * lib/fsusage.c (open, close): Undefine.
108696         * lib/gc-gnulib.c (open, close): Undefine.
108697         * lib/getcwd.c (opendir, closedir): Undefine.
108698         * lib/glob.c (opendir, closedir): Undefine.
108699         * lib/javacomp.c (open, close): Undefine.
108700         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
108701         * lib/openat-proc.c (open, close): Undefine.
108702         * lib/pagealign_alloc.c (open, close): Undefine.
108703         * lib/pipe.c (open, close): Undefine.
108704         * lib/progreloc.c (open, close): Undefine.
108705         * lib/savedir.c (opendir, closedir): Undefine.
108706         * lib/utime.c (open, close): Undefine.
108707         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
108709 2007-01-10  Bruno Haible  <bruno@clisp.org>
108711         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
108713 2007-01-12  Eric Blake  <ebb9@byu.net>
108715         Provide a robust <wchar.h>.  Further simplifications are now
108716         possible in other modules, but not included here.
108717         * modules/wchar: New module.
108718         * m4/wchar.m4: New file.
108719         * lib/wchar_.h: Likewise.
108720         * modules/mbchar (Depends-on): Depend on wchar, as the first use
108721         of the new module.
108722         * MODULES.html.sh (Extended multibyte and wide character utilities):
108723         New section.
108725 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
108727         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
108728         to a reasonable default for memory allocation.
108729         (xreadlink): Don't allocate a huge buffer, to work around a buggy
108730         file system that reports garbage st_size values for symlinks.
108731         Problem reported by Liyang Hu.
108733 2007-01-11  Simon Josefsson  <simon@josefsson.org>
108735         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
108736         Emacs .#* auto-save files).
108738 2007-01-11  Bruno Haible  <bruno@clisp.org>
108740         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
108741         directory.
108743 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
108745         Use @...@ consistently in lib/wctype_.h.
108746         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
108747         on it being set to 1 or 0.
108748         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
108749         go back to AC_SUBSTing it.
108750         * modules/wctype (Makefile.am): Undo previous change.
108752 2007-01-10  Eric Blake  <ebb9@byu.net>
108754         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
108755         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
108756         * modules/wctype (Makefile.am): Likewise.
108757         Reported by Chris McGuire.
108759 2007-01-10  Jim Meyering  <jim@meyering.net>
108761         fts.c: a small readability/maintainability improvement
108762         * lib/fts.c (fts_read): Make this code slightly more readable and
108763         maintainable by hoisting the "sp->fts_cur = p" assignments to
108764         immediately follow the statements that set P.  Derived from
108765         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
108767 2007-01-10  Eric Blake  <ebb9@byu.net>
108769         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
108770         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
108771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
108772         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
108773         Reported by Chris McGuire.
108775 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108777         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
108778         in sed script.
108780 2007-01-09  Bruno Haible  <bruno@clisp.org>
108782         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
108783         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
108784         variables.
108785         (func_module): Use them.
108787 2007-01-09  Bruno Haible  <bruno@clisp.org>
108789         * modules/unistr/base: New file.
108790         * lib/unistr.h: New file.
108792         * modules/unistr/u8-to-u16: New file.
108793         * lib/unistr/u8-to-u16.c: New file.
108795         * modules/unistr/u8-to-u32: New file.
108796         * lib/unistr/u8-to-u32.c: New file.
108798         * modules/unistr/u16-to-u8: New file.
108799         * lib/unistr/u16-to-u8.c: New file.
108801         * modules/unistr/u16-to-u32: New file.
108802         * lib/unistr/u16-to-u32.c: New file.
108804         * modules/unistr/u32-to-u8: New file.
108805         * lib/unistr/u32-to-u8.c: New file.
108807         * modules/unistr/u32-to-u16: New file.
108808         * lib/unistr/u32-to-u16.c: New file.
108810         * modules/unistr/u8-check: New file.
108811         * modules/unistr/u16-check: New file.
108812         * modules/unistr/u32-check: New file.
108813         * lib/unistr/u8-check.c: New file.
108814         * lib/unistr/u16-check.c: New file.
108815         * lib/unistr/u32-check.c: New file.
108817         * modules/unistr/u8-chr: New file.
108818         * modules/unistr/u16-chr: New file.
108819         * modules/unistr/u32-chr: New file.
108820         * lib/unistr/u8-chr.c: New file.
108821         * lib/unistr/u16-chr.c: New file.
108822         * lib/unistr/u32-chr.c: New file.
108824         * modules/unistr/u8-cmp: New file.
108825         * modules/unistr/u16-cmp: New file.
108826         * modules/unistr/u32-cmp: New file.
108827         * lib/unistr/u8-cmp.c: New file.
108828         * lib/unistr/u16-cmp.c: New file.
108829         * lib/unistr/u32-cmp.c: New file.
108831         * modules/unistr/u8-cpy: New file.
108832         * modules/unistr/u16-cpy: New file.
108833         * modules/unistr/u32-cpy: New file.
108834         * lib/unistr/u8-cpy.c: New file.
108835         * lib/unistr/u16-cpy.c: New file.
108836         * lib/unistr/u32-cpy.c: New file.
108837         * lib/unistr/u-cpy.h: New file.
108839         * modules/unistr/u8-cpy-alloc: New file.
108840         * modules/unistr/u16-cpy-alloc: New file.
108841         * modules/unistr/u32-cpy-alloc: New file.
108842         * lib/unistr/u8-cpy-alloc.c: New file.
108843         * lib/unistr/u16-cpy-alloc.c: New file.
108844         * lib/unistr/u32-cpy-alloc.c: New file.
108845         * lib/unistr/u-cpy-alloc.h: New file.
108847         * modules/unistr/u8-endswith: New file.
108848         * modules/unistr/u16-endswith: New file.
108849         * modules/unistr/u32-endswith: New file.
108850         * lib/unistr/u8-endswith.c: New file.
108851         * lib/unistr/u16-endswith.c: New file.
108852         * lib/unistr/u32-endswith.c: New file.
108853         * lib/unistr/u-endswith.h: New file.
108855         * modules/unistr/u8-mblen: New file.
108856         * modules/unistr/u16-mblen: New file.
108857         * modules/unistr/u32-mblen: New file.
108858         * lib/unistr/u8-mblen.c: New file.
108859         * lib/unistr/u16-mblen.c: New file.
108860         * lib/unistr/u32-mblen.c: New file.
108862         * modules/unistr/u8-mbtouc: New file.
108863         * modules/unistr/u16-mbtouc: New file.
108864         * modules/unistr/u32-mbtouc: New file.
108865         * lib/unistr/u8-mbtouc.c: New file.
108866         * lib/unistr/u16-mbtouc.c: New file.
108867         * lib/unistr/u32-mbtouc.c: New file.
108869         * modules/unistr/u8-mbtouc-safe: New file.
108870         * modules/unistr/u16-mbtouc-safe: New file.
108871         * modules/unistr/u32-mbtouc-safe: New file.
108872         * lib/unistr/u8-mbtouc-safe.c: New file.
108873         * lib/unistr/u16-mbtouc-safe.c: New file.
108874         * lib/unistr/u32-mbtouc-safe.c: New file.
108876         * modules/unistr/u8-move: New file.
108877         * modules/unistr/u16-move: New file.
108878         * modules/unistr/u32-move: New file.
108879         * lib/unistr/u8-move.c: New file.
108880         * lib/unistr/u16-move.c: New file.
108881         * lib/unistr/u32-move.c: New file.
108882         * lib/unistr/u-move.h: New file.
108884         * modules/unistr/u8-next: New file.
108885         * modules/unistr/u16-next: New file.
108886         * modules/unistr/u32-next: New file.
108887         * lib/unistr/u8-next.c: New file.
108888         * lib/unistr/u16-next.c: New file.
108889         * lib/unistr/u32-next.c: New file.
108891         * modules/unistr/u8-prev: New file.
108892         * modules/unistr/u16-prev: New file.
108893         * modules/unistr/u32-prev: New file.
108894         * lib/unistr/u8-prev.c: New file.
108895         * lib/unistr/u16-prev.c: New file.
108896         * lib/unistr/u32-prev.c: New file.
108898         * modules/unistr/u8-set: New file.
108899         * modules/unistr/u16-set: New file.
108900         * modules/unistr/u32-set: New file.
108901         * lib/unistr/u8-set.c: New file.
108902         * lib/unistr/u16-set.c: New file.
108903         * lib/unistr/u32-set.c: New file.
108904         * lib/unistr/u-set.h: New file.
108906         * modules/unistr/u8-startswith: New file.
108907         * modules/unistr/u16-startswith: New file.
108908         * modules/unistr/u32-startswith: New file.
108909         * lib/unistr/u8-startswith.c: New file.
108910         * lib/unistr/u16-startswith.c: New file.
108911         * lib/unistr/u32-startswith.c: New file.
108912         * lib/unistr/u-startswith.h: New file.
108914         * modules/unistr/u8-stpcpy: New file.
108915         * modules/unistr/u16-stpcpy: New file.
108916         * modules/unistr/u32-stpcpy: New file.
108917         * lib/unistr/u8-stpcpy.c: New file.
108918         * lib/unistr/u16-stpcpy.c: New file.
108919         * lib/unistr/u32-stpcpy.c: New file.
108920         * lib/unistr/u-stpcpy.h: New file.
108922         * modules/unistr/u8-stpncpy: New file.
108923         * modules/unistr/u16-stpncpy: New file.
108924         * modules/unistr/u32-stpncpy: New file.
108925         * lib/unistr/u8-stpncpy.c: New file.
108926         * lib/unistr/u16-stpncpy.c: New file.
108927         * lib/unistr/u32-stpncpy.c: New file.
108928         * lib/unistr/u-stpncpy.h: New file.
108930         * modules/unistr/u8-strcat: New file.
108931         * modules/unistr/u16-strcat: New file.
108932         * modules/unistr/u32-strcat: New file.
108933         * lib/unistr/u8-strcat.c: New file.
108934         * lib/unistr/u16-strcat.c: New file.
108935         * lib/unistr/u32-strcat.c: New file.
108936         * lib/unistr/u-strcat.h: New file.
108938         * modules/unistr/u8-strchr: New file.
108939         * modules/unistr/u16-strchr: New file.
108940         * modules/unistr/u32-strchr: New file.
108941         * lib/unistr/u8-strchr.c: New file.
108942         * lib/unistr/u16-strchr.c: New file.
108943         * lib/unistr/u32-strchr.c: New file.
108945         * modules/unistr/u8-strcmp: New file.
108946         * modules/unistr/u16-strcmp: New file.
108947         * modules/unistr/u32-strcmp: New file.
108948         * lib/unistr/u8-strcmp.c: New file.
108949         * lib/unistr/u16-strcmp.c: New file.
108950         * lib/unistr/u32-strcmp.c: New file.
108952         * modules/unistr/u8-strcpy: New file.
108953         * modules/unistr/u16-strcpy: New file.
108954         * modules/unistr/u32-strcpy: New file.
108955         * lib/unistr/u8-strcpy.c: New file.
108956         * lib/unistr/u16-strcpy.c: New file.
108957         * lib/unistr/u32-strcpy.c: New file.
108958         * lib/unistr/u-strcpy.h: New file.
108960         * modules/unistr/u8-strcspn: New file.
108961         * modules/unistr/u16-strcspn: New file.
108962         * modules/unistr/u32-strcspn: New file.
108963         * lib/unistr/u8-strcspn.c: New file.
108964         * lib/unistr/u16-strcspn.c: New file.
108965         * lib/unistr/u32-strcspn.c: New file.
108966         * lib/unistr/u-strcspn.h: New file.
108968         * modules/unistr/u8-strdup: New file.
108969         * modules/unistr/u16-strdup: New file.
108970         * modules/unistr/u32-strdup: New file.
108971         * lib/unistr/u8-strdup.c: New file.
108972         * lib/unistr/u16-strdup.c: New file.
108973         * lib/unistr/u32-strdup.c: New file.
108974         * lib/unistr/u-strdup.h: New file.
108976         * modules/unistr/u8-strlen: New file.
108977         * modules/unistr/u16-strlen: New file.
108978         * modules/unistr/u32-strlen: New file.
108979         * lib/unistr/u8-strlen.c: New file.
108980         * lib/unistr/u16-strlen.c: New file.
108981         * lib/unistr/u32-strlen.c: New file.
108982         * lib/unistr/u-strlen.h: New file.
108984         * modules/unistr/u8-strmblen: New file.
108985         * modules/unistr/u16-strmblen: New file.
108986         * modules/unistr/u32-strmblen: New file.
108987         * lib/unistr/u8-strmblen.c: New file.
108988         * lib/unistr/u16-strmblen.c: New file.
108989         * lib/unistr/u32-strmblen.c: New file.
108991         * modules/unistr/u8-strmbtouc: New file.
108992         * modules/unistr/u16-strmbtouc: New file.
108993         * modules/unistr/u32-strmbtouc: New file.
108994         * lib/unistr/u8-strmbtouc.c: New file.
108995         * lib/unistr/u16-strmbtouc.c: New file.
108996         * lib/unistr/u32-strmbtouc.c: New file.
108998         * modules/unistr/u8-strncat: New file.
108999         * modules/unistr/u16-strncat: New file.
109000         * modules/unistr/u32-strncat: New file.
109001         * lib/unistr/u8-strncat.c: New file.
109002         * lib/unistr/u16-strncat.c: New file.
109003         * lib/unistr/u32-strncat.c: New file.
109004         * lib/unistr/u-strncat.h: New file.
109006         * modules/unistr/u8-strncmp: New file.
109007         * modules/unistr/u16-strncmp: New file.
109008         * modules/unistr/u32-strncmp: New file.
109009         * lib/unistr/u8-strncmp.c: New file.
109010         * lib/unistr/u16-strncmp.c: New file.
109011         * lib/unistr/u32-strncmp.c: New file.
109013         * modules/unistr/u8-strncpy: New file.
109014         * modules/unistr/u16-strncpy: New file.
109015         * modules/unistr/u32-strncpy: New file.
109016         * lib/unistr/u8-strncpy.c: New file.
109017         * lib/unistr/u16-strncpy.c: New file.
109018         * lib/unistr/u32-strncpy.c: New file.
109019         * lib/unistr/u-strncpy.h: New file.
109021         * modules/unistr/u8-strnlen: New file.
109022         * modules/unistr/u16-strnlen: New file.
109023         * modules/unistr/u32-strnlen: New file.
109024         * lib/unistr/u8-strnlen.c: New file.
109025         * lib/unistr/u16-strnlen.c: New file.
109026         * lib/unistr/u32-strnlen.c: New file.
109027         * lib/unistr/u-strnlen.h: New file.
109029         * modules/unistr/u8-strpbrk: New file.
109030         * modules/unistr/u16-strpbrk: New file.
109031         * modules/unistr/u32-strpbrk: New file.
109032         * lib/unistr/u8-strpbrk.c: New file.
109033         * lib/unistr/u16-strpbrk.c: New file.
109034         * lib/unistr/u32-strpbrk.c: New file.
109035         * lib/unistr/u-strpbrk.h: New file.
109037         * modules/unistr/u8-strrchr: New file.
109038         * modules/unistr/u16-strrchr: New file.
109039         * modules/unistr/u32-strrchr: New file.
109040         * lib/unistr/u8-strrchr.c: New file.
109041         * lib/unistr/u16-strrchr.c: New file.
109042         * lib/unistr/u32-strrchr.c: New file.
109044         * modules/unistr/u8-strspn: New file.
109045         * modules/unistr/u16-strspn: New file.
109046         * modules/unistr/u32-strspn: New file.
109047         * lib/unistr/u8-strspn.c: New file.
109048         * lib/unistr/u16-strspn.c: New file.
109049         * lib/unistr/u32-strspn.c: New file.
109050         * lib/unistr/u-strspn.h: New file.
109052         * modules/unistr/u8-strstr: New file.
109053         * modules/unistr/u16-strstr: New file.
109054         * modules/unistr/u32-strstr: New file.
109055         * lib/unistr/u8-strstr.c: New file.
109056         * lib/unistr/u16-strstr.c: New file.
109057         * lib/unistr/u32-strstr.c: New file.
109058         * lib/unistr/u-strstr.h: New file.
109060         * modules/unistr/u8-strtok: New file.
109061         * modules/unistr/u16-strtok: New file.
109062         * modules/unistr/u32-strtok: New file.
109063         * lib/unistr/u8-strtok.c: New file.
109064         * lib/unistr/u16-strtok.c: New file.
109065         * lib/unistr/u32-strtok.c: New file.
109066         * lib/unistr/u-strtok.h: New file.
109068         * modules/unistr/u8-uctomb: New file.
109069         * modules/unistr/u16-uctomb: New file.
109070         * modules/unistr/u32-uctomb: New file.
109071         * lib/unistr/u8-uctomb.c: New file.
109072         * lib/unistr/u16-uctomb.c: New file.
109073         * lib/unistr/u32-uctomb.c: New file.
109075         * MODULES.html.sh (Unicode string functions): Add the new modules.
109077 2007-01-08  Bruno Haible  <bruno@clisp.org>
109079         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
109080         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
109081         subdirectories.
109083 2007-01-08  Karl Berry  <karl@gnu.org>
109085         * doc/error.texi: mention that main() fns must set program_name
109086         when progname is used.
109088 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
109090         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
109091         WCTYPE_H is empty, for the benefit of builds from non-distclean
109092         directories.  Problem reported by Eric Blake in
109093         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
109095 2007-01-08  Bruno Haible  <bruno@clisp.org>
109097         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
109098         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
109099         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
109100         PROVIDE_CANONICALIZE_FILENAME_MODE.
109101         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
109103 2007-01-08  Bruno Haible  <bruno@clisp.org>
109105         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
109106         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
109107         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
109108         * lib/fts.c: Likewise.
109109         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
109111 2006-12-25  Bruno Haible  <bruno@clisp.org>
109113         * modules/utf8-ucs4-safe: New file.
109114         * lib/utf8-ucs4-safe.h: New file.
109115         * lib/unistr/utf8-ucs4-safe.c: New file.
109117         * modules/utf16-ucs4-safe: New file.
109118         * lib/utf16-ucs4-safe.h: New file.
109119         * lib/unistr/utf16-ucs4-safe.c: New file.
109121         * MODULES.html.sh (Unicode string functions): Add the new modules.
109123 2007-01-08  Bruno Haible  <bruno@clisp.org>
109125         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
109126         (Depends-on): Add unitypes.
109127         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109128         (u8_mbtouc_aux): Move out to separate file.
109129         (u8_mbtouc): Use ucs4_t, uint8_t types.
109130         * lib/unistr/utf8-ucs4.c: New file.
109132         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
109133         (Depends-on): Add unitypes.
109134         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109135         (u16_mbtouc_aux): Move out to separate file.
109136         (u16_mbtouc): Use ucs4_t, uint16_t types.
109137         * lib/unistr/utf16-ucs4.c: New file.
109139         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
109140         (Depends-on): Add unitypes.
109141         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
109142         (u8_uctomb_aux): Move out to separate file.
109143         (u8_uctomb): Use ucs4_t, uint8_t types.
109144         * lib/unistr/ucs4-utf8.c: New file.
109146         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
109147         (Depends-on): Add unitypes.
109148         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
109149         (u16_uctomb_aux): Move out to separate file.
109150         (u16_uctomb): Use ucs4_t, uint16_t types.
109151         * lib/unistr/ucs4-utf16.c: New file.
109153 2006-12-25  Bruno Haible  <bruno@clisp.org>
109155         * modules/unitypes: New file.
109156         * lib/unitypes.h: New file.
109157         * MODULES.html.sh (func_all_modules): New section "Unicode string
109158         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
109159         this section. Add unitypes.
109161 2007-01-08  Bruno Haible  <bruno@clisp.org>
109163         Avoid variable names that conflict with those from libtool.
109164         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
109165         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
109166         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
109167         library_names_spec to acl_library_names_spec, hardcode_* to
109168         acl_hardcode_*.
109169         Reported by Ralf Wildenhues.
109171 2007-01-08  Bruno Haible  <bruno@clisp.org>
109173         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
109174         definition.
109175         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
109176         definition.
109177         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
109178         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
109179         definition.
109180         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
109181         definition.
109182         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
109183         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
109184         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
109185         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
109186         definition.
109187         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
109188         definition.
109189         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
109190         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
109191         GC_USE_<algorithm>.
109192         * lib/gc-libgcrypt.c: Likewise.
109193         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
109194         * modules/gc-arctwo (configure.ac): Likewise.
109195         * modules/gc-des (configure.ac): Likewise.
109196         * modules/gc-hmac-md5 (configure.ac): Likewise.
109197         * modules/gc-hmac-sha1 (configure.ac): Likewise.
109198         * modules/gc-md2 (configure.ac): Likewise.
109199         * modules/gc-md4 (configure.ac): Likewise.
109200         * modules/gc-md5 (configure.ac): Likewise.
109201         * modules/gc-random (configure.ac): Likewise.
109202         * modules/gc-rijndael (configure.ac): Likewise.
109203         * modules/gc-sha1 (configure.ac): Likewise.
109205 2007-01-08  Bruno Haible  <bruno@clisp.org>
109207         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
109208         macro definition.
109209         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
109210         definition.
109211         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
109212         definition.
109213         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
109214         * modules/fcntl-safer (configure.ac): Likewise.
109215         * modules/fopen-safer (configure.ac): Likewise.
109216         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
109217         GNULIB_FWRITEERROR macro definition.
109219 2007-01-08  Bruno Haible  <bruno@clisp.org>
109221         * m4/gnulib-common.m4: New file.
109222         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
109223         (func_get_filelist): Add m4/gnulib-common.m4.
109225 2007-01-08  Bruno Haible  <bruno@clisp.org>
109227         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
109228         command.
109230 2007-01-08  Jim Meyering  <jim@meyering.net>
109232         Use a more robust test for a "can't happen" condition.
109233         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
109234         narrowed the st_size value.  Presuming the "can't happen" condition
109235         is true, that narrowing could conceivably convert an invalid st_size
109236         value into a valid one.  Instead, use a change based on Matthew
109237         Woehlke's original patch.
109239         Slight readability improvement: use an assert-like macro
109240         in place of literal "abort ()" uses.
109241         * lib/fts.c (fts_assert): Define.
109242         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
109243         Use this macro instead of a bare 'abort'.
109245 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
109247         Don't worry about using IRIX 5.3's wctype.h broken definitions;
109248         simply work around them.
109249         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
109250         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
109251         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
109252         declaring.
109253         Don't bother to define as macros, since the standard doesn't require it.
109254         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
109255         longer worry about IRIX 5.3.
109256         (HAVE_WCTYPE_CTMP_BUG): Remove.
109258 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109260         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
109261         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
109262         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
109263         Problems reported by Georg Schwarz for IRIX 5.3.
109265         * gnulib-tool (autoconf_minversion): Take the maximum version number
109266         found, not the minimum.  Problem reported by James Youngman.
109268 2007-01-03  Karl Berry  <karl@gnu.org>
109270         * doc/error.texi: new file, explaining interaction with progname.
109271         * doc/gnulib.texi: include it.  Update copyright.
109273 2007-01-03  Simon Josefsson  <simon@josefsson.org>
109275         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
109276         AC_CANONICAL_HOST, to improve autobuild outputs.
109278 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
109279             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
109281         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
109282         sockets, server sockets, and other file descriptors.  Count errors
109283         to compute the return value.  Reorder the code a bit to be easier
109284         to follow.  Don't set event bits that were not requested (except
109285         POLLERR and POLLHUP).
109287 2007-01-01  Bruno Haible  <bruno@clisp.org>
109289         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
109291 2007-01-03  Jim Meyering  <jim@meyering.net>
109293         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
109295 2007-01-02  Bruno Haible  <bruno@clisp.org>
109297         * modules/settime (Include): Require timespec.h.
109298         * modules/nanosleep (Include): Likewise.
109300 2007-01-01  Bruno Haible  <bruno@clisp.org>
109302         * gnulib-tool (func_emit_copyright_notice): Bump year.
109303         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
109305 2007-01-01  Bruno Haible  <bruno@clisp.org>
109307         Improve support for OpenBSD.
109308         * build-aux/config.rpath (libname_spec): Export.
109309         (library_names_spec): New variable. Export.
109310         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
109311         library_names_spec from the config.rpath output. Locate shared library
109312         through the name pattern in library_names_spec.
109314 2007-01-01  Eric Blake  <ebb9@byu.net>
109316         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
109318 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
109320         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
109321         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
109322         assume the C locale, and avoid an "eval" that could cause trouble.
109323         Problem with SORT reported by Bob Proulx.
109325         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
109326         Define.  Trivial patch from Henning Nielsen Lund, originally
109327         sent to bug-grep@gnu.org today.
109329 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
109331         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
109332         struct stat.  Problem reported by Henning Nielsen Lund.
109333         * lib/acl.c: Include acl.h first, to check interface.  Don't
109334         bother to include sys/types.h and sys/stat.h again.
109336 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
109338         Import the following change from libc; problem reported by
109339         Sven Verdoolaege.
109341         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
109343         [BZ #1373]
109344         * lib/argp.h: Remove __NTH for __argp_usage inline function.
109346 2006-12-28  Jim Meyering  <jim@meyering.net>
109348         * build-aux/announce-gen: Do not assume that the package
109349         builds any of tar.gz, tar.bz2, and .xdelta files.
109350         Suggestion from Simon Josefsson.
109352 2006-12-28  Simon Josefsson  <simon@josefsson.org>
109354         * modules/announce-gen: New file.
109356 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
109358         * lib/mbchar.h: Just include <wctype.h>; the wctype module
109359         handles its gotchas now.
109360         * lib/mbswidth.c: Likewise.
109361         * lib/wcwidth.h: Likewise.
109362         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
109363         and iswcntrl; the wctype module does this stuff now.
109364         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109366         * modules/mbchar (Depends-on): Add wctype.
109367         * modules/mbswidth (Depends-on): Likewise.
109368         * modules/wcwidth (Depends-on): Likewise.
109370 2006-12-27  Eric Blake  <ebb9@byu.net>
109372         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
109373         module uses more than what <wctype.h> is required to provide.
109375 2006-12-26  Eric Blake  <ebb9@byu.net>
109377         * gnulib-tool (sed_extract_prog): Avoid space-tab.
109379 2006-12-26  Eric Blake  <ebb9@byu.net>
109381         * modules/absolute-header: New module.
109382         * modules/fcntl (Depends-on): Depend on it.
109383         * modules/inttypes (Depends-on): Likewise.
109384         * modules/stdint (Depends-on): Likewise.
109385         * modules/sys_stat (Depends-on): Likewise.
109386         * modules/wctype (Depends-on): Likewise.
109387         * MODULES.html.sh (Support for building libraries and
109388         executables): Document it.
109390 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
109392         * gnulib-tool (SED): Remove, undoing previous change.
109393         The problem was that it broke coreutils on Solaris, because
109394         "sed --posix" leaked into a makefile.
109395         (sed): New alias, if 'alias' and GNU sed.
109397 2006-12-24  Jim Meyering  <jim@meyering.net>
109399         Work around an fchownat bug in glibc-2.4:
109400         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
109401         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
109402         in spite of the -P option.
109403         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
109404         New macros.
109405         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
109406         * modules/openat (Files): Add lib/fchownat.c.
109407         * lib/openat.c (fchownat): Don't define here.  Move to...
109408         * lib/fchownat.c: ...this new file.
109410 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
109412         Fix bug reported by Bruno Haible in
109413         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
109414         where quotearg.c didn't compile on Mac OS X 10.2 because it
109415         lacks <wchar.h> and wint_t.
109416         * lib/wctype_.h (__wctype_wint_t): New type.
109417         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
109418         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
109419         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
109420         Arg is now of type __wctype_wint_t, not wint_t.
109421         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
109422         substitute HAVE_WINT_T.
109423         * modules/wctype (Files): Add m4/wint_t.m4.
109424         (wctype.h): Substitute HAVE_WINT_T.
109426 2006-12-23  Bruno Haible  <bruno@clisp.org>
109428         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
109430 2006-12-23  Bruno Haible  <bruno@clisp.org>
109432         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
109433         S_ISLNK.
109434         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
109435         mingw.
109437 2006-12-22  Bruno Haible  <bruno@clisp.org>
109439         * lib/copy-file.c: Include acl.h.
109440         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
109441         Close the file descriptors only after being done with copy_acl.
109442         * modules/copy-file (Depends-on): Add acl.
109444 2006-12-22  Bruno Haible  <bruno@clisp.org>
109446         * gnulib-tool (SED): New variable.
109447         Use $SED instead of sed everywhere.
109449 2006-12-22  Bruno Haible  <bruno@clisp.org>
109451         * modules/no-c++: New file.
109452         * m4/no-c++.m4: New file.
109453         * MODULES.html.sh (Support for building libraries and executables):
109454         Add no-c++.
109456 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
109458         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109459         Include <limits.h>, and use its INT_MAX to rewrite the
109460         j loop so that it does not overflow 'int'.  Problem reported by
109461         Ralf Wildenhues in
109462         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
109463         Play it safe by shifting left by 1 rather than multiplying by 2,
109464         as GCC is less likely to optimize this away when the value
109465         is signed (when it assumes overflow leads to undefined behavior).
109466         Also, don't assume time_t uses two's complement.
109468 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
109470         * MODULES.html.sh: New module wctype.
109471         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
109472         * lib/fnmatch.c: Don't bother to include <wchar.h> before
109473         <wctype.h>, since the new wctype module should fix this.
109474         * lib/quotearg.c: Include <wctype.h> unconditionally, since
109475         the wctype module should arrange for it.
109476         * lib/regex_internal.h: Likewise.
109477         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
109478         since the wctype module should handle this now.
109479         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
109480         * modules/fnmatch (Depends-on): Add wctype.
109481         * modules/quotearg (Depends-on): Likewise.
109482         * modules/regex (Depends-on): Likewise.
109484 2006-12-19  Bruno Haible  <bruno@clisp.org>
109486         * lib/strdup.h [C++]: Wrap definitions in extern "C".
109487         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
109489 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109491         * modules/savewd (Depends-on): Fix dependency on fcntl.
109493 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109495         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
109496         conforms to C99, rather than relying on the user's environment
109497         setting of STDINT_H.
109499 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109500         and Eric Blake  <ebb9@byu.net>
109502         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
109503         This is more consistent with the other defines here.
109504         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
109505         Port to z/OS.  Problem reported by Paul Gilmartin.
109506         Change local vars to use gl_ prefix rather than ac_.
109507         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
109508         with other defines.
109509         * modules/double-slash-root: New module.
109510         * modules/dirname (Files): Remove m4/double-slash-root.m4.
109511         (Depends-on): Add double-slash-root.
109512         * MODULES.html.sh (File system functions): Mention new module.
109514 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
109516         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
109517         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
109518         This is for the benefit of gzip, which doesn't do i18n.
109520 2006-12-12  Jim Meyering  <jim@meyering.net>
109522         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
109523         Reported by Andreas Schwab <schwab@suse.de>.
109525 2006-12-12  Bruno Haible  <bruno@clisp.org>
109527         Merge these changes.
109528         2006-09-05  Bruno Haible  <bruno@clisp.org>
109529         * lib/iconvme.c (iconv_string): No need to save and restore errno when
109530         iconv_alloc succeeded.
109531         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
109532         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
109533         test for " && dest " at the end - dest is always != NULL there. Call
109534         iconv with 4xNULL arguments initially, to reset the state. Call iconv
109535         with 2xNULL arguments, also to flush the state storage. Handle the
109536         IRIX iconv behaviour. Realloc the final result, to throw away unused
109537         memory.
109539 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
109541         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
109542         and fchmodat unconditionally, since glibc 2.4 has them.
109543         Problem reported by Arkadiusz Miskiewicz.
109545 2006-12-10  Bruno Haible  <bruno@clisp.org>
109547         * gnulib-tool (func_import): Show the include files only for those
109548         modules that are copied and specified.
109549         Reported by Karl Berry.
109551 2006-12-08  Jim Meyering  <jim@meyering.net>
109553         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
109554         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
109556         * build-aux/announce-gen: Add two new options, both optional:
109557         --bootstrap-tools=TOOL_LIST
109558               a comma-separated list of tools, e.g.,
109559               autoconf,automake,bison,gnulib
109560         --gnulib-snapshot-date=DATE
109561               if gnulib is in the bootstrap tool list,
109562               then report this as the snapshot date.
109563               If not specified, use the current date/time.
109564               If you specify a date here, be sure it's UTC.
109566 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109568         * tests/test-argp-2.sh: Fix test to match actual output.
109569         (func_compare): Fix sed script to be portable.
109571 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
109573         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
109574         workaround for this case.  It is not autoconfigured now; offhand
109575         it's hard to see how to autoconfigure it.
109577 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
109579         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
109580         a directory that is about to be chowned.  Such a directory's
109581         initial file permissions should permit the owner only and this
109582         should not be changed until after the chown, since the group and
109583         other bits would be incorrect if they granted permission before
109584         the chown.
109586         Fix porting problem for iswctype reported by Georg Schwarz in:
109587         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
109588         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
109589         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
109590         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
109591         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
109593 2006-12-03  Jim Meyering  <jim@meyering.net>
109595         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
109596         p->fts_statp may not yet be defined.
109597         (fts_read): Instead, set it in the caller, once p->fts_statp is
109598         sure to be defined, and corresponds to a top-level directory.
109599         This bug made du -x fail.  Here's the coreutils test case:
109600         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
109601         Reported by Mike Frysinger.
109603 2006-12-01  Jim Meyering  <jim@meyering.net>
109605         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
109606         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
109607         Reported by Simon Josefsson.
109609 2006-11-30  Jim Meyering  <jim@meyering.net>
109611         * m4/warning.m4: Use the all-permissive copyright notice
109612         recommended by RMS (rather than LGPL).
109613         * m4/vararrays.m4: Likewise.
109614         * m4/flexmember.m4: Likewise.
109616 2006-11-29  Bruno Haible  <bruno@clisp.org>
109618         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109619         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
109620         using +=.
109621         Reported by Simon Josefsson <simon@josefsson.org>.
109623 2006-11-28  James Youngman  <jay@gnu.org>
109625         * README: Advise users that they might find the bug-gnulib@gnu.org
109626         and autotools-announce@gnu.org mailing lists useful.
109628 2006-11-28  Bruno Haible  <bruno@clisp.org>
109630         * m4/ptrdiff_max.m4: Remove file.
109632 2006-11-21  Bruno Haible  <bruno@clisp.org>
109634         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
109635         _AC_COMPUTE_INT.
109636         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109637         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
109638         _AC_COMPUTE_INT.
109639         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109640         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
109641         _AC_COMPUTE_INT.
109642         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109644 2006-11-28  Jim Meyering  <jim@meyering.net>
109646         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
109647         warning from "gcc -Wshadow" about shadowing the builtin.
109649 2006-11-27  Bruno Haible  <bruno@clisp.org>
109651         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
109652         _AC_COMPUTE_INT.
109653         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109655 2006-11-27  Bruno Haible  <bruno@clisp.org>
109656             Paul Eggert  <eggert@cs.ucla.edu>
109658         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
109660 2006-11-26  Bruno Haible  <bruno@clisp.org>
109662         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109663         noinst_LTLIBRARIES.
109665 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
109666             Bruno Haible  <bruno@clisp.org>
109668         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
109669         if compiling with "gcc -ansi".
109671 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
109673         Fix some incompatibilities with gcc -ansi -pedantic.
109674         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
109675         if compiling pedantically with GCC, unless it's C99 or later.
109676         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
109677         it mishandles gcc -ansi -pedantic as well.
109678         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
109679         if gcc -pedantic.
109680         * lib/regexec.c (check_node_accept_bytes): Don't use auto
109681         initializers for struct if -pedantic, unless it's C99 or later.
109683 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
109685         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
109686         Don't close an fd more than once. Identical atimes indicate
109687         success, not failure.
109689 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
109691         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
109693 2006-11-23  Jim Meyering  <jim@meyering.net>
109695         * build-aux/announce-gen: New file.  From coreutils.
109697 2006-11-22  Jim Meyering  <jim@meyering.net>
109699         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
109700         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
109701         (fts_read): Use a temporary to narrow the overused st_size member
109702         before using it in a switch statement.  Reported by Matthew Woehlke.
109704         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
109705         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
109707 2006-11-20  Bruno Haible  <bruno@clisp.org>
109709         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
109710         changequote instead of pairs of brackets.
109711         Reported by Andreas Schwab <schwab@suse.de>.
109713 2006-11-21  Jim Meyering  <jim@meyering.net>
109715         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
109716         so as to remain compatible with older compilers.
109717         Patch from Michael Deutschmann.
109719 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
109721         * MODULES.html.sh (File system functions): Add openat.
109723         * lib/openat.h (rpl_fstatat): New macro, if
109724         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
109725         (fstatat): Define to rpl_fstatat under the same conditions,
109726         unless COMPILING_FSTATAT.
109727         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
109728         seems to have the bug.
109729         * lib/fstatat.c: New file.
109730         * modules/openat (Files): Add it.
109732 2006-11-20  Bruno Haible  <bruno@clisp.org>
109734         * Makefile: New file.
109736 2006-11-20  Jim Meyering  <jim@meyering.net>
109738         The beginnings of syntax-related checks for gnulib.
109739         * lib/Makefile: New file.
109740         * lib/t-idcache: New script.  Ensure that the two halves of
109741         idcache.c stay in sync.
109743         * lib/idcache.c: Adjust comments in user- and group- portions to
109744         be more accurate, and to be consistent with one another.
109746 2006-11-20  Jim Meyering  <jim@meyering.net>
109748         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
109749         continue using the flexible array member (thus, this module performs
109750         half as many malloc calls), with the addition that...
109751         (getgroup, getuser): Consistently record a non-match via an empty
109752         "name" string, and map an empty string match to a NULL return value.
109753         * modules/idcache (Depends-on): Re-add flexmember.
109755         * lib/idcache.c (getuser): Remove all uses of the register keyword.
109756         (getuidbyname, getgroup, getgidbyname): Likewise.
109758         Use cleaner syntax: NULL rather than 0.
109759         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
109761 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
109763         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
109764         It mishandled the case where the group was missing.
109765         Problem reported by Greg Schafer.
109766         * modules/idcache: Likewise.
109768 2006-11-18  Jim Meyering  <jim@meyering.net>
109770         * check-module (%exempt_header): Add exception for some
109771         conditionally-included headers.
109773         * modules/i-ring (Depends-on): Add verify.
109774         (License): Change to LGPL.
109776 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
109778         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
109779         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
109780         and inttostr.h.  Use snprintf rather than uinttostr, so that
109781         LGPLed code doesn't depend on GPLed.
109783 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
109785         * modules/inline (License): Change from GPL to LGPL.
109787 2006-11-17  Jim Meyering  <jim@meyering.net>
109789         * modules/d-type (License): Switch to LGPL.
109791 2006-11-15  Bruno Haible  <bruno@clisp.org>
109793         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
109795 2006-11-15  Eric Blake  <ebb9@byu.net>
109797         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
109798         the module dependency.
109800 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109801             Bruno Haible  <bruno@clisp.org>
109803         * gnulib-tool (func_create_testdir): Add license consistency check.
109805 2006-11-15  Eric Blake  <ebb9@byu.net>
109807         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
109808         random "(cached)" in configure output.
109810 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109812         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
109813         test for conforming inttypes.h is both announced and cached.
109815         * MODULES.html.sh (seen_modules, seen_files): New variables.
109816         (func_module): Rewrite to use a few less gnulib-tool and sed
109817         invocations.  Avoid a couple of quadratic algorithms for ...
109818         (missed_modules, missed_files): ... these, with ...
109819         (func_append, func_tmpdir): ... these new functions, from
109820         gnulib-tool.  Analogously, install traps for cleanup.
109822         * tests/test-gc.c (main): Remove unused variables.
109823         * tests/test-read-file.c: Include stdlib.h, for 'free'.
109825 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
109827         * modules/inttostr (License): Change to LGPL.
109829 2006-11-14  Eric Blake  <ebb9@byu.net>
109831         * modules/tempname (License): Change to LGPL.
109833 2006-11-14  Eric Blake  <ebb9@byu.net>
109835         * doc/functions.texi (Function Portability): *printf functions on
109836         Cygwin now understand all POSIX size specifiers.
109838 2006-11-14  Bruno Haible  <bruno@clisp.org>
109840         * modules/c-ctype (License): Change to LGPL.
109842 2006-11-12  Bruno Haible  <bruno@clisp.org>
109844         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
109845         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
109846         for GNOME libraries, for which the include files are installed in
109847         subdirectories of $prefix/include.
109849 2006-11-12  Bruno Haible  <bruno@clisp.org>
109851         * m4/lib-link.m4: Require at least autoconf-2.54.
109852         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
109853         name to underscores for the --with option.
109855 2006-11-13  Bruno Haible  <bruno@clisp.org>
109857         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
109858         the tests directory.
109859         Reported by Ralf Wildenhues.
109861 2006-11-13  Bruno Haible  <bruno@clisp.org>
109863         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
109864         (func_emit_initmacro_end): Undo the override here.
109865         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
109866         Works around the famous automake error in coreutils.
109868 2006-11-13  Eric Blake  <ebb9@byu.net>
109870         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
109871         element, not its node.
109873 2006-11-12  Bruno Haible  <bruno@clisp.org>
109875         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
109876         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
109878 2006-11-12  Bruno Haible  <bruno@clisp.org>
109880         * gnulib-tool: New option --local-symlink.
109881         (func_usage): Document it.
109882         (lsymbolic): New variable.
109883         (func_import, func_create_testdir): If --symlink was not specified,
109884         test whether --local-symlink was specified and the file comes from
109885         the local_gnulib_dir.
109887 2006-11-12  Bruno Haible  <bruno@clisp.org>
109889         * gnulib-tool (func_ln): New function.
109890         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
109892 2006-11-12  Bruno Haible  <bruno@clisp.org>
109894         Finish support for source files in subdirectories.
109895         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
109896         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
109897         AUTOMAKE_OPTIONS.
109898         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
109900 2006-11-12  Bruno Haible  <bruno@clisp.org>
109902         * gnulib-tool (func_get_automake_snippet): Synthesize also an
109903         EXTRA_lib_SOURCES augmentation.
109904         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
109906 2006-11-12  Jim Meyering  <jim@meyering.net>
109908         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
109909         file descriptors.  This also averts a failure on systems with
109910         native openat support when a traversed directory lacks "x" access.
109911         * lib/fts_.h: Include "i-ring.h"
109912         (struct FTS) [fts_fd_ring]: New member.
109913         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
109914         (FCHDIR): Add parentheses.
109915         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
109916         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
109917         When descending, rather than simply closing the previous
109918         fts_cwd_fd value, push that file descriptor onto the ring.
109919         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
109920         (fts_open): Initialize the new fd_ring member.
109921         (fts_close): Clear the ring.
109922         (fts_safe_changedir): When possible, use our new fd_ring to skip
109923         the diropen and fstat and dev/ino comparison that would normally
109924         accompany a virtual `chdir ("..")'.
109926         * modules/fts (Depends-on): Add i-ring.
109927         * modules/i-ring: New module.
109928         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
109929         * m4/i-ring.m4: New file.
109931 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109933         * gnulib-tool (func_create_testdir): Fix replacement of
109934         `build-aux' in configure.ac.  Run autotools in gltests
109935         subdirectory.
109936         (func_create_testdir, func_create_megatestdir, test): There is
109937         no need for '--force' in most autotool invocations in a new
109938         tree.  Actually fail the whole test if any of the tools, or the
109939         configure or make stages fail.
109941         Sync from Automake.
109942         * build-aux/gnupload: Revert last change.  Add pointer to upload
109943         instructions of the GNU Maintenance Instructions.
109944         Suggestion by Karl Berry.
109946 2006-11-10  Jim Meyering  <jim@meyering.net>
109948         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
109950 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
109952         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
109953         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
109954         (bind_textdomain_codeset) [! ENABLE_NLS]:
109955         Evaluate all the arguments.  That way, callers get compatible behavior
109956         if the arguments have side effects.  Also, it avoids some GCC
109957         diagnostics in some cases; Joel E. Denny reported problems when Bison
109958         was configured with --enable-gcc-warnigs.
109960 2006-11-10  Jim Meyering  <jim@meyering.net>
109962         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
109963         relevant options in CFLAGS (like -O, -fno-inline) are taken into
109964         account.
109966 2006-11-10  Jim Meyering  <jim@meyering.net>
109968         * modules/inline: New file/module.
109969         * modules/xalloc (Files): Remove m4/inline.m4.
109970         (Depends-on): Add inline, instead.
109971         * modules/oset: Likewise.
109972         * modules/list: Likewise.
109974 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
109976         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
109977         Problem reported by Matthew Woehlke.
109979 2006-11-09  Bruno Haible  <bruno@clisp.org>
109981         * lib/tempname.c (gen_tempname): Remove variant that invokes
109982         __gen_tempname.
109983         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
109984         __gen_tempname.
109986 2006-11-08  Bruno Haible  <bruno@clisp.org>
109988         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
109989         to 'yes' instead of 'cross-compiling'.
109991 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
109993         * lib/quotearg.h (quotearg_free): New decl.
109994         * lib/quotearg.c (quotearg_free): New function.
109995         (slot0, nslots, slotvec0, slotvec):
109996         Now file-scope so that quotearg_free can get at them.
109998 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110000         Sync from Automake.
110001         * build-aux/gnupload: Add missing 'gnu' to example URL.
110002         Report by Karl Berry.
110004 2006-11-08  Bruno Haible  <bruno@clisp.org>
110006         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
110007         Suggested by Paul Eggert.
110009 2006-11-08  Jim Meyering  <jim@meyering.net>
110011         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
110012         It's already included if !_LIBC.
110013         (fts_safe_changedir): Add a comment.
110015 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110017         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
110018         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
110019         Matthew Woehlke.
110021         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
110022         definitions up, to avoid colliding with change below.
110023         (static_inline) [HAVE_INLINE]: New macro.
110024         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
110025         Provide extern decls when !HAVE_INLINE.  Do not define unless
110026         static_inline is defined, either by us or by xmalloc.c.  Use
110027         static_inline rather than static inline.
110028         (XCALLOC): Optimize sizeof(T) = 1 case.
110029         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
110031 2006-11-07  Bruno Haible  <bruno@clisp.org>
110033         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
110034         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
110035         AC_C_INLINE.
110036         * modules/xalloc (Files): Add m4/inline.m4.
110038 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110040         * README: Fix typo.
110041         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
110042         (Miscellanous Notes): ...from this.
110044 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110046         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
110047         Mention that offsetof should be used instead of sizeof.
110048         From Bruno Haible.
110050 2006-11-07  Bruno Haible  <bruno@clisp.org>
110052         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
110054 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110056         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110057         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
110058         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110059         (gl_tree_add_before, gl_tree_add_after):
110060         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
110061         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
110062         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
110063         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
110064         (gl_linked_add_after, gl_linked_add_at): Likewise.
110065         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
110066         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110067         (gl_tree_add_before, gl_tree_add_after): Likewise.
110068         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
110069         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
110070         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
110072 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110074         * lib/gl_oset.h: Use C comment style, not C++ comment style.
110076 2006-11-06  Bruno Haible  <bruno@clisp.org>
110078         * m4/inline.m4: New file.
110079         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
110080         * modules/list (Files): Add m4/inline.m4.
110081         * modules/oset (Files): Likewise.
110083 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110085         * lib/idcache.c: Include <stddef.h>, for offsetof.
110086         (struct userid.name): Change from char * to a flexible array member.
110087         All uses changed.
110088         * modules/idcache (Depends-on): Add flexmember.
110090         * MODULES.html.sh (Core language properties): New module flexmember.
110091         * modules/flexmember, m4/flexmember.m4: New files.
110093         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
110094         inline functions that are identical with the old xnmalloc_inline,
110095         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
110096         that we can avoid some unnecessary integer multiplications and
110097         divisions in the common case where the element size is known at
110098         compile time.
110099         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
110100         needed.
110101         (xnboundedmalloc): Remove.
110102         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
110103         arguments, for consistency with rest of this header.
110104         (xcharalloc): Rewrite using XNMALLOC.
110105         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
110106         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
110107         versions have been moved to lib/xalloc.h and renamed to be the
110108         non-*_inline versions.
110109         (xmalloc, xrealloc): Implement without reference to the xnmalloc
110110         and xnrealloc functions, since those functions are now inline and
110111         now call us.
110112         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
110113         renaming described above.
110114         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
110115         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
110116         captures the dependency in AC_C_INLINE.
110118         New module canonicalize-lgpl, proposed by Charles Wilson in
110119         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
110120         with a few small changes afterwards.
110121         * MODULES.html.sh (File system functions): New module
110122         canonicalize-lgpl.
110123         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
110124         and canonicalize_file_name.
110125         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
110126         * modules/canonicalize-lgpl: New files.
110128 2006-11-05  Bruno Haible  <bruno@clisp.org>
110130         * gnulib-tool (func_import, func_create_testdir): Create directories
110131         also for files in subdirectories of lib/.
110133 2006-11-05  Bruno Haible  <bruno@clisp.org>
110135         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
110136         ANSI C compliant.
110138 2006-11-03  Bruno Haible  <bruno@clisp.org>
110140         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110141         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
110142         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
110143         (xnboundedmalloc): New inline function.
110144         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
110145         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
110146         xmalloc.
110147         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
110148         xmalloc.
110149         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
110150         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
110151         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
110152         xmalloc.
110153         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110154         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
110155         xmalloc.
110156         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
110157         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110158         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
110159         xmalloc.
110160         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110161         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
110162         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110163         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
110164         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
110165         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
110166         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
110168 2006-11-03  Bruno Haible  <bruno@clisp.org>
110170         * lib/c-ctype.h [C++]: Define functions without name mangling.
110171         * lib/fwriteerror.h [C++]: Likewise.
110172         * lib/gcd.h [C++]: Likewise.
110173         * lib/linebreak.h [C++]: Likewise.
110175 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
110177         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
110178         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
110179         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
110180         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110181         Check for functions and headers just once.
110182         Check for declaration of canonicalize_file_name.
110183         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
110185 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110187         * gnulib-tool (func_import): Fix typo in actioncmd.
110189 2006-11-02  Bruno Haible  <bruno@clisp.org>
110191         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
110192         newline sequence in the Makefile.am snippet as a space, like "make"
110193         does.
110194         Reported by Roger Persson <perrog@gmail.com>.
110196 2006-11-01  Bruno Haible  <bruno@clisp.org>
110198         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
110199         already declared in <string.h>.
110200         * lib/strcase.h (strncasecmp): Don't declare it if yes.
110202 2006-11-01  Bruno Haible  <bruno@clisp.org>
110204         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
110205         * lib/strcase.h: Include <string.h>.
110206         (strcasecmp): Define to rpl_strcasecmp here.
110208 2006-11-01  Bruno Haible  <bruno@clisp.org>
110210         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
110212 2006-11-01  Eric Blake  <ebb9@byu.net>
110214         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
110216         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
110218 2006-10-29  Bruno Haible  <bruno@clisp.org>
110220         Make it compile in C++ mode.
110221         * lib/full-write.c (full_rw): Add a cast.
110223 2006-11-01  Bruno Haible  <bruno@clisp.org>
110225         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
110226         be POSIX compliant.
110227         Reported by Roger Persson <perrog@gmail.com>.
110229 2006-11-01  Eric Blake  <ebb9@byu.net>
110231         * lib/getopt_.h: Fix comments.
110233 2006-10-31  Eric Blake  <ebb9@byu.net>
110235         * modules/tmpdir (Depends-on): Add sys_stat.
110236         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
110237         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
110238         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
110239         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
110240         tempname.
110242 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
110244         Avoid some C++ diagnostics reported by Bruno Haible.
110245         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
110246         xmalloc.
110247         (quotearg_alloc): Use xcharalloc rather than xmalloc.
110248         (struct slotvec): Move to top level.
110249         (quotearg_n_options): Rewrite to avoid xmalloc.
110250         * lib/xalloc.h (xcharalloc): New function.
110251         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
110252         [defined __cplusplus]: Add function template that provides result
110253         type propagation.  This part of the change is from Bruno Haible.
110255 2006-10-29  Bruno Haible  <bruno@clisp.org>
110257         Make it compile in C++ mode.
110258         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
110259         * lib/strnlen1.c (strnlen1): Cast memchr result.
110260         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
110261         * lib/clean-temp.c (string_equals, string_hash): Add casts.
110262         (create_temp_dir): Rename local variable 'template'.
110263         (compile_csharp_using_sscli): Add cast.
110264         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
110265         * lib/findprog.c (find_in_path): Likewise.
110266         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
110267         * lib/wait-process.c (register_slave_subprocess): Likewise.
110269 2006-10-22  Bruno Haible  <bruno@clisp.org>
110271         * modules/tsearch: New file.
110272         * lib/tsearch.h: New file.
110273         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
110274         * m4/tsearch.m4: New file.
110275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
110277 2006-10-29  Eric Blake  <ebb9@byu.net>
110279         * lib/arcfour.c: Assume config.h.
110280         * lib/arctwo.c: Likewise.
110281         * lib/base64.c: Likewise.
110282         * lib/check-version.c: Likewise.
110283         * lib/crc.c: Likewise.
110284         * lib/des.c: Likewise.
110285         * lib/gc-gnulib.c: Likewise.
110286         * lib/gc-libgcrypt.c: Likewise.
110287         * lib/gc-pbkdf2-sha1.c: Likewise.
110288         * lib/getaddrinfo.c: Likewise.
110289         * lib/getdelim.c: Likewise.
110290         * lib/getline.c: Likewise.
110291         * lib/hmac-md5.c: Likewise.
110292         * lib/hmac-sha1.c: Likewise.
110293         * lib/iconvme.c: Likewise.
110294         * lib/md2.c: Likewise.
110295         * lib/md4.c: Likewise.
110296         * lib/memxor.c: Likewise.
110297         * lib/read-file.c: Likewise.
110298         * lib/readline.c: Likewise.
110299         * lib/rijndael-alg-fst.c: Likewise.
110300         * lib/rijndael-api-fst.c: Likewise.
110301         * lib/xgetdomainname.c: Likewise.
110303 2006-10-28  Eric Blake  <ebb9@byu.net>
110305         * lib/xstrndup.c: Assume config.h.
110307 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110309         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
110310         stat-macros.h is now for our own macros, whereas stat_h is for
110311         macros in the <sys/stat.h> name space.
110312         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
110313         (STAT_MACROS_H): Remove.
110314         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
110315         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
110316         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
110317         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
110318         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
110319         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
110320         Move these macros to ...
110321         * lib/stat_.h: here.  Don't include stat-macros.h.
110322         * lib/canonicalize.c: Don't include stat-macros.h.
110323         * lib/chown.c: Likewise.
110324         * lib/euidaccess.c: Likewise.
110325         * lib/file-type.c: Likewise.
110326         * lib/filemode.c: Likewise.
110327         * lib/glob.c: Likewise.
110328         * lib/isapipe.c: Likewise.
110329         * lib/lchown.c: Likewise.
110330         * lib/lstat.c: Likewise.
110331         * lib/mkdir-p.c: Likewise.
110332         * lib/rmdir.c: Likewise.
110333         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
110334         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
110335         unless mkdir isn't declared, to speed up 'configure'.
110336         Always create sys/stat.h, since it's unlikely any real sys/stat.h
110337         would define all the S_* symbols.
110338         * modules/canonicalize (Depends-on):
110339         Depend on sys_stat, not stat-macros.
110340         * modules/chown: Likewise.
110341         * modules/euidaccess: Likewise.
110342         * modules/filemode: Likewise.
110343         * modules/file-type: Likewise.
110344         * modules/glob: Likewise.
110345         * modules/isapipe: Likewise.
110346         * modules/lchown: Likewise.
110347         * modules/lstat: Likewise.
110348         * modules/mkancesdirs: Likewise.
110349         * modules/rmdir: Likewise.
110350         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
110351         * modules/modechange: Likewise.
110352         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
110353         (configure.ac): Remove gl_STAT_MACROS.
110354         * modules/sys_stat (Depends-on): Remove stat-macros.
110356 2006-10-27  Bruno Haible  <bruno@clisp.org>
110358         * m4/signed.m4: Remove file.
110359         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
110360         invocation.
110361         * modules/vasnprintf (Files): Remove m4/signed.m4.
110363 2006-10-27  Bruno Haible  <bruno@clisp.org>
110365         Update to GNU gettext 0.16.
110366         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
110367         m4/inttypes-h.m4, m4/signed.m4.
110368         * m4/gettext.m4: Update to GNU gettext 0.16.
110369         * m4/intl.m4: New file, from GNU gettext.
110370         * m4/intldir.m4: New file, from GNU gettext.
110371         * config/srclist.txt: Update
110373 2006-10-27  Eric Blake  <ebb9@byu.net>
110375         * MODULES.html.sh: Document tempname.
110376         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
110377         dependencies.
110378         (Files): Move lib/tempname.c...
110379         * modules/tempname: ...to this new module.
110380         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
110381         (gl_PREREQ_TEMPNAME): Move...
110382         * m4/tempname.m4: ...to this new file.
110383         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
110384         * modules/sys_stat (Depends-on): Add stat-macros.
110385         * lib/stat_.h (includes): Pick up stat macros.
110386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
110387         if stat macros are broken.
110388         * lib/tempname.c (includes): No need to include "stat-macros.h".
110389         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
110390         (direxists, __path_search) [!_LIBC]: Don't compile these in
110391         gnulib; the tmpdir module covers that.
110392         * lib/tempname.h: New file.
110394 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
110396         * COPYING: Explain how gnulib-tool converts licence headers.
110397         Almost all wording by Eric Blake.
110399 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
110401         * lib/mbchar.h (is_basic_table): Make read-only.
110402         * lib/mbchar.c (is_basic_table): Likewise.
110403         Reported by John Darrington.
110405 2006-10-25  Bruno Haible  <bruno@clisp.org>
110407         * lib/progname.h (set_program_name): Undefine before defining.
110409 2006-10-25  Bruno Haible  <bruno@clisp.org>
110411         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
110412         false for non-gcc C++ compilers.
110413         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
110415 2006-10-24  Bruno Haible  <bruno@clisp.org>
110417         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
110418         iconv implementations like Irix iconv.
110420 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110422         * modules/vararrays: New file.
110423         * m4/vararrays.m4: New file, taken from diffutils.
110424         * MODULES.html.sh: New module vararrays.
110426 2006-10-24  Karl Berry  <karl@gnu.org>
110428         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
110429         Don't call GNU Unix.
110431 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110433         * users.txt: Add Libtool.
110435         Sync from Libtool:
110437         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110439         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
110440         to gnulib's policy of including config.h unconditionally.
110442 2006-10-24  Bruno Haible  <bruno@clisp.org>
110444         * modules/wcwidth (Files): Add m4/wint_t.m4.
110445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
110446         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
110448 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110450         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
110451         to pacify GCC with some -W flags enabled.  Problem reported by
110452         Bruno Haible.
110454 2006-10-24  Jim Meyering  <jim@meyering.net>
110456         * MODULES.html.sh: Remove uinttostr.  It's not a module.
110457         Reported by Karl Berry.
110459 2006-10-23  Bruno Haible  <bruno@clisp.org>
110461         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
110463 2006-10-24  Bruno Haible  <bruno@clisp.org>
110465         * lib/gl_list.h: Use C comment style, not C++ comment style.
110467 2006-10-23  Eric Blake  <ebb9@byu.net>
110469         * lib/getaddrinfo.c (includes): Add missing include.
110471 2006-10-23  Bruno Haible  <bruno@clisp.org>
110472             Paul Eggert  <eggert@cs.ucla.edu>
110474         Ability to rename obstack_free.
110475         * lib/obstack.h (__obstack_free): New macro. Declare instead of
110476         obstack_free.
110477         (obstack_free): Invoke the __obstack_free macro.
110478         * lib/obstack.c (obstack_free): Use __obstack_free macro.
110480 2006-10-23  Bruno Haible  <bruno@clisp.org>
110481             Paul Eggert  <eggert@cs.ucla.edu>
110483         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
110484         __argc, __argv from the declaration. (They are defined as macros on
110485         mingw.)
110487 2006-10-22  Bruno Haible  <bruno@clisp.org>
110489         * doc/gnulib-intro.texi: New file.
110490         * doc/gnulib.texi: Include it.
110492 2006-10-21  Bruno Haible  <bruno@clisp.org>
110494         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
110495         "Introduction", "Miscellanous Notes", "Particular Modules".
110497 2006-10-21  Bruno Haible  <bruno@clisp.org>
110499         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110500         Change mostlyclean-local rule to avoid sh syntax error from bash
110501         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
110503 2006-10-23  Jim Meyering  <jim@meyering.net>
110505         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
110506         in place of snprintf.
110508         * modules/inttostr (Files): Add lib/uinttostr.c.
110509         * lib/uinttostr.c (inttostr): New file/function.
110510         * lib/inttostr.h (uinttostr): Declare.
110511         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
110512         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
110513         Add uinttostr.
110514         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
110516 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110518         * lib/canonicalize.c (ELOOP): Define if not already defined.
110519         Problem reported by Bruno Haible in
110520         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
110522 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110524         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
110525         Problem reported by Perry Smith and Ville Laurikari.
110527         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
110528         uses.
110530 2006-10-19  Bruno Haible  <bruno@clisp.org>
110532         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
110533         for mingw.
110535 2006-10-19  Bruno Haible  <bruno@clisp.org>
110537         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
110538         Needed for mingw.
110540 2006-10-19  Bruno Haible  <bruno@clisp.org>
110542         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
110544 2006-10-19  Bruno Haible  <bruno@clisp.org>
110546         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
110547         it.
110549 2006-10-19  Bruno Haible  <bruno@clisp.org>
110551         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
110552         invocation.
110554 2006-10-19  Bruno Haible  <bruno@clisp.org>
110556         * gnulib-tool (func_create_testdir): Don't include ftruncate and
110557         mountlist by default.
110559 2006-10-16  Bruno Haible  <bruno@clisp.org>
110561         * lib/c-strstr.c: Include c-strstr.h.
110563 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110565         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
110566         in a slash.
110568 2006-10-18  Bruno Haible  <bruno@clisp.org>
110570         * lib/lock.h [C++]: Wrap definitions in extern "C".
110572 2006-10-18  Bruno Haible  <bruno@clisp.org>
110574         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
110575         gl_LIBOBJS list.
110577 2006-10-18  Bruno Haible  <bruno@clisp.org>
110579         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
110581 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
110583         * lib/xstrtol.h: Include gettext.h.
110584         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
110585         Problem reported by Eric Blake.
110586         * modules/xstrtol (Depends-on): Add gettext-h.
110588 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
110590         * lib/strftime.c (advance): New macro.
110591         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
110592         incomplete type, so you can't add 0 to it.  Problem and patch
110593         reported by Eelco Dolstra for dietlibc.
110595 2006-10-18  Jim Meyering  <jim@meyering.net>
110597         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
110598         type for a local, and rename it: s/up/user_proc/.
110600 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
110602         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
110603         READ_UTMP_USER_PROCESS.
110604         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
110606 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
110608         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
110609         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
110611 2006-10-17  Eric Blake  <ebb9@byu.net>
110613         * lib/sigprocmask.c (sigprocmask): Fix typo.
110615         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
110617         * modules/clean-temp (Makefile.am): Don't add to make output...
110618         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
110619         config.h.
110621 2006-10-17  Bruno Haible  <bruno@clisp.org>
110623         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
110624         differently if DEFAULT_TEXT_DOMAIN is set.
110626 2006-10-16  Bruno Haible  <bruno@clisp.org>
110628         * lib/clean-temp.c: Include fwriteerror.h.
110630 2006-10-16  Bruno Haible  <bruno@clisp.org>
110632         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
110634 2006-10-16  Bruno Haible  <bruno@clisp.org>
110636         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
110637         * lib/sigprocmask.h: Include <sys/types.h>.
110638         (sigset_t): Use the system's definition if present.
110640 2006-10-17  Eric Blake  <ebb9@byu.net>
110642         * lib/xvasprintf.c (includes): Assume config.h.
110643         * lib/xasprintf.c (includes): Likewise.
110645 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
110647         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
110648         at least as wide as intmax_t.
110650 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
110652         (Imported from Automake.)
110653         * build-aux/gnupload: Update to version 1.1 of directive file.
110655 2006-10-16  Eric Blake  <ebb9@byu.net>
110657         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
110658         match Automake 1.10a.
110660 2006-10-14  Bruno Haible  <bruno@clisp.org>
110662         * modules/sigprocmask: New file.
110663         * lib/sigprocmask.h: New file.
110664         * lib/sigprocmask.c: New file.
110665         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
110666         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
110667         request sigprocmask.o.
110668         (gl_PREREQ_SIGPROCMASK): New macro.
110669         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
110670         (Depends-on): Add sigprocmask.
110671         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
110672         gt_SIGNALBLOCKING. Test for 'raise' only once.
110673         * lib/fatal-signal.c: Include sigprocmask.h.
110674         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
110675         unblock_fatal_signals): Define always.
110676         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
110677         sigprocmask.
110679 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110681         Sync from Automake.
110682         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
110683         which incorrectly sets the mode of an existing destination
110684         directory.  In some cases the unpatched install-sh could do the
110685         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
110686         system.  We hope this is rare in practice, but it's clearly worth
110687         fixing.  Problem reported by Alex Unleashed in
110688         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
110689         Also, don't bother to check for -m bugs unless we're using -m;
110690         suggested by Stepan Kasal.
110692 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110694         Sync from Automake.
110695         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
110696         `-c' flag, so they appear at the same position as in %FASTDEP%
110697         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
110698         which ignores unknown options only after the first non-option.
110699         Bug report against M4 by Nelson H. F. Beebe.
110701 2006-10-13  Jim Meyering  <jim@meyering.net>
110703         Fix a bug in yesterday's change.
110704         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
110705         p->fts_statp->st_dev would be used uninitialized.
110706         Ensures that we always call fts_stat on the very first entry.
110707         Miklos Szeredi reported that find -xdev stopped working.
110709 2006-10-12  Bruno Haible  <bruno@clisp.org>
110711         * gnulib-tool (func_get_automake_snippet): Append an automatically
110712         computed EXTRA_DIST augmentation.
110713         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
110714         * modules/alloca-opt (Makefile.am): Likewise.
110715         * modules/allocsa (Makefile.am): Likewise.
110716         * modules/arcfour (Makefile.am): Likewise.
110717         * modules/arctwo (Makefile.am): Likewise.
110718         * modules/argmatch (Makefile.am): Likewise.
110719         * modules/argz (Makefile.am): Likewise.
110720         * modules/atexit (Makefile.am): Likewise.
110721         * modules/backupfile (Makefile.am): Likewise.
110722         * modules/byteswap (Makefile.am): Likewise.
110723         * modules/c-strtod (Makefile.am): Likewise.
110724         * modules/c-strtold (Makefile.am): Likewise.
110725         * modules/calloc (Makefile.am): Likewise.
110726         * modules/canon-host (Makefile.am): Likewise.
110727         * modules/canonicalize (Makefile.am): Likewise.
110728         * modules/chdir-long (Makefile.am): Likewise.
110729         * modules/chdir-safer (Makefile.am): Likewise.
110730         * modules/check-version (Makefile.am): Likewise.
110731         * modules/chown (Makefile.am): Likewise.
110732         * modules/cloexec (Makefile.am): Likewise.
110733         * modules/close-stream (Makefile.am): Likewise.
110734         * modules/closeout (Makefile.am): Likewise.
110735         * modules/crc (Makefile.am): Likewise.
110736         * modules/csharpexec (Makefile.am): Likewise.
110737         * modules/cycle-check (Makefile.am): Likewise.
110738         * modules/des (Makefile.am): Likewise.
110739         * modules/dev-ino (Makefile.am): Likewise.
110740         * modules/dirfd (Makefile.am): Likewise.
110741         * modules/dirname (Makefile.am): Likewise.
110742         * modules/dup2 (Makefile.am): Likewise.
110743         * modules/eealloc (Makefile.am): Likewise.
110744         * modules/error (Makefile.am): Likewise.
110745         * modules/euidaccess (Makefile.am): Likewise.
110746         * modules/exclude (Makefile.am): Likewise.
110747         * modules/exitfail (Makefile.am): Likewise.
110748         * modules/fcntl-safer (Makefile.am): Likewise.
110749         * modules/fcntl (Makefile.am): Likewise.
110750         * modules/file-type (Makefile.am): Likewise.
110751         * modules/fileblocks (Makefile.am): Likewise.
110752         * modules/filemode (Makefile.am): Likewise.
110753         * modules/filenamecat (Makefile.am): Likewise.
110754         * modules/fnmatch (Makefile.am): Likewise.
110755         * modules/fopen-safer (Makefile.am): Likewise.
110756         * modules/fpending (Makefile.am): Likewise.
110757         * modules/fprintftime (Makefile.am): Likewise.
110758         * modules/free (Makefile.am): Likewise.
110759         * modules/fsusage (Makefile.am): Likewise.
110760         * modules/ftruncate (Makefile.am): Likewise.
110761         * modules/fts (Makefile.am): Likewise.
110762         * modules/gc-arcfour (Makefile.am): Likewise.
110763         * modules/gc-des (Makefile.am): Likewise.
110764         * modules/gc-hmac-md5 (Makefile.am): Likewise.
110765         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
110766         * modules/gc-md4 (Makefile.am): Likewise.
110767         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
110768         * modules/gc-sha1 (Makefile.am): Likewise.
110769         * modules/gc (Makefile.am): Likewise.
110770         * modules/getaddrinfo (Makefile.am): Likewise.
110771         * modules/getcwd (Makefile.am): Likewise.
110772         * modules/getdelim (Makefile.am): Likewise.
110773         * modules/getdomainname (Makefile.am): Likewise.
110774         * modules/getgroups (Makefile.am): Likewise.
110775         * modules/gethostname (Makefile.am): Likewise.
110776         * modules/gethrxtime (Makefile.am): Likewise.
110777         * modules/getline (Makefile.am): Likewise.
110778         * modules/getloadavg (Makefile.am): Likewise.
110779         * modules/getlogin_r (Makefile.am): Likewise.
110780         * modules/getndelim2 (Makefile.am): Likewise.
110781         * modules/getopt (Makefile.am): Likewise.
110782         * modules/getpagesize (Makefile.am): Likewise.
110783         * modules/getpass-gnu (Makefile.am): Likewise.
110784         * modules/getpass (Makefile.am): Likewise.
110785         * modules/getsubopt (Makefile.am): Likewise.
110786         * modules/gettime (Makefile.am): Likewise.
110787         * modules/gettimeofday (Makefile.am): Likewise.
110788         * modules/getugroups (Makefile.am): Likewise.
110789         * modules/getusershell (Makefile.am): Likewise.
110790         * modules/glob (Makefile.am): Likewise.
110791         * modules/group-member (Makefile.am): Likewise.
110792         * modules/hard-locale (Makefile.am): Likewise.
110793         * modules/hash (Makefile.am): Likewise.
110794         * modules/hmac-md5 (Makefile.am): Likewise.
110795         * modules/hmac-sha1 (Makefile.am): Likewise.
110796         * modules/human (Makefile.am): Likewise.
110797         * modules/idcache (Makefile.am): Likewise.
110798         * modules/imaxabs (Makefile.am): Likewise.
110799         * modules/imaxdiv (Makefile.am): Likewise.
110800         * modules/inet_ntop (Makefile.am): Likewise.
110801         * modules/inet_pton (Makefile.am): Likewise.
110802         * modules/intprops (Makefile.am): Likewise.
110803         * modules/inttostr (Makefile.am): Likewise.
110804         * modules/inttypes (Makefile.am): Likewise.
110805         * modules/isapipe (Makefile.am): Likewise.
110806         * modules/javaversion (Makefile.am): Likewise.
110807         * modules/lchmod (Makefile.am): Likewise.
110808         * modules/lchown (Makefile.am): Likewise.
110809         * modules/localcharset (Makefile.am): Likewise.
110810         * modules/long-options (Makefile.am): Likewise.
110811         * modules/lstat (Makefile.am): Likewise.
110812         * modules/malloc (Makefile.am): Likewise.
110813         * modules/mathl (Makefile.am): Likewise.
110814         * modules/mbchar (Makefile.am): Likewise.
110815         * modules/md2 (Makefile.am): Likewise.
110816         * modules/md4 (Makefile.am): Likewise.
110817         * modules/md5 (Makefile.am): Likewise.
110818         * modules/memcasecmp (Makefile.am): Likewise.
110819         * modules/memchr (Makefile.am): Likewise.
110820         * modules/memcmp (Makefile.am): Likewise.
110821         * modules/memcoll (Makefile.am): Likewise.
110822         * modules/memcpy (Makefile.am): Likewise.
110823         * modules/memmem (Makefile.am): Likewise.
110824         * modules/memmove (Makefile.am): Likewise.
110825         * modules/mempcpy (Makefile.am): Likewise.
110826         * modules/memrchr (Makefile.am): Likewise.
110827         * modules/memset (Makefile.am): Likewise.
110828         * modules/memxor (Makefile.am): Likewise.
110829         * modules/mkancesdirs (Makefile.am): Likewise.
110830         * modules/mkdir-p (Makefile.am): Likewise.
110831         * modules/mkdir (Makefile.am): Likewise.
110832         * modules/mkdtemp (Makefile.am): Likewise.
110833         * modules/mkstemp (Makefile.am): Likewise.
110834         * modules/mktime (Makefile.am): Likewise.
110835         * modules/modechange (Makefile.am): Likewise.
110836         * modules/mountlist (Makefile.am): Likewise.
110837         * modules/nanosleep (Makefile.am): Likewise.
110838         * modules/obstack (Makefile.am): Likewise.
110839         * modules/openat (Makefile.am): Likewise.
110840         * modules/pagealign_alloc (Makefile.am): Likewise.
110841         * modules/pathmax (Makefile.am): Likewise.
110842         * modules/physmem (Makefile.am): Likewise.
110843         * modules/poll (Makefile.am): Likewise.
110844         * modules/posixtm (Makefile.am): Likewise.
110845         * modules/posixver (Makefile.am): Likewise.
110846         * modules/putenv (Makefile.am): Likewise.
110847         * modules/quote (Makefile.am): Likewise.
110848         * modules/quotearg (Makefile.am): Likewise.
110849         * modules/raise (Makefile.am): Likewise.
110850         * modules/read-file (Makefile.am): Likewise.
110851         * modules/readline (Makefile.am): Likewise.
110852         * modules/readlink (Makefile.am): Likewise.
110853         * modules/readtokens (Makefile.am): Likewise.
110854         * modules/readutmp (Makefile.am): Likewise.
110855         * modules/realloc (Makefile.am): Likewise.
110856         * modules/regex (Makefile.am): Likewise.
110857         * modules/rename-dest-slash (Makefile.am): Likewise.
110858         * modules/rename (Makefile.am): Likewise.
110859         * modules/rijndael (Makefile.am): Likewise.
110860         * modules/rmdir (Makefile.am): Likewise.
110861         * modules/rpmatch (Makefile.am): Likewise.
110862         * modules/safe-read (Makefile.am): Likewise.
110863         * modules/safe-write (Makefile.am): Likewise.
110864         * modules/same-inode (Makefile.am): Likewise.
110865         * modules/same (Makefile.am): Likewise.
110866         * modules/save-cwd (Makefile.am): Likewise.
110867         * modules/savedir (Makefile.am): Likewise.
110868         * modules/setenv (Makefile.am): Likewise.
110869         * modules/settime (Makefile.am): Likewise.
110870         * modules/sha1 (Makefile.am): Likewise.
110871         * modules/sig2str (Makefile.am): Likewise.
110872         * modules/snprintf (Makefile.am): Likewise.
110873         * modules/stat-macros (Makefile.am): Likewise.
110874         * modules/stat-time (Makefile.am): Likewise.
110875         * modules/stdbool (Makefile.am): Likewise.
110876         * modules/stdint (Makefile.am): Likewise.
110877         * modules/stdlib-safer (Makefile.am): Likewise.
110878         * modules/stpcpy (Makefile.am): Likewise.
110879         * modules/stpncpy (Makefile.am): Likewise.
110880         * modules/strcase (Makefile.am): Likewise.
110881         * modules/strcasestr (Makefile.am): Likewise.
110882         * modules/strchrnul (Makefile.am): Likewise.
110883         * modules/strcspn (Makefile.am): Likewise.
110884         * modules/strdup (Makefile.am): Likewise.
110885         * modules/strerror (Makefile.am): Likewise.
110886         * modules/strftime (Makefile.am): Likewise.
110887         * modules/strndup (Makefile.am): Likewise.
110888         * modules/strnlen (Makefile.am): Likewise.
110889         * modules/strpbrk (Makefile.am): Likewise.
110890         * modules/strsep (Makefile.am): Likewise.
110891         * modules/strstr (Makefile.am): Likewise.
110892         * modules/strtod (Makefile.am): Likewise.
110893         * modules/strtoimax (Makefile.am): Likewise.
110894         * modules/strtok_r (Makefile.am): Likewise.
110895         * modules/strtol (Makefile.am): Likewise.
110896         * modules/strtoll (Makefile.am): Likewise.
110897         * modules/strtoul (Makefile.am): Likewise.
110898         * modules/strtoull (Makefile.am): Likewise.
110899         * modules/strtoumax (Makefile.am): Likewise.
110900         * modules/strverscmp (Makefile.am): Likewise.
110901         * modules/sys_socket (Makefile.am): Likewise.
110902         * modules/sys_stat (Makefile.am): Likewise.
110903         * modules/sysexits (Makefile.am): Likewise.
110904         * modules/time_r (Makefile.am): Likewise.
110905         * modules/timegm (Makefile.am): Likewise.
110906         * modules/timespec (Makefile.am): Likewise.
110907         * modules/tmpfile-safer (Makefile.am): Likewise.
110908         * modules/trim (Makefile.am): Likewise.
110909         * modules/unistd-safer (Makefile.am): Likewise.
110910         * modules/unlinkdir (Makefile.am): Likewise.
110911         * modules/unlocked-io (Makefile.am): Likewise.
110912         * modules/userspec (Makefile.am): Likewise.
110913         * modules/utime (Makefile.am): Likewise.
110914         * modules/utimecmp (Makefile.am): Likewise.
110915         * modules/utimens (Makefile.am): Likewise.
110916         * modules/vasnprintf (Makefile.am): Likewise.
110917         * modules/vasprintf (Makefile.am): Likewise.
110918         * modules/vsnprintf (Makefile.am): Likewise.
110919         * modules/xalloc (Makefile.am): Likewise.
110920         * modules/xgetcwd (Makefile.am): Likewise.
110921         * modules/xnanosleep (Makefile.am): Likewise.
110922         * modules/xreadlink (Makefile.am): Likewise.
110923         * modules/xstrtod (Makefile.am): Likewise.
110924         * modules/xstrtol (Makefile.am): Likewise.
110925         * modules/xstrtold (Makefile.am): Likewise.
110926         * modules/yesno (Makefile.am): Likewise.
110927         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
110929 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
110931         * modules/error (Makefile.am): Distribute files through
110932         EXTRA_DIST, not lib_SOURCES.
110934 2006-10-12  Eric Blake  <ebb9@byu.net>
110936         * modules/error (Makefile.am): Distribute files in /lib.
110937         * modules/obstack (Makefile.am): Likewise.
110939 2006-10-12  Bruno Haible  <bruno@clisp.org>
110941         * modules/acl (Makefile.am): Distribute all files in lib/ through
110942         EXTRA_DIST.
110943         * modules/arcfour (Makefile.am): Likewise.
110944         * modules/arctwo (Makefile.am): Likewise.
110945         * modules/argmatch (Makefile.am): Likewise.
110946         * modules/argz (Makefile.am): Likewise.
110947         * modules/atexit (Makefile.am): Likewise.
110948         * modules/backupfile (Makefile.am): Likewise.
110949         * modules/c-strtod (Makefile.am): Likewise.
110950         * modules/c-strtold (Makefile.am): Likewise.
110951         * modules/calloc (Makefile.am): Likewise.
110952         * modules/canon-host (Makefile.am): Likewise.
110953         * modules/canonicalize (Makefile.am): Likewise.
110954         * modules/chdir-long (Makefile.am): Likewise.
110955         * modules/chdir-safer (Makefile.am): Likewise.
110956         * modules/check-version (Makefile.am): Likewise.
110957         * modules/chown (Makefile.am): Likewise.
110958         * modules/cloexec (Makefile.am): Likewise.
110959         * modules/close-stream (Makefile.am): Likewise.
110960         * modules/closeout (Makefile.am): Likewise.
110961         * modules/crc (Makefile.am): Likewise.
110962         * modules/cycle-check (Makefile.am): Likewise.
110963         * modules/des (Makefile.am): Likewise.
110964         * modules/dirfd (Makefile.am): Likewise.
110965         * modules/dirname (Makefile.am): Likewise.
110966         * modules/dup2 (Makefile.am): Likewise.
110967         * modules/euidaccess (Makefile.am): Likewise.
110968         * modules/exclude (Makefile.am): Likewise.
110969         * modules/exitfail (Makefile.am): Likewise.
110970         * modules/fcntl-safer (Makefile.am): Likewise.
110971         * modules/file-type (Makefile.am): Likewise.
110972         * modules/fileblocks (Makefile.am): Likewise.
110973         * modules/filemode (Makefile.am): Likewise.
110974         * modules/filenamecat (Makefile.am): Likewise.
110975         * modules/fnmatch (Makefile.am): Likewise.
110976         * modules/fopen-safer (Makefile.am): Likewise.
110977         * modules/fpending (Makefile.am): Likewise.
110978         * modules/fprintftime (Makefile.am): Likewise.
110979         * modules/free (Makefile.am): Likewise.
110980         * modules/fsusage (Makefile.am): Likewise.
110981         * modules/ftruncate (Makefile.am): Likewise.
110982         * modules/fts (Makefile.am): Likewise.
110983         * modules/gc (Makefile.am): Likewise.
110984         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
110985         * modules/getaddrinfo (Makefile.am): Likewise.
110986         * modules/getcwd (Makefile.am): Likewise.
110987         * modules/getdelim (Makefile.am): Likewise.
110988         * modules/getdomainname (Makefile.am): Likewise.
110989         * modules/getgroups (Makefile.am): Likewise.
110990         * modules/gethostname (Makefile.am): Likewise.
110991         * modules/gethrxtime (Makefile.am): Likewise.
110992         * modules/getline (Makefile.am): Likewise.
110993         * modules/getloadavg (Makefile.am): Likewise.
110994         * modules/getlogin_r (Makefile.am): Likewise.
110995         * modules/getopt (Makefile.am): Likewise.
110996         * modules/getpass (Makefile.am): Likewise.
110997         * modules/getpass-gnu (Makefile.am): Likewise.
110998         * modules/getsubopt (Makefile.am): Likewise.
110999         * modules/gettime (Makefile.am): Likewise.
111000         * modules/gettimeofday (Makefile.am): Likewise.
111001         * modules/getugroups (Makefile.am): Likewise.
111002         * modules/getusershell (Makefile.am): Likewise.
111003         * modules/glob (Makefile.am): Likewise.
111004         * modules/group-member (Makefile.am): Likewise.
111005         * modules/hard-locale (Makefile.am): Likewise.
111006         * modules/hash (Makefile.am): Likewise.
111007         * modules/hmac-md5 (Makefile.am): Likewise.
111008         * modules/hmac-sha1 (Makefile.am): Likewise.
111009         * modules/human (Makefile.am): Likewise.
111010         * modules/idcache (Makefile.am): Likewise.
111011         * modules/imaxabs (Makefile.am): Likewise.
111012         * modules/imaxdiv (Makefile.am): Likewise.
111013         * modules/inet_ntop (Makefile.am): Likewise.
111014         * modules/inet_pton (Makefile.am): Likewise.
111015         * modules/inttostr (Makefile.am): Likewise.
111016         * modules/isapipe (Makefile.am): Likewise.
111017         * modules/lchown (Makefile.am): Likewise.
111018         * modules/long-options (Makefile.am): Likewise.
111019         * modules/lstat (Makefile.am): Likewise.
111020         * modules/malloc (Makefile.am): Likewise.
111021         * modules/mathl (Makefile.am): Likewise.
111022         * modules/mbchar (Makefile.am): Likewise.
111023         * modules/md2 (Makefile.am): Likewise.
111024         * modules/md4 (Makefile.am): Likewise.
111025         * modules/md5 (Makefile.am): Likewise.
111026         * modules/memcasecmp (Makefile.am): Likewise.
111027         * modules/memchr (Makefile.am): Likewise.
111028         * modules/memcmp (Makefile.am): Likewise.
111029         * modules/memcoll (Makefile.am): Likewise.
111030         * modules/memcpy (Makefile.am): Likewise.
111031         * modules/memmem (Makefile.am): Likewise.
111032         * modules/memmove (Makefile.am): Likewise.
111033         * modules/mempcpy (Makefile.am): Likewise.
111034         * modules/memrchr (Makefile.am): Likewise.
111035         * modules/memset (Makefile.am): Likewise.
111036         * modules/memxor (Makefile.am): Likewise.
111037         * modules/mkancesdirs (Makefile.am): Likewise.
111038         * modules/mkdir (Makefile.am): Likewise.
111039         * modules/mkdir-p (Makefile.am): Likewise.
111040         * modules/mkdtemp (Makefile.am): Likewise.
111041         * modules/mkstemp (Makefile.am): Likewise.
111042         * modules/mktime (Makefile.am): Likewise.
111043         * modules/modechange (Makefile.am): Likewise.
111044         * modules/mountlist (Makefile.am): Likewise.
111045         * modules/nanosleep (Makefile.am): Likewise.
111046         * modules/openat (Makefile.am): Likewise.
111047         * modules/pagealign_alloc (Makefile.am): Likewise.
111048         * modules/physmem (Makefile.am): Likewise.
111049         * modules/poll (Makefile.am): Likewise.
111050         * modules/posixtm (Makefile.am): Likewise.
111051         * modules/posixver (Makefile.am): Likewise.
111052         * modules/putenv (Makefile.am): Likewise.
111053         * modules/quote (Makefile.am): Likewise.
111054         * modules/quotearg (Makefile.am): Likewise.
111055         * modules/raise (Makefile.am): Likewise.
111056         * modules/read-file (Makefile.am): Likewise.
111057         * modules/readline (Makefile.am): Likewise.
111058         * modules/readlink (Makefile.am): Likewise.
111059         * modules/readtokens (Makefile.am): Likewise.
111060         * modules/readutmp (Makefile.am): Likewise.
111061         * modules/realloc (Makefile.am): Likewise.
111062         * modules/regex (Makefile.am): Likewise.
111063         * modules/rename (Makefile.am): Likewise.
111064         * modules/rename-dest-slash (Makefile.am): Likewise.
111065         * modules/rijndael (Makefile.am): Likewise.
111066         * modules/rmdir (Makefile.am): Likewise.
111067         * modules/rpmatch (Makefile.am): Likewise.
111068         * modules/safe-read (Makefile.am): Likewise.
111069         * modules/safe-write (Makefile.am): Likewise.
111070         * modules/same (Makefile.am): Likewise.
111071         * modules/save-cwd (Makefile.am): Likewise.
111072         * modules/savedir (Makefile.am): Likewise.
111073         * modules/setenv (Makefile.am): Likewise.
111074         * modules/settime (Makefile.am): Likewise.
111075         * modules/sha1 (Makefile.am): Likewise.
111076         * modules/sig2str (Makefile.am): Likewise.
111077         * modules/snprintf (Makefile.am): Likewise.
111078         * modules/stdlib-safer (Makefile.am): Likewise.
111079         * modules/stpcpy (Makefile.am): Likewise.
111080         * modules/stpncpy (Makefile.am): Likewise.
111081         * modules/strcase (Makefile.am): Likewise.
111082         * modules/strcasestr (Makefile.am): Likewise.
111083         * modules/strchrnul (Makefile.am): Likewise.
111084         * modules/strcspn (Makefile.am): Likewise.
111085         * modules/strdup (Makefile.am): Likewise.
111086         * modules/strerror (Makefile.am): Likewise.
111087         * modules/strftime (Makefile.am): Likewise.
111088         * modules/strndup (Makefile.am): Likewise.
111089         * modules/strnlen (Makefile.am): Likewise.
111090         * modules/strpbrk (Makefile.am): Likewise.
111091         * modules/strsep (Makefile.am): Likewise.
111092         * modules/strstr (Makefile.am): Likewise.
111093         * modules/strtod (Makefile.am): Likewise.
111094         * modules/strtoimax (Makefile.am): Likewise.
111095         * modules/strtok_r (Makefile.am): Likewise.
111096         * modules/strtol (Makefile.am): Likewise.
111097         * modules/strtoll (Makefile.am): Likewise.
111098         * modules/strtoul (Makefile.am): Likewise.
111099         * modules/strtoull (Makefile.am): Likewise.
111100         * modules/strtoumax (Makefile.am): Likewise.
111101         * modules/strverscmp (Makefile.am): Likewise.
111102         * modules/time_r (Makefile.am): Likewise.
111103         * modules/timegm (Makefile.am): Likewise.
111104         * modules/tmpfile-safer (Makefile.am): Likewise.
111105         * modules/unistd-safer (Makefile.am): Likewise.
111106         * modules/unlinkdir (Makefile.am): Likewise.
111107         * modules/userspec (Makefile.am): Likewise.
111108         * modules/utime (Makefile.am): Likewise.
111109         * modules/utimecmp (Makefile.am): Likewise.
111110         * modules/utimens (Makefile.am): Likewise.
111111         * modules/vasnprintf (Makefile.am): Likewise.
111112         * modules/vasprintf (Makefile.am): Likewise.
111113         * modules/vsnprintf (Makefile.am): Likewise.
111114         * modules/xalloc (Makefile.am): Likewise.
111115         * modules/xgetcwd (Makefile.am): Likewise.
111116         * modules/xnanosleep (Makefile.am): Likewise.
111117         * modules/xreadlink (Makefile.am): Likewise.
111118         * modules/xstrtod (Makefile.am): Likewise.
111119         * modules/xstrtol (Makefile.am): Likewise.
111120         * modules/xstrtold (Makefile.am): Likewise.
111121         * modules/yesno (Makefile.am): Likewise.
111123 2006-10-12  Jim Meyering  <jim@meyering.net>
111125         * m4/getloadavg.m4: Revert the change below.
111127         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
111128         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
111129         fail with a symlink, which is what coreutils' ./bootstrap now
111130         creates by default.
111132 2006-10-12  Bruno Haible  <bruno@clisp.org>
111134         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
111135         mingw.
111136         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
111137         MSVC and mingw explicitly.
111139 2006-10-11  Simon Josefsson  <jas@extundo.com>
111140             Bruno Haible  <bruno@clisp.org>
111142         Add support for multiple gnulib-tool invocations in the scope of a
111143         single configure.ac file.
111144         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
111145         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
111146         with the same contents as the _LIBADD variable.
111147         (func_emit_initmacro_start, func_emit_initmacro_end,
111148         func_emit_initmacro_done): New functions.
111149         (func_import, func_create_testdir): Invoke them. Allow the identifiers
111150         gl_LIBOBJS and gl_LTLIBOBJS.
111152 2006-10-11  Bruno Haible  <bruno@clisp.org>
111154         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
111155         (func_create_testdir): Don't create po/Makefile.am, don't invoke
111156         autoreconf. Instead, invoke autopoint explicitly but move back the
111157         *.m4 files from gnulib.
111159 2006-10-11  Bruno Haible  <bruno@clisp.org>
111161         * gnulib-tool (func_usage): Make module names after --create-testdir
111162         optional.
111163         (func_create_testdir): If no module was specified, use nearly all
111164         modules.
111166 2006-10-12  Jim Meyering  <jim@meyering.net>
111168         Big performance improvement for fts-based tools that use FTS_NOSTAT.
111169         Avoid spurious inode-mismatch problems on non-POSIX file systems.
111170         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
111171         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
111172         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
111173         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
111174         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
111175         (fts_set_stat_required): New function.
111176         (fts_open): Defer the calls to fts_stat, if possible or requested.
111177         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
111178         into fts_stat itself.
111179         (fts_read): Perform any required (deferred) fts_stat call.
111180         (fts_build): Likewise, for the directory we're about to open and read.
111181         In the readdir loop, carefully decide whether each entry will require
111182         an eventual call to fts_stat, using dirent.d_type info if available.
111183         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
111184         a command line argument into this function.  Update all callers.
111185         Map a return value of FTS_DOT to FTS_D for a command line argument.
111186         * modules/fts (Depends-on): Add d-type.  Alphabetize.
111187         Thanks to Miklos Szeredi for his tenacity and for the initial
111188         bug report about "find" failing on a FUSE-based file system.
111190         * lib/fts.c (fts_open): Use consistent indentation.
111192 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111194         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
111195         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
111196         reported by Jim Meyering.  All uses of cache variables renamed
111197         to match Autoconf's.
111198         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
111199         the other one.
111201         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
111202         Fix misspelling in diagnostic.
111204 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111206         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
111207         defined.  Problem reported by Matthew Woehlke.
111209         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
111210         Add support for Tandem NonStop R series.
111211         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
111212         Use new macro.
111214         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
111215         (has_trailing_slash): Omit size arg; all callers changed.
111216         Omit 'inline', since it doesn't help performance and we'd
111217         need to configure it.
111218         Don't count //, ///, etc. as having a trailing slash.
111219         As a side effect, this removes a C99ism reported by Matthew Woehlke.
111220         (rpl_rename_dest_slash): On failure, use rename's errno rather
111221         than (in some cases) an incorrect or junk errno.
111222         Simplify code by removing need to compute length; this does
111223         cause it to make two passes instead of one over the file name,
111224         but it's worth it.
111226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
111227         change, since Autoconf's version may no longer be appropriate now
111228         that we are using CVS Autoconf's version.  Add support for Tandem.
111230 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111231             Bruno Haible  <bruno@clisp.org>
111233         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
111234         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
111235         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
111236         gl_AC_TYPE_LONG_LONG.
111238         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
111239         instead of HAVE_LONG_LONG.
111240         * lib/printf-args.c (printf_fetchargs): Likewise.
111241         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
111242         * lib/vasnprintf.c (VASNPRINTF): Likewise.
111243         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
111244         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
111245         gl_AC_TYPE_LONG_LONG.
111247 2006-10-11  Bruno Haible  <bruno@clisp.org>
111249         * m4/longlong.m4: Add comments.
111250         * m4/ulonglong.m4: Likewise.
111252 2006-10-10  Bruno Haible  <bruno@clisp.org>
111254         Make it possible to #define stpcpy, strdup to aliases.
111255         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
111256         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
111258 2006-10-10  Bruno Haible  <bruno@clisp.org>
111260         Make it possible to #define gcd to an alias.
111261         * lib/gcd.c: Include config.h.
111263 2006-10-10  Bruno Haible  <bruno@clisp.org>
111265         Make it possible to #define c_isascii to an alias.
111266         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
111267         defined. Undefine the macros before defining them, to avoid gcc
111268         warnings.
111269         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
111270         define NO_C_CTYPE_MACROS early.
111272 2006-10-10  Bruno Haible  <bruno@clisp.org>
111274         Make it possible to #define set_program_name to an alias.
111275         * lib/progname.c: Don't undefine set_program_name; instead, undefine
111276         ENABLE_RELOCATABLE early.
111278 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111280         Port to Tandem NSK OSS, which has 64-bit signed int but at most
111281         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
111282         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
111283         More generally, don't assume that 64-bit signed int is available
111284         if unsigned int is, and vice versa.
111285         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
111286         unsigned symbols, not on their signed counterparts.
111287         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
111288         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
111289         (UINT64_C, UINTMAX_C):
111290         Likewise.
111291         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
111292         unsigned counterparts.
111293         (Have_long_long, Unsigned): New macros.
111294         (Int): Renamed from INT.
111295         (strtoimax): Use the new macros.
111296         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
111297         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
111298         * modules/inttypes (inttypes.h): Substitute
111299         HAVE_UNSIGNED_LONG_LONG_INT.
111300         * modules/stdint (stdint.h): Likewise.
111301         (Files): Add m4/ulonglong.m4.
111303 2006-10-10  Bruno Haible  <bruno@clisp.org>
111305         Fix a gcc -Wshadow warning.
111306         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
111307         to 'bucket'.
111308         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
111309         gl_linked_indexof_from_to): Likewise.
111310         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
111311         Likewise.
111312         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
111313         Likewise.
111314         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
111315         Reported by Eric Blake.
111317 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
111319         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
111320         for NetBSD.  Problem reported by Bruno Haible.
111322 2006-10-09  Jim Meyering  <jim@meyering.net>
111324         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
111325         Patch from Bruno Haible.
111327 2006-10-09  Jim Meyering  <jim@meyering.net>
111329         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
111330         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
111331         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
111333 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
111335         Don't include <config.h> twice; this doesn't work in some cases,
111336         e.g., when config.h has "#define intmax_t long long int" and
111337         we include <config.h>, <inttypes.h>, <config.h> in that order.
111338         Problem reported by Matthew Woehlke in:
111339         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
111340         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
111341         * lib/fts-cycle.c: Don't include config.h.
111342         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
111343         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
111344         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
111345         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
111346         inttypes.h.
111347         * lib/xstrtoumax.c: Likewise.
111348         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
111349         __strtol and the like, so that this module is more like its siblings.
111350         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
111351         Remove; no longer needed now that we assume gnulib inttypes.h.
111353 2006-10-08  Bruno Haible  <bruno@clisp.org>
111355         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
111356         option.
111358 2006-10-07  Jim Meyering  <jim@meyering.net>
111360         * modules/inttypes (inttypes.h): Revert what seems to have been
111361         an inadvertent part of today's change: use "|", not "/" in the
111362         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
111364 2006-10-07  Bruno Haible  <bruno@clisp.org>
111366         * modules/sublist: New file.
111368 2006-10-07  Bruno Haible  <bruno@clisp.org>
111370         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
111371         * modules/argz (argz.h): Likewise.
111372         * modules/arpa_inet (arpa/inet.h): Likewise.
111373         * modules/byteswap (byteswap.h): Likewise.
111374         * modules/configmake (configmake.h): Likewise.
111375         * modules/fcntl (fcntl.h): Likewise.
111376         * modules/fnmatch (fnmatch.h): Likewise.
111377         * modules/getopt (getopt.h): Likewise.
111378         * modules/glob (glob.h): Likewise.
111379         * modules/inttypes (inttypes.h): Likewise.
111380         * modules/netinet_in (netinet/in.h): Likewise.
111381         * modules/poll (poll.h): Likewise.
111382         * modules/stdbool (stdbool.h): Likewise.
111383         * modules/stdint (stdint.h): Likewise.
111384         * modules/sys_select (sys/select.h): Likewise.
111385         * modules/sys_socket (sys/socket.h): Likewise.
111386         * modules/sys_stat (sys/stat.h): Likewise.
111387         * modules/sysexits (sysexits.h): Likewise.
111388         * modules/unistd (unistd.h): Likewise.
111389         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111390         Add a "DO NOT EDIT" comment to the generated file.
111391         (func_import): Likewise for gnulib-comp.m4.
111393 2006-10-07  Bruno Haible  <bruno@clisp.org>
111395         * lib/gl_sublist.h: New file.
111396         * lib/gl_sublist.c: New file.
111398 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111400         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
111401         name (relative to the original working directory) and the file
111402         name component (relative to the temporary working directory).  All
111403         callers changed.
111404         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
111405         * lib/mkdir-p.c (make_dir_parents): Likewise.
111406         * lib/mkdir-p.h (make_dir_parents): Likewise.
111408 2006-10-06  Eric Blake  <ebb9@byu.net>
111410         Define several macros for use by the clean-temp module.
111411         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
111412         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
111413         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
111415         * lib/clean-temp.h (close_stream_temp): New declaration.
111416         * lib/clean-temp.c (includes): Pull in headers according to what
111417         other modules are in use.
111418         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
111420 2006-10-06  Bruno Haible  <bruno@clisp.org>
111422         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
111423         instead of fopen, fwriteerror.
111425 2006-10-06  Bruno Haible  <bruno@clisp.org>
111427         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
111428         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
111429         int.
111430         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
111431         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
111432         Return an error indicator.
111433         Suggested by Eric Blake.
111435 2006-10-06  Bruno Haible  <bruno@clisp.org>
111437         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
111438         Reported by Eric Blake.
111440 2006-10-06  Bruno Haible  <bruno@clisp.org>
111442         * modules/closeout (Description): Mention stderr too.
111444 2006-10-06  Bruno Haible  <bruno@clisp.org>
111445         and Paul Eggert  <eggert@cs.ucla.edu>
111447         * lib/closeout.c (close_stdout): Also close stderr.
111448         * lib/closeout.h: Update comment.
111450 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111452         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
111453         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
111454         * lib/dirchownmod.c: Include lchown.h.
111455         * lib/lchown.c: Don't include files that lchown.h now includes.
111456         Don't declare chown, since lchown.h now does that.
111457         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
111458         (lchown): Define to rpl_chown if lchown is declared but
111459         does not exist.  Declare using a prototype if lchown is not
111460         declared.  Add a copyright notice.
111461         * lib/mkstemp.h: Include <unistd.h>.
111462         * lib/openat.c: Include lchown.h.
111464         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
111465         we now test for that separately.
111466         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
111467         rather than O_NOFOLLOW, when testing whether it's possible to
111468         avoid a race condition reliably.
111469         * lib/savewd.c (savewd_chdir): Likewise.
111471         Remove macros that are no longer needed now that stdint.h is
111472         reliable.
111473         * lib/fsusage.c (UINTMAX_MAX): Remove.
111474         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
111475         * lib/utimecmp.c (SIZE_MAX): Remove.
111477         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
111479         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
111480         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
111481         O_NOATIME works.
111483 2006-10-05  Bruno Haible  <bruno@clisp.org>
111485         * lib/gl_list.h (gl_sortedlist_search_from_to,
111486         gl_sortedlist_indexof_from_to): New declarations.
111487         (gl_list_implementation): New fields sortedlist_search_from_to,
111488         sortedlist_indexof_from_to.
111489         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
111490         inline functions.
111491         * lib/gl_list.c (gl_sortedlist_search_from_to,
111492         gl_sortedlist_indexof_from_to): New functions.
111493         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
111494         function.
111495         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
111496         (gl_array_sortedlist_search_from_to): New function.
111497         (gl_array_list_implementation): Update.
111498         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
111499         function.
111500         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
111501         (gl_carray_sortedlist_search_from_to): New function.
111502         (gl_carray_list_implementation): Update.
111503         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
111504         gl_linked_sortedlist_indexof_from_to): New functions.
111505         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111506         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111507         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
111508         gl_tree_sortedlist_indexof_from_to): New functions.
111509         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111510         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111511         Update.
111512         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111513         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
111514         Update.
111516 2006-10-05  Bruno Haible  <bruno@clisp.org>
111518         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
111519         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
111520         (struct gl_list_implementation): Add fields search_from_to,
111521         indexof_from_to. Remove fields search, indexof.
111522         (gl_list_search): Use the search_from_to method.
111523         (gl_list_search_from, gl_list_search_from_to): New functions.
111524         (gl_list_indexof): Use the indexof_from_to method.
111525         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111526         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
111527         (gl_list_search_from, gl_list_search_from_to): New functions.
111528         (gl_list_indexof): Use the indexof_from_to method.
111529         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111530         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
111531         gl_array_indexof. Add start_index, end_index arguments.
111532         (gl_array_search_from_to): Renamed from gl_array_search. Add
111533         start_index, end_index arguments.
111534         (gl_array_remove, gl_array_list_implementation): Update.
111535         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
111536         gl_carray_indexof. Add start_index, end_index arguments.
111537         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
111538         start_index, end_index arguments.
111539         (gl_carray_remove, gl_carray_list_implementation): Update.
111540         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
111541         gl_linked_search. Add start_index, end_index arguments.
111542         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
111543         start_index, end_index arguments.
111544         (gl_linked_remove): Update.
111545         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111546         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111547         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
111548         field to 'size_t'.
111549         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
111550         gl_tree_search. Add start_index, end_index arguments.
111551         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111552         start_index, end_index arguments.
111553         (gl_tree_remove): Update.
111554         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111555         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111556         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
111557         function.
111558         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
111559         gl_tree_search. Add start_index, end_index arguments.
111560         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111561         start_index, end_index arguments.
111562         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111563         Update.
111564         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
111566 2006-10-05  Bruno Haible  <bruno@clisp.org>
111568         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
111570         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
111571         fwriteerror_temp): New declarations.
111572         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
111573         (descriptors): New variable.
111574         (cleanup): First, close the descriptors.
111575         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
111576         fclose_temp, fwriteerror_temp): New functions.
111578 2006-10-04  Jim Meyering  <jim@meyering.net>
111580         * lib/fts.c (fts_open): Tiny comment change.
111582 2006-10-04  Bruno Haible  <bruno@clisp.org>
111584         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
111585         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
111586         gl_LOCK_BODY.
111587         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
111588         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
111589         gl_LOCK_EARLY_BODY.
111590         (gl_LOCK): Require gl_LOCK_BODY.
111592 2006-10-04  Bruno Haible  <bruno@clisp.org>
111594         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
111595         (gl_oset_search_atleast): New declaration.
111596         (struct gl_oset_implementation): Add field 'search_atleast'.
111597         (gl_oset_search_atleast): New inline function.
111598         * lib/gl_oset.c (gl_oset_search_atleast): New function.
111599         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
111600         (gl_array_oset_implementation): Update.
111601         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
111602         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
111603         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
111605 2006-10-04  Bruno Haible  <bruno@clisp.org>
111607         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
111609 2006-10-03  Bruno Haible  <bruno@clisp.org>
111611         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
111612         from gl_avltreehash_list_implementation.
111614 2006-10-03  Bruno Haible  <bruno@clisp.org>
111616         * lib/gl_oset.c (gl_oset_add): Fix return type.
111618 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
111620         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
111622 2006-10-02  Eric Blake  <ebb9@byu.net>
111624         * modules/strnlen (Depends-on): Add extensions.
111626 2006-10-02  Eric Blake  <ebb9@byu.net>
111628         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
111629         definition in 2.60+.
111631 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
111633         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
111634         checks.
111636 2006-10-02  Bruno Haible  <bruno@clisp.org>
111638         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
111639         to the AUTOMAKE_OPTIONS.
111640         Reported by Jim Meyering.
111642 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
111644         Work around bug in Solaris 10 /proc file system:
111645         /proc/self/fd/NNN/.. isn't the parent directory of
111646         the directory whose file descriptor is NNN.  This needs to
111647         be worked around at run time, not compile time, since a
111648         program might be built on Solaris 8, where things work, and
111649         run on Solaris 10.
111650         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
111651         to use the following interface instead:
111652         (OPENAT_BUFFER_SIZE): New macro.
111653         (openat_proc_name): New function.
111654         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
111655         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
111656         Likewise.
111657         * lib/openat-proc.c: New file.
111658         * modules/openat (Files): Add lib/openat-proc.c.
111659         (Depends-on): Add same-inode, stdbool.
111660         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
111662 2006-09-29  Bruno Haible  <bruno@clisp.org>
111664         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
111665         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
111666         argument. Set stdout_closed before testing for ferror, not after.
111667         (fwriteerror, fwriteerror_no_ebadf): New functions.
111669 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111671         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
111673 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
111675         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
111676         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
111678 2006-09-28  Jim Meyering  <jim@meyering.net>
111680         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
111681         Include <unistd.h>.
111683 2006-09-28  Bruno Haible  <bruno@clisp.org>
111685         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
111686         * modules/linkedhash-list (Depends-on): Likewise.
111687         * modules/rbtreehash-list (Depends-on): Likewise.
111689 2006-09-28  Bruno Haible  <bruno@clisp.org>
111691         * lib/strndup.h: Simplify the redefinition of strndup.
111692         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
111693         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
111695 2006-09-28  Bruno Haible  <bruno@clisp.org>
111697         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
111698         * lib/gl_linkedhash_list.c: Likewise.
111699         * lib/gl_rbtreehash_list.c: Likewise.
111701 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
111703         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
111704         getaddrinfo.
111706         * lib/__fpending.h: Don't include <stdio_ext.h> unless
111707         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
111708         it causes <stdio_ext.h> to cause a compile-time error.
111709         Problem reported by Nelson H. F. Beebe.
111710         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
111711         of HAVE_DECL___PENDING.
111713         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
111714         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
111715         declaration.
111717 2006-09-27  Jim Meyering  <jim@meyering.net>
111719         This file could end up with a definition for a function
111720         named __strndup, rather than rpl_strndup on a system with
111721         incomplete weak_alias support.
111722         * lib/strndup.c (strndup): Rename from __strndup.
111723         Remove #defines that used to map __strndup to strndup.
111724         Don't use K&R prototypes.
111725         Remove LIBC-related code, since this file is not sync'd with glibc.
111726         * lib/strndup.h: Revamp, accordingly.
111727         * m4/strndup.m4: Modernize.
111729 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
111731         * modules/savewd (Depends-on): Add 'raise'.
111732         * lib/savewd.c: Include <signal.h>, for 'raise'.
111734 2006-09-26  Jim Meyering  <jim@meyering.net>
111736         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
111737         when we detect Darwin 8.7.0's acl_get_file bug.
111738         Rearrange to perform the new (below) run-test while $LIBS
111739         contains any acl-related library.  Set USE_ACL at the end.
111740         (gl_ACL_GET_FILE): New function.
111742 2006-09-26  Eric Blake  <ebb9@byu.net>
111744         * lib/verror.c: Include <config.h> unconditionally.
111746 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
111748         * modules/clock-time (Maintainer): Add self.
111749         * modules/getlogin_r (Depends-on): Add extensions.
111751 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111753         * modules/clock-time: New module.
111754         * modules/nanosleep (Depends-on): Add clock-time.
111755         * modules/gethrxtime (Depends-on): Likewise.
111756         * modules/gettime (Depends-on): Likewise.
111757         * modules/settime (Depends-on): Likewise.
111759         * modules/fts-lgpl: Depend on openat.
111760         * modules/mkancesdirs: Depend on savewd.
111761         * modules/mkdir-p: Likewise.
111763 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111765         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
111767         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
111768         `gl_have_arbitrary_file_name_length_limit' to
111769         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
111770         actually works between configure runs.
111772 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111773             Bruno Haible  <bruno@clisp.org>
111775         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
111777 2006-09-25  Jim Meyering  <jim@meyering.net>
111779         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
111780         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
111782 2006-09-25  Eric Blake  <ebb9@byu.net>
111784         * gnulib-tool (func_import, func_create_testdir): Fix typos in
111785         exec's in 2006-09-18 patch when shuffling fds.
111787 2006-09-25  Bruno Haible  <bruno@clisp.org>
111789         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
111790         Reported by Jim Meyering.
111792 2006-09-24  Jim Meyering  <jim@meyering.net>
111794         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
111795         compare a pointer against a literal "0".  That caused failures with
111796         at least HP-UX's hpcc.
111798 2006-09-22  Simon Josefsson  <jas@extundo.com>
111800         * modules/gc-sha1:
111801         * modules/gc-md4:
111802         * modules/gc-hmac-sha1:
111803         * modules/gc-hmac-md5:
111804         * modules/gc-des:
111805         * modules/gc-arcfour: Distribute more files.
111807 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111809         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
111810         (gl_linked_iterator_from_to): Initialize struct completely.
111811         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
111812         (gl_tree_iterator_from_to): Likewise
111813         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
111814         * lib/gl_array_list.c [lint] (gl_array_iterator)
111815         (gl_array_iterator_from_to): Likewise.
111816         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
111817         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
111818         (gl_carray_iterator_from_to): Likewise.
111820         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
111821         * lib/md4.c (md4_process_block): Remove unused variable.
111822         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
111823         parentheses for clarity.
111825 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111827         * modules/bison-i18n (Depends-on): Add gettext.
111829 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111831         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
111832         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
111833         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
111834         also add missing comma that caused broken test.
111835         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
111836         stdlib.h, for `abort'.
111837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
111838         variables.
111839         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
111840         include unistd.h if present, for `rmdir'.
111841         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
111842         variables.
111843         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
111844         in the process include standard headers for prototypes.
111845         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
111846         gets declared on GNU/Linux.
111847         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
111848         unistd.h, for `rmdir'.
111849         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
111851         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
111852         always true.
111853         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
111855         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
111857 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111859         * gnulib-tool (func_version): Create output all at once.  This
111860         may help avoid triggering unnecessary SIGPIPEs, and at any
111861         rate it doesn't hurt.
111863 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111864             Bruno Haible  <bruno@clisp.org>
111866         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
111867         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
111868         * m4/signed.m4 (bh_C_SIGNED): Likewise.
111870         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
111871         (gl_FUNC_VASPRINTF): Invoke it.
111873 2006-09-22  Bruno Haible  <bruno@clisp.org>
111875         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
111876         getloadavg.c as first argument.
111878 2006-09-22  Bruno Haible  <bruno@clisp.org>
111880         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
111881         at the beginning of the gl_INIT macro.
111882         * modules/getloadavg (configure.ac): Pass $gl_source_base to
111883         gl_GETLOADAVG.
111885 2006-09-22  Bruno Haible  <bruno@clisp.org>
111887         * gnulib-tool (func_create_megatestdir): Don't include the config-h
111888         module.
111889         Suggested by Ralf Wildenhues.
111891 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
111893         Import this patch from libc:
111895         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
111897         * lib/regex_internal.c (re_string_reconstruct): Handle
111898         offset < pstr->valid_raw_len && pstr->offsets_needed case.
111899         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
111900         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
111901         re_string_context_at.
111903         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
111904         now requires it.
111905         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
111906         gl_REGEX now does it for us.
111907         (gl_REGEX): Add test taken from
111908         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
111910         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
111911         Check that large offsets work.  Modernize Autoconf usages.
111912         Prefer "yes" to mean a good thing rather than a bad.
111913         Don't put "#define mkstemp" in config.h, as this might interfere
111914         with standard system headers that "#define mkstemp mkstemp64".
111916         * modules/mkstemp (Depends-on): Add extensions, so that
111917         mkstemp is visible on some platforms.
111918         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
111919         (Include): Change to "mkstemp.h" from <stdlib.h>.
111920         (Files): Add mkstemp.h.
111922         * lib/mkstemp.h: New file, since some standard headers
111923         #define mkstemp.
111924         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
111925         Include "mkstemp.h".
111926         Make the _LIBC code resemble glibc original more,
111927         e.g., use K&R style.
111928         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
111929         (mkstemp): Remove, since mkstemp.h does this for us.
111930         * lib/stdlib--.h: Include mkstemp.h.
111932         Import this patch from libc:
111934         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
111936         * lib/tempname.c (__gen_tempname): Change attempts_min
111937         into a macro.  Use preprocessor to decide how to initialize
111938         attempts [Coverity CID 67].
111940 2006-09-20  Bruno Haible  <bruno@clisp.org>
111942         * lib/mkdtemp.c: Import from libc.
111943         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
111944                 * sysdeps/posix/tempname.c (__gen_tempname): Change
111945                 attempts_min into a macro.  Use preprocessor to decide how to
111946                 initialize attempts [Coverity CID 67].
111947         2001-11-27  Paul Eggert  <eggert@twinsun.com>
111948                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
111949                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
111951 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111953         * gnulib-tool (func_exit): New function, to allow to pass the
111954         exit status portably through the trap.  Use everywhere.
111955         (--help, --version): Signal a write error.
111956         (trap): catch SIGPIPE, for write errors.
111957         Exit at the end of the trap, with the correct exit status.
111959 2006-09-19  Karl Berry  <karl@gnu.org>
111961         * doc/gnulib.texi: note about the license texinfo files.
111963 2006-09-19  Eric Blake  <ebb9@byu.net>
111965         * gnulib-tool: Avoid space-tab.
111967 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
111969         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
111970         that prevented coreutils 6.1 from building.  Problem reported
111971         by Petter Reinholdtsen.
111973 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
111975         * gnulib-tool (avoidlist): Fix typo that broke options like
111976         --avoid=lock that are used by coreutils bootstrap.
111978 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
111980         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
111981         more systematically.
111983 2006-09-18  Jim Meyering  <jim@meyering.net>
111985         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
111987 2006-09-18  Bruno Haible  <bruno@clisp.org>
111989         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
111991 2006-09-18  Bruno Haible  <bruno@clisp.org>
111993         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
111994         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
111995         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
111996         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
111997         * m4/gettext.m4: Require autoconf >= 2.52.
111998         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
111999         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
112000         of gl_cv_header_inttypes_h.
112002 2006-09-18  Bruno Haible  <bruno@clisp.org>
112004         * lib/javaversion.c: Include configmake.h.
112006 2006-09-18  Bruno Haible  <bruno@clisp.org>
112008         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
112009         avoid that the while loops be executed in a subshell.
112011 2006-09-18  Bruno Haible  <bruno@clisp.org>
112013         * MODULES.html.sh (func_module): Break long lines.
112014         Suggested by Bruce Korb <bkorb@gnu.org>.
112016 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112018         Speed up by a factor of 1.12.
112019         * gnulib-tool (nl): New variable.
112020         (func_import): Rewrite include directive extraction to only read each
112021         directive once.
112023 2006-09-17  Bruno Haible  <bruno@clisp.org>
112025         * modules/javaversion (Makefile.am): Remove DEFS setting.
112026         (Depends-on): Add configmake, for PKGDATADIR definition.
112028 2006-09-17  Bruno Haible  <bruno@clisp.org>
112030         * gnulib-tool (func_create_testdir): Rewrite all files at once.
112032 2006-09-17  Bruno Haible  <bruno@clisp.org>
112034         * gnulib-tool (func_append): New function, stolen from libtool.m4.
112035         (func_modules_transitive_closure, func_modules_add_dummy,
112036         func_modules_to_filelist, func_import, func_create_testdir,
112037         func_create_megatestdir, ...): Use it wherever possible.
112038         Suggested by Ralf Wildenhues.
112040 2006-09-16  Karl Berry  <karl@gnu.org>
112042         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
112043         to avoid sectioning errors.
112044         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
112045         [ifinfo]: blank line after @center-ed titles.
112046         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
112047         Spell FSF address consistently with others.
112048         (These changes approved by rms.)
112050 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112052         Speed up by a factor of 1.61.
112053         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
112054         already checked module names again.
112056 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112058         Speed up by a factor of 1.13.
112059         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
112060         for new_files, and the input to func_add_or_update.
112062 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112064         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
112065         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
112067 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112069         * modules/mkancesdirs (Depends-on): Add fcntl.
112070         * modules/savewd: New file.
112071         * MODULES.html.sh (File system functions): Add savewd.
112073         * modules/configmake (Makefile.am): Add support for the
112074         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
112076 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112078         * m4/savewd.m4: New file.
112080 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112082         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
112083         (dirchownmod): New arg FD.  All callers changed.
112084         Use FD rather than opening the directory ourself, as opening is
112085         now the caller's responsibility.
112086         * lib/dirchownmod.h: Likewise.
112087         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
112088         hosts that require <sys/types.h> before <sys/stat.h>.  Include
112089         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
112090         (test_dir): Remove.
112091         (mkancesdirs): Return length of prefix of FILE that has already
112092         been made, or -2 if there is a child doing the work.  Redo
112093         algorithm so that it is O(N) rather than O(N**2).  Optimize away
112094         ".", and treat ".." specially since it might stray back into
112095         already-created areas.  Use a subprocess if necessary.  New arg
112096         WD; all users changed.  MAKE_DIR function should now return 1
112097         if it creates a directory that is not readable.  Return -2 if
112098         a child process is spun off.
112099         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
112100         Adjust signature to match code.
112101         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
112102         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
112103         all users changed.
112104         * lib/savewd.c, lib/savewd.h: New files.
112106 2006-09-15  Jim Meyering  <jim@meyering.net>
112108         * modules/rename-dest-slash: New module.
112109         * MODULES.html.sh (posix_compat): Add it here.
112111         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
112113 2006-09-15  Jim Meyering  <jim@meyering.net>
112115         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
112116         file.
112118         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
112120 2006-09-15  Jim Meyering  <jim@meyering.net>
112122         * lib/rename-dest-slash.c (has_trailing_slash): Use
112123         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
112124         (rpl_rename_dest_slash): Perform the cheaper trailing slash
112125         test before testing whether SRC is a directory.
112126         Suggestions from Bruno Haible.
112128         Avoid a warning about an unused variable.
112129         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
112130         into the #ifdef block where it's used.
112132         * lib/rename-dest-slash.c: New file.
112134 2006-09-14  Bruno Haible  <bruno@clisp.org>
112136         * lib/allocsa.c: Include <config.h> unconditionally.
112137         * lib/asnprintf.c: Likewise.
112138         * lib/asprintf.c: Likewise.
112139         * lib/c-strcasecmp.c: Likewise.
112140         * lib/c-strcasestr.c: Likewise.
112141         * lib/c-strncasecmp.c: Likewise.
112142         * lib/c-strstr.c: Likewise.
112143         * lib/classpath.c: Likewise.
112144         * lib/clean-temp.c: Likewise.
112145         * lib/concatpath.c: Likewise.
112146         * lib/copy-file.c: Likewise.
112147         * lib/csharpcomp.c: Likewise.
112148         * lib/csharpexec.c: Likewise.
112149         * lib/execute.c: Likewise.
112150         * lib/fatal-signal.c: Likewise.
112151         * lib/findprog.c: Likewise.
112152         * lib/fwriteerror.c: Likewise.
112153         * lib/gl_array_list.c: Likewise.
112154         * lib/gl_array_oset.c: Likewise.
112155         * lib/gl_avltree_list.c: Likewise.
112156         * lib/gl_avltree_oset.c: Likewise.
112157         * lib/gl_avltreehash_list.c: Likewise.
112158         * lib/gl_carray_list.c: Likewise.
112159         * lib/gl_linked_list.c: Likewise.
112160         * lib/gl_linkedhash_list.c: Likewise.
112161         * lib/gl_list.c: Likewise.
112162         * lib/gl_oset.c: Likewise.
112163         * lib/gl_rbtree_list.c: Likewise.
112164         * lib/gl_rbtree_oset.c: Likewise.
112165         * lib/gl_rbtreehash_list.c: Likewise.
112166         * lib/imaxabs.c: Likewise.
112167         * lib/imaxdiv.c: Likewise.
112168         * lib/javacomp.c: Likewise.
112169         * lib/javaexec.c: Likewise.
112170         * lib/javaversion.c: Likewise.
112171         * lib/linebreak.c: Likewise.
112172         * lib/localcharset.c: Likewise.
112173         * lib/lock.c: Likewise.
112174         * lib/mbchar.c: Likewise.
112175         * lib/mbswidth.c: Likewise.
112176         * lib/mkdtemp.c: Likewise.
112177         * lib/pipe.c: Likewise.
112178         * lib/printf-args.c: Likewise.
112179         * lib/printf-parse.c: Likewise.
112180         * lib/progname.c: Likewise.
112181         * lib/progreloc.c: Likewise.
112182         * lib/readlink.c: Likewise.
112183         * lib/sh-quote.c: Likewise.
112184         * lib/stpcpy.c: Likewise.
112185         * lib/stpncpy.c: Likewise.
112186         * lib/strcasecmp.c: Likewise.
112187         * lib/strcasestr.c: Likewise.
112188         * lib/strcspn.c: Likewise.
112189         * lib/striconv.c: Likewise.
112190         * lib/strncasecmp.c: Likewise.
112191         * lib/strnlen1.c: Likewise.
112192         * lib/strstr.c: Likewise.
112193         * lib/strtok_r.c: Likewise.
112194         * lib/tls.c: Likewise.
112195         * lib/tmpdir.c: Likewise.
112196         * lib/unicodeio.c: Likewise.
112197         * lib/unsetenv.c: Likewise.
112198         * lib/vasnprintf.c: Likewise.
112199         * lib/vasprintf.c: Likewise.
112200         * lib/wait-process.c: Likewise.
112201         * lib/xallocsa.c: Likewise.
112202         * lib/xsetenv.c: Likewise.
112203         * lib/xstriconv.c: Likewise.
112205 2006-09-13  Simon Josefsson  <jas@extundo.com>
112207         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
112208         that internally, suggested by Ralf Wildenhues
112209         <Ralf.Wildenhues@gmx.de>.
112211 2006-09-13  Simon Josefsson  <jas@extundo.com>
112213         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
112214         @LIBOBJS@.
112215         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112217 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
112219         * lib/_fpending.c: Include <config.h> unconditionally, since we no
112220         longer worry about uses that don't define HAVE_CONFIG_H.
112221         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
112222         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
112223         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
112224         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
112225         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
112226         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
112227         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
112228         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
112229         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
112230         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
112231         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
112232         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
112233         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
112234         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
112235         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
112236         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
112237         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
112238         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
112239         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
112240         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
112241         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
112242         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
112243         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
112244         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
112245         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
112246         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
112247         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
112248         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
112249         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
112250         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
112251         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
112252         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
112253         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
112254         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
112255         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
112256         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
112257         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
112258         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
112259         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
112260         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
112261         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
112262         Likewise.
112264 2006-09-13  Eric Blake  <ebb9@byu.net>
112266         * lib/getopt.c: Fix typo in last commit.
112268 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
112270         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
112271         dgettext.
112273 2006-09-12  Jim Meyering  <jim@meyering.net>
112275         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
112276         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
112277         Reported by Nelson H. F. Beebe.
112279 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112281         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
112282         program_invocation_name and program_invocation_short_name are
112283         initialized.
112284         * lib/argp-namefrob.h: Move declarations of program_invocation_name
112285         and program_invocation_short_name to argp.h, so they are visible
112286         to user programs.
112287         * lib/argp.h: Likewise
112289 2006-09-10  Bruno Haible  <bruno@clisp.org>
112291         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112292         m4/inttypes_h.m4, m4/uintmax_t.m4.
112294 2006-09-10  Bruno Haible  <bruno@clisp.org>
112296         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
112297         gl_AC_TYPE_UINTMAX_T.
112299 2006-09-10  Bruno Haible  <bruno@clisp.org>
112301         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
112303 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112305         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
112306         convention.  Text proposed by Bruno Haible.
112307         (struct argp_option): Document the use of N_() wrappers.
112309         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
112310         '\v', and translate the two parts separately, instead of feeding
112311         the whole string to gettext.  This allows to exclude
112312         '\v' from the strings visible to the translator by writing doc
112313         strings as N_("..") "\v" N_("..").
112315 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
112317         * config/srclist.txt: Undo latest change; the bug was fixed.
112319 2006-09-09  Bruno Haible  <bruno@clisp.org>
112321         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
112322         assignments if building a library without libtool.
112323         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
112324         in func_emit_lib_Makefile_am.
112325         (func_import): When building a static library libfoo.a, arrange to
112326         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
112327         (func_create_testdir): Likewise.
112328         * modules/gc (configure.ac, Makefile.am): If building statically,
112329         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
112330         * modules/iconvme (configure.ac, Makefile.am): Likewise.
112331         * modules/striconv (configure.ac, Makefile.am): Likewise.
112332         Based on a suggestion by Ralf Wildenhues.
112334 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112336         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
112337         Check for unistd.h too, since Autoconf doesn't assume POSIX.
112338         Also:
112340         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112341         Add year_2050_test to catch glibc bug 2821
112342         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112344         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112345         Prefer #ifdef to #if.
112347         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
112348         Return from 'main' instead of calling 'exit'.
112350 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112352         * lib/mktime.c (guess_time_tm): Fix bug where mktime
112353         returned the maximum time_t value rather than (time_t) -1.
112354         Problem originally reported by William Bardwell
112355         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112357         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112358         Moved to here ...
112359         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112360         ... from here.
112362 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112364         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
112365         2821 is fixed.
112367 2006-09-08  Jim Meyering  <jim@meyering.net>
112369         Don't make generated files read-only.  That would bother too many
112370         people.  However, do retain the ability to work when targets are
112371         read-only: remove the destination and temporary files before writing
112372         them (when generated via sed or echo), or by using the -f option for
112373         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
112374         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112375         * modules/byteswap, modules/configmake, modules/fcntl:
112376         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112377         * modules/localcharset, modules/netinet_in, modules/poll:
112378         * modules/stdbool, modules/stdint, modules/sys_select:
112379         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112381 2006-09-08  Jim Meyering  <jim@meyering.net>
112383         Avoid new build failure on FreeBSD 6.0.
112384         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
112385         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
112386         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
112388 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112390         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
112392 2006-09-07  Jim Meyering  <jim@meyering.net>
112394         Fix global typo in last change: use chmod u-w, not chmod u-x.
112395         Spotted by Paul Eggert and Bruce Korb.
112396         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112397         * modules/byteswap, modules/configmake, modules/fcntl:
112398         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112399         * modules/localcharset, modules/netinet_in, modules/poll:
112400         * modules/stdbool, modules/stdint, modules/sys_select:
112401         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112403 2006-09-06  Jim Meyering  <jim@meyering.net>
112405         Make generated files be read-only.
112406         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
112407         Ensure that each generated file is now read-only.
112408         * modules/argz: Likewise.
112409         * modules/arpa_inet: Likewise.
112410         * modules/byteswap: Likewise.
112411         * modules/configmake: Likewise.
112412         * modules/fcntl: Likewise.
112413         * modules/fnmatch: Likewise.
112414         * modules/getopt: Likewise.
112415         * modules/glob: Likewise.
112416         * modules/inttypes: Likewise.
112417         * modules/netinet_in: Likewise.
112418         * modules/poll: Likewise.
112419         * modules/stdbool: Likewise.
112420         * modules/stdint: Likewise.
112421         * modules/sys_select: Likewise.
112422         * modules/sys_socket: Likewise.
112423         * modules/sys_stat: Likewise.
112424         * modules/sysexits: Likewise.
112425         * modules/localcharset: Same as above, but continue using temporary
112426         file named "t-$@" (why different?) rather than the "$@-t" used
112427         everywhere else.
112429         * modules/sysexits (Makefile.am): Replace literal occurrences
112430         of "sysexit.h" more readable, and more consistent, "$@".
112432 2006-09-06  Bruno Haible  <bruno@clisp.org>
112434         * modules/striconv: New file.
112435         * modules/xstriconv: New file.
112436         * MODULES.html.sh (Internationalization functions): Add striconv,
112437         xstriconv.
112439 2006-09-06  Bruno Haible  <bruno@clisp.org>
112441         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
112442         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
112443         not using libtool correctly.
112445 2006-09-06  Bruno Haible  <bruno@clisp.org>
112447         * lib/striconv.h: New file.
112448         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
112449         iconvstring.c.
112450         * lib/xstriconv.h: New file.
112451         * lib/xstriconv.c: New file.
112453 2006-09-06  Bruno Haible  <bruno@clisp.org>
112455         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
112456         lib_..._LDFLAGS.
112458 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112460         * lib/argz_.h: Sync from Libtool.
112462         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
112463                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112465         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
112467 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112469         * modules/trim: New file.
112471 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112473         * lib/trim.h: New file.
112474         * lib/trim.c: New file.
112476 2006-09-05  Bruno Haible  <bruno@clisp.org>
112478         * MODULES.html.sh (String handling): Add trim.
112480 2006-09-04  Karl Berry  <karl@gnu.org>
112482         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
112483         until next release.
112485 2006-09-03  Bruno Haible  <bruno@clisp.org>
112487         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
112488         correctly.
112490 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112492         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
112493         not gl_GETLOADAVG.  Omit unneeded semicolons.
112494         Problems reported by Ralf Wildenhues in
112495         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112496         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
112497         at the end, which is the usual gnulib style.
112499         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
112500         of doing all the work ourselves.
112501         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
112502         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
112504 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112506         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
112507         Problem reported by Ralf Wildenhues in
112508         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112510         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
112511         HAVE_STRUCT_STATFS_F_FSTYPENAME.
112513 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112515         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
112516         yesterday's patch by changing test -n to test -z.
112518 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112520         * modules/getloadavg (Files): Add m4/getloadavg.m4.
112521         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
112522         the former is now obsolescent.
112524         * modules/chdir-long (Depends-on): Add fcntl.
112526 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112528         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
112529         obsolescent, and programs should use gnulib instead.
112530         * m4/getloadavg.m4: New file, with contents taken from Autoconf
112531         but with prefixes changed.
112533 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112535         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
112536         or stdbool.h, because they might not exist while configuring.
112538         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
112539         Don't include unistd.h or limits.h; not needed, since chdir-long.h
112540         does that for us.
112541         (O_DIRECTORY): Remove.
112543 2006-08-31  Eric Blake  <ebb9@byu.net>
112545         * gnulib-tool: Don't let emacs change spaces to TAB.
112547 2006-08-31  Bruno Haible  <bruno@clisp.org>
112549         * gnulib-tool: When calling func_import more than once, do it in a
112550         subshell.
112551         Reported by Eric Blake <ebb9@byu.net>.
112553 2006-08-31  Bruno Haible  <bruno@clisp.org>
112555         * gnulib-tool (nl): Remove variable.
112556         (sed_transform_lib_file): Use more robust test for config-h module.
112557         (func_import): Fix typo in 2006-08-25 patch.
112559 2006-08-31  Bruno Haible  <bruno@clisp.org>
112561         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
112562         specified, augment Makefile.am variables instead of assigning them.
112564 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112566         Work around a bug in both the Linux and SunOS 64-bit kernels:
112567         nanosleep mishandles sleeps for longer than 2**31 seconds.
112568         Problem reported by Frank v Waveren in
112569         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
112571         Check for nanosleep bug.
112572         (LIB_NANOSLEEP): Append clock_gettime library if needed.
112574 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112576         Work around a bug in both the Linux and SunOS 64-bit kernels:
112577         nanosleep mishandles sleeps for longer than 2**31 seconds.
112578         Problem reported by Frank v Waveren in
112579         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112580         * lib/nanosleep.c (BILLION): New constant.
112581         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
112582         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
112583         implementation.
112585 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112587         * modules/nanosleep (Depends-on): Add gettime.
112589 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112590         and Simon Josefsson  <jas@extundo.com>
112591         and Oskar Liljeblad  <oskar@osk.mine.nu>
112593         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
112594         * gnulib-tool (func_import): New license type 'unmodifiable license
112595         text'.
112596         * modules/fdl: Use it.  Longer description.
112597         * module/gpl, module/lgpl: New files.
112599 2006-08-30  Jim Meyering  <jim@meyering.net>
112601         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
112602         shadowing the parameter.
112604 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112606         Sync from Libtool:
112608         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112610         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
112611         sharing with gnulib.  Report by Eric Blake.
112613 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112615         * modules/isapipe: New file.
112616         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
112618 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112620         * modules/configmake (Makefile.am): Add a comment, and omit
112621         the CONFIGMAKE_ prefix from generated macro names.  Suggested
112622         by Bruno Haible.
112624 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112626         * m4/isapipe.m4: New file.
112628 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112630         * lib/isapipe.c, lib/isapipe.h: New files.
112632 2006-08-29  Jim Meyering  <jim@meyering.net>
112634         * modules/configmake (Makefile.am): Make configmake.h depend on
112635         Makefile.  Otherwise, a stale configmake.h could hang around.
112637 2006-08-29  Eric Blake  <ebb9@byu.net>
112639         * lib/error.c (error_at_line, print_errno_message): Match libc, after
112640         resolution of upstream bug 3044.
112642 2006-08-29  Bruno Haible  <bruno@clisp.org>
112644         * modules/localcharset (Depends-on): Add configmake.
112645         (Makefile.am): Remove setting of LIBDIR through DEFS.
112647 2006-08-29  Bruno Haible  <bruno@clisp.org>
112649         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
112650         defined.
112652 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112654         * modules/fcntl: New file.
112655         * modules/chdir-safer (Depends-on): Add fcntl.
112656         * modules/fts: Likewise.
112657         * modules/mkdir-p: Likewise.
112659         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
112660         This undoes the most recent change, since we're now addressing the
112661         problem in a different way.
112663         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
112664         into output, since the output might be called Makefile.am even
112665         if $makefile_name is something different.
112666         (func_import): Use $makefile_am rather than
112667         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
112668         empty.
112670         * modules/inttypes (Files): Add m4/inttypes-h.m4.
112672 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112674         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
112675         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
112676         recent change to stdint.m4, since we're now addressing the problem in a
112677         different way.
112679 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112681         * m4/fcntl_h.m4: New file.
112683 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112685         * lib/fcntl_.h: New file.
112686         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
112687         the fcntl module.
112688         * lib/dirchownmod.c: Likewise.
112689         * lib/fts.c: Likewise.
112691         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
112692         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
112693         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
112694         just before including <inttypes.h>, to avoid circular inclusion.
112696 2006-08-28  Jim Meyering  <jim@meyering.net>
112698         * doc/visibility.texi: Actually read and correct the grammar of the
112699         sentence affected by yesterday's change.
112701 2006-08-28  Eric Blake  <ebb9@byu.net>
112703         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
112704         needs wrapper.
112706 2006-08-28  Eric Blake  <ebb9@byu.net>
112708         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
112710 2006-08-28  Eric Blake  <ebb9@byu.net>
112712         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
112714 2006-08-28  Bruno Haible  <bruno@clisp.org>
112716         * modules/c-strstr: New file, from GNU gettext.
112717         * MODULES.html.sh (String handling): Add c-strstr.
112719 2006-08-28  Bruno Haible  <bruno@clisp.org>
112721         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
112722         macros.
112723         Reported by Eric Blake.
112725 2006-08-28  Bruno Haible  <bruno@clisp.org>
112727         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
112728         (VASNPRINTF): Return a string of length > INT_MAX without failing.
112729         * lib/vasprintf.c: Include errno.h, limits.h.
112730         (EOVERFLOW): New fallback definition.
112731         (vasprintf): Test here whether the string length is > INT_MAX.
112732         * lib/vsnprintf.c: Include errno.h, limits.h.
112733         (EOVERFLOW): New fallback definition.
112734         (vsnprintf): Fix bug when generated string was too long for the buffer.
112735         Test here whether the string length is > INT_MAX.
112737 2006-08-28  Bruno Haible  <bruno@clisp.org>
112739         * lib/inttypes_.h (SCNX*): Remove definitions.
112740         Reported by Eric Blake.
112742 2006-08-28  Bruno Haible  <bruno@clisp.org>
112744         * lib/c-strstr.h: New file, from GNU gettext.
112745         * lib/c-strstr.c: New file, from GNU gettext.
112747 2006-08-28  Bruno Haible  <bruno@clisp.org>
112749         * gnulib-tool: Reorder some statements.
112751 2006-08-28  Bruno Haible  <bruno@clisp.org>
112753         * gnulib-tool: New option --makefile-name.
112754         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
112755         $makefile_name.
112756         (func_import): Write $makefile_name to the cache file, and read it from
112757         there unless explicitly specified. Use $makefile_name as file name
112758         instead of Makefile.am. Adjust the recommendations accordingly.
112760 2006-08-28  Bruno Haible  <bruno@clisp.org>
112762         * gnulib-tool (func_verify_module): Check against misapplying patch.
112764 2006-08-28  Bruno Haible  <bruno@clisp.org>
112766         * gnulib-tool (func_relativize, func_relconcat): New functions.
112767         Give an error if --local-dir is given with --update.
112768         Remove trailing slashes from $local_gnulib_dir.
112769         (func_import): Store the relativized $local_gnulib_dir in
112770         gnulib-cache.m4, and read it from there if not specified explicitly.
112772 2006-08-28  Bruno Haible  <bruno@clisp.org>
112774         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
112775         is the current directory. Respect also $local_gnulib_dir.
112777 2006-08-28  Bruno Haible  <bruno@clisp.org>
112778             Simon Josefsson  <jas@extundo.com>
112780         BeOS portability.
112781         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
112783 2006-08-27  Jim Meyering  <jim@meyering.net>
112785         * doc/visibility.texi: Remove duplicate word: "pointer".
112787 2006-08-26  Bruno Haible  <bruno@clisp.org>
112789         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
112790         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
112791         (Makefile.am): Create inttypes.h from inttypes_.h.
112792         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
112794         * modules/imaxabs: New file.
112796         * modules/imaxdiv: New file.
112798 2006-08-26  Bruno Haible  <bruno@clisp.org>
112800         * m4/inttypes.m4: New file.
112801         * m4/_inttypes_h.m4: Remove file.
112802         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
112803         PRI_MACROS_BROKEN.
112804         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
112806         * m4/imaxabs.m4: New file.
112808         * m4/imaxdiv.m4: New file.
112810 2006-08-26  Bruno Haible  <bruno@clisp.org>
112812         * lib/inttypes_.h: New file.
112813         * lib/inttypes.h: Remove file.
112814         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
112816         * lib/imaxabs.c: New file.
112818         * lib/imaxdiv.c: New file.
112820 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112822         New config-h module, so that "make" output needn't be cluttered
112823         by -DHAVE_CONFIG_H.
112824         * MODULES.html.sh (Support for building libraries and executables):
112825         Add config-h.
112826         * modules/config-h: New file.
112827         * gnulib-tool (nl, sed_transform_lib_file): New vars.
112828         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
112829         the config-h module is used.
112831         New configmake module, so that "make" output needn't be cluttered
112832         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
112833         * MODULES.html.sh (Support for building libraries and executables):
112834         Add configmake.
112835         * modules/configmake: New file.
112837 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112839         * m4/config-h.m4: New file.
112841 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112843         * config/srclist.txt: Add elisp-comp.
112845 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112847         * MODULES.html.sh (Support for building libraries and executables):
112848         Add elisp-comp.
112849         * build-aux/elisp-comp: New file.
112850         * modules/elisp-comp: New file.
112852 2006-08-24  Bruno Haible  <bruno@clisp.org>
112854         * gnulib-tool (func_create_testdir): Use non-default values of
112855         sourcebase and m4base.
112857 2006-08-24  Bruno Haible  <bruno@clisp.org>
112859         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
112860         HTML structure.
112862 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112864         * modules/openat (Depends-on): Add lchown.
112866 2006-08-23  Bruno Haible  <bruno@clisp.org>
112868         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
112869         of gl_LOCK_EARLY instead of gl_LOCK.
112871 2006-08-23  Bruno Haible  <bruno@clisp.org>
112873         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
112874         on OSF/1 to no.
112875         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
112877 2006-08-23  Bruno Haible  <bruno@clisp.org>
112879         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
112880         as unusable.
112882         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
112883         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
112884         (gl_LOCK): New macro.
112886 2006-08-22  Simon Josefsson  <jas@extundo.com>
112888         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
112889         to md5 module.
112891 2006-08-22  Simon Josefsson  <jas@extundo.com>
112893         * MODULES.html.sh: Add "Support for maintaining and release
112894         projects".
112896         * build-aux/gnupload: New file, from coreutils.
112898 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112900         Avoid the need for AC_LIBSOURCES in m4 macros.
112901         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
112902         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
112903         * modules/check-version (EXTRA_DIST): Add check-version.h.
112904         * modules/crc (EXTRA_DIST): Add crc.h.
112905         * modules/des (EXTRA_DIST): Add des.h.
112906         * modules/gc (EXTRA_DIST): Add gc.h.
112907         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
112908         * modules/getline (EXTRA_DIST): Add getline.h.
112909         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
112910         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
112911         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
112912         * modules/md2 (EXTRA_DIST): Add md2.h.
112913         * modules/md4 (EXTRA_DIST): Add md4.h.
112914         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
112915         * modules/read-file (EXTRA_DIST): Add read-file.h.
112916         * modules/readline (EXTRA_DIST): Add readline.h.
112917         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
112918         rijndael-api-fst.h.
112920 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112922         * m4/rijndael.m4 (gl_ARCFOUR):
112923         * m4/arctwo.m4 (gl_ARCTWO):
112924         * m4/check-version.m4 (gl_CHECK_VERSION):
112925         * m4/crc.m4 (gl_CRC):
112926         * m4/des.m4 (gl_DES):
112927         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
112928         * m4/gc.m4 (gl_GC):
112929         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
112930         * m4/getline.m4 (gl_FUNC_GETLINE):
112931         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
112932         * m4/hmac-md5.m4 (gl_HMAC_MD5):
112933         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
112934         * m4/md2.m4 (gl_MD2):
112935         * m4/md4.m4 (gl_MD4):
112936         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
112937         * m4/read-file.m4 (gl_FUNC_READ_FILE):
112938         * m4/readline.m4 (gl_FUNC_READLINE):
112939         * m4/rijndael.m4 (gl_RIJNDAEL):
112940         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
112941         to get the necessary .h files and whatnot.
112943 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112945         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
112946         gnulib rather than the other way around.
112947         * config/srclistvars.sh (COREUTILS): Remove.
112949 2006-08-22  Jim Meyering  <jim@meyering.net>
112951         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
112953         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
112955 2006-08-22  Eric Blake  <ebb9@byu.net>
112957         * modules/regexprops-generic: New file.
112958         * MODULES.html.sh (Support for building documentation): List it.
112960 2006-08-22  Eric Blake  <ebb9@byu.net>
112962         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
112963         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
112964         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
112965         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
112967 2006-08-22  Bruno Haible  <bruno@clisp.org>
112969         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
112970         and lib_LTLIBRARIES like the other lib_* variables.
112972 2006-08-22  Bruno Haible  <bruno@clisp.org>
112974         * build-aux/x-to-1.in: New file, from GNU gettext.
112976 2006-08-22  Bruno Haible  <bruno@clisp.org>
112978         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
112979         <utmpx.h> exists.
112981 2006-08-22  Bruno Haible  <bruno@clisp.org>
112983         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
112984         <utmpx.h> exists.
112986 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112988         BeOS portability.
112989         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
112990         exist.
112991         Problem reported by Bruno Haible.
112993 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
112995         Avoid the need for AC_LIBSOURCES in m4 macros.
112996         * modules/acl (EXTRA_DIST): Add acl.h.
112997         * modules/argmatch (Files): Add m4/argmatch.m4.
112998         (configure.ac): Add gl_ARGMATCH.
112999         (EXTRA_DIST): Renamed from lib_SOURCES, for
113000         consistency with the other modules.  Remove argmatch.c.
113001         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
113002         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
113003         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
113004         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
113005         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
113006         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
113007         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
113008         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
113009         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
113010         * modules/closeout (EXTRA_DIST): Add closeout.h.
113011         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
113012         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
113013         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
113014         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
113015         dirname.h; remove basename.c and stripslash.c.
113016         * modules/exclude (EXTRA_DIST): Add exclude.h.
113017         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
113018         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
113019         * modules/file-type (EXTRA_DIST): Add file-type.h.
113020         * modules/filemode (EXTRA_DIST): Add filemode.h.
113021         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
113022         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113023         * modules/fpending (EXTRA_DIST): Add __fpending.h.
113024         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
113025         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
113026         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
113027         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
113028         * modules/getdate (EXTRA_DIST): Add getdate.c.
113029         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
113030         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
113031         * modules/getpass (EXTRA_DIST): Add getpass.h.
113032         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
113033         * modules/group-member (EXTRA_DIST): Add group-member.h.
113034         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
113035         * modules/hash (EXTRA_DIST): Add hash.h.
113036         * modules/human (EXTRA_DIST): Add human.h.
113037         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
113038         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
113039         * modules/lchown (EXTRA_DIST): Add lchown.h.
113040         * modules/long-options (EXTRA_DIST): Add long-options.h.
113041         * modules/lstat (EXTRA_DIST): Add lstat.h.
113042         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
113043         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
113044         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
113045         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
113046         * modules/memxor (EXTRA_DIST): Add memxor.h.
113047         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
113048         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
113049         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
113050         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
113051         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
113052         * modules/physmem (EXTRA_DIST): Add physmem.h.
113053         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
113054         * modules/posixver (EXTRA_DIST): Add posixver.h.
113055         * modules/quote (EXTRA_DIST): Add quote.h.
113056         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
113057         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
113058         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
113059         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
113060         regex_internal.h regexec.c.
113061         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
113062         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
113063         * modules/same (EXTRA_DIST): Add same.h.
113064         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
113065         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
113066         * modules/savedir (EXTRA_DIST): Add savedir.h.
113067         * modules/sha1 (EXTRA_DIST): Add sha1.h.
113068         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
113069         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
113070         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
113071         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
113072         * modules/strdup (EXTRA_DIST): Add strdup.h.
113073         * modules/strftime (EXTRA_DIST): Add strftime.h.
113074         * modules/strndup (EXTRA_DIST): Add strndup.h.
113075         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
113076         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
113077         * modules/time_r (EXTRA_DIST): Add time_r.h.
113078         * modules/timespec (EXTRA_DIST): Add timespec.h.
113079         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113080         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
113081         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
113082         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
113083         * modules/userspec (EXTRA_DIST): Add userspec.h.
113084         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
113085         * modules/utimens (EXTRA_DIST): Add utimens.h.
113086         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
113087         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
113088         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
113089         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
113090         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
113091         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
113092         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
113093         * modules/yesno (EXTRA_DIST): Add yesno.h.
113095 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113097         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
113099         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
113100         * m4/dev-ino.m4, same-inode.m4: Remove.
113102         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
113103         * m4/acl.m4 (AC_FUNC_ACL):
113104         * m4/backupfile.m4 (gl_BACKUPFILE):
113105         * m4/c-strtod.m4 (gl_C99_STRTOLD):
113106         * m4/canon-host.m4 (gl_CANON_HOST):
113107         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
113108         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
113109         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
113110         * m4/cloexec.m4 (gl_CLOEXEC):
113111         * m4/close-stream.m4 (gl_CLOSE_STREAM):
113112         * m4/closeout.m4 (gl_CLOSEOUT):
113113         * m4/dirfd.m4 (gl_FUNC_DIRFD):
113114         * m4/dirname.m4 (gl_DIRNAME):
113115         * m4/exclude.m4 (gl_EXCLUDE):
113116         * m4/exitfail.m4 (gl_EXITFAIL):
113117         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
113118         * m4/file-type.m4 (gl_FILE_TYPE):
113119         * m4/filemode.m4 (gl_FILEMODE):
113120         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
113121         * m4/fpending.m4 (gl_FUNC_FPENDING):
113122         * m4/fprintftime.m4 (gl_FPRINTFTIME):
113123         * m4/fts.m4 (gl_FUNC_FTS):
113124         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
113125         * m4/getdate.m4 (gl_GETDATE):
113126         * m4/gethrxtime.m4 (gl_GETHRXTIME):
113127         * m4/getpagesize.m4 (gl_GETPAGESIZE):
113128         * m4/getpass.m4 (gl_FUNC_GETPASS):
113129         * m4/gettime.m4 (gl_GETTIME):
113130         * m4/getugroups.m4 (gl_GETUGROUPS):
113131         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
113132         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
113133         * m4/hard-locale.m4 (gl_HARD_LOCALE):
113134         * m4/hash.m4 (gl_HASH):
113135         * m4/idcache.m4 (gl_IDCACHE):
113136         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
113137         * m4/lchown.m4 (gl_FUNC_LCHOWN):
113138         * m4/long-options.m4 (gl_LONG_OPTIONS):
113139         * m4/lstat.m4 (gl_FUNC_LSTAT):
113140         * m4/md5.m4 (gl_MD5):
113141         * m4/memcasecmp.m4 (gl_MEMCASECMP):
113142         * m4/memcoll.m4 (gl_MEMCOLL):
113143         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
113144         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
113145         * m4/memxor.m4 (gl_MEMXOR):
113146         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
113147         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
113148         * m4/modechange.m4 (gl_MODECHANGE):
113149         * m4/mountlist.m4 (gl_MOUNTLIST):
113150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
113151         * m4/openat.m4 (gl_FUNC_OPENAT):
113152         * m4/pathmax.m4 (gl_PATHMAX):
113153         * m4/physmem.m4 (gl_PHYSMEM):
113154         * m4/posixtm.m4 (gl_POSIXTM):
113155         * m4/posixver.m4 (gl_POSIXVER):
113156         * m4/quote.m4 (gl_QUOTE):
113157         * m4/quotearg.m4 (gl_QUOTEARG):
113158         * m4/readtokens.m4 (gl_READTOKENS):
113159         * m4/readutmp.m4 (gl_READUTMP):
113160         * m4/regex.m4 (gl_REGEX):
113161         * m4/safe-read.m4 (gl_SAFE_READ):
113162         * m4/safe-write.m4 (gl_SAFE_WRITE):
113163         * m4/same.m4 (gl_SAME):
113164         * m4/save-cwd.m4 (gl_SAVE_CWD):
113165         * m4/savedir.m4 (gl_SAVEDIR):
113166         * m4/settime.m4 (gl_SETTIME):
113167         * m4/sha1.m4 (gl_SHA1):
113168         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
113169         * m4/stat-macros.m4 (gl_STAT_MACROS):
113170         * m4/stat-time.m4 (gl_STAT_TIME):
113171         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
113172         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
113173         * m4/strdup.m4 (gl_FUNC_STRDUP):
113174         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
113175         * m4/strndup.m4 (gl_FUNC_STRNDUP):
113176         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
113177         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
113178         * m4/time_r.m4 (gl_TIME_R):
113179         * m4/timespec.m4 (gl_TIMESPEC):
113180         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
113181         * m4/unlinkdir.m4 (gl_UNLINKDIR):
113182         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
113183         * m4/userspec.m4 (gl_USERSPEC):
113184         * m4/utimecmp.m4 (gl_UTIMECMP):
113185         * m4/utimens.m4 (gl_UTIMENS):
113186         * m4/xalloc.m4 (gl_XALLOC):
113187         * m4/xgetcwd.m4 (gl_XGETCWD):
113188         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
113189         * m4/xreadlink.m4 (gl_XREADLINK):
113190         * m4/xstrtod.m4 (gl_XSTRTOD):
113191         * m4/yesno.m4 (gl_YESNO):
113192         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113193         to get the necessary .h files and whatnot.
113195 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
113196             Bruno Haible  <bruno@clisp.org>
113198         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
113199         /bin/sh understanding of '!' conditional negation.
113201 2006-08-21  Jim Meyering  <jim@meyering.net>
113203         * modules/openat (Depends-on): Really alphabetize.
113205         * modules/acl (Depends-on): Add error and quote.
113207         * check-module (find_included_lib_files): Add at-func.c to the
113208         ok-to-include-more-than-once white list.
113210         * modules/openat (Depends-on): Add lstat.  Alphabetize.
113212 2006-08-21  Bruno Haible  <bruno@clisp.org>
113214         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113215         Emit a pkgdata_DATA variable only if some snippets add contents to it.
113216         Reported by Martin Lambers <marlam@marlam.de>.
113218 2006-08-21  Bruno Haible  <bruno@clisp.org>
113220         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
113221         specify an installation location, don't emit a noinst_LIBRARIES or
113222         noinst_LTLIBRARIES assignment.
113224 2006-08-21  Bruno Haible  <bruno@clisp.org>
113226         BeOS portability.
113227         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
113228         BeOS has mbrtowc() but no <wctype.h>.
113230 2006-08-21  Bruno Haible  <bruno@clisp.org>
113232         BeOS portability.
113233         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
113234         exist.
113236 2006-08-21  Bruno Haible  <bruno@clisp.org>
113238         BeOS portability.
113239         * lib/mbchar.h: Include <wctype.h> only if it exists.
113241 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113243         Remove files that are no longer needed by their respective modules.
113244         * m4/obstack.m4: Remove.
113245         * m4/strerror_r.m4: Remove.
113246         * m4/uint32_t.m4: Remove.
113247         * m4/uintptr_t.m4: Remove.
113248         * m4/ullong_max.m4: Remove.
113249         * m4/xstrtoimax.m4: Remove.
113250         * m4/xstrtoumax.m4: Remove.
113252         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
113253         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
113254         dependencies now capture this.
113256         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
113257         Do not use AC_LIBSOURCES, since gnulib modules now do this.
113258         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
113259         * m4/human.m4 (gl_HUMAN): Likewise.
113260         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
113261         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
113263         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
113265         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
113266         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
113267         stdint.
113268         * m4/human.m4 (gl_HUMAN): Likewise.
113269         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
113270         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
113271         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113272         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113273         * m4/xstrtol (gl_XSTRTOL): Likewise.
113275         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
113276         AC_TYPE_LONG_LONG_INT.
113277         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113278         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
113279         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
113280         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113282         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
113283         on stdbool.
113285         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
113286         (gl_PREREQ_XSTRTOUL): Remove.
113288         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
113290         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
113291         mode.
113293 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113295         Add and change modules to make it easier for coreutils to use
113296         gnulib-tool.
113297         * modules/backupfile (Files): Remove m4/d-ino.m4.
113298         (Depends-on): Add d-ino.
113299         * modules/cycle-check (Depends-on): Add stdint.
113300         (lib_SOURCES): Add cycle-check.h.
113301         * modules/d-ino: New module.
113302         * modules/d-type: New module.
113303         * modules/error (Files): Remove m4/strerror_r.m4.
113304         * modules/filemode (Files): Add m4/st_dm_mode.m4.
113305         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113306         m4/inttypes_h.m4, m4/uintmax_t.m4.
113307         (Depends-on): Add stdint.
113308         (lib_SOURCES): Add fsusage.h.
113309         * modules/getcwd (Files): Remove d-ino.m4.
113310         (Depends-on): Add d-ino.
113311         * modules/getndelim2 (Depends-on): Add stdint.
113312         * modules/glob (Files): Remove m4/d-type.m4.
113313         (Depends-on): Add d-type.
113314         * modules/host-os: New module.
113315         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
113316         m4/inttypes_h.m4, m4/uintmax_t.m4.
113317         * Depends-on: Add stdint.
113318         (lib_SOURCES): Add human.h.
113319         * modules/inttostr (Files): Remove m4/intmax_t.m4,
113320         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
113321         m4/uintmax_t.m4, m4/ulonglong.m4.
113322         (Depends-on): Add stdint.
113323         (EXTRA_DIST): Add inttostr.h.
113324         * modules/lchmod: New module.
113325         * modules/link-follow: New module.
113326         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
113327         (Depends-on): Add lchmod.
113328         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
113329         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
113330         (Depends-on): Add stdint.
113331         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
113332         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
113333         (Depends-on): Add stdint.
113334         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
113335         * modules/perl: New module.
113336         * modules/regex (Depends-on): Add stdint.
113337         * modules/rmdir-errno: New module.
113338         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113339         m4/intmax_t.m4.
113340         (Depends-on): Add stdint.
113341         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113342         m4/uintmax_t.m4.
113343         (Depends-on): Add stdint.
113344         * modules/unlink-busy: New module.
113345         * modules/utimecmp (Depends-on): Add stdint.
113346         * modules/uptime: New module.
113347         * modules/winsz-ioctl: New module.
113348         * modules/winsz-termios: New module.
113349         * modules/xnanosleep (Depends-on): Add nanosleep.
113350         * modules/ullong_max: Remove.
113351         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
113352         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
113353         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
113354         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
113355         (Depends-on): Add inttypes.
113356         (lib_SOURCES): Add xstrtol.h.
113357         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
113358         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
113359         * MODULES.html.sh: Move 'assert' into the assert section.
113360         Move 'dummy' into the linking section.
113361         Remove ullong_max.
113362         Add section for compatibility checks for POSIX:2001 functions,
113363         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
113364         winsz-ioctl, and winsz-termios into it.
113365         Add lchmod.
113366         Add top-level Misc section and put host-os, perl, and uptime
113367         into it.
113369 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113371         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
113372         now assume the stdint module.  Do not include inttypes.h.
113373         * lib/fsusage.h: Likewise.
113374         * lib/getndelim2.c: Likewise.
113375         * lib/human.h: Likewise.
113376         * lib/inttostr.h: Likewise.
113377         * lib/obstack.c: Likewise.
113378         * lib/regex_internal.h: Likewise.
113379         * lib/tempname.c: Likewise.
113380         * lib/utimecmp.c: Likewise.
113381         * lib/xstrtol.h: Likewise.
113383         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
113385         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
113386         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
113387         * lib/xtime.h: Likewise.
113389 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113391         * modules/openat (Files): Add lib/fchmodat.c.
113392         Fixes problem reported by Jay Youngman.
113394 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113396         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
113397         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
113399 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
113400             Bruno Haible  <bruno@clisp.org>
113402         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
113403         and is a script that invokes bison. Tighten the code. Add comments.
113405 2006-08-18  Jim Meyering  <jim@meyering.net>
113407         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
113408         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
113409         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
113410         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
113412 2006-08-18  Bruno Haible  <bruno@clisp.org>
113414         * modules/bison-i18n: New file.
113415         * MODULES.html.sh (Internationalization functions): Add it.
113417 2006-08-18  Bruno Haible  <bruno@clisp.org>
113419         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
113420         sys/statvfs.h. When getmntinfo was found, check its declaration and
113421         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
113423 2006-08-18  Bruno Haible  <bruno@clisp.org>
113425         * m4/bison-i18n.m4: New file, from bison.
113427 2006-08-18  Bruno Haible  <bruno@clisp.org>
113429         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
113430         (ME_DUMMY): Treat "kernfs" as a dummy.
113431         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
113433 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113435         Update from coreutils.
113437         2006-08-15  Jim Meyering  <jim@meyering.net>
113439         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
113441         2006-01-17  Jim Meyering  <jim@meyering.net>
113443         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
113445         2006-01-11  Jim Meyering  <jim@meyering.net>
113447         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
113448         Check for the lchmod function.
113450 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113452         Update from coreutils.
113454         * lib/__fpending.h: Add copyright notice.
113455         * lib/fprintftime.h: Likewise.
113456         * lib/savedir.c: Use (C) in copyright notice.
113457         * lib/savedir.h: Likewise.
113459         2006-08-15  Jim Meyering  <jim@meyering.net>
113461         * lib/at-func.c: New file, with the logic of all emulated at-functions.
113462         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
113463         in support of the EXPECTED_ERRNO macro.
113464         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
113465         definitions.  Instead, define the appropriate symbols and include
113466         "at-func.c".
113467         * lib/mkdirat.c (mkdirat): Likewise.
113468         * lib/fchmodat.c (fchmodat): Likewise.
113469         (ENOSYS): Remove definition.
113470         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
113471         it.  Don't include "unistd--.h" -- it wasn't ever used.
113473         2006-01-17  Jim Meyering  <jim@meyering.net>
113475         Rewrite fts.c not to change the current working directory,
113476         by using openat, fstatat, fdopendir, etc..
113478         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
113479         (HAVE_OPENAT_SUPPORT): Define.
113480         [_LIBC] (fchdir): Don't undef or define; no longer used.
113481         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
113482         Now, this `function' always succeeds, and consumes its file descriptor
113483         parameter -- so callers must not close such FDs.  Update callers.
113484         (diropen_fd, opendirat, cwd_advance_fd): New functions.
113485         (diropen): Add parameter, SP.  Adjust all callers.
113486         Implement using diropen_fd, rather than open.
113487         (fts_open): Initialize new member, fts_cwd_fd.
113488         Remove fts_rft-setting code.
113489         (fts_close): Close fts_cwd_fd, if necessary.
113490         (__opendir2): Define in terms of opendir or opendirat,
113491         depending on whether the FST_NOCHDIR flag is set.
113492         (fts_build): Since fts_safe_changedir consumes its FD, and since
113493         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
113494         and close the dup'd file descriptor upon failure.
113495         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
113496         (fts_safe_changedir): Tweak semantics to reflect that this function
113497         now calls cwd_advance_fd and hence consumes its FD argument.
113498         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
113499         [struct FTS] (fts_rft): Remove now-unused member.
113500         [struct FTS] (fts_cycle.state): Improve comment.
113502         * lib/openat.c (openat_needs_fchdir): New function.
113503         * lib/openat.h (openat_needs_fchdir): Declare it.
113505 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
113507         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
113508         Problem and fix reported by Pádraig Brady in
113509         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
113511 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113513         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
113515 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113517         * lib/memcoll.c (memcoll): Optimize for the common case where the
113518         arguments are bytewise equal.
113520 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113522         * doc/regexprops-generic.texi: Add a copyright notice.
113524 2006-08-15  Bruno Haible  <bruno@clisp.org>
113526         * modules/tmpdir (License): Change to LGPL.
113528 2006-08-15  Bruno Haible  <bruno@clisp.org>
113530         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
113531         module.
113533 2006-08-14  Simon Josefsson  <jas@extundo.com>
113535         * config/srclist.txt: Add gnupload.
113537 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113539         Change copyright notice from LGPL 2 to GPL 2, since that's the
113540         standard form used in the gnulib repository.
113541         * tests/test-lock.c: Likewise.
113542         * tests/test-stdint.c: Likewise.
113543         * tests/test-tls.c: Likewise.
113545         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
113546         prelude-manager.  User shorter URLs for GNU projects, without '?'.
113547         Add copyright notice.
113549         * check-module: Add copyright notice.  Output a copyright
113550         notice if "--version" is specified.
113551         * modules/COPYING: New file.
113552         * tests/test-getaddrinfo.c: Add copyright notice.
113553         * tests/test-verify.c: Likewise.
113555 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113557         Change copyright notice from LGPL 2 to GPL 2, since that's the
113558         standard form used in the gnulib repository.
113559         * lib/lock.c: LGPL -> GPL.
113560         * lib/lock.h: Likewise.
113561         * lib/strnlen1.c: Likewise.
113562         * lib/strnlen1.h: Likewise.
113563         * lib/tls.c: Likewise.
113564         * lib/tls.h: Likewise.
113565         * lib/tmpdir.c: Likewise.
113567         * lib/TODO: Remove; this belongs only in coreutils.
113569 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113571         Add copyright notices to long-enough files that lack them, since
113572         otherwise the files aren't clearly free.  Use the same notice that
113573         getdate.texi already uses.
113574         * doc/alloca-opt.texi: Add copyright notice.
113575         * doc/alloca.texi: Likewise.
113576         * doc/ctime.texi: Likewise.
113577         * doc/functions.texi: Likewise.
113578         * doc/gcd.texi: Likewise.
113579         * doc/gnulib-tool.texi: Likewise.
113580         * doc/inet_ntoa.texi: Likewise.
113581         * doc/visibility.texi: Likewise.
113583         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
113584         * doc/quote.texi: Add copyright notice.
113586         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
113587         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
113588         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
113589         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
113590         is now obsolete, and give a pointer to the Sun list.
113591         Add copyright notice.
113593 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113595         * config/srclistvars.sh: Add copyright notice.
113597 2006-08-14  Eric Blake  <ebb9@byu.net>
113599         Import the following change from libc:
113601         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
113603         Upstream bug 2997.
113604         * lib/misc/error.c: Add space between program name and message if file
113605         name is missing.
113607 2006-08-12  Karl Berry  <karl@gnu.org>
113609         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
113610         remove, these originate in gnulib now.
113612 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113614         * doc/Makefile (standards.info standards.html standards.dvi):
113615         Also depend on make-stds.texi.
113617 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113619         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
113620         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
113622         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
113623         in wchar_t.  Problem reported by Eric Blake.
113625         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
113626         LEN is smaller than SIZE.  Suggested by Bruno Haible.
113627         Also, help the compiler to keep LEN in a register.
113629 2006-08-11  Eric Blake  <ebb9@byu.net>
113631         * users.txt: Sort.  Add tar.
113633 2006-08-11  Bruno Haible  <bruno@clisp.org>
113635         * users.txt: New file.
113637 2006-08-11  Bruno Haible  <bruno@clisp.org>
113639         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
113640         before <wchar.h>. Needed for OSF/1 and BSD/OS.
113642 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113644         * modules/snprintf (Depends-on): Remove minmax.
113645         (Maintainer): Add self and Bruno.
113647 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113649         * lib/.cppi-disable: Add snprintf.h, socket_.h.
113650         * lib/snprintf.c: Include <errno.h> and <limits.h>.
113651         (EOVERFLOW): Define if the system does not.
113652         Do not include "minmax.h"; it wasn't used.
113653         (snprintf): Don't assume size_t promotes to an unsigned type.
113654         Fix bug when generated string was too long for the buffer: the
113655         buffer's contents are supposed to be the initial prefix of the
113656         output.  Don't assume vasnprintf returns EOVERFLOW if the size
113657         exceeds INT_MAX; do the check ourselves.
113659         Import the following changes from libc:
113661         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
113663         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
113664         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
113665         set wc to the byte which couldn't be converted.
113666         (re_string_reconstruct): Don't clear valid_raw_len before calling
113667         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
113668         tip_context using re_string_context_at.
113670         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
113672         * lib/posix/regex.h: g++ still cannot handled [restrict].
113674         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
113676         * lib/posix/regex.h: Remove special handling for VMS.
113678 2006-08-10  Jim Meyering  <jim@meyering.net>
113680         * modules/same-inode: New module.
113681         * modules/dev-ino: New module.
113682         * modules/cycle-check: Depend on these modules, rather than simply
113683         including their .h files.
113684         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
113685         required via m4/cycle-check.m4.
113686         * modules/same: Depend on new same-inode module, rather than
113687         including same-inode.h.
113688         * modules/chdir-safer: New file.
113690         * modules/chown (Depends-on): Add stat-macros.
113692 2006-08-10  Jim Meyering  <jim@meyering.net>
113694         * m4/cycle-check.m4: New file.
113695         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
113696         * m4/dev-ino.m4, m4/same-inode.m4: New files.
113698 2006-08-10  Eric Blake  <ebb9@byu.net>
113700         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
113701         in from original proposal.
113703 2006-08-10  Eric Blake  <ebb9@byu.net>
113704         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113706         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
113707         namespace.
113709 2006-08-10  Bruno Haible  <bruno@clisp.org>
113711         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
113712         as well.
113714 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113716         Sync from coreutils.
113718         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
113720         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
113721         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
113723 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113725         * modules/restrict: Remove; no longer needed now that we assume
113726         Autoconf 2.59 or later.
113727         * MODULES.html.sh: Remove 'restrict'.
113728         * modules/argp (Depends-on): Remove 'restrict'.
113729         * modules/base64 (Depends-on): Likewise.
113730         * modules/gc (Depends-on): Likewise.
113731         * modules/getaddrinfo (Depends-on): Likewise.
113732         * modules/glob (Depends-on): Likewise.
113733         * modules/inet_ntop (Depends-on): Likewise.
113734         * modules/inet_pton (Depends-on): Likewise.
113735         * modules/memxor (Depends-on): Likewise.
113736         * modules/regex (Depends-on): Likewise.
113737         * modules/strtok_r (Depends-on): Likewise.
113738         * modules/time_r (Depends-on): Likewise.
113740 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113742         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
113743         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
113744         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
113745         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
113746         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
113747         * m4/memxor.m4 (gl_MEMXOR): Likewise.
113748         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
113749         gl_C_RESTRICT replaced by AC_C_RESTRICT.
113751         Merge from coreutils.
113752         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
113753         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
113754         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
113755         * m4/time_r.m4 (gl_TIME_R): Likewise.
113757 2006-08-09  Karl Berry  <karl@gnu.org>
113759         * config/srclist.txt: no more gettext-tools, per Bruno.
113761 2006-08-08  Eric Blake  <ebb9@byu.net>
113763         * modules/verror: New module.
113764         * MODULES.html.sh: Document it.
113766 2006-08-08  Eric Blake  <ebb9@byu.net>
113768         * lib/verror.h, lib/verror.c: New files.
113770 2006-08-08  Eric Blake  <ebb9@byu.net>
113772         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
113773         verror_at_line output complies with GNU Coding Standards even when
113774         file is NULL.
113776 2006-08-07  Bruno Haible  <bruno@clisp.org>
113778         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
113779         versions of AIX.
113780         Reported by Ralf Wildenhues.
113782 2006-08-07  Bruno Haible  <bruno@clisp.org>
113784         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
113785         in an AC_DEFUN. Needed so that the autoconf snippets can use
113786         AC_REQUIRE.
113788 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113790         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113791         Initialize pkgdata_DATA.
113792         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
113793         overriding it.
113795 2006-08-06  Eric Blake  <ebb9@byu.net>
113797         * lib/error.h: Fold in some upstream changes from glibc.
113798         * lib/error.c: Likewise.
113800 2006-08-04  Bruno Haible  <bruno@clisp.org>
113802         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113803         Make the mostlyclean-local rule depend on mostlyclean-generic.
113804         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
113806 2006-07-31  Bruno Haible  <bruno@clisp.org>
113808         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
113809         <stdlib.h>, <string.h>.
113811 2006-07-30  Bruno Haible  <bruno@clisp.org>
113813         * modules/readlink (License): Change to LGPL.
113815 2006-07-30  Bruno Haible  <bruno@clisp.org>
113817         * modules/javaversion (Makefile.am): Distribute javaversion.java and
113818         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
113819         set PKGDATADIR to point to it.
113821 2006-07-30  Bruno Haible  <bruno@clisp.org>
113823         * modules/csharpexec (configure.ac): Comment out macro invocation.
113824         * modules/javaexec (configure.ac): Likewise.
113825         * modules/javacomp-script (configure.ac): Likewise.
113827         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
113829 2006-07-30  Bruno Haible  <bruno@clisp.org>
113831         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
113832         linked-list.
113834 2006-07-30  Bruno Haible  <bruno@clisp.org>
113836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
113838 2006-07-30  Bruno Haible  <bruno@clisp.org>
113840         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113841         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
113842         get removed.
113844 2006-07-29  Bruno Haible  <bruno@clisp.org>
113846         Make it possible for gnulib-tool to work with locally modified or
113847         augmented gnulib repositories.
113848         * gnulib-tool (func_usage): Document --local-dir option.
113849         (local_gnulib_dir): New variable.
113850         Handle --local-dir option.
113851         (func_lookup_file): New function.
113852         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
113853         (func_get_description, func_get_filelist, func_get_description,
113854         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
113855         func_get_automake_snippet, func_get_include_directive,
113856         func_get_license, func_get_maintainer): Use func_lookup_file.
113857         (func_import, func_create_testdir): Use func_lookup_file.
113859 2006-07-29  Bruno Haible  <bruno@clisp.org>
113861         * modules/setenv (Depends-on): Add unistd.
113863 2006-07-29  Bruno Haible  <bruno@clisp.org>
113865         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
113867 2006-07-29  Bruno Haible  <bruno@clisp.org>
113869         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
113871 2006-07-29  Bruno Haible  <bruno@clisp.org>
113873         * gnulib-tool (import, update): If there is no Makefile.am, look at
113874         aclocal.m4, instead of bailing out.
113876 2006-07-29  Bruno Haible  <bruno@clisp.org>
113878         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
113879         Categorize the options by when they are useful.
113881 2006-07-29  Bruno Haible  <bruno@clisp.org>
113883         * gnulib-tool (func_usage): Document option --no-libtool.
113884         Handle option --no-libtool.
113885         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
113886         for changed semantics of $libtool variable.
113887         (func_import): Likewise. If libtool is not used, show this through
113888         an option --no-libtool.
113889         (func_create_testdir): Update.
113891 2006-07-29  Bruno Haible  <bruno@clisp.org>
113893         * gnulib-tool (func_import): Extend error message about missing
113894         --doc-base.
113896 2006-07-29  Bruno Haible  <bruno@clisp.org>
113898         * gnulib-tool (func_import): Don't create the $docbase directory if
113899         there is no file to store there.
113901 2006-07-29  Bruno Haible  <bruno@clisp.org>
113903         * gnulib-tool (autoconf_minversion): If a --dir option is given and
113904         relevant, look for configure.ac there, not in the current directory.
113905         Also use a simple search for AC_PREREQ, not "autoconf --trace".
113907 2006-07-29  Bruno Haible  <bruno@clisp.org>
113909         * gnulib-tool (SORT): New variable.
113910         (func_usage): Undocument --assume-autoconf option.
113911         Remove --assume-autoconf option handling.
113912         (autoconf_minversion): Determine from the contents of configure.ac.
113913         (func_import): Remove autoconf_minversion handling.
113914         Suggested by Eric Blake.
113916 2006-07-29  Bruno Haible  <bruno@clisp.org>
113918         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
113920 2006-07-29  Bruno Haible  <bruno@clisp.org>
113922         * config/srclist.txt (*setenv.[ch]): Remove rules.
113924 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113926         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
113928 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113930         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
113931         arpa/inet.h.
113933 2006-07-28  Simon Josefsson  <jas@extundo.com>
113935         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
113936         * modules/inet_pton (Depends-on): Likewise.
113938 2006-07-28  Simon Josefsson  <jas@extundo.com>
113940         * m4/netinet_in_h.m4: New file.
113942 2006-07-28  Simon Josefsson  <jas@extundo.com>
113944         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
113945         #include's.
113947 2006-07-28  Simon Josefsson  <jas@extundo.com>
113949         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
113950         #include's.
113952 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
113954         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
113955         setgid on directories only if they set these bits.
113956         * lib/modechange.h: Remove obsolete comment about masks.
113958 2006-07-28  Eric Blake  <ebb9@byu.net>
113960         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
113961         macro expansion.
113963 2006-07-28  Bruno Haible  <bruno@clisp.org>
113965         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
113967 2006-07-28  Bruno Haible  <bruno@clisp.org>
113969         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
113971 2006-07-28  Bruno Haible  <bruno@clisp.org>
113973         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
113974         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
113975         Define fallbacks.
113976         Avoids link error on FreeBSD 4.x.
113977         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
113979         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
113980         encoding.
113981         * lib/mbswidth.c (iswcntrl): Likewise.
113983 2006-07-27  Bruno Haible  <bruno@clisp.org>
113985         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
113986         test.
113988 2006-07-27  Bruno Haible  <bruno@clisp.org>
113990         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
113991         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
113992         defined.
113994 2006-07-26  Eric Blake  <ebb9@byu.net>
113996         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
113998 2006-07-26  Eric Blake  <ebb9@byu.net>
114000         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
114001         like mingw that lack mkstemp.
114002         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
114003         avoid compilation warning on mingw.
114005 2006-07-26  Bruno Haible  <bruno@clisp.org>
114007         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
114008         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
114009         INT_FAST*_MIN, INTPTR_MIN.
114011 2006-07-25  Bruno Haible  <bruno@clisp.org>
114013         * modules/version-etc (Depends-on): Add stdarg.
114015 2006-07-25  Bruno Haible  <bruno@clisp.org>
114017         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
114018         complex commands.
114020 2006-07-25  Bruno Haible  <bruno@clisp.org>
114022         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
114023         defined in <stdarg.h> or config.h.
114025 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114027         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
114028         (gl_STDIO_SAFER): Remove.
114030 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114032         * MODULES.html.sh (File stream based Input/Output):
114033         Add fopen-safer, tmpfile-safer; remove stdio-safer.
114034         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
114035         * modules/fopen-safer, modules/tmpfile-safer: New files.
114036         * modules/stdio-safer: Remove.
114038 2006-07-24  Bruno Haible  <bruno@clisp.org>
114040         * modules/tmpdir: New file.
114041         * MODULES.html.sh (File system functions): Add it.
114043 2006-07-24  Bruno Haible  <bruno@clisp.org>
114045         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
114046         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
114048 2006-07-24  Bruno Haible  <bruno@clisp.org>
114050         * modules/clean-temp: New file.
114052 2006-07-24  Bruno Haible  <bruno@clisp.org>
114054         * m4/tmpdir.m4: New file, from GNU gettext.
114056 2006-07-24  Bruno Haible  <bruno@clisp.org>
114058         * lib/tmpdir.h: New file, from GNU gettext.
114059         * lib/tmpdir.c: New file, from GNU gettext.
114061 2006-07-24  Bruno Haible  <bruno@clisp.org>
114063         * lib/clean-temp.h: New file, from GNU gettext.
114064         * lib/clean-temp.c: New file, from GNU gettext.
114066 2006-07-23  Eric Blake  <ebb9@byu.net>
114068         * modules/stdio-safer (Files): Add tmpfile-safer.c.
114069         (Depends-on): Add binary-io.
114071 2006-07-23  Eric Blake  <ebb9@byu.net>
114073         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
114075 2006-07-23  Eric Blake  <ebb9@byu.net>
114077         * lib/tmpfile-safer.c: New file.
114078         * lib/stdio-safer.h (fopen_safer): Add prototype.
114079         * lib/stdio--.h (tmpfile): Make safer.
114081 2006-07-23  Bruno Haible  <bruno@clisp.org>
114083         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
114084         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
114085         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
114086         gl_linked_remove_at): Use it.
114088 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114089         and Simon Josefsson <jas@extundo.com>
114091         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
114093         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
114095 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114097         * modules/close-stream: New file.
114098         * modules/closeout (Description): Make it clear that it exits
114099         with a diagnostic on error.
114100         (Depends-on): Add close-stream.  Remove fpending, stdbool.
114101         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
114103 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114105         * m4/close-stream.m4: New file.
114107 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114109         * lib/close-stream.c, lib/close-stream.h: New files.
114111 2006-07-22  Bruno Haible  <bruno@clisp.org>
114113         Merge from GNU gettext 0.15.
114115         2006-05-01  Bruno Haible  <bruno@clisp.org>
114117                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
114119         2006-07-22  Bruno Haible  <bruno@clisp.org>
114121                 * modules/javaversion: New file.
114122                 * MODULES.html.sh (Java): Add javaversion.
114124         2006-03-12  Bruno Haible  <bruno@clisp.org>
114126                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
114128         2005-12-04  Bruno Haible  <bruno@clisp.org>
114130                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
114131                 (untested).
114133         2006-06-21  Bruno Haible  <bruno@clisp.org>
114135                 Avoid warnings from recent versions of mcs.
114136                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
114137                 -o, -L, -r any more. Use options documented since mcs-1.0
114138                 instead. Similarly for -g.
114140         2005-12-04  Bruno Haible  <bruno@clisp.org>
114142                 * build-aux/csharpcomp.sh.in: Suffix for resources is
114143                 .resources, not .resource.
114145         2005-07-09  Bruno Haible  <bruno@clisp.org>
114147                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
114148                 add a .dll suffix.
114149                 Reported by Mark Junker <mjscod@gmx.de>.
114151         2006-07-22  Bruno Haible  <bruno@clisp.org>
114153                 * modules/gettext: Upgrade to gettext-0.15.
114154                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
114155                 m4/visibility.m4.
114156                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
114158 2006-07-22  Bruno Haible  <bruno@clisp.org>
114160         Merge from GNU gettext 0.15.
114162         2006-03-25  Bruno Haible  <bruno@clisp.org>
114164                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
114166         2006-07-21  Bruno Haible  <bruno@clisp.org>
114168                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
114169                 "1.1".
114171         2006-05-09  Bruno Haible  <bruno@clisp.org>
114173                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
114174                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
114175                 for the conftestver execution.
114177         2006-05-01  Bruno Haible  <bruno@clisp.org>
114179                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
114180                 optional target-version argument. Verify that the compiler
114181                 groks source of the specified source-version, or add -source
114182                 option as necessary. Verify that the compiler produces
114183                 bytecode in the specified target-version, or add -target and
114184                 -source options as necessary. Make the result of the test
114185                 available as variable CONF_JAVAC. Also log error output in
114186                 config.log.
114188         2006-03-11  Bruno Haible  <bruno@clisp.org>
114190                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
114192         2006-05-09  Bruno Haible  <bruno@clisp.org>
114194                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
114195                 CLASSPATH_SEPARATOR to a semicolon.
114197         2006-03-12  Bruno Haible  <bruno@clisp.org>
114199                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
114200                 available as variable CONF_JAVA, for subsequent autoconf
114201                 tests. Also log error output in config.log.
114203         2006-07-19  Bruno Haible  <bruno@clisp.org>
114205                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
114206                 that getline works on glibc2 systems. Needed to avoid trouble
114207                 in relocatable.c.
114208                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
114210         2005-12-04  Bruno Haible  <bruno@clisp.org>
114212                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
114213                 launcher (untested).
114215         2005-12-04  Bruno Haible  <bruno@clisp.org>
114217                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
114219         2006-07-22  Bruno Haible  <bruno@clisp.org>
114221                 * gettext.m4: Update from GNU gettext-0.15.
114222                 * nls.m4: Likewise.
114223                 * po.m4: Likewise.
114224                 * inttypes-pri.m4: Likewise.
114225                 * inttypes-h.m4: Renamed from inttypes.m4.
114226                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
114228 2006-07-22  Bruno Haible  <bruno@clisp.org>
114230         Merge from GNU gettext 0.15.
114232         2005-07-05  Bruno Haible  <bruno@clisp.org>
114234                 * printf-args.c (printf_fetchargs): Work around broken
114235                 definition of wint_t on mingw.
114237         2005-02-12  Bruno Haible  <bruno@clisp.org>
114239                 * xallocsa.h: Add extern "C" for C++.
114241         2006-05-17  Bruno Haible  <bruno@clisp.org>
114243                 Cygwin portability.
114244                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
114246         2006-04-30  Bruno Haible  <bruno@clisp.org>
114248                 * progreloc.c: Include <mach-o/dyld.h> if available.
114249                 (find_executable): Use _NSGetExecutablePath when possible.
114251         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
114253                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
114254                 function.
114256         2005-12-29  Bruno Haible  <bruno@clisp.org>
114258                 * progreloc.c (set_program_name_and_installdir): Fix
114259                 compilation error.
114261         2005-12-04  Bruno Haible  <bruno@clisp.org>
114263                 Cygwin portability.
114264                 * progreloc.c: Include <windows.h> also on Cygwin.
114265                 (find_executable): Add support for Cygwin.
114266                 (set_program_name_and_installdir): Handle also platforms with
114267                 nonempty EXEEXT.
114269         2006-07-11  Bruno Haible  <bruno@clisp.org>
114271                 * javacomp.c: Fix a comment.
114272                 Reported by Jim Meyering.
114274         2006-04-30  Bruno Haible  <bruno@clisp.org>
114276                 * javacomp.h (compile_java_class): Add source_version,
114277                 target_version arguments.
114278                 * javacomp.c: Rewritten to choose only a compiler that
114279                 respects the specified source_version and target_version.
114281         2006-06-27  Bruno Haible  <bruno@clisp.org>
114283                 Assume correct S_ISDIR macro.
114284                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
114286         2006-07-22  Bruno Haible  <bruno@clisp.org>
114288                 * javaversion.h: New file, from GNU gettext.
114289                 * javaversion.c: New file, from GNU gettext.
114290                 * javaversion.java: New file, from GNU gettext.
114291                 * javaversion.class: New file, from GNU gettext.
114293         2006-05-17  Bruno Haible  <bruno@clisp.org>
114295                 Cygwin portability.
114296                 * javaexec.c (execute_java_class): Test for jview program
114297                 also on Cygwin.
114299         2006-04-09  Bruno Haible  <bruno@clisp.org>
114301                 * fatal-signal.c: Don't include string.h.
114302                 (at_fatal_signal): Use a copying loop instead of memcpy.
114304         2005-12-04  Bruno Haible  <bruno@clisp.org>
114306                 * csharpexec.c: Add support for 'clix' launcher (untested).
114307                 (execute_csharp_using_sscli): New function.
114308                 (execute_csharp_program): Call it.
114310         2006-06-21  Bruno Haible  <bruno@clisp.org>
114312                 Avoid warnings from recent versions of mcs.
114313                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
114314                 -o, -L, -r any more. Use options documented since mcs-1.0
114315                 instead. Similarly for -g.
114317         2005-07-09  Bruno Haible  <bruno@clisp.org>
114319                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
114320                 add a .dll suffix.
114321                 Reported by Mark Junker <mjscod@gmx.de>.
114323         2006-06-17  Bruno Haible  <bruno@clisp.org>
114325                 * config.charset: Update for NetBSD 3.0.
114327         2006-05-17  Bruno Haible  <bruno@clisp.org>
114329                 Cygwin portability.
114330                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
114332         2006-05-16  Bruno Haible  <bruno@clisp.org>
114334                 * localcharset.c [CYGWIN]: Include <windows.h>.
114335                 (get_charset_aliases): For Cygwin, return the same CPxxx
114336                 aliases list as under WIN32.
114337                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
114338                 the environment variables. Fall back to GetACP().
114340         2006-04-05  Bruno Haible  <bruno@clisp.org>
114342                 * config.charset: Update Juan Manuel Guerrero's address.
114344         2005-02-12  Bruno Haible  <bruno@clisp.org>
114346                 * allocsa.h: Add extern "C" for C++.
114348         2005-02-10  Bruno Haible  <bruno@clisp.org>
114350                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
114351                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
114353         2006-07-22  Bruno Haible  <bruno@clisp.org>
114355                 * gettext.h: Update to GNU gettext-0.15.
114357 2006-07-22  Bruno Haible  <bruno@clisp.org>
114359         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
114360         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
114361         lib-prefix.m4, longdouble.m4, ssize_t.m4.
114363 2006-07-21  Eric Blake  <ebb9@byu.net>
114365         * modules/stdlib-safer: New file.
114366         * MODULES.html.sh (File stream based Input/Output): Add
114367         stdlib-safer.
114369 2006-07-21  Eric Blake  <ebb9@byu.net>
114371         * lib/stdlib-safer.h: New file from coreutils, required by
114372         stdlib--.h.
114374 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
114376         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
114378 2006-07-20  Bruno Haible  <bruno@clisp.org>
114380         * gnulib-tool: Recognize new option --assume-autoconf.
114381         (autoconf_minversion): New variable.
114382         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
114384 2006-07-20  Bruno Haible  <bruno@clisp.org>
114386         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
114388 2006-07-19  Derek R. Price  <derek@ximbiot.com>
114390         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
114391         Reindent and repaginate.
114393 2006-07-19  Derek Price  <derek@ximbiot.com>
114395         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
114396         Correct grammar.
114398 2006-07-17  Bruno Haible  <bruno@clisp.org>
114400         * modules/list: New file.
114401         * modules/array-list: New file.
114402         * modules/carray-list, modules/carray-list-tests: New files.
114403         * modules/linked-list, modules/linked-list-tests: New files.
114404         * modules/avltree-list, modules/avltree-list-tests: New files.
114405         * modules/rbtree-list, modules/rbtree-list-tests: New files.
114406         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
114407         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
114408         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
114409         * modules/oset: New file.
114410         * modules/array-oset: New file.
114411         * modules/avltree-oset, modules/avltree-oset-tests: New files.
114412         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
114413         * tests/test-carray_list.c: New file.
114414         * tests/test-linked_list.c: New file.
114415         * tests/test-avltree_list.c: New file.
114416         * tests/test-rbtree_list.c: New file.
114417         * tests/test-linkedhash_list.c: New file.
114418         * tests/test-avltreehash_list.c: New file.
114419         * tests/test-rbtreehash_list.c: New file.
114420         * tests/test-avltree_oset.c: New file.
114421         * tests/test-rbtree_oset.c: New file.
114422         * MODULES.html.sh (Container data structures): New section.
114424 2006-07-17  Bruno Haible  <bruno@clisp.org>
114426         * m4/gl_list.m4: New file.
114428 2006-07-17  Bruno Haible  <bruno@clisp.org>
114430         * lib/gl_list.h: New file.
114431         * lib/gl_list.c: New file.
114432         * lib/gl_array_list.h: New file.
114433         * lib/gl_array_list.c: New file.
114434         * lib/gl_carray_list.h: New file.
114435         * lib/gl_carray_list.c: New file.
114436         * lib/gl_linked_list.h: New file.
114437         * lib/gl_linked_list.c: New file.
114438         * lib/gl_anylinked_list1.h: New file.
114439         * lib/gl_anylinked_list2.h: New file.
114440         * lib/gl_avltree_list.h: New file.
114441         * lib/gl_avltree_list.c: New file.
114442         * lib/gl_anyavltree_list1.h: New file.
114443         * lib/gl_anyavltree_list2.h: New file.
114444         * lib/gl_rbtree_list.h: New file.
114445         * lib/gl_rbtree_list.c: New file.
114446         * lib/gl_anyrbtree_list1.h: New file.
114447         * lib/gl_anyrbtree_list2.h: New file.
114448         * lib/gl_anytree_list1.h: New file.
114449         * lib/gl_anytree_list2.h: New file.
114450         * lib/gl_linkedhash_list.h: New file.
114451         * lib/gl_linkedhash_list.c: New file.
114452         * lib/gl_anyhash_list1.h: New file.
114453         * lib/gl_anyhash_list2.h: New file.
114454         * lib/gl_avltreehash_list.h: New file.
114455         * lib/gl_avltreehash_list.c: New file.
114456         * lib/gl_rbtreehash_list.h: New file.
114457         * lib/gl_rbtreehash_list.c: New file.
114458         * lib/gl_anytreehash_list1.h: New file.
114459         * lib/gl_anytreehash_list2.h: New file.
114461         * lib/gl_oset.h: New file.
114462         * lib/gl_oset.c: New file.
114463         * lib/gl_array_oset.h: New file.
114464         * lib/gl_array_oset.c: New file.
114465         * lib/gl_avltree_oset.h: New file.
114466         * lib/gl_avltree_oset.c: New file.
114467         * lib/gl_rbtree_oset.h: New file.
114468         * lib/gl_rbtree_oset.c: New file.
114469         * lib/gl_anytree_oset.h: New file.
114471 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114473         * m4/mkancesdirs.m4: New file.
114474         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
114475         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
114476         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
114477         it.
114479 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114481         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
114482         * lib/mkancesdirs.h: New files.
114483         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
114484         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
114485         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
114486         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
114487         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
114488         callers changed.  Revamp internals significantly, by not
114489         attempting to create directories that are temporarily more
114490         permissive than the final results.  Do not attempt to use
114491         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
114492         This removes some race conditions, fixes some bugs, and simplifies
114493         things.  Use new dirchownmod function to do owner and mode changes.
114494         * lib/mkdir-p.h: Likewise.
114495         * lib/modechange.c (octal_to_mode): New function.
114496         (struct mode_change): New member mentioned.
114497         (make_node_op_equals): New arg mentioned.  All callers changed.
114498         (mode_compile): Keep track of which mode bits the user has explicitly
114499         mentioned.
114500         (mode_adjust): New arg DIR, so that we implement the X op correctly.
114501         New arg PMODE_BITS, to keep track of which mode bits the user
114502         mentioned; it treats S_ISUID and S_ISGID speciall.
114503         All callers changed.
114504         * lib/modechange.h: Likewise.
114506 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114508         * MODULES.html.sh: Add mkancestors.
114509         * modules/mkancesdirs: New module.
114510         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
114511         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
114512         The chdir-safer and afs files are now orphans; I'll remove them
114513         unless someone speaks up.
114514         Add lib/dirchownmod.c, lib/dirchownmod.h.
114515         (Depends-on): Remove alloca, chown, save-cwd, dirname.
114516         Add lchown, mkancesdirs.
114517         (Maintainer): Add self.
114519 2006-07-15  Karl Berry  <karl@gnu.org>
114521         * gnulib-tool: help message wording/arrangement.
114523 2006-07-14  Simon Josefsson  <jas@extundo.com>
114525         * doc/gnulib.texi (Libtool and Windows): New section.
114527 2006-07-12  Simon Josefsson  <jas@extundo.com>
114529         * modules/gendocs (License): Fix license, approved by Karl.
114531 2006-07-12  Eric Blake  <ebb9@byu.net>
114533         * MODULES.html.sh: Add gendocs.
114535 2006-07-11  Eric Blake  <ebb9@byu.net>
114537         * modules/fdl: New module, to install doc/fdl.texi.
114538         * MODULES.html.sh: Add new section for documentation modules.
114539         * gnulib-tool: Avoid space-tab.
114540         (--doc-base): New option, to manage files from doc.
114542 2006-07-11  Eric Blake  <ebb9@byu.net>
114544         * m4/absolute-header.m4: Fix comments to match recent change.
114546 2006-07-11  Eric Blake  <ebb9@byu.net>
114548         * gnulib-tool: List --doc-base before --tests-base.
114550 2006-07-11  Derek R. Price  <derek@ximbiot.com>
114552         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
114554 2006-07-11  Bruno Haible  <bruno@clisp.org>
114556         * README: Mention where to put documentation.
114558 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114560         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
114562 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114564         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
114565         to stdint.m4.
114567 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114569         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
114570         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
114571         "no/such/file/stdint.h" when there is no such file, so that
114572         the resulting C code can be parsed by dodgy compilers.
114573         Problems reported by Bob Proulx.
114575 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114577         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
114578         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114579         macros into the GNU _D_EXACT_NAMLEN.
114580         * lib/savedir.c:  Likewise.
114581         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
114583 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114584         and Paul Eggert  <eggert@cs.ucla.edu>
114586         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
114587         * m4/savedir.m4:
114588         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114589         macros into the GNU _D_EXACT_NAMLEN.
114591 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114593         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
114594         around the absolute name, to work around a problem with the HP-UX
114595         11.23 native C compiler, reported by Bob Proulx.
114597 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114599         * doc/maintain.texi, make-stds.texi: Sync from
114600         <http://savannah.gnu.org/projects/gnustandards>.
114602 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114604         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
114606 2006-07-09  Jim Meyering  <jim@meyering.net>
114608         * m4/glob.m4: Remove a doubled word in a comment.
114610 2006-07-09  Jim Meyering  <jim@meyering.net>
114612         * lib/argp-pv.c: Remove a doubled word in a comment.
114613         * lib/check-version.c (check_version): Likewise.
114614         * lib/javacomp.c (compile_java_class): Likewise.
114616 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
114618         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
114619         for the benefit of people using Autoconf 2.60.  If you want to
114620         support older Autoconf versions you can copy m4/onceonly_2_57.m4
114621         (or m4/onceonly.m4, if pre-2.57) manually.
114623 2006-07-08  Jim Meyering  <jim@meyering.net>
114625         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
114626         comment.
114627         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
114628         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
114629         comment.
114631 2006-07-08  Jim Meyering  <jim@meyering.net>
114633         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
114635 2006-07-07  Simon Josefsson  <jas@extundo.com>
114637         * tests/test-crc.c: Change expected crc value, the test vector
114638         were probably computed using the old broken crc.c?
114640 2006-07-06  Simon Josefsson  <jas@extundo.com>
114642         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
114643         now the canonical place for the M4 file).
114645         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
114646         from the sys_socket dependency now.
114648         * modules/inet_pton (Files): Ditto.
114650         * modules/inet_ntop (Files): Ditto.
114652 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114654         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
114655         not gl_PREREQ_GETUSERSHELL.
114657 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114659         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
114660         with only one argument, for Autoconf 2.60.
114661         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
114662         expand to nothing, so add a shell command to avoid syntax error.
114663         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
114665 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114667         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
114669 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114671         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
114672         no longer needed.  Check for isblank decl.
114673         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
114674         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
114675         of existence.
114677 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114679         * lib/getloadavg.c: Use __VMS, not VMS.
114680         * lib/getopt.c: Likewise.
114681         * lib/getpagesize.h: Likewise.
114682         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
114683         and probably does not work.
114685 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114687         * lib/.cppi-disable: Add wcwidth.
114688         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
114689         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
114690         (ISGRAPH): Remove.  All uses changed to isgraph.
114691         (FOLD) [!defined _LIBC]: Remove special case.
114692         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
114693         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
114694         HAVE_ISBLANK.
114695         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
114696         case.
114698 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
114700         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
114701         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
114702         brackets.  Other minor changes to suppress some compiler
114703         warnings.
114705 2006-07-06  Derek R. Price  <derek@ximbiot.com>
114706         and Paul Eggert  <eggert@cs.ucla.edu>
114708         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
114709         of invoking obsolescent AC_HEADER_DIRENT macro.
114710         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
114711         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
114712         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
114713         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
114714         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
114715         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114716         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
114717         * m4/readdir.m4: Remove; no longer needed.
114719 2006-07-06  Derek R. Price  <derek@ximbiot.com>
114720         and Paul Eggert  <eggert@cs.ucla.edu>
114722         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
114723         Don't worry about this obsolete case any more.
114724         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
114725         directories.
114726         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
114727         worry about this obsolete case any more.
114728         * lib/fts.c: Likewise.
114729         * lib/getcwd.c: Likewise.
114730         * lib/glob.h: Likewise.
114731         * lib/savedir.c: Likewise.
114733 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114735         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
114736         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
114737         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
114738         needed.
114739         All uses removed.
114740         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114741         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114742         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
114743         needed.
114744         * m4/getdate.m4 (gl_GETDATE): Likewise.
114745         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114746         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114747         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114748         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114749         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114750         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114751         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
114752         needed.
114754 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114756         * lib/memcasecmp.c: Include <limits.h>.
114757         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
114758         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
114759         Don't assume isdigit succeeds only on '0' through '9'.
114761 2006-07-05  Eric Blake  <ebb9@byu.net>
114763         * modules/getaddrinfo (Depends-on): Add snprintf.
114765 2006-07-05  Eric Blake  <ebb9@byu.net>
114767         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
114768         to avoid 'header present but could not be compiled' on cygwin.
114770 2006-07-05  Eric Blake  <ebb9@byu.net>
114772         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
114773         missing from netdb.h.
114774         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
114776 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114778         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
114779         no longer needed.
114780         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
114781         * m4/getdate.m4 (gl_GETDATE): Likewise.
114782         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114783         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114784         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114785         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114786         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114788 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114790         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
114791         All uses of is_space replaced by isspace.
114792         * lib/exit.h: Don't talk about STDC_HEADERS.
114793         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
114794         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
114795         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
114796         replaced by isprint etc.
114797         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
114798         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114799         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
114800         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
114801         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
114802         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114804 2006-07-05  Bruno Haible  <bruno@clisp.org>
114806         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
114807         the function exists, before testing against AIX.
114808         Reported by Martin Lambers <marlam@marlam.de>.
114810 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114812         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
114813         From Mark D. Baushke.
114815 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114817         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
114818         to the absolute name, not just one, to bypass Sun C 5.8's
114819         "warning: #include of /usr/include/... may be non-portable".
114821 2006-07-04  Eric Blake  <ebb9@byu.net>
114823         * modules/dirname-tests: New test module.
114824         * tests/test-dirname.c: New file, replacing dirname.c
114825         TEST_DIRNAME section that was recently deleted.
114827 2006-07-04  Bruno Haible  <bruno@clisp.org>
114829         Assume ANSI C header files and <ctype.h> functions.
114830         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
114831         (mbsnwidth): Use isprint, iscntrl instead.
114833 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114835         Merge from coreutils.
114836         * MODULES.html.sh: Add xstrtold.
114837         * modules/xstrtold: New file.
114838         * modules/cycle-check (Files): Add lib/same-inode.h.
114839         * modules/dirname (Files): Add m4/double-slash-root.m4.
114840         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
114841         * modules/mkdir-p (Files): Add lib/same-inode.h.
114842         * modules/same (Files): Add lib/same-inode.h.
114844 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114846         * m4/absolute-header.m4: Renamed from full-header-path.m4.
114847         This is to keep the terminology clean; POSIX talks about
114848         "absolute pathnames", not "full pathnames", but the GNU
114849         Coding Standards say to use "path" for something else;
114850         so use "absolute" to keep both sides happy.
114851         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
114852         Set gl_absolute_header, not gl_full_header_path.
114853         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
114854         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
114855         All uses changed.
114857         Merge from coreutils.
114859         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
114861         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
114862         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
114863         want to require the building of c-strtod.o.
114864         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
114865         needs -lm directly.
114866         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
114868         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
114870         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
114871         --as-needed option if available.  Problem reported by Albert Chin in
114872         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
114873         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
114874         cc merely issues a bunch of annoying warnings for --as-needed
114875         (this problem was reported by Bob Proulx).  Also, try linking with
114876         -lm to detect a bug in binutils 2.16 (this problem was reported
114877         by Ralf Wildenhues).
114879         2006-06-18  Jim Meyering  <jim@meyering.net>
114881         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
114882         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
114883         macro.
114884         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
114885         also check for glibc-2.4's abort-inducing bug.
114887         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
114888         Low-probability clean-up should be to use rmdir to get rid of
114889         the just-created directory, not unlink.
114891         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
114892         configure fail, and request a bug report to inform us about it.
114893         Add a comment that, barring reports to the contrary, in 2007 we'll
114894         assume ftruncate is universally available.
114896         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
114898         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
114900         2006-03-12  Jim Meyering  <jim@meyering.net>
114902         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
114903         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
114904         * m4/same.m4 (gl_SAME): Likewise.
114905         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
114907         2006-03-11  Eric Blake  <ebb9@byu.net>
114909         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
114910         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
114911         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
114912         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
114914 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114916         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
114917         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
114918         reported by Mark D. Baushke, one in
114919         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
114921         Merge from coreutils.
114923         * lib/.cppi-disable: Add stdint_.h.
114924         * lib/.cvsignore: Add stdint.h.
114926         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
114928         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
114929         both double and long double versions.
114930         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
114931         * lib/xstrtold.c: New file.
114932         * lib/xstrtod.h (xstrtold): New decl.
114934         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
114936         * lib/filemode.c (setst): Remove.
114937         (strmode): Rewrite to avoid setst.  This makes the code shorter,
114938         (arguably) clearer, and the generated code is a bit smaller on my
114939         Debian GNU/Linux stable x86 host.
114941         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
114943         * lib/filemode.c: Include "filemode.h" first, to test the interface.
114944         Assume that filemode.h includes sys/types.h and sys/stat.h.
114945         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
114946         (ftypelet): Reorder to put common cases first, for efficiency.
114947         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
114948         to do 'M'.
114949         (strmode): Renamed from mode_string, and now stores 12 bytes instead
114950         of 10, for compatibility with FreeBSD.  All callers changed.
114951         (filemodestring): Now stores 12 bytes instead of 10, and sets file
114952         types that can't be deduced solely from st_mode.  First arg is now a
114953         const pointer.
114954         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
114955         (strmode): Renamed from mode_string.
114956         (filemodestring): New decl.
114957         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
114958         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
114959         needed.
114960         (S_ISPORT, S_ISWHT): New macros, if not already defined.
114962         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
114964         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
114965         fsusage.h now does that.  Include fsusage.h first, to test interface.
114966         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
114967         at most one method (the old code could have generated decls that
114968         didn't conform to C89, not that this was ever exercised).
114969         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
114971         2006-03-19  Jim Meyering  <jim@meyering.net>
114973         Work even in a chroot where d_ino values for entries in "/"
114974         don't match the stat.st_ino values for the same names.
114975         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
114976         number, iterate through all entries again, using lstat instead.
114977         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
114978         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
114980         * lib/getcwd.c (__getcwd): Clarify a comment.
114981         Use memcpy in place of a call to strcpy.
114983         2006-03-12  Jim Meyering  <jim@meyering.net>
114985         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
114986         matches that of the current directory (which we're about to chdir ".."
114987         out of), then save the dev-ino of the parent, instead.
114989         * lib/same-inode.h (SAME_INODE): New file/macro.
114990         * lib/chdir-safer.c (SAME_INODE): Remove definition.
114991         Include "same-inode.h", instead.
114992         * lib/same.c: Likewise.
114993         * lib/cycle-check.h: Include "same-inode.h".
114994         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
114995         * lib/cycle-check.c (SAME_INODE): Remove definition.
114996         * lib/root-dev-ino.h: Include "same-inode.h".
114998         2006-03-11  Eric Blake  <ebb9@byu.net>
115000         * lib/same.c (same_name): s/base_name/last_component/
115001         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
115002         * lib/filenamecat.c (file_name_concat): Likewise.
115004         2006-03-11  Eric Blake  <ebb9@byu.net>,
115005                     Paul Eggert  <eggert@cs.ucla.edu>
115007         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
115008         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
115009         drive prefix.
115010         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
115011         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
115012         (last_component): New method.
115013         * lib/dirname.c (dir_len): Determine when drive letters need a
115014         subsequent slash.  Preserve // when it is special.
115015         (dir_name): Don't append dot when drive letter is absolute.
115016         [TEST_DIRNAME]: Move into a full-blown gnulib test.
115017         * lib/basename.c (base_name): New semantics - malloc the result.
115018         Preserve // when it is special.  Preserve relative files that look
115019         like drive letters.
115020         (base_len): Preserve // when it is special.
115021         (last_component): New method, similar to old base_name semantics.
115022         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
115023         base_name.  Strip redundant slashes from ///.
115025 2006-07-03  Jim Meyering  <jim@meyering.net>
115027         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
115028         macro is used before the first cycle_check call.
115030 2006-07-03  Eric Blake  <ebb9@byu.net>
115032         * modules/dirname (Depends-on): Add xstrndup.
115034 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115036         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
115037         test cases, so that config.log is a bit easier to follow.
115039 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115041         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
115042         both are 64 bits, since this seems to be the tradition, and this
115043         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
115044         we ever run into a host that prefers long long to long in this
115045         case, we'll need another configure-time test.  Problem reported by
115046         Jim Meyering.
115048 2006-07-02  Eric Blake  <ebb9@byu.net>
115050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
115052 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115054         * modules/inttypes (Depends-on): No longer depends on stdint.
115055         * modules/stdint (Description): Say more about assumptions.
115056         Say that the fast types might differ.  Say macros are used.
115057         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
115058         (Makefile.am): Revise list of substituted symbols to match
115059         new stdint.m4.
115060         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
115061         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
115062         * tests/test-stdint.c (verify_same_types)
115063         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
115064         the code conforms to C99/C89.
115065         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
115066         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
115068 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115070         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
115071         but fix a bug, by requiring at least 64 bits.
115072         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
115073         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
115074         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
115075         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115077         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
115078         changes.  Make 2.59 a prerequisite.  Check and substitute for
115079         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
115080         inttypes.h.  Do not use special include files; just use the
115081         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
115082         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
115083         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
115084         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
115085         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
115086         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
115087         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
115088         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
115089         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
115090         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
115091         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
115092         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
115093         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
115094         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
115095         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
115096         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
115097         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
115098         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
115099         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
115100         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
115101         WINT_MAX.  Check for C99 conformance more strictly, by detecting
115102         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
115103         not check for things that C99 does not require, e.g., int8_t.  If
115104         a test isn't needed unless <stdint.h> isn't working, and is
115105         unlikely to be needed for any other reason, then don't do it
115106         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
115107         size_t, since we assume C89 freestanding at least.  Do not check
115108         for sig_atomic_t, wchar_t, or wint_t, since the code now does
115109         the right thing even if the types are not defined.  Instead use:
115110         (gl_STDINT_TYPE_PROPERTIES): New macro.
115111         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
115112         testing whether <sys/types.h> clashes, as Autoconf does this for
115113         us now.  All uses removed.
115114         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
115115         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
115116         (gl_CHECK_TYPE_SAME):
115117         Remove; no longer needed.
115118         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
115119         exists, since we'll return 0 anyway in that case.
115120         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
115122 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115124         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
115125         possible collision with system files.
115126         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
115127         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
115128         WCHAR_MIN and WCHAR_MAX in this case.
115129         (<stddef.h>): Do not include; no longer needed.
115130         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
115131         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
115132         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
115133         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
115134         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
115135         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
115136         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
115137         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
115138         !defined(__c99))]: Include in this case too, since it's harmless
115139         now.
115140         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
115141         dangerous to do so.
115142         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
115143         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
115144         (_STDINT_MIN, _STDINT_MAX): New macros.
115145         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
115146         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
115147         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
115148         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
115149         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
115150         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
115151         macros, not typedefs; this simplifies things quite a bit.
115152         Use long int for all types narrower than int64_t.
115153         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
115154         Define in terms of long long int or int64_t or long int,
115155         not int64_t or int32_t.  This saves some compile-time testing.
115156         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
115157         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
115158         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
115159         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
115160         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
115161         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
115162         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
115163         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
115164         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
115165         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
115166         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115167         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115168         undef any previous version and define our own version, for
115169         simplicity and consistency with the new macros for types.
115170         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115171         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115172         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
115173         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
115174         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
115175         @WINT_T_SUFFIX@ to keep things simple here.
115176         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
115177         Simplify by assuming typical 8/16/32/64 host, since we're
115178         already doing that elsewhere anyway.
115179         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
115180         and assume long long int is 64 bits if available.  This
115181         speeds up 'configure'.
115183 2006-07-01  Eric Blake  <ebb9@byu.net>
115185         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
115186         Reported by Andreas Buening.
115188 2006-07-01  Eric Blake  <ebb9@byu.net>
115190         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
115192 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115194         * lib/getaddrinfo.c: fixed typo
115196 2006-06-29  Jim Meyering  <jim@meyering.net>
115198         * modules/strftime (Maintainer): Add my name, since with the
115199         FPRINTFTIME changes strftime.c has forked from glibc.
115201 2006-06-29  Eric Blake  <ebb9@byu.net>
115203         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
115205 2006-06-29  Eric Blake  <ebb9@byu.net>
115207         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
115209 2006-06-29  Eric Blake  <ebb9@byu.net>
115211         * lib/stat_.h: New file.
115213 2006-06-29  Eric Blake  <ebb9@byu.net>
115215         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
115216         unused static function.
115218 2006-06-29  Eric Blake  <ebb9@byu.net>
115220         * doc/functions.texi (Function Portability): Document missing lstat
115221         on mingw.
115223 2006-06-29  Eric Blake  <ebb9@byu.net>
115225         * MODULES.html.sh: Add sys_stat.
115226         * modules/sys_stat: New module.
115227         * modules/mkstemp (Depends-on): Add sys_stat.
115229 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115231         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
115233 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115235         * m4/c-bs-a.m4: Removed.
115237 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115239         * lib/strftime.c: Assume strftime() exists.
115241 2006-06-29  Derek Price  <derek@ximbiot.com>
115243         * modules/c-bs-a: Removed - \a is C89.
115244         * MODULES.html.sh: Remove c-bs-a.
115246 2006-06-29  Bruno Haible  <bruno@clisp.org>
115248         * modules/wcwidth (License): Change to LGPL.
115250 2006-06-28  Simon Josefsson  <jas@extundo.com>
115252         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
115253         on _WIN32.
115255         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
115256         getnameinfo.
115258 2006-06-28  Simon Josefsson  <jas@extundo.com>
115260         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
115262 2006-06-28  Simon Josefsson  <jas@extundo.com>
115264         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
115265         functions there.  It will succeed on Windows XP, but on Windows
115266         2000 and (presumably) earlier, it will fail, and use the internal
115267         re-implementation.
115268         (use_win32_p): New function.
115269         (getaddrinfo): Use strtoul on servname, to support numeric ports.
115270         Support AI_NUMERICSERV to disable getservbyname.
115271         (getnameinfo): New function, only supports
115272         NI_NUMERICHOST|NI_NUMERICSERV for now.
115274         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
115275         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
115276         getnameinfo.
115278 2006-06-28  Eric Blake  <ebb9@byu.net>
115280         * modules/wcwidth: New file.
115281         * modules/mbchar (Depends-on): Add wcwidth.
115282         * modules/mbswidth (Depends-on): Add wcwidth.
115283         * MODULES.html.sh: Add wcwidth.
115285 2006-06-28  Eric Blake  <ebb9@byu.net>
115287         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
115288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
115290 2006-06-28  Eric Blake  <ebb9@byu.net>
115292         * lib/xvasprintf.h: Fix comments.
115294 2006-06-28  Eric Blake  <ebb9@byu.net>
115296         * lib/mbchar.h (wcwidth): Include wcwidth.h.
115297         * lib/mbswidth.c (wcwidth): Move from here...
115298         * lib/wcwidth.h: ...to this new file.
115300 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115302         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
115304         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
115305         it's obsolete.
115306         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
115308 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115310         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
115311         Autoconf 2.60 says this stuff was obsolete.
115313 2006-06-28  Bruno Haible  <bruno@clisp.org>
115315         * modules/wcwidth (Files): Add m4/wchar_t.m4.
115317 2006-06-28  Bruno Haible  <bruno@clisp.org>
115319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
115320         gt_TYPE_WCHAR_T.
115322 2006-06-28  Bruno Haible  <bruno@clisp.org>
115324         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
115325         declaration for wcwidth.
115326         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
115328 2006-06-28  Bruno Haible  <bruno@clisp.org>
115330         * lib/mkdtemp.c [MINGW]: Include <io.h>.
115331         (mkdir): Define using _mkdir.
115333 2006-06-28  Bruno Haible  <bruno@clisp.org>
115335         * lib/getaddrinfo.h: Fix POSIX URL.
115336         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
115337         _WIN32.
115338         (use_win32_p): Make static.
115339         (getaddrinfo): Reject service name if it is empty or does not consist
115340         solely of decimal digits, or if its value is > 65535.
115341         (getnameinfo): Remove useless casts.
115343 2006-06-27  Simon Josefsson  <jas@extundo.com>
115345         * modules/sys_select: New file, suggested by Bruno Haible, Paul
115346         Eggert and Martin Lambers.
115348 2006-06-27  Simon Josefsson  <jas@extundo.com>
115350         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
115351         Eggert and Martin Lambers.
115353 2006-06-27  Bruno Haible  <bruno@clisp.org>
115355         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
115356         result to 0, not to empty.
115357         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
115359 2006-06-27  Bruno Haible  <bruno@clisp.org>
115361         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
115363 2006-06-26  Simon Josefsson  <jas@extundo.com>
115365         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
115366         present.
115368 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
115370         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
115371         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
115372         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
115374 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
115376         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
115378 2006-06-26  Bruno Haible  <bruno@clisp.org>
115380         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
115382 2006-06-26  Bruno Haible  <bruno@clisp.org>
115384         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
115386 2006-06-26  Bruno Haible  <bruno@clisp.org>
115388         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
115389         SGI C compiler in pre-C99 mode.
115390         Suggested by Mark D. Baushke and Larry Jones.
115392 2006-06-26  Bruno Haible  <bruno@clisp.org>
115394         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
115395         WCHAR_MAX.
115396         Reported by Mark D. Baushke and Larry Jones.
115398 2006-06-26  Bruno Haible  <bruno@clisp.org>
115400         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
115401         in pre-C99 mode.
115402         Suggested by Mark D. Baushke and Larry Jones.
115404 2006-06-23  Simon Josefsson  <jas@extundo.com>
115405             Bruno Haible  <bruno@clisp.org>
115407         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
115408         Emit mostlyclean-local rule.
115409         (func_emit_tests_Makefile_am): Likewise.
115410         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
115412 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
115414         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
115416 2006-06-23  Bruno Haible  <bruno@clisp.org>
115418         * tests/test-stdint.c: Update to match ISO C 99 Technical
115419         Corrigendum 1.
115421 2006-06-23  Bruno Haible  <bruno@clisp.org>
115423         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
115425 2006-06-23  Bruno Haible  <bruno@clisp.org>
115427         * lib/stdint_.h: Treat IRIX like OpenBSD.
115429 2006-06-23  Bruno Haible  <bruno@clisp.org>
115431         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
115432         ISO C 99 Technical Corrigendum 1.
115434 2006-06-22  Simon Josefsson  <jas@extundo.com>
115436         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
115437         MinGW.
115439 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115441         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
115442         needed.  Some compiler complained about some of them.  Problem reported
115443         by Larry Jones in
115444         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
115446 2006-06-21  Simon Josefsson  <jas@extundo.com>
115448         * tests/test-getaddrinfo.c: New file.
115450         * modules/getaddrinfo-tests: New file.
115452         * MODULES.html.sh: Add inet_pton.
115454         * modules/inet_pton: New file.
115456 2006-06-21  Simon Josefsson  <jas@extundo.com>
115458         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
115459         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
115460         of using the (limited) gnulib implementation on Windows XP.
115462         * m4/inet_pton.m4: New file.
115464 2006-06-21  Simon Josefsson  <jas@extundo.com>
115466         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
115467         variable.
115469         * lib/socket_.h: Don't define WINVER.
115471         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
115472         slightly modified to work in gnulib.
115474 2006-06-21  Simon Josefsson  <jas@extundo.com>
115476         * doc/gnulib.texi (Windows sockets): Add.
115478 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
115480         * lib/read-file.c (fread_file): Start with buffer allocation of
115481         0 bytes rather than 1 byte; this simplifies the code.
115482         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
115483         code to free buffer and save/restore errno.
115484         (internal_read_file): Remove unused local.
115486 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
115488         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
115489         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
115490         Problem reported by Denis Excoffier in
115491         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
115493 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115495         * modules/sys_socket, modules/socklen: Include sys/types since
115496         FreeBSD 4.x's sys/socket.h needs it.
115498 2006-06-19  Simon Josefsson  <jas@extundo.com>
115500         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
115502 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115504         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
115506 2006-06-19  Bruno Haible  <bruno@clisp.org>
115508         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
115509         and FULL_PATH_INTTYPES_H in angle brackets.
115510         Reported by Mark D. Baushke <mdb@gnu.org>.
115512 2006-06-17  Eric Blake  <ebb9@byu.net>
115514         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
115515         errno.
115517 2006-06-17  Bruno Haible  <bruno@clisp.org>
115519         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
115520         <sys/inttypes.h>.
115522 2006-06-17  Bruno Haible  <bruno@clisp.org>
115524         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
115525         whether errno is declared. Assume <errno.h> declares errno.
115527 2006-06-17  Bruno Haible  <bruno@clisp.org>
115529         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
115531 2006-06-17  Bruno Haible  <bruno@clisp.org>
115533         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
115534         problem on Solaris 2.5.1.
115536 2006-06-16  Eric Blake  <ebb9@byu.net>
115538         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
115539         * lib/unicodeio.c [!defined errno]: Likewise.
115540         * lib/strtol.c [!defined errno]: Likewise.
115541         * lib/strtod.c [!defined errno]: Likewise.
115543 2006-06-15  Eric Blake  <ebb9@byu.net>
115545         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
115547 2006-06-15  Eric Blake  <ebb9@byu.net>
115549         * config/srclist.txt (ssize_t.m4): Lose sync.
115551 2006-06-15  Bruno Haible  <bruno@clisp.org>
115553         * modules/stdint (Files): Include m4/full-header-path.m4,
115554         m4/size_max.m4, m4/wchar_t.m4.
115555         (Makefile.am): Many more substitutions.
115556         * modules/stdint-tests: New file.
115557         * tests/test-stdint.c: New file.
115559 2006-06-15  Bruno Haible  <bruno@clisp.org>
115561         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
115562         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
115563         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
115564         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
115565         gl_CHECK_TYPE_SAME): New macros.
115567 2006-06-15  Bruno Haible  <bruno@clisp.org>
115569         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
115571 2006-06-15  Bruno Haible  <bruno@clisp.org>
115573         * lib/stdint_.h: Rewritten to be fully auto-configured.
115574         Fixes bug on HP-UX/IA64.
115576 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
115578         * lib/getdate.y (__attribute__): Don't define if already defined.
115579         Problem reported by Larry Jones.
115580         * lib/utimens.c (__attribute__): Likewise.
115582 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
115584         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
115585         reported by Andreas Schwab.
115587 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115588             Bruno Haible  <bruno@clisp.org>
115590         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
115591         check for the declaration of strnlen and a run test that exposes the
115592         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
115593         rpl_strndup.
115595 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115596             Bruno Haible  <bruno@clisp.org>
115598         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
115600 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115602         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
115603         compile test, for Tru64 4.0D.
115605 2006-05-28  Karl Berry  <karl@gnu.org>
115607         * config/srclist.txt (printf-args.c): lose sync.
115609 2006-05-26  Martin Lambers  <marlam@marlam.de>
115611         * lib/getpass.c: Updates the test for the native W32 API, and adds
115612         missing includes, thus fixing compilation warnings.
115614 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
115616         * lib/exclude.c (exclude_fnmatch): New function.
115617         (excluded_file_name): Call exclude_fnmatch.
115618         * lib/exclude.h (excluded_file_name): New prototype
115620 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
115622         * lib/tempname.c (small_open, large_open): New macros.
115623         (__open, __open64) [!_LIBC]: Remove.
115624         (__gen_tempname): Use small_open and large_open instead of __open
115625         and __open64.  This fixes a portability bug on HP-UX 11.11i
115626         reported by Simon Wing-Tang in
115627         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
115629 2006-05-24  Bruno Haible  <bruno@clisp.org>
115631         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
115632         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
115633         Reported by Thorsten Maerz <torte@netztorte.de> via
115634         Aaron Stone <aaron@serendipity.cx>.
115636 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
115639         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
115640         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
115641         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
115642         not really conditional on the cache.
115643         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
115645 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115647         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
115648         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
115649         (my_usleep): Don't mishandle maximum value.
115651 2006-05-19  Jim Meyering  <jim@meyering.net>
115653         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
115655 2006-05-17  Bruno Haible  <bruno@clisp.org>
115657         Cygwin portability.
115658         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
115660 2006-05-17  Bruno Haible  <bruno@clisp.org>
115662         * lib/stdint_.h: Fix recognition of Cygwin.
115664 2006-05-15  Bruno Haible  <bruno@clisp.org>
115666         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
115667         on libtool patch by Ralf Wildenhues.
115669 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
115671         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
115672         test for C99 conformance; (bool) 0.5 is an integer constant
115673         expression, but (bool) -0.5 is not.  Problem reported by Fedor
115674         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
115676 2006-05-11  Simon Josefsson  <jas@extundo.com>
115678         * m4/xvasprintf.m4: Fix obvious typo.
115680 2006-05-11  Jim Meyering  <jim@meyering.net>
115682         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
115683         James Lemley.
115685 2006-05-10  Simon Josefsson  <jas@extundo.com>
115687         * lib/md4.c: Typo fix, update copyright years.
115688         (K1, K2): Don't use L because it turn computations into 64-bit on
115689         64-bit platforms.
115691 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
115693         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
115694         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
115695         unwanted sign propagation, e.g., on hosts with 64-bit int.
115696         There still are some problems with reeelly weird theoretical hosts
115697         (e.g., 33-bit int) but it's not worth worrying about now.
115698         * lib/sha1.c (rol): Likewise.
115699         (K1, K2, K3, K4): Remove unnecessary L suffix.
115701 2006-05-10  Bruno Haible  <bruno@clisp.org>
115703         * lib/des.c: Cast to avoid warnings.
115705 2006-05-09  Bruno Haible  <bruno@clisp.org>
115707         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
115708         (Depends-on): Depend also on xsize, stdarg.
115709         (configure.ac): Add gl_XVASPRINTF.
115711 2006-05-09  Bruno Haible  <bruno@clisp.org>
115713         * m4/xvasprintf.m4: New file.
115715 2006-05-09  Bruno Haible  <bruno@clisp.org>
115717         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
115718         (EOVERFLOW): Define fallback value.
115719         (xstrcat): New function.
115720         (xvasprintf): Recognize the special case of a string concatenation.
115722 2006-05-08  Eric Blake  <ebb9@byu.net>
115724         * gnulib-tool (func_version): Base copyright year on CVS date.
115725         (func_emit_copyright_notice): New function.
115726         (func_emit_lib_Makefile_am): Use it.
115727         (func_emit_tests_Makefile_am): Likewise.
115728         (func_import): Likewise.
115730 2006-05-08  Bruno Haible  <bruno@clisp.org>
115732         * modules/stdarg: New file.
115733         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
115735 2006-05-08  Bruno Haible  <bruno@clisp.org>
115737         * m4/stdarg.m4: New file, from GNU gettext.
115739 2006-05-08  Bruno Haible  <bruno@clisp.org>
115741         * config/srclist.txt (build-aux/config.rpath): different from latest
115742         release.
115744 2006-05-08  Bruno Haible  <bruno@clisp.org>
115746         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
115748 2006-05-05  Jim Meyering  <jim@meyering.net>
115750         * m4/warning.m4: New file, derived from bison's file by the same name.
115752 2006-05-03  Bruno Haible  <bruno@clisp.org>
115754         * lib/stdint_.h: Shorter URL.
115755         * lib/inttypes.h: Likewise.
115757 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115759         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
115761 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115763         * lib/verify.h: Document the internals better.  Most of this change
115764         was written by Bruno Haible.
115766 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115768         * doc/verify.texi: New file, partly based on a proposal by
115769         Bruno Haible.
115771 2006-05-02  Bruno Haible  <bruno@clisp.org>
115773         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
115774         test from here...
115775         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
115777 2006-04-29  Bruno Haible  <bruno@clisp.org>
115779         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
115780         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
115782 2006-04-29  Bruno Haible  <bruno@clisp.org>
115784         * gnulib-tool: Make --update option actually work.
115786 2006-04-29  Bruno Haible  <bruno@clisp.org>
115788         * doc/gcd.texi: New file.
115789         * doc/gnulib.texi: Include it.
115791 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
115793         * lib/getdate.y (get_date): When adding relative date, start with the
115794         initial time, not with the result of the first mktime call.
115796 2006-04-25  Bruno Haible  <bruno@clisp.org>
115798         * gnulib-tool (func_import): Output the include directives in three
115799         blocks, sorted separately.
115800         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115802 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115804         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
115805         to define main with arguments, for C++.  Reported by Eric Blake.
115806         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
115807         Prefer 'int main ()' to 'int main (void)', for C++.
115808         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
115809         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
115810         for 'main', for C99 and C++.
115812 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115814         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
115815         Don't assume that exit status -1 is valid.
115816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
115817         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
115818         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
115819         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
115820         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
115821         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
115822         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
115823         functions can be used without declaring them, or that you can
115824         exit with status -1.
115825         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
115827 2006-04-24  Karl Berry  <karl@gnu.org>
115829         * config/srclist.txt (longdouble.m4): sync lost.
115831 2006-04-24  Eric Blake  <ebb9@byu.net>
115833         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
115835 2006-04-24  Bruno Haible  <bruno@clisp.org>
115837         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
115838         poll() implementation in AIX.
115839         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115841 2006-04-24  Bruno Haible  <bruno@clisp.org>
115843         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
115844         assigned exactly once.
115846 2006-04-23  Claudio Fontana  <claudio@gnu.org>
115847             Bruno Haible  <bruno@clisp.org>
115849         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
115850         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
115851         for AM_CPPFLAGS.
115853 2006-04-23  Bruno Haible  <bruno@clisp.org>
115855         * modules/copy-file: Depend on unistd.
115856         * modules/execute: Likewise.
115857         * modules/fatal-signal: Likewise.
115858         * modules/findprog: Likewise.
115859         * modules/mkdtemp : Likewise.
115860         * modules/pipe: Likewise.
115861         * modules/wait-process: Likewise.
115863 2006-04-23  Bruno Haible  <bruno@clisp.org>
115865         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
115866         condition was already detected.
115867         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115869 2006-04-23  Bruno Haible  <bruno@clisp.org>
115871         * lib/copy-file.c: Include <unistd.h> unconditionally.
115872         * lib/execute.c: Likewise.
115873         * lib/fatal-signal.c: Likewise.
115874         * lib/findprog.c: Likewise.
115875         * lib/mkdtemp.c: Likewise.
115876         * lib/pipe.h: Likewise.
115877         * lib/pipe.c: Likewise.
115878         * lib/wait-process.h: Likewise.
115880 2006-04-23  Bruno Haible  <bruno@clisp.org>
115882         * gnulib-tool (func_usage): Fix --import description. Document
115883         --update.
115884         (func_import): Create temporary file in a temporary directory, if
115885         --dry-run is specified. Silence errors from 'grep' when there are no
115886         m4 files in $m4dir.
115887         (func_create_testdir): Silence errors from 'grep' when there are no
115888         m4 files in $m4dir.
115889         Reported by Karl Berry <karl@freefriends.org>.
115891 2006-04-20  Bruno Haible  <bruno@clisp.org>
115893         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
115894         one argument, so that the code will be portable to Autoconf 2.60.
115895         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
115896         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115897         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
115899 2006-04-19  Derek Price  <derek@ximbiot.com>
115900             Eric Blake  <ebb9@byu.net>
115902         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
115903         rather than "/full/path.h".  Update comment to match.  Shorten &
115904         generalize m4_translit call via AS_TR_CPP.
115906 2006-04-19  Derek Price  <derek@ximbiot.com>
115907             Eric Blake  <ebb9@byu.net>
115909         * lib/inttypes.h: Correct grammar in comment.
115911 2006-04-18  Derek Price  <derek@ximbiot.com>
115912             Paul Eggert  <eggert@cs.ucla.edu>
115914         * modules/inttypes: New file.
115915         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
115917 2006-04-18  Derek Price  <derek@ximbiot.com>
115918             Paul Eggert  <eggert@cs.ucla.edu>
115920         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
115921         New files.
115923 2006-04-18  Derek Price  <derek@ximbiot.com>
115924             Paul Eggert  <eggert@cs.ucla.edu>
115926         * lib/inttypes.h: New file.
115927         * lib/strtoimax.c: Assume <inttypes.h>.
115929 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
115931         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
115932         isn't mounted.  Problem reported by Kir Kolyshkin.
115934 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
115936         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
115937         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
115938         Derek R. Price.
115939         * lib/regex.h (RE_DUP_MAX): Update comment to match current
115940         implementation.
115942 2006-04-12  Eric Blake  <ebb9@byu.net>
115944         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
115945         is now done automatically by the corresponding Autoconf macro.
115947 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
115949         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
115950         time_r.h.
115952 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
115954         Merge regex changes from libc, removing some of our
115955         POSIX-conformance changes that were rejected and redoing them in a
115956         less-intrusive way.
115958         * lib/regcomp.c (re_compile_internal, init_dfa):
115959         Length arg is now size_t, not Idx.  All uses changed.
115960         (peek_token): Forward decl now says internal_function.
115961         (__re_error_msgid, __re_error_msgid_idx):
115962         Now static rather than extern with attribute_hidden.
115963         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
115964         For some reason libc prefers K&R style defns for external functions.
115965         (regerror) [!defined _LIBC]: Likewise.
115966         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
115967         (seek_collating_symbol_entry, lookup_collation_sequence_value):
115968         (build_range_exp, build_collating_symbol):
115969         Use K&R-style defn.
115970         (re_compile_fastmap): Use '\0' to memset, not 0.
115971         (utf8_sb_map): Make the calculations more obvious.
115972         (init_dfa, parse_bracket_exp, build_charclass_op):
115973         Call calloc and cast result, as glibc does.
115974         (init_word_char, fetch_token, peek_token, peek_token_bracket):
115975         (build_range_exp, build_collating_symbol):
115976         Now internal functions.
115978         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
115980         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
115981         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
115982         Don't depend on VMS; depend on __VMS instead, for POSIX
115983         namespace cleanness.
115984         (regoff_t): Define to ssize_t, not long int.
115986         Remove the REG_ macros named below.  Instead, make the old names
115987         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
115988         __USE_GNU_REGEX.
115989         (REG_BACKSLASH_ESCAPE_IN_LISTS):
115990         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
115991         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
115992         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
115993         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
115994         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
115995         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
115996         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
115997         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
115998         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
115999         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
116000         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
116001         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
116002         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
116003         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
116004         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
116005         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
116006         (REG_NREGS):
116007         Remove.  All uses replaced by the old RE_* names.
116008         (RE_BACKSLASH_ESCAPE_IN_LISTS):
116009         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
116010         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
116011         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
116012         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
116013         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
116014         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
116015         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
116016         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
116017         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
116018         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
116019         Don't bother having these macros be independent of each others'
116020         values, since they no longer exist in the POSIX name space.
116022         Rename the following member names back to their old names,
116023         unless !__USE_GNU_REGEX.  All uses changed back.
116024         (buffer): Renamed from re_buffer.
116025         (allocated): Renamed from re_allocated.
116026         (used): Renamed from re_used.
116027         (syntax): Renamed from re_syntax.
116028         (fastmap): Renamed from re_fastmap.
116029         (translate): Renamed from re_translate.
116030         (can_be_null): Renamed from re_can_be_null.
116031         (regs_allocated): Renamed from re_regs_allocated.
116032         (fastmap_accurate): Renamed from re_fastmap_accurate.
116033         (no_sub): Renamed from re_no_sub.
116034         (not_bol): Renamed from re_not_bol.
116035         (not_eol): Renamed from re_not_eol.
116036         (newline_anchor): Renamed from re_newline_anchor.
116037         (num_regs): Renamed from rm_num_regs.
116038         (start): Renamed from rm_start.
116039         (end): Renamed from rm_end.
116041         (free_state): Move up a bit.
116043         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
116044         #define to be empty.
116045         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
116046         when that is what is intended.
116047         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
116048         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
116049         (MAX): New macro.
116050         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
116051         All uses changed back to re_malloc, etc.  It's now the caller's
116052         responsibility to check for overflow; all callers changed.
116053         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
116054         (re_x2nrealloc): Remove.
116055         (free_state): Remove decl.
116057         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
116058         (re_set_registers, re_exec):
116059         Use K&R-style defn.
116061         2006-01-31  Roland McGrath  <roland@redhat.com>
116063         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
116064         Reported by Mike Frysinger <vapier@gentoo.org>.
116066         2006-01-15  Andreas Jaeger  <aj@suse.de>
116068         [BZ #1950]
116069         * lib/regex_internal.c (re_string_reconstruct): Adjust for
116070         build_wcs_upper_buffer change.
116071         (build_wcs_upper_buffer): Change return type.
116073         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
116075         * lib/regex_internal.h: Include <stdint.h> if available.
116077         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
116079         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
116081         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
116083         * lib/regcomp.c: Adjust for changed secondary hash function.
116085         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
116087         * lib/regex.h: Pretty printing.
116088         Clean up namespace a bit.
116090         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
116092         * lib/regexec.c (update_cur_sifted_state, check_arrival,
116093         check_arrival_add_next_nodes): Avoid using uninitialized variable.
116095         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116096                     Ulrich Drepper  <drepper@redhat.com>
116098         [BZ #1302]
116099         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
116100         changed.
116101         (bitset_word_t): Renamed from bitset_word.  All uses changed.
116103         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
116105         [BZ #281]
116106         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
116107         * lib/regcomp.c: Remove unnecessary uses of
116108         unsigned RE_TRANSLATE_TYPE.
116109         * lib/regex_internal.h: Likewise.
116110         * lib/regex_internal.c: Likewise.
116111         * lib/regexec.c: Likewise.
116112         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
116114         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
116116         * lib/regexec.c (find_recover_state): Remove unnecessary
116117         initialization.
116118         (transit_state_bkref): Make DFA a const pointer.
116119         (get_subexp): Likewise.
116120         (check_arrival): Likewise.
116121         (update_cur_sifted_state): Likewise.
116122         (re_search_internal): Likewise.
116123         (prune_impossible_nodes): Likewise.
116124         (acquire_init_state_context): Likewise.
116125         (proceed_next_node): Likewise.
116126         (set_regs): Likewise.
116127         (free_fail_stack_return): Likewise.
116128         (check_arrival_expand_ecl): Mark DFA parameter as const.
116129         (check_arrival_expand_ecl_sub): Likewise.
116130         (check_subexp_limits): Likewise.
116131         (sub_epsilon_src_nodes):  Likewise.
116132         (add_epsilon_src_nodes):  Likewise.
116133         (merge_state_array): Likewise.
116134         (update_regs): Likewise.
116135         (build_trtable): Likewise.
116136         (sift_states_backward): Mark MCTX parameter as const.
116137         (build_sifted_states): Likewise.
116138         (update_cur_sifted_state): Likewise.
116139         (sift_states_mkref): Likewise.
116140         (check_arrival_expand_ecl): Mark eclosure as const.
116141         (check_dst_limits_calc_pos_1): Likewise.
116142         * lib/regex_internal.h (re_match_context_t): Make dfa a const
116143         pointer.
116145         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
116147         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
116148         (transit_state_sb): Likewise.
116149         (transit_state_mb): Likewise.
116150         (sift_states_iter_mb): Likewise.
116151         (check_arrival_add_next_nodes): Likewise.
116152         (check_node_accept_bytes): Change first parameter to pointer-to-const.
116153         [_LIBC] (re_search_2_stub): Use mempcpy.
116155         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
116156         mbrtowc for very simple UTF-8 case.
116158         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
116159         a pointer-to-const.
116160         (re_acquire_state_context): Likewise.
116161         * lib/regex_internal.h: Adjust prototypes.
116163         * lib/regex.c: Prevent using C++ compilers.
116165         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
116166         (re_acquire_state_context): Likewise.
116168 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116170         * modules/regex (Depends-on): Add ssize_t.
116172 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116174         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
116175         translation table.
116177 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116179         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
116181 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
116182             Bruno Haible  <bruno@clisp.org>
116184         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
116185         <sys/types.h> and <inttypes.h>.
116187 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116189         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
116190         `__error_t_defined', so argp.h will not typedef the former.
116192 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
116194         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
116195         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
116196         glibc names.  Even if glibc is changed to conform to POSIX, the
116197         traditional names will be available anyway, since regex depends on
116198         the extensions module.  Also, fix a longstanding typo in the
116199         implementation of Spencer ERE test #75 from grep 2.3.  Problems
116200         reported by Emanuele Giaquinta.  Also, change sense of cached
116201         variable, so that the message makes sense.
116203 2006-03-24  Simon Josefsson  <jas@extundo.com>
116205         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
116206         including some doc fixes.
116207         (base64_encode_alloc): Fix +1 bug on allocation failures.
116209 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116211         * lib/base64.c (base64_encode): Do not read past end of array with
116212         unsanitized input on systems with CHAR_BIT > 8.
116214 2006-03-24  Eric Blake  <ebb9@byu.net>
116216         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
116218 2006-03-22  Karl Berry  <karl@gnu.org>
116220         * config/srclist.txt (*setenv.[ch]): get from coreutils.
116221         * config/srclistvars.sh (COREUTILS): new var.
116223 2006-03-17  Jim Meyering  <jim@meyering.net>
116225         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
116226         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
116228 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116230         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
116231         no longer needs it.  Instead, check that regoff_t is as least
116232         as wide as ptrdiff_t.
116234         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
116235         so that our regex.h stays compatible with the installed regex.
116236         This is helpful for installers who configure --without-included-regex.
116237         Problem reported by Emanuele Giaquinta.
116239 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116241         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
116242         Typedef to long int, not to off_, as POSIX will likely change
116243         in that direction.
116245 2006-03-15  Eric Blake  <ebb9@byu.net>
116247         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
116249 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116251         * lib/argp-help.c (validate_uparams): Fix typo
116252         * lib/argp-parse.c (argp_default_options): Consistently begin help
116253         messages with a lowercase letter.
116255 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
116257         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
116258         overrun buffers and shouldn't be used (much as gets shouldn't be
116259         used).
116260         * lib/time_r.c (asctime_r, ctime_r): Likewise.
116262 2006-03-08  Simon Josefsson  <jas@extundo.com>
116264         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
116265         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116267 2006-03-08  Simon Josefsson  <jas@extundo.com>
116269         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
116270         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116272 2006-03-08  Simon Josefsson  <jas@extundo.com>
116274         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
116275         signal that configure disabled the device.
116277 2006-03-08  Simon Josefsson  <jas@extundo.com>
116279         * build-aux/maint.mk: Fix refresh-po, to handle no translated
116280         languages.
116282 2006-03-07  Simon Josefsson  <jas@extundo.com>
116284         * modules/getopt (Depends-on): Add unistd.
116286         * modules/unistd: New file.
116288 2006-03-07  Simon Josefsson  <jas@extundo.com>
116290         * modules/gc-random: New file.
116292 2006-03-07  Simon Josefsson  <jas@extundo.com>
116294         * m4/unistd_h.m4: New file.
116296 2006-03-07  Simon Josefsson  <jas@extundo.com>
116298         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
116299         test to be side-effect free by storing the result in the cache
116300         variable gl_cv_lib_readline, and moving the assignment of
116301         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
116302         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116304 2006-03-07  Simon Josefsson  <jas@extundo.com>
116306         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
116307         error on missing devices (the functions will return an error).
116309         * m4/gc.m4: Move random stuff to gc-random.m4
116311 2006-03-07  Simon Josefsson  <jas@extundo.com>
116313         * lib/unistd_.h: New file.
116315 2006-03-07  Simon Josefsson  <jas@extundo.com>
116317         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
116319 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116321         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
116322         Problem reported by Juan Manuel Guerrero.
116324 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116326         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
116327         the unistd module.
116328         * lib/getlogin_r.c: Likewise.
116329         * lib/getlogin_r.h: Likewise.
116330         * lib/glob.c: Likewise.
116331         * lib/pagealign_alloc.c: Likewise.
116332         * lib/unistd_.h: Remove; no longer needed.
116334 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116336         * MODULES.html.sh (Support for systems lacking POSIX:2001):
116337         Add unistd.
116338         * modules/c-stack (Depends-on): Add unistd.
116339         * modules/getlogin_r: Likewise.
116340         * modules/glob: Likewise.
116341         * modules/pagealign_alloc: Likewise.
116342         * modules/unistd (Files): Remove lib/unistd_.h.
116343         (EXTRA_DIST): Remove.
116344         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
116345         need unistd_.h.
116346         (MOSTLYCLEANFILES): Remove unistd.h-t.
116348 2006-03-03  Simon Josefsson  <jas@extundo.com>
116350         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
116352 2006-03-03  Simon Josefsson  <jas@extundo.com>
116354         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
116355         libidn and bison.
116357 2006-03-03  Simon Josefsson  <jas@extundo.com>
116359         * build-aux/maint.mk: Add indent target.
116361 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
116363         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
116364         our replacement poll.h in any case, to avoid a differing
116365         declaration from a system header.  Seen on AIX.
116367 2006-03-01  Simon Josefsson  <jas@extundo.com>
116369         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
116370         <kasal@ucw.cz>.
116372 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116374         * modules/gettime (Depends-on): Add extensions module.
116375         * modules/nanosleep (Depends-on): Likewise.
116376         * modules/settime (Depends-on): Likewise.
116378 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116380         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
116381         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
116382         pedantically.
116383         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116384         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
116386         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
116387         not "==".  Reported by Ralf Wildenhues.
116389 2006-03-01  Karl Berry  <karl@gnu.org>
116391         * doc/Copyright/request-*: new files, synced from gnuorg.
116393 2006-03-01  Karl Berry  <karl@gnu.org>
116395         * config/srclist.txt (Copyright/*): new entries.
116397 2006-02-28  Simon Josefsson  <jas@extundo.com>
116399         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
116401 2006-02-27  Simon Josefsson  <jas@extundo.com>
116403         * lib/base64.h: Indent #define's.  From Jim Meyering
116404         <jim@meyering.net>.
116406 2006-02-27  Jim Meyering  <jim@meyering.net>
116408         Revert the change of 2006-02-24, so these files can continue
116409         to be sync'd from gettext.
116410         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
116411         of `config.h'.
116413 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
116415         * modules/intprops: New file.
116416         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
116417         Add intprops.
116418         * modules/getloadavg (Files): Remove lib/intprops.h.
116419         (Depends-on): Add intprops.
116420         * modules/human: Likewise.
116421         * modules/inttostr: Likewise.
116422         * modules/openat: Likewise.
116423         * modules/sig2str: Likewise.
116424         * modules/userspec: Likewise.
116425         * modules/utimecmp: Likewise.
116426         * modules/xnanosleep: Likewise.
116427         * modules/xstrtol: Likewise.
116429 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
116431         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
116432         * modules/lock-tests (TESTS): Use $(EXEEXT).
116433         * modules/tls-tests: Likewise.
116434         * modules/argp-tests: Likewise.
116435         (check_PROGRAMS): New var, replacing...
116436         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
116438 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116440         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
116441         `config.h'.
116443 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
116445         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
116447 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116449         Sync from coreutils.
116450         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
116451         gl_CHDIR_SAFER.
116453 2006-02-22  Jim Meyering  <jim@meyering.net>
116455         Sync from coreutils.
116456         * m4/chdir-safer.m4: New file.
116458 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
116460         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
116461         AT_FDCWD exceeds INT_MAX.
116462         * lib/openat.h (AT_FDCWD): Likewise.
116464 2006-02-17  Eric Blake  <address@hidden>
116466         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
116468 2006-02-16  Simon Josefsson  <jas@extundo.com>
116470         * modules/getaddrinfo (Depends-on): Add sys_socket.
116472 2006-02-15  Simon Josefsson  <jas@extundo.com>
116474         * build-aux/maint.mk: Add dsyntax-check rule.
116476 2006-02-15  Eric Blake  <ebb9@byu.net>
116478         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
116479         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
116480         'present but cannot compile' warnings on cygwin.
116481         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
116482         use ws2tcpip.h if sys/socket.h works.
116483         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
116484         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
116486 2006-02-14  Simon Josefsson  <jas@extundo.com>
116488         * modules/maintainer-makefile (Files): Rename.
116490         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
116491         and (the local) Makefile.cfg to maint-cfg.mk.
116493         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
116494         to the latter.
116496         * modules/maintainer-makefile: New module.
116498         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
116499         severaly stripped to make it possible to build it up from scratch
116500         with reliable tests.
116502         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
116503         fixes to permit overriding the default actions when configure and
116504         makefile are not available.
116506 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
116508         Sync from coreutils.
116509         * modules/lstat (Depends-on): Don't depend on xalloc.
116510         (License): Change from GPL to LGPL, since this is now simply a
116511         replacement for a libc function.
116513 2006-02-14  Jim Meyering  <jim@meyering.net>
116515         Sync from coreutils.
116517         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
116518         failure on deficient systems, and simplify gnulib lgpl dependencies.
116519         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
116520         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
116522         * lib/xalloc-die.c: Remove unused definition of N_.
116524 2006-02-14  Jim Meyering  <jim@meyering.net>
116526         Sync from coreutils.
116527         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
116528         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
116529         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
116530         double-quote uses of that variable, to accommodate the rare case in
116531         which getmntent is available in none of the libraries checked.  This
116532         happens at least on FreeBSD 5.0.
116534 2006-02-13  Simon Josefsson  <jas@extundo.com>
116536         * gnulib-tool (Usage): Fix --import, from
116537         karl@freefriends.org (Karl Berry).
116539 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116541         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
116543 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
116545         * lib/argp-namefrob.h: Restore changes accidentally lost during the
116546         "autoupdate" on 2005-12-12.
116548 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116550         * modules/closeout (Depends-on): Remove atexit.
116552 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116554         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
116555         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
116557 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
116559         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
116560         __EXTENSIONS__ if this causes compilation to fail.  Problem
116561         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
116562         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
116564 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
116566         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
116567         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
116568         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
116569         All uses changed.
116571 2006-01-26  Simon Josefsson  <jas@extundo.com>
116573         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
116574         prototype is visible on mingw32.
116576         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
116577         for mingw32.
116579         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
116580         mingw32).
116582 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
116584         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
116585         attempt to open for write; this always fails, at least on POSIX
116586         hosts.  This reinstates the 2006-01-09 change, which was
116587         inadvertently removed.
116589 2006-01-26  Bruno Haible  <bruno@clisp.org>
116591         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
116592         Reported by Paul Eggert.
116594 2006-01-26  Bruno Haible  <bruno@clisp.org>
116595             Paul Eggert  <eggert@cs.ucla.edu>
116597         * lib/stdbool_.h (_Bool)
116598         [(! (defined __cplusplus || defined __BEOS__)
116599           && !defined __GNUC__
116600           && !(defined __HP_cc || defined __xlc__
116601                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
116602                || defined __sgi))]:
116603         #define to signed char in these cases too; this simplifies
116604         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
116605         etc., separately) and makes it more conservative.
116607 2006-01-25  Simon Josefsson  <jas@extundo.com>
116609         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
116610         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
116611         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
116613 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116615         * lib/argp-namefrob.h: Bugfix. Remove stray #
116617 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
116619         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
116620         so that we test the test.
116621         Check for yet another HP-UX cc bug involving *bool |= bool.
116623 2006-01-25  Karl Berry  <karl@gnu.org>
116625         * config/srclist.txt (vasnprintf.c): sync lost.
116627 2006-01-25  Jim Meyering  <jim@meyering.net>
116629         Sync from the stable (b5) branch of coreutils:
116631         * lib/fts.c (fts_children): Don't let close() clobber errno from
116632         failed fchdir().
116634         * lib/fts.c (fts_stat): When following a symlink-to-directory,
116635         don't necessarily interpret stat-fails+lstat-succeeds as indicating
116636         a dangling symlink.  That can also happen at least for ELOOP.
116637         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
116638         FYI, this bug predates the inclusion of fts.c in coreutils.
116640         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
116641         in their own block, so pre-c99 compilers don't object.
116643         Avoid the double-free (first in fts_read, second in fts_close) that
116644         would occur when an `active' directory is made inaccessible (e.g.,
116645         via chmod a-x) during a traversal.
116646         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116647         before returning.  Reproduce this failure by
116648         mkdir -p a/b; cd a; chmod a-x . b
116649         Reported by Stavros Passas.
116651 2006-01-25  Jim Meyering  <jim@meyering.net>
116653         * lib/fileblocks.c: Remove more useless parentheses.
116654         * lib/readutmp.h: Likewise.
116656 2006-01-25  Bruno Haible  <bruno@clisp.org>
116658         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
116659         warnings.
116660         Reported by Paul Eggert.
116662 2006-01-25  Bruno Haible  <bruno@clisp.org>
116664         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
116665         rid of a trap command. For Solaris sh.
116666         Reported by Mark D. Baushke <mdb@gnu.org>.
116668 2006-01-24  Simon Josefsson  <jas@extundo.com>
116670         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
116671         Bruno.
116673 2006-01-24  Karl Berry  <karl@gnu.org>
116675         * config/srclist.txt (argp-namefrob.h): sync lost.
116677 2006-01-24  Jim Meyering  <jim@meyering.net>
116679         * modules/openat (Files): Add lib/intprops.h.
116680         From Mark D. Baushke.
116682 2006-01-24  Jim Meyering  <jim@meyering.net>
116684         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
116685         Reported by Mark D. Baushke.
116687 2006-01-24  Jim Meyering  <jim@meyering.net>
116689         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
116691 2006-01-24  Bruno Haible  <bruno@clisp.org>
116693         * modules/strnlen (Maintainer): Change from glibc to all.
116695 2006-01-24  Bruno Haible  <bruno@clisp.org>
116697         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
116698         Patch by Paul Eggert.
116700 2006-01-24  Bruno Haible  <bruno@clisp.org>
116702         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
116703         already has it.
116704         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
116705         2005-11-26.
116707         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
116708         'signed char' to avoid problems with the built-in _Bool type.
116709         Reported by Paul Eggert on 2005-11-26.
116711 2006-01-24  Bruno Haible  <bruno@clisp.org>
116713         * gnulib-tool (func_import): Avoid constructing complicated sed
116714         expressions inside backquote.
116715         Report and solution by Mark D. Baushke <mdb@gnu.org>.
116717 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
116719         These changes imported from libc.
116720         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
116721         test and two separate function calls.
116722         * lib/strndup.c (__strndup): Add libc_hidden_def.
116724 2006-01-23  Simon Josefsson  <jas@extundo.com>
116726         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
116727         Remove the test_*_SOURCES variable: automake infers it by default.
116728         * modules/tls-tests: Likewise.
116730 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116732         Work around porting bugs reported by Dieter in
116733         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
116734         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
116735         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
116736         Include "getopt.h" first, to check interface.
116737         (getenv): Declare only if defined HAVE_DECL_GETENV &&
116738         !HAVE_DECL_GETENV.
116739         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
116740         (__strndup): Revert to K&R-style function dfns, the glibc style.
116741         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
116742         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
116743         Include strnlen.h first, to get prototype properly.
116744         (strnlen): Renamed from __strnlen.
116745         Remove weak alias.
116747 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116749         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
116751 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116753         * config/srclist.txt: Adjust to reflect glibc reorganization.
116754         This affects only comments.
116756 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116758          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
116759          Reported by Bruce Korb <bkorb@gnu.org>.
116761 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
116763         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
116764         to pacify gcc -Wswitch-default.
116766 2006-01-22  Bruno Haible  <bruno@clisp.org>
116768         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
116769         temporary buffer for sprintf, take into account the precision also
116770         for 'd', 'i', 'u', 'o', 'x', 'X'.
116772 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116774         * modules/argp-tests: New module
116775         * tests/test-argp.c: New file
116776         * tests/test-argp-2.sh: New file
116778 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116780         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
116781         (__argp_base_name): Removed
116782         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
116783         typo.
116784         (__argp_base_name): Provide macro definition or extern declaration
116785         depending on the configuration
116787 2006-01-20  Simon Josefsson  <jas@extundo.com>
116789         * modules/inet_ntop (Depends-on): Depend on sys_socket.
116791 2006-01-20  Simon Josefsson  <jas@extundo.com>
116793         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
116795 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
116797         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
116798         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
116799         Suggested by Bruno Haible.
116801 2006-01-20  Karl Berry  <karl@gnu.org>
116803         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
116804         until changes propagate, I guess.
116806 2006-01-19  Simon Josefsson  <jas@extundo.com>
116808         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
116810 2006-01-19  Simon Josefsson  <jas@extundo.com>
116812         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
116814 2006-01-19  Simon Josefsson  <jas@extundo.com>
116816         * gnulib-tool: Set check_PROGRAMS.
116818         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116819         modules/des-tests, modules/gc-arcfour-tests,
116820         modules/gc-arctwo-tests, modules/gc-des-tests,
116821         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116822         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116823         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116824         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116825         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116826         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
116827         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
116828         test_*_SOURCES.
116830 2006-01-18  Simon Josefsson  <jas@extundo.com>
116832         * modules/socklen (Depends-on): Depend on sys_socket.
116834 2006-01-18  Simon Josefsson  <jas@extundo.com>
116836         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116837         modules/des-tests, modules/gc-arcfour-tests,
116838         modules/gc-arctwo-tests, modules/gc-des-tests,
116839         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116840         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116841         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116842         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116843         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116844         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
116845         $(EXEEXT) to automake TESTS variable, for mingw32.
116847 2006-01-17  Simon Josefsson  <jas@extundo.com>
116849         * modules/socklen (Include): Need sys/socket.h.
116851 2006-01-17  Bruno Haible  <bruno@clisp.org>
116853         * modules/ssize_t (Include): Add <sys/types.h>.
116855 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
116857         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
116858         it's not portable and it doesn't work with cross-compiles.
116859         Problem reported by Bruno Haible.  Fix missing-$ typo in
116860         'test "gl_cv_ignore_unused_libraries" ...' that prevented
116861         -zignore from being used with Sun's C compiler.
116863 2006-01-12  Simon Josefsson  <jas@extundo.com>
116865         * lib/base64.c: Fix warning, reported by Bruno Haible
116866         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
116868 2006-01-12  Bruno Haible  <bruno@clisp.org>
116870         * modules/ldd: New file.
116871         * build-aux/ldd.sh.in: New file.
116872         * MODULES.html.sh (Support for building libraries and executables): Add
116873         ldd.
116875 2006-01-12  Bruno Haible  <bruno@clisp.org>
116877         * m4/ldd.m4: New file.
116879 2006-01-12  Bruno Haible  <bruno@clisp.org>
116881         * gnulib-tool (func_import, func_create_testdir): Don't go into an
116882         endless loop while replacing $auxdir with build-aux.
116884 2006-01-11  Simon Josefsson  <jas@extundo.com>
116886         * lib/stdint_.h (SIZE_MAX): Add missing (.
116888 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
116890         Sync from coreutils.
116891         * lib/md5.c: Fix commentary typos.
116892         (alignof, UNALIGNED_P): No need for a GCC-specific version.
116893         * lib/md5.h (__attribute__): Remove; unused.
116894         * lib/sha1.c: Fix commentary to match md5 better.
116895         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
116896         so that we don't need to worry about alignment.  All uses changed.
116897         This merges the 2005-10-28 md5 change into sha1.
116899 2006-01-11  Jim Meyering  <jim@meyering.net>
116901         Sync from coreutils.
116902         * lib/md5.c (OP): Fix spacing.
116904 2006-01-11  Bruno Haible  <bruno@clisp.org>
116906         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116907         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
116908         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
116910 2006-01-11  Bruno Haible  <bruno@clisp.org>
116912         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116913         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
116914         the "early" section as well.
116916 2006-01-11  Bruno Haible  <bruno@clisp.org>
116918         Avoid "ar: no archive members specified" error on MacOS X.
116919         * gnulib-tool (func_modules_add_dummy): New function.
116920         (func_import, func_create_testdir): Invoke it.
116922 2006-01-11  Bruno Haible  <bruno@clisp.org>
116924         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
116925         with $auxdir in AC_CONFIG_FILES statements.
116927 2006-01-11  Bruno Haible  <bruno@clisp.org>
116929         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
116930         Initialize also noinst_HEADERS to empty.
116932 2006-01-11  Bruno Haible  <bruno@clisp.org>
116934         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
116935         variables.
116936         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
116937         autoreconf.
116939 2006-01-11  Bruno Haible  <bruno@clisp.org>
116941         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
116942         overridable by the user.
116943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116945 2006-01-10  Simon Josefsson  <jas@extundo.com>
116947         * modules/sys_socket: New file.
116949 2006-01-10  Simon Josefsson  <jas@extundo.com>
116951         * m4/sys_socket_h.m4: New file.
116953 2006-01-10  Simon Josefsson  <jas@extundo.com>
116955         * lib/socket_.h: New file.
116957 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116959         * modules/readutmp (Maintainer): Add myself.
116961 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116963         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
116964         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
116965         People who are still concerned with buggy memcmp implementations
116966         can invoke gl_FUNC_MEMCMP themselves.
116968 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
116970         * lib/regex_internal.h (BITSET_WORD_BITS):
116971         Work around a bug in 64-bit PGC (before version 6.1-2), where the
116972         preprocessor mishandles large unsigned values as if they were signed.
116973         Problem reported by Claudio Fontana in
116974         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
116976 2006-01-10  Jim Meyering  <jim@meyering.net>
116978         Avoid the double-free (first in fts_read, second in fts_close) that
116979         would occur when an `active' directory is made inaccessible (e.g.,
116980         via chmod a-x) during a traversal.
116981         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116982         before returning.  Reproduce this failure by
116983         mkdir -p a/b; cd a; chmod a-x . b
116984         Reported by Stavros Passas.
116986         Sync from coreutils.
116987         * lib/sha1.c: Tweak grammar in a comment.
116989 2006-01-10  Jim Meyering  <jim@meyering.net>
116991         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
116992         Patch by Joerg Sonnenberger.
116994 2006-01-10  Bruno Haible  <bruno@clisp.org>
116996         * modules/readutmp: Depend on module free.
116997         * modules/strtok_r: Depend on module restrict.
116999 2006-01-10  Bruno Haible  <bruno@clisp.org>
117001         * modules/gettext (configure.ac): Add an invocation of
117002         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
117004 2006-01-10  Bruno Haible  <bruno@clisp.org>
117006         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
117007         Reported by Werner Lemberg <wl@gnu.org>.
117009 2006-01-10  Bruno Haible  <bruno@clisp.org>
117011         * lib/localcharset.c: Update from GNU gettext.
117013 2006-01-10  Bruno Haible  <bruno@clisp.org>
117015         * lib/argp.h (__const): Remove macro. Use const instead.
117016         * lib/argp-fmtstream.h (__const): Likewise.
117017         * lib/glob_.h (__const): Remove macro.
117018         * lib/glob-libc.h: Use const instead of __const.
117020 2006-01-10  Bruno Haible  <bruno@clisp.org>
117022         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
117023         variable.
117024         Needed to avoid an automake error regarding the 'gettext' module.
117026 2006-01-09  Simon Josefsson  <jas@extundo.com>
117028         * modules/inet_ntop (Depends-on): Add restrict.
117030 2006-01-09  Simon Josefsson  <jas@extundo.com>
117032         * modules/gc-rijndael-tests (License): Put under LGPL.
117034         * modules/gc-des-tests (License): Likewise.
117036         * modules/gc-arcfour-tests (License): Likewise.
117038         * modules/gc-arctwo-tests (License): Likewise.
117040         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
117042         * modules/gc-hmac-sha1-tests (Files): Likewise.
117044         * modules/gc-hmac-md5-tests (License): Likewise.
117046         * modules/gc-sha1-tests (License): Likewise.
117048         * modules/gc-md5-tests (License): Likewise.
117050         * modules/gc-md4-tests (License): Likewise.
117052         * modules/gc-md2-tests (License): Likewise.
117054         * modules/gc-tests (License): Likewise.
117056         * modules/des-tests (License): Likewise.
117058         * modules/md4-tests (License): Likewise.
117060         * modules/md2-tests (License): Likewise.
117062 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117064         Sync from coreutils:
117066         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
117067         * modules/lib-ignore: New file.
117068         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
117069         chdir-safer.m4, lchmod.m4.
117070         * modules/openat: Add mkdirat.c, openat-priv.h.
117072 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117074         Sync from coreutils.
117075         * m4/lib-ignore.m4: New file.
117076         * m4/lchmod.m4: New file.
117078 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117080         Sync from coreutils.
117081         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
117082         for write access: POSIX says that must fail.
117083         * lib/fts.c (diropen): Likewise.
117084         * lib/save-cwd.c (save_cwd): Likewise.
117085         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
117086         well, for minor improvements on hosts that lack O_DIRECTORY.
117087         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
117088         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
117089         Fall back on chown if open failed with EACCES.
117091         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
117092         Report an error at compile-time if only a 1-second nominal clock
117093         resolution is found.
117095         * lib/lchmod.h: New file.
117096         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
117097         (make_dir_parents): Use lchown rather than chown, and
117098         lchmod rather than chmod.
117100         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
117101         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
117102         "proc" reported by n0dalus.
117104         * lib/mountlist.c: Include <limits.h>.
117105         (dev_from_mount_options)
117106         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
117107         New function.  It no longer assumes "dev=" has the System V meaning
117108         on Linux (since it doesn't).  It also parses "dev=" more carefully.
117109         (read_file_system_list)
117110         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
117111         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
117112         dev= in that case.
117114         * lib/posixtm.h (PDS_PRE_2000): New macro.
117115         * lib/posixtm.c (year): Arg is now syntax_bits rather than
117116         allow_century.  All usages changed.  Reject dates outside the range
117117         1969-1999 if PDS_PRE_2000 is used.
117119 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117121         Sync from coreutils.
117122         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
117123         (Time of day items): Mention the possibility of leap seconds.
117124         Problem reported by Dr. David Alan Gilbert.
117126 2006-01-09  Jim Meyering  <jim@meyering.net>
117128         Sync from coreutils.
117130         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
117132         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
117134         * lib/modechange.c (mode_compile): Reject an invalid mode string
117135         that starts with an octal digit.  From Andreas Gruenbacher.
117137         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
117138         and dup to open_safer and dup_safer, respectively.
117139         (openat_permissive): Fix typo in comment.
117141         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
117142         "gettext.h"; either no longer needed or are guaranteed by openat.h.
117143         (_): Remove; no longer needed.
117144         (openat): Renamed from rpl_openat; no need for rpl_openat
117145         since openat.h renames openat for us.
117146         Replace most of the body with a call to openat_permissive,
117147         to avoid duplicate code.
117148         Port to (probably hypothetical) environments were mode_t is
117149         wider than int.
117150         (openat_permissive): Require mode arg, so that we can check
117151         types better.  Put it just after flags.  Change cwd failure
117152         indicator from pointer-to-bool to pointer-to-errno-value.
117153         All callers changed.
117154         Invoke openat_save_fail and/or openat_restore_fail if
117155         cwd_errno is null, so that openat can call us.
117156         (openat_permissive, fdopendir, fstatat, unlinkat):
117157         Simplify errno handling to avoid some duplicate code,
117158         as it's OK to set errno on success.
117159         * lib/openat.h: Revamp code so that function macros depend on
117160         __OPENAT_PREFIX only, not also on AT_FDCWD.
117161         (openat_ro): Remove.  Caller changed to use openat_permissive.
117162         (openat_permissive): Now a macro, if not a function.
117163         (openat_restore_fail, openat_save_fail): Now always functions,
117164         since mkdirat needs them even if __OPENAT_PREFIX is defined.
117166         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
117167         and openat.c.
117168         * lib/mkdirat.c: Include openat-priv.h.
117169         Remove definitions of macros defined therein.
117170         * lib/openat.c: Likewise.
117172         * lib/mkdirat.c (mkdirat): New file and function.
117173         * lib/openat.h (mkdirat): Declare.
117175         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
117177         * lib/openat.h (openat_permissive): Declare.
117178         (openat_ro): Define.
117180         * lib/openat.c (EXPECTED_ERRNO): New macro.
117181         (openat_permissive): New function -- used in remove.c rewrite.
117182         (all functions): Set errno just before returning, only if there
117183         was an actual failure.
117184         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
117186         Emulate openat-family functions using Linux's procfs, if possible.
117187         Idea and some code based on Ulrich Drepper's glibc changes.
117189         * lib/openat.c: (BUILD_PROC_NAME): New macro.
117190         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
117191         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
117192         before falling back on save_cwd and restore_cwd.
117193         (fdopendir, fstatat, unlinkat): Likewise.
117195         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
117196         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
117198         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
117199         as second argument to va_arg.  Otherwise, some versions of gcc
117200         warn that `if this code is reached, the program will abort'.
117202 2006-01-09  Jim Meyering  <jim@meyering.net>
117204         Sync from coreutils.
117205         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
117206         Require openat-priv.h.
117208 2006-01-09  Bruno Haible  <bruno@clisp.org>
117210         * modules/strnlen (Include): Use strnlen.h.
117212 2006-01-09  Bruno Haible  <bruno@clisp.org>
117214         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
117216 2006-01-09  Bruno Haible  <bruno@clisp.org>
117218         * lib/sysexit_.h (EX_OK): New macro.
117219         Suggested by Martin Lambers <marlam@marlam.de>.
117221 2006-01-09  Bruno Haible  <bruno@clisp.org>
117223         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
117224         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
117226 2006-01-09  Bruno Haible  <bruno@clisp.org>
117228         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
117229         numbers.
117231 2006-01-09  Bruno Haible  <bruno@clisp.org>
117233         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
117234         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
117235         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
117236         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
117238 2006-01-09  Bruno Haible  <bruno@clisp.org>
117240         * build-aux/javacomp.sh.in: New file, moved from lib/.
117241         * modules/javacomp-script (Files): Update.
117242         (configure.ac): Add AC_CONFIG_FILES invocation.
117243         (EXTRA_DIST): Remove variable.
117245         * build-aux/javaexec.sh.in: New file, moved from lib/.
117246         * modules/javaexec (Files): Update.
117247         (configure.ac): Add AC_CONFIG_FILES invocation.
117248         (EXTRA_DIST): Remove javaexec.sh.in.
117250         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
117251         * modules/csharpcomp-script (Files): Update.
117252         (configure.ac): Add AC_CONFIG_FILES invocation.
117253         (EXTRA_DIST): Remove variable.
117255         * build-aux/csharpexec.sh.in: New file, moved from lib/.
117256         * modules/csharpexec (Files): Update.
117257         (configure.ac): Add AC_CONFIG_FILES invocation.
117258         (EXTRA_DIST): Remove csharpexec.sh.in.
117260 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117262         Sync from coreutils.
117264         Add POSIX ACL support
117265         * lib/acl.h (copy_acl, set_acl): Add declarations.
117266         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
117267         systems other than Linux.
117268         (chmod_or_fchmod): New function: use fchmod when possible,
117269         and chmod otherwise.
117270         (file_has_acl): Add a POSIX ACL implementation, with a
117271         Linux-specific subcase.
117272         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
117273         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
117274         acls are unsupported.
117275         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
117276         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
117277         are unsupported.
117279 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117281         Sync from coreutils.
117282         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
117284 2006-01-07  Bruno Haible  <bruno@clisp.org>
117286         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
117287         gl_EARLY.
117289 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117291         * lib/strftime.c (tzname): Don't declare if it is already #defined.
117292         Problem reported for Mingw by Mark Junker.
117294 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117296         * README: Gnulib normally doesn't generate a tarball.
117298 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
117300         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
117301         long int, not int, for nanosecond counts, so that people who are
117302         used to POSIX struct timespec won't be surprised.  Reported by Jim
117303         Meyering.
117305 2005-12-28  Bruno Haible  <bruno@clisp.org>
117307         * build-aux/config.rpath: Update from GNU gettext.
117309 2005-12-16  Jim Meyering  <jim@meyering.net>
117311         * modules/fprintftime: New module.
117312         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
117314 2005-12-16  Jim Meyering  <jim@meyering.net>
117316         * m4/fprintftime.m4: New file.
117318 2005-12-16  Jim Meyering  <jim@meyering.net>
117320         * lib/fprintftime.c, lib/fprintftime.h: New files.
117322 2005-12-15  Simon Josefsson  <jas@extundo.com>
117324         * modules/socklen (configure.ac): Fix M4 macro name, to align with
117325         new m4/socklen.m4.
117327 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117329         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
117330         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
117332 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117334         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
117335         * lib/argp-help.c (fill_in_uparams): Check if the constructed
117336         struct uparams is valid. Fall back to the default values if it is
117337         not.
117339 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117341         * modules/argp (Files): Add argp-pin.c
117342         (Depends-on): dirname
117343         (lib_SOURCES): Add argp-pin.c
117345 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117347         * m4/argp.m4:  Check if program_invocation_name and
117348         program_invocation_short_name are declared and define appropriate
117349         macros if they are not.
117351 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117353         * lib/argp-help.c (__argp_base_name): New function
117354         (__argp_short_program_name): Rewrite using __argp_base_name
117355         * lib/argp-namefrob.h: Define program_invocation_name and
117356         program_invocation_short_name if requested
117357         (__argp_base_name): Add prototype
117358         * lib/argp-parse.c (argp_def): Use gettext wrappers
117359         (argp_default_parser): Use __argp_base_name
117360         * lib/argp-pin.c: New file. Defines program_invocation_name and
117361         program_invocation_short_name on systems that lack them.
117363 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117365         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
117366         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117367         porting problem reported by Georg Schwarz in
117368         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117370 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117372         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
117373         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117374         porting problem reported by Georg Schwarz in
117375         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117377 2005-12-05  Bruno Haible  <bruno@clisp.org>
117379         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
117380         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
117381         Reported by Mark Junker <mjscod@gmx.de>.
117383 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
117385         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
117386         Use implementation from Albert Chin, with some
117387         comments/corrections by Stepan Kasal and myself.
117389 2005-12-02  Bruno Haible  <bruno@clisp.org>
117391         * gnulib-tool (func_import): Accept GPLed build tool modules when
117392         --lgpl is given.
117393         * modules/csharpcomp-script: New file.
117394         * modules/csharpcomp: Depend on it.
117395         * modules/javacomp-script: New file.
117396         * modules/javacomp: Depend on it.
117397         Suggested by Simon Josefsson.
117399 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
117401         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
117402         statement, to work around an HP-UX 10.20 compiler bug reported by
117403         Peter O'Gorman.
117405 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117407         * modules/savedir (Depends-on): Add openat.
117409 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117411         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
117412         (uintmax_t) [defined uintmax_t]: Do not declare.
117413         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
117414         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
117415         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
117416         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
117417         sake of portability to weird hosts that C allows (though we don't
117418         know of any practical examples).
117420         * lib/savedir.h (fdsavedir): New decl.
117421         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
117422         contains most of the former guts of savedir.
117423         (savedir): Use savedirstream.
117424         Include "openat.h".
117426 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117428         * modules/obstack (Files): Add m4/ulonglong.m4.
117429         Problem reported by Davide Angelocola.
117431 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
117433         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
117434         coreutils no longer futzes with rounding modes.
117436 2005-11-14  Jim Meyering  <jim@meyering.net>
117438         * lib/mkstemp-safer.c: Include <config.h>, required for possible
117439         replacement of mkstemp.
117441 2005-11-10  Simon Josefsson  <jas@extundo.com>
117443         * lib/readline.c: Remove EOL.
117445 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117447         * modules/gethrxtime (Depends-on): Add gettime.
117449 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117451         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
117452         or gettimeofday; no longer needed.
117454 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117456         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
117457         time business.
117458         (gethrxtime) [! (HAVE_NANOUPTIME
117459         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
117460         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
117461         our own approximation.
117463 2005-11-08  Eric Blake  <ebb9@byu.net>
117465         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117467 2005-11-08  Eric Blake  <ebb9@byu.net>
117469         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117471 2005-11-04  Bruno Haible  <bruno@clisp.org>
117473         * gnulib-tool: Implement --update mode.
117475 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117477         Fix porting problem reported by Theodoros V. Kalamatianos.
117478         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
117479         Don't assume that futimes failing means we must fail.
117481 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117483         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
117484         variables to suggest the intended function of the PATH_MAX check.
117486 2005-10-30  Kean Johnston  <jkj@sco.com>
117488         Trivial changes to support SCO systems.
117489         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
117490         as PATH_MAX.
117491         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
117492         where __ptr is null when no I/O is pending.
117494 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
117496         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
117497         leave errno alone.  Problem reported by Dmitry V. Levin.
117499 2005-10-28  Simon Josefsson  <jas@extundo.com>
117501         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
117502         Test more.
117504         * tests/test-gc-md2.c, tests/test-md2.c: New files.
117506         * modules/md2, modules/md2-tests: New files.
117508 2005-10-28  Simon Josefsson  <jas@extundo.com>
117510         * m4/inet_ntop.m4: More tests.
117512         * m4/gc-md2.m4, md2.m4: New file.
117514 2005-10-28  Simon Josefsson  <jas@extundo.com>
117516         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
117517         "restrict" keywords, as per POSIX.  Protect the function
117518         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
117519         Don't use K&R prototypes.  Check the sprintf return values.
117520         Re-define EAFNOSUPPORT if not present.  Indent.
117522         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
117523         suggested by Bruno Haible <bruno@clisp.org>.
117525         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
117527         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
117529         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
117530         libgcrypt).
117532         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
117534         * lib/md2.h, lib/md2.c: New files.
117536 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
117538         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
117539         errno alone.  Problem reported by Frederic Jolliton.
117541 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
117543         * modules/verify (License): Change from GPL to LGPL.  This is a
117544         tiny module and there are apparently near-equivalents that are
117545         under the BSD license.
117547 2005-10-24  Simon Josefsson  <jas@extundo.com>
117549         * modules/sha1: Relicense to LGPL.
117551 2005-10-24  Simon Josefsson  <jas@extundo.com>
117553         * lib/md4.h: Shrink buffer size, now that we changed the type.
117555 2005-10-23  Simon Josefsson  <jas@extundo.com>
117557         * gnulib-tool (func_import): Fix --tests-base.
117559 2005-10-22  Simon Josefsson  <jas@extundo.com>
117561         * modules/arcfour (Depends-on): Need stdint.
117563 2005-10-22  Simon Josefsson  <jas@extundo.com>
117565         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
117566         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
117568 2005-10-22  Simon Josefsson  <jas@extundo.com>
117570         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
117571         suggested by Bruno Haible <bruno@clisp.org>.
117573 2005-10-22  Simon Josefsson  <jas@extundo.com>
117575         * lib/crc.h: Include stddef.h, for size_t.
117577 2005-10-22  Simon Josefsson  <jas@extundo.com>
117579         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
117580         arcfour_context struct (simplify test vector testing in GNU
117581         Shishi).
117583 2005-10-21  Simon Josefsson  <jas@extundo.com>
117585         * modules/des, modules/des-tests: New files.
117587         * modules/gc-des, modules/gc-des-tests: New files.
117589         * tests/test-des.c, tests/test-gc-des.c: New file.
117591 2005-10-21  Simon Josefsson  <jas@extundo.com>
117593         * modules/arctwo, modules/arctwo-tests: New files.
117595         * tests/test-arctwo.c: New file.
117597         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
117599         * tests/test-gc-arctwo.c: New file.
117601 2005-10-21  Simon Josefsson  <jas@extundo.com>
117603         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
117604         Bruno Haible <bruno@clisp.org>.
117606         * m4/gc-des.m4: New file.
117608 2005-10-21  Simon Josefsson  <jas@extundo.com>
117610         * m4/arctwo.m4: New file.
117612         * m4/gc-arctwo.m4: New file.
117614 2005-10-21  Simon Josefsson  <jas@extundo.com>
117616         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
117617         block.
117619 2005-10-21  Simon Josefsson  <jas@extundo.com>
117621         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
117622         <bruno@clisp.org>.
117624         * lib/hmac-sha1.c (hmac_sha1): Likewise.
117626         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
117627         Bruno Haible <bruno@clisp.org>.
117629         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
117630         <bruno@clisp.org>.
117632 2005-10-21  Simon Josefsson  <jas@extundo.com>
117634         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
117636 2005-10-21  Simon Josefsson  <jas@extundo.com>
117638         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
117640 2005-10-21  Simon Josefsson  <jas@extundo.com>
117642         * lib/des.h, lib/des.c: New files.
117644         * lib/gc-gnulib.c: Support DES.c
117646 2005-10-21  Simon Josefsson  <jas@extundo.com>
117648         * lib/arctwo.h, lib/arctwo.c: New files.
117650         * lib/gc-gnulib.c: Support ARCTWO.
117652 2005-10-21  Simon Josefsson  <jas@extundo.com>
117654         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
117655         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117657 2005-10-21  Simon Josefsson  <jas@extundo.com>
117659         * gnulib-tool (func_import, func_create_testdir): Define automake
117660         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
117661         Makefile.am snippet),
117662         suggested by Bruno Haible <bruno@clisp.org>.
117664         * modules/gc (Makefile.am): Use it.
117666 2005-10-21  Bruno Haible  <bruno@clisp.org>
117668         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
117669         patch.
117671 2005-10-19  Simon Josefsson  <jas@extundo.com>
117673         * tests/test-gc-rijndael.c: New file.
117675         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
117677 2005-10-19  Simon Josefsson  <jas@extundo.com>
117679         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
117680         interface too.
117682 2005-10-19  Simon Josefsson  <jas@extundo.com>
117684         * tests/test-gc-arcfour.c: New file.
117686         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
117688 2005-10-19  Simon Josefsson  <jas@extundo.com>
117690         * modules/gc-md4, modules/gc-md4-tests: New file.
117692         * tests/test-gc-md4.c: New file.
117694 2005-10-19  Simon Josefsson  <jas@extundo.com>
117696         * m4/gc-md4.m4: New file.
117698 2005-10-19  Simon Josefsson  <jas@extundo.com>
117700         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
117701         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
117702         <kasal@ucw.cz>.
117704 2005-10-19  Simon Josefsson  <jas@extundo.com>
117706         * m4/gc-arcfour.m4: New file.
117708         * m4/gc-rijndael.m4: New file.
117710 2005-10-19  Simon Josefsson  <jas@extundo.com>
117712         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
117714 2005-10-19  Simon Josefsson  <jas@extundo.com>
117716         * lib/gc-gnulib.c: Support ARCFOUR.
117718 2005-10-19  Simon Josefsson  <jas@extundo.com>
117720         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
117721         support.
117723         * lib/gc.h: Add ECB enum type.
117725         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
117727 2005-10-18  Simon Josefsson  <jas@extundo.com>
117729         * tests/test-md5.c: New file.
117731         * modules/md5-tests: New file.
117733 2005-10-18  Simon Josefsson  <jas@extundo.com>
117735         * tests/test-md4.c: New file.
117737         * modules/md4, modules/md4-tests: New files.
117739 2005-10-18  Simon Josefsson  <jas@extundo.com>
117741         * m4/md4.m4: New file.
117743 2005-10-18  Simon Josefsson  <jas@extundo.com>
117745         * lib/md4.h, lib/md4.c: New files, based on md5.?.
117747 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
117749         * gnulib-tool (func_create_testdir): Omit the second check whether
117750         BUILT_SOURCES in nonempty.
117752 2005-10-17  Simon Josefsson  <jas@extundo.com>
117754         * tests/test-rijndael.c: New file.
117756 2005-10-17  Simon Josefsson  <jas@extundo.com>
117758         * modules/sha1: Depend on stdint instead of md5.
117760         * modules/md5: Depend on stdint, remove uint32_t.
117762 2005-10-17  Simon Josefsson  <jas@extundo.com>
117764         * modules/gc-sha1-tests: New file.
117766         * tests/test-gc-sha1.c: New file.
117768 2005-10-17  Simon Josefsson  <jas@extundo.com>
117770         * m4/md5.m4: Remove call to uint32_t.m4.
117772 2005-10-17  Simon Josefsson  <jas@extundo.com>
117774         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
117776         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
117777         md5.h.
117779         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
117781         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
117783 2005-10-17  Simon Josefsson  <jas@extundo.com>
117785         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
117787 2005-10-17  Simon Josefsson  <jas@extundo.com>
117789         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
117791 2005-10-17  Simon Josefsson  <jas@extundo.com>
117793         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
117795         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
117797 2005-10-17  Bruno Haible  <bruno@clisp.org>
117799         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
117800         that it can also be used in a test.
117802 2005-10-16  Bruno Haible  <bruno@clisp.org>
117804         * gnulib-tool (func_emit_tests_Makefile_am): Also define
117805         TESTS_ENVIRONMENT, so that individual tests can augment it.
117807         * gnulib-tool (func_create_testdir): Use an intermediate target for
117808         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
117809         macros, like $(ALLOCA_H), which cannot be passed through the command
117810         line.
117812 2005-10-15  Simon Josefsson  <jas@extundo.com>
117814         * modules/rijndael-tests: New file.
117816         * modules/rijndael: New file.
117818 2005-10-15  Simon Josefsson  <jas@extundo.com>
117820         * m4/rijndael.m4: New file.
117822 2005-10-15  Simon Josefsson  <jas@extundo.com>
117824         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
117826         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
117828 2005-10-14  Simon Josefsson  <jas@extundo.com>
117830         * tests/test-arcfour.c: New file.
117832         * modules/arcfour, modules/arcfour-tests: New files.
117834 2005-10-14  Simon Josefsson  <jas@extundo.com>
117836         * m4/arcfour.m4: New file.
117838 2005-10-14  Simon Josefsson  <jas@extundo.com>
117840         * lib/arcfour.h, lib/arcfour.c: New files.
117842 2005-10-14  Roland McGrath  <roland@redhat.com>
117844         Import from libc.  [BZ #1331]
117845         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
117846         macro argument.
117847         Reported by Matej Vela <vela@debian.org>.
117849 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117851         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
117852         include <wchar.h>; no longer needed.
117854 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117856         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
117858 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
117859         and  Ulrich Drepper  <drepper@redhat.com>
117861         Import from libc.
117862         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
117863         instead of inline stream orientation test and two separate
117864         function calls.  Pay no attention to USE_IN_LIBIO.
117866 2005-10-13  Simon Josefsson  <jas@extundo.com>
117868         * modules/gc-hmac-md5-tests: New file.
117870         * tests/test-gc-hmac-sha1.c: New file.
117872         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
117874         * modules/gc-hmac-md5-tests: New file.
117876         * tests/test-gc-md5.c: New file.
117878         * modules/gc-md5-tests: New file.
117880 2005-10-13  Simon Josefsson  <jas@extundo.com>
117882         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
117883         Move memory allocation outside of loop.
117885 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
117887         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
117888         intermediate directory is in a read-only file system.  Problem
117889         reported by Eric Blake.
117891 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
117893         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
117895 2005-10-12  Simon Josefsson  <jas@extundo.com>
117897         * tests/test-hmac-sha1.c: New file.
117899         * modules/hmac-sha1-tests: New file.
117901         * modules/hmac-sha1: New file.
117903 2005-10-12  Simon Josefsson  <jas@extundo.com>
117905         * modules/gc-sha1: New file.
117907 2005-10-12  Simon Josefsson  <jas@extundo.com>
117909         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
117911         * tests/test-gc-pbkdf2-sha1.c: New file.
117913 2005-10-12  Simon Josefsson  <jas@extundo.com>
117915         * modules/gc-md5, modules/gc-hmac-md5: New files.
117917         * modules/gc (Files): Remove md5, memxor and hmac files.
117919 2005-10-12  Simon Josefsson  <jas@extundo.com>
117921         * m4/gc-pbkdf2-sha1.m4: New file.
117923         * m4/gc-hmac-sha1.m4: New file.
117925         * m4/gc-sha1: New file.
117927         * m4/hmac-sha1.m4: New file.
117929 2005-10-12  Simon Josefsson  <jas@extundo.com>
117931         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
117933         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
117935 2005-10-12  Simon Josefsson  <jas@extundo.com>
117937         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
117938         suggested by Bruno Haible <bruno@clisp.org>.
117940 2005-10-12  Simon Josefsson  <jas@extundo.com>
117942         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
117944 2005-10-12  Simon Josefsson  <jas@extundo.com>
117946         * lib/gc-pbkdf2-sha1.c: New file.
117948         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
117950 2005-10-12  Simon Josefsson  <jas@extundo.com>
117952         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
117954         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
117956 2005-10-12  Simon Josefsson  <jas@extundo.com>
117958         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
117959         GC_USE_HMAC_MD5, respectively.
117961         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
117962         (gc_md5): Fix typo.
117964         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
117966         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
117968         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
117970 2005-10-12  Bruno Haible  <bruno@clisp.org>
117972         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
117973         Reported by Stepan Kasal <kasal@ucw.cz>.
117975 2005-10-11  Simon Josefsson  <jas@extundo.com>
117977         * tests/test-crc.c: New file.
117979         * modules/crc, modules/crc-tests: New files.
117981 2005-10-11  Simon Josefsson  <jas@extundo.com>
117983         * m4/crc.m4: New file.
117985 2005-10-11  Simon Josefsson  <jas@extundo.com>
117987         * lib/gc.h: Add gc_hash and gc_hash_buffer.
117989         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
117991         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
117993 2005-10-11  Simon Josefsson  <jas@extundo.com>
117995         * lib/crc.h, lib/crc.c: New files.
117997         * lib/gc.h (gc_hash_buffer): Add doc.
117999 2005-10-11  Bruno Haible  <bruno@clisp.org>
118001         * modules/c-strcasestr: New file.
118002         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
118004 2005-10-11  Bruno Haible  <bruno@clisp.org>
118006         * modules/c-strcase: New file.
118007         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
118009 2005-10-11  Bruno Haible  <bruno@clisp.org>
118011         * lib/strcasecmp.c: Include limits.h.
118012         (strcasecmp): Avoid integer overflow on exotic platforms.
118013         * lib/strncasecmp.c: Include limits.h.
118014         (strncasecmp): Avoid integer overflow on exotic platforms.
118015         Reported by Paul Eggert.
118017 2005-10-11  Bruno Haible  <bruno@clisp.org>
118019         * lib/c-strcasestr.h: New file, from GNU gettext.
118020         * lib/c-strcasestr.c: New file, from GNU gettext.
118022 2005-10-11  Bruno Haible  <bruno@clisp.org>
118024         * lib/c-strcase.h: New file, from GNU gettext.
118025         * lib/c-strcasecmp.c: New file, from GNU gettext.
118026         * lib/c-strncasecmp.c: New file, from GNU gettext.
118028 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118030         * modules/mempcpy (License): GPL -> LGPL.
118031         * modules/strchrnul (License): Likewise.
118032         * modules/sysexits (License): Likewise.
118034 2005-10-08  Simon Josefsson  <jas@extundo.com>
118036         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
118038 2005-10-07  Simon Josefsson  <jas@extundo.com>
118040         * m4/memxor.m4: Remove gl_C_RESTRICT call.
118042 2005-10-06  Simon Josefsson  <jas@extundo.com>
118044         * tests/test-hmac-md5.c: New file.
118046         * modules/hmac-md5-tests: New file.
118048         * modules/hmac-md5: New file.
118050 2005-10-06  Simon Josefsson  <jas@extundo.com>
118052         * m4/hmac-md5.m4: New file.
118054         * m4/memxor.m4: Require gl_C_RESTRICT.
118056 2005-10-06  Simon Josefsson  <jas@extundo.com>
118058         * lib/memxor.c (memxor): Avoid casts and warnings.
118060 2005-10-06  Simon Josefsson  <jas@extundo.com>
118062         * lib/hmac-md5.c: New file.
118064         * lib/hmac.h: New file.
118066 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
118069         promotes to int, not unsigned int, to catch the AIX 5.3
118070         compiler bug.
118072 2005-10-05  Simon Josefsson  <jas@extundo.com>
118074         * modules/memxor: New file.
118076         * modules/iconv (Files): Move config.rpath to havelib, it is used
118077         there.
118079         * modules/havelib (Files): Add config.rpath.
118081 2005-10-05  Simon Josefsson  <jas@extundo.com>
118083         * m4/memxor.m4: New file.
118085 2005-10-05  Simon Josefsson  <jas@extundo.com>
118087         * lib/memxor.c (memxor): Fix compiler error.
118089         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
118090         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
118092         * lib/memxor.h, lib/memxor.c: New files.
118094         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
118095         we assume all systems have it, suggested by Jim Meyering
118096         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
118097         any systems lack sys/socket.h; mingw32 is known to lack it, but we
118098         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
118099         same reasons.
118101 2005-10-05  Simon Josefsson  <jas@extundo.com>
118103         * config/srclist.txt: Add glibc bug 1423 for md5.h.
118105 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
118107         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
118108         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
118109         needed, since the source code now assumes these .h files.
118111 2005-10-05  Derek Price  <derek@ximbiot.com>
118113         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
118115 2005-10-05  Bruno Haible  <bruno@clisp.org>
118117         * modules/stdint (License): Change to LGPL.
118119 2005-10-04  Simon Josefsson  <jas@extundo.com>
118121         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
118122         D. Baushke" <mdb@gnu.org>.
118124 2005-10-04  Bruno Haible  <bruno@clisp.org>
118126         * lib/verify.h (verify_true): Provide alternative definition for C++.
118128 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
118130         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
118131         (SSIZE_MAX): New macro, if not already defined.
118132         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
118133         than 2 GiB.
118135 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118137         Sync from coreutils.
118138         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
118139         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
118140         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
118141         ULLONG_MAX doesn't work with 2.7.2.1.
118143 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118145         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
118146         From Ben Pfaff.
118148         * modules/exclude (Depends-on): Depend on verify.
118149         * modules/strtoimax (Depends-on): Likewise.
118150         * modules/utimecmp (Depends-on): Likewise.
118152 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118154         * lib/exclude.c: Include verify.h.
118155         (verify): Remove.  All callers changed to use verify.h's version.
118156         * lib/strtoimax.c: Likewise.
118157         * lib/utimecmp.c: Likewis.e
118159         Sync from coreutils.
118160         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
118161         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
118162         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
118163         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
118164         bother returning ENOSYS if settimeofday or stime fails; just let
118165         them return whatever errno they want to return.
118166         * lib/utimens.c: Include unistd.h, for dup2.
118167         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
118168         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
118170 2005-10-02  Jim Meyering  <jim@meyering.net>
118172         Sync from coreutils.
118173         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
118174         from glibc-2.2.5 that fails for read-only files.
118176 2005-10-02  Jim Meyering  <jim@meyering.net>
118178         Sync from coreutils.
118179         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
118180         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
118181         `#if HAVE_CONFIG_H'.
118182         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
118183         Remove AT_FDCWD test.
118184         Do not consume the fd unless successful.
118185         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
118186         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
118187         block, so that we don't even try to compile it if settimeofday is
118188         available.  This works around a compilation failure on OSF1 V5.1,
118189         due to stime requiring a `long int*' while tv_sec is `int'.
118191 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
118193         Sync from coreutils.
118194         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
118195         against `yes', rather than just testing for nonempty.
118197 2005-10-01  Simon Josefsson  <jas@extundo.com>
118199         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
118200         and Darwin.
118202         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
118203         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
118204         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
118205         freeaddrinfo and gai_strerror are declared by the POSIX headers.
118206         Check if struct addrinfo is declared.
118208 2005-10-01  Simon Josefsson  <jas@extundo.com>
118210         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
118211         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
118212         AI_* and EAI_* definitions.  Protect function declarations.
118214 2005-10-01  Jim Meyering  <jim@meyering.net>
118216         Sync from coreutils.
118218         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
118219         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
118220         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
118221         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118222         in the inet and nsl libraries.  Required on Solaris 5.7.
118224 2005-10-01  Jim Meyering  <jim@meyering.net>
118226         Sync from coreutils.
118227         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118228         in the inet and nsl libraries.  Required on Solaris 5.7.
118230 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
118232         * lib/getdelim.c (getdelim): Remove unused variables.
118234 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
118236         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
118237         so that the code works even with ancient cpp.  Portability problem
118238         with GCC 2.7.2.1 reported by Thomas M.Ott.
118240 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
118242         * modules/regex (Depends-on): Add strcase.
118244         * modules/gethostname (Licence): Change from GPL to LGPL, since
118245         gethostname.c is a trivial implementation of a standard library
118246         function.
118247         * modules/poll (License): Change from GPL to LGPL, since it's
118248         derived from LGPL code.
118250 2005-09-27  Jim Meyering  <jim@meyering.net>
118252         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
118253         HAVE_CONFIG_H.
118255         * lib/intprops.h (signed_type_or_expr__): Define.
118256         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
118257         for unsigned types.
118259 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
118261         * lib/verify.h (verify_expr): Remove, replacing with:
118262         (verify_true): New macro that returns true instead of void.
118263         (verify_type__): Remove.
118264         (verify): Use verify_true rather than verify_type__.
118266 2005-09-26  Bruno Haible  <bruno@clisp.org>
118268         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
118269         is necessary.
118270         (lib_SOURCES): Remove mbchar.c.
118271         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
118272         (Files): Add m4/mbrtowc.m4.
118273         * modules/mbiter: Likewise.
118274         * modules/mbuiter: Likewise.
118276 2005-09-26  Bruno Haible  <bruno@clisp.org>
118278         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
118279         compile mbchar.c if they are not both present.
118280         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
118281         * m4/mbiter.m4 (gl_MBITER): Likewise.
118282         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
118283         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
118284         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
118286 2005-09-25  Jim Meyering  <jim@meyering.net>
118288         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
118289         also uses socklen_t.
118291 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
118293         * lib/utimens.c (ENOSYS): Define if not already defined.
118294         (futimens): Support having a null PATH if the file descriptor
118295         is nonnegative.
118297         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
118298         Remove.
118299         (__attribute): Define to empty unless GCC 3.1 or later.
118300         This works around a core dump on OpenBSD 3.4, which has GCC
118301         2.95.3, which dumps core when given __attribute__(()).  It also
118302         simplifies other tests, since we really don't want to bother with
118303         worrying about which ancient version of GCC supported what.
118304         Original problem reported by Yoann Vandoorselaere, with part of
118305         the fix suggested by Derek Price.
118307 2005-09-24  Jim Meyering  <jim@meyering.net>
118309         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
118310         so we can once again use a positive bitfield width of 1 -- now we
118311         don't have to explain why we were using a bitfield width of 2.
118313 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118315         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
118316         and similarly for the other external symbols.  Problem reported
118317         by James Gallager.
118319         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
118320         bug reported by Jim Meyering.
118322         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
118323         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
118324         not needed, since socklen is a prerequisite module.
118326 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118328         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
118329         Problem reported by Eric Blake.
118330         (getaddrinfo): Initialize se so that it's not garbage.
118331         Redo internal storage allocation so that it doesn't make unportable
118332         assumptions about alignment.
118333         Fix a memory leak.
118335         * lib/utimens.c (futimens): Use futimesat if available.
118336         Prefer it to futimes since it doesn't have the futimes bug.
118338         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
118339         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
118340         Instead, declare a function that returns a pointer to an array,
118341         and use verify_type__ to declare the size of the array.
118342         Problem and germ of a solution reported by Bruno Haible.
118343         (verify_type__): Use 2, not 1, for bitfield size, to avoid
118344         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
118346 2005-09-23  Jim Meyering  <jim@meyering.net>
118348         Sync from coreutils.
118349         Correct build failure (socklen_t not defined) on at least
118350         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
118351         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
118353 2005-09-23  Jim Meyering  <jim@meyering.net>
118355         * modules/getaddrinfo (Depends-on): Add socklen.
118357 2005-09-23  Bruno Haible  <bruno@clisp.org>
118359         * tests/test-verify.c: New file.
118361 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118363         Sync from coreutils.
118365         * modules/argmatch (Depends-on): Add verify.
118366         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
118367         unistd-safer.
118368         * modules/save-cwd (Depends-on): Likewise.
118370         * modules/openat (Files): Add lib/openat-die.c.
118371         (Depends-on): Remove error, exitfail.
118372         Add dirname.
118374         * modules/verify: New file.
118375         * MODULES.html.sh (Diagnostics <assert.h>): New section,
118376         with "verify" module.
118378 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118380         Sync from coreutils.
118382         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
118383         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
118384         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
118385         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
118386         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
118387         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
118388         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
118389         Don't bother checking for string.h, stdlib.h, unistd.h.
118390         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
118391         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
118392         module's job.
118393         * m4/jm-macros.m4 (gl_MACROS): Likewise.
118394         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
118396         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
118397         (gl_GETDATE): Use it.
118399         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
118401 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118403         Sync from coreutils.
118405         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
118406         stat-time.h.
118407         * lib/argmatch.h: Include verify.h
118408         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
118409         (ARGMATCH_ASSERT): Remove; unused.
118410         * lib/canonicalize.c: Assume STDC_HEADERS.
118411         * lib/exclude.c: Include "strcase.h".
118412         * lib/regex_internal.h [!defined _LIBC]: Likewise.
118413         * lib/getusershell.c: Include stdio--.h rather than stdio.h
118414         and stdio-safer.h.
118415         (getusershell): Call fopen, not fopen_safer.
118416         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
118417         Do not include unistd-safer.h.
118418         (save_cwd): Don't call fd_safer; no longer needed
118419         now that we include fcntl--.h.
118421         * lib/getdate.y (relative_time): New type.
118422         (RELATIVE_TIME_0): New constant.
118423         (parser_control): Use relative_time instead of doing it ourselves.
118424         (%union): Add new relative_time rel member.
118425         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
118426         Now typeless.
118427         (relunit, relunit_snumber): Now of type rel.
118428         (zone, rel, relunit, get_date): Adjust to above changes.
118430         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
118431         Do not include unistd-safer.h.
118432         (getloadavg): Don't call fd_safer; no longer needed
118433         now that we include fcntl--.h.
118435         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
118436         (make_dir_parents): Treat ENOSYS like EEXIST.
118438         Improve quality of diagnostics on restore_cwd failure.
118439         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
118440         (make_dir_parents): Last arg is now int * (for errno), not bool *.
118441         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
118442         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
118443         each time through the loop.  Do not diagnose restore_cwd failure;
118444         that is the caller's job (and perhaps the caller does not care).
118446         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
118447         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
118448         If the file already exists but is not a directory, don't bother
118449         to try to make its parents.
118450         Close potential file descriptor leak if we can't chdir("/") (!).
118451         Don't always return true if chdir($PWD) fails; return true only
118452         if the requested action was done successfully (except for the
118453         chdir($PWD)).
118454         Don't log final directory unless we actually made it.
118455         Refactor to avoid duplicate code to fix up permissions.
118456         Don't attempt to fix up parent permissions if chdir($PWD) fails.
118458         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
118459         to make it a bit faster and (I hope) clearer.
118460         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
118461         Fix bug in formats like %2N.
118463         * lib/verify.h: New file.
118465 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118467         Sync from coreutils.
118468         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
118470 2005-09-22  Jim Meyering  <jim@meyering.net>
118472         Sync from coreutils.
118474         * m4/lstat.m4 (gl_FUNC_LSTAT):
118475         Use AC_LIBSOURCES to require lstat.c and lstat.h.
118476         Remove obsolete comment.
118477         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
118478         * m4/xstrtod.m4: Likewise.
118480         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
118482 2005-09-22  Jim Meyering  <jim@meyering.net>
118484         Sync from coreutils.
118486         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
118488         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
118489         the .tm_year member, since otherwise gcc-4.0 would now warn about
118490         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
118492         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
118493         order to avoid an unsuppressible warning from gcc on 64-bit systems.
118495         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
118496         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
118497         when run in a time zone for which daylight savings time is in effect
118498         for the starting date.
118500         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
118501         stop us from restricting permissions of just-created absolute-named
118502         directories.
118503         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
118504         to restore initial working directory.
118505         * lib/mkdir-p.c (make_dir_parents): New parameter:
118506         different_working_dir, to tell caller if/when we change the working
118507         directory and are unable to return to the initial one.
118508         * lib/mkdir-p.h (make_dir_parents): Update prototype.
118509         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
118510         `return false'.  This fixes a bug introduced on 2004-07-30.
118512         * lib/openat.c (fdopendir): Be sure to close the supplied
118513         file descriptor before returning.  This makes our replacement
118514         implementation a little closer to Solaris's, where fdopendir
118515         ties the file descriptor to the returned DIR* pointer.
118516         * lib/openat.c (unlinkat): New function.
118517         * lib/openat.h (unlinkat): Add prototype.
118518         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
118519         (openat_restore_fail): Rename from openat_restore_die.
118520         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
118522         Provide an alternative to exiting immediately upon save_cwd or
118523         restore_cwd failure.  Now, an application can arrange e.g.,
118524         to perform a longjump in that case.
118525         * lib/openat.c: Include dirname.h.
118526         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
118527         (rpl_openat, fdopendir, fstatat): Call openat_save_die
118528         and openat_restore_die rather than calling error directly.
118529         Don't include "error.h" or "exitfail.h"; they're no longer needed.
118531         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
118532         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
118533         define.
118535         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
118536         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
118537                             int utc, int nanoseconds);
118538         Background:
118539         date should not have to allocate a megabyte of virtual memory to
118540         handle a format argument like +%1048575T.  When implemented with
118541         strftime, it must allocate such a buffer, use strftime to fill it
118542         in, print it, then free it.
118543         With fprintftime, it simply prints everything and exits.
118544         With no need for memory allocation, that's one fewer way to fail.
118545         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
118546         optional field width, not before, so we accept %9:z, not %:9z.
118547         (my_strftime): Be sure to use L_('x') for literals.
118549         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
118550         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
118551         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
118552         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
118553         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
118554         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
118555         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
118556         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
118557         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
118558         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
118559         * lib/xgethostname.c, lib/xreadlink.c:
118560         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
118562         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
118563         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
118564         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
118565         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118566         and don't include <sys/file.h>).
118568 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
118570         Sync from coreutils.
118572         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
118573         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
118574         [!LDAV_DONE]: Avoid unused variable warning.
118576 2005-09-21  Bruno Haible  <bruno@clisp.org>
118578         * lib/unicodeio.h (unicode_to_mb): New declaration.
118580 2005-09-20  Derek Price  <derek@ximbiot.com>
118582         * lib/getaddrinfo.c: Don't include <netdb.h> included from
118583         getaddrinfo.h.
118585 2005-09-20  Bruno Haible  <bruno@clisp.org>
118587         * gnulib-tool: Remove trailing slashes from the values specified for
118588         --source-base, --m4-base, --tests-base, --aux-dir.
118589         Suggested by Simon Josefsson <jas@extundo.com>.
118591 2005-09-20  Bruno Haible  <bruno@clisp.org>
118593         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
118594         func_modules_to_filelist, func_import, func_create_testdir): Make all
118595         sorting results locale-independent, so that gnulib-cache.m4 doesn't
118596         change when gnulib-tool is invoked in a different locale.
118598 2005-09-19  Simon Josefsson  <jas@extundo.com>
118600         * m4/socklen.m4: Fix typo.
118602 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118604         Use a consistent style for including <config.h>.
118605         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
118606         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
118607         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
118608         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
118609         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
118610         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
118611         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
118612         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
118613         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
118614         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
118615         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
118616         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
118617         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
118618         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
118619         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
118620         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
118621         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
118622         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
118623         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
118624         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
118625         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
118626         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
118627         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
118628         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
118629         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
118630         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
118631         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
118632         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
118633         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
118634         lib/xstrtoumax.c, lib/yesno.c:
118635         Standardize inclusion of config.h.
118636         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
118637         lib/inttostr.h:  Removed inclusion of config.h from header files.
118638         * lib/inttostr.c:  Adjusted in-tree users.
118639         * lib/timespec.h: Remove superfluous warning to include config.h.
118640         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
118641         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
118642         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
118643         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
118644         config.h with HAVE_CONFIG_H.
118646 2005-09-19  Jim Meyering  <jim@meyering.net>
118648         * modules/pathmax (License): Change to LGPL.
118650 2005-09-19  Derek Price  <derek@ximbiot.com>
118652         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
118654 2005-09-19  Bruno Haible  <bruno@clisp.org>
118656         * gnulib-tool (import): Provide default for --tests-base.
118658 2005-09-19  Bruno Haible  <bruno@clisp.org>
118660         * doc/quote.texi: New file, extracted from gnulib.texi.
118661         * doc/ctime.texi: New file, extracted from gnulib.texi.
118662         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
118663         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
118664         * doc/gnulib.texi: Include them.
118666 2005-09-18  Bruno Haible  <bruno@clisp.org>
118668         Portability fix.
118669         * gnulib-tool (func_readlink): New function.
118670         (func_ln_if_changed): Use it.
118672 2005-09-18  Bruno Haible  <bruno@clisp.org>
118674         * gnulib-tool: Support --with-tests also with --import.
118675         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
118676         (func_import): Use variables $testsbase and $inctests. Emit a
118677         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
118678         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
118679         SUBDIRS += $testsdir.
118680         (func_create_testdir): Update.
118682 2005-09-18  Bruno Haible  <bruno@clisp.org>
118684         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
118685         instead of $dry_run.
118686         (func_cp_if_changed, func_mv_if_changed): Remove functions.
118687         (func_ln_if_changed): Don't handle dry-run here.
118688         (func_import): In dry-run mode, detect more precisely which actions
118689         would be performed, and don't use "...ing" verbs.
118691 2005-09-18  Bruno Haible  <bruno@clisp.org>
118693         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
118694         (func_import): Use join on two temporary files instead of three nested
118695         loops, in order to determine which files are new or old.
118697 2005-09-18  Bruno Haible  <bruno@clisp.org>
118699         * gnulib-tool (func_import): Comment out code that spits out the
118700         new files with --dry-run.
118702 2005-09-18  Bruno Haible  <bruno@clisp.org>
118704         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
118706 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118708         * lib/stat-time.h: New file.
118709         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
118710         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
118711         in a different way.
118712         (timespec_cmp): New function.
118713         * lib/utimecmp.c: Include stat-time.h.
118714         (SYSCALL_RESOLUTION): Depend on whether various struct stat
118715         members exist, not on the obsolescent ST_MTIM_NSEC.
118716         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
118718 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118720         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
118722 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118724         * MODULES.html.sh (File system functions): Add stat-time.
118725         * modules/stat-time: New file.
118726         * modules/timespec (Files): Remove m4/st_mtim.m4; this
118727         is now done in a different way, by the stat-time module.
118728         * modules/utimecmp (Depends-on): Add stat-time.
118730 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
118732         * m4/st_mtim.m4: Remove.  Superseded by...
118733         * m4/stat-time.m4: New file.
118734         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
118735         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
118737 2005-09-15  Derek Price  <derek@ximbiot.com>
118739         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
118741 2005-09-15  Derek Price  <derek@ximbiot.com>
118743         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
118744         * lib/regex_internal.c: Ditto, using this...
118745         (__GNUC_PREREQ): ...new macro.
118746         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
118747         using...
118748         (__GNUC_PREREQ): ...this new macro.
118750         * lib/strstr.h: Include string.h. Define strstr as a macro here.
118752 2005-09-15  Derek Price  <derek@ximbiot.com>
118753             Paul Eggert  <eggert@cs.ucla.edu>
118755         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
118756         changes, consolidating in...
118757         * lib/regex_internal.h: ...this file.
118759 2005-09-13  Jim Meyering  <jim@meyering.net>
118761         * lib/canon-host.c: Filter through gnu indent and reword comments
118762         slightly.
118763         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
118765 2005-09-13  Derek Price  <derek@ximbiot.com>
118767         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
118768         failure.
118769         Reported by Jim Meyering  <jim@meyering.net>.
118771 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118773         * lib/base64.c: Typo.
118774         (base64_encode): Put b64str in initialized data section.
118776 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
118778         Merge glibc and coreutils changes into gnulib, plus a few
118779         extra fixes.
118780         * lib/md5.c: Use #error rather than a string.
118781         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
118782         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
118783         (__attribute__): Define to empty for non recent-GCC.
118784         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
118785         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
118786         Renamed from their non-__ counterparts, with new macros replacing
118787         them if not _LIBC.  Add __THROW attribute.
118788         (rol): Remove.
118789         (struct md5_ctx): Align buffer if using GCC.
118790         * lib/sha1.h (struct sha1_ctx): Likewise.
118791         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
118792         The old name was backwards.
118793         (NOTSWAP): Remove; not used.
118794         (rol): New macro, moved here from md5.h.
118795         (sha1_process_block): Remove a FIXME that doesn't make sense.
118797 2005-09-12  Derek Price  <derek@ximbiot.com>
118799         Return usable errors from canon-host.
118800         * lib/canon-host.h: New file.
118801         * lib/canon-host.c (canon_host): Wrap...
118802         (canon_host_r): ...this new function, which now relies exclusively on
118803         getaddrinfo.
118804         (ch_strerror): New function.
118805         (last_cherror): New global.
118806         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
118807         interface.
118808         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
118809         void *.
118810         (freeaddrinfo): Free ai->ai_canonname when set.
118812 2005-09-12  Derek Price  <derek@ximbiot.com>
118814         Make canon-host require getaddrinfo.
118815         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
118816         AC_LIBSOURCE canon-host.h.  Call...
118817         (gl_PREREQ_CANON_HOST): ...this new function, which requires
118818         gl_GETADDRINFO.
118819         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
118821 2005-09-12  Derek Price  <derek@ximbiot.com>
118823         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
118824         LGPL.
118825         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
118827 2005-09-12  Derek Price  <derek@ximbiot.com>
118829         * lib/gai_strerror.c: Include config.h when available.  Include
118830         getaddrinfo.h before other headers to test interface.
118831         Reported by Larry Jones <lawrence.jones@ugs.com>.
118833 2005-09-12  Derek Price  <derek@ximbiot.com>
118834             Paul Eggert  <eggert@cs.ucla.edu>
118836         * modules/glob (Files): Add glob-libc.h.
118838 2005-09-12  Derek Price  <derek@ximbiot.com>
118839             Paul Eggert  <eggert@cs.ucla.edu>
118841         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
118842         glob_.h, glob-libc.h.
118843         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
118845 2005-09-12  Derek Price  <derek@ximbiot.com>
118846             Paul Eggert  <eggert@cs.ucla.edu>
118848         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
118849         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
118850         protecting things that should be done only in gnulib contexts.
118851         * lib/glob_.h: New file, containing only the glob things needed for
118852         gnulib.
118853         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
118854         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
118855         (glob, globfree, glob_pattern_p): Now defined simply in terms of
118856         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
118857         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
118858         and to respect the namespace rules better.
118860 2005-09-08  Simon Josefsson  <jas@extundo.com>
118862         * modules/socklen: New file.
118864 2005-09-08  Simon Josefsson  <jas@extundo.com>
118866         * m4/socklen.m4: New file.
118868 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118870         * modules/utimens (Files): Add m4/utimbuf.m4, since
118871         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
118872         Reported by Sergey Poznyakoff.
118874 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118876         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
118877         definitions, since that's the preferred style in glibc.
118878         Fix a minor spacing issue, and update copyright notice to match
118879         glibc's.
118881 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118883         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
118885 2005-09-06  Simon Josefsson  <jas@extundo.com>
118887         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
118888         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
118890 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118892         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
118893         warning.
118895 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118897         * config/srclist.txt: Add glibc bug 1302.
118899 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
118901         Change bitset word type from unsigned int to unsigned long int,
118902         as this has better performance on typical 64-bit hosts.
118903         Port bitset code to hosts with unusual word sizes.
118904         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
118905         (build_collating_symbol):
118906         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
118907         argument is a bitset.  This is merely a style issue, but it makes
118908         it clearer that an entire array is expected.
118909         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
118910         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
118911         Port to the case where bitset_word is not the same as unsigned int.
118912         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
118913         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
118914         Likewise.
118915         * lib/regexec.c (check_dst_limits_calc_pos_1,
118916         check_subexp_matching_top):
118917         (build_trtable, group_nodes_into_DFAstates):
118918         Likewise.
118919         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
118920         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
118921         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
118922         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
118923         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
118924         * lib/regcomp.c (optimize_subexps, lower_subexp):
118925         Work even if bitset_word has holes in its bitwise representation.
118926         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
118927         * lib/regexec.c (check_dst_limits_calc_pos_1,
118928         check_subexp_matching_top):
118929         Likewise.
118930         * lib/regex_internal.c (re_string_reconstruct):
118931         Don't assume UCHAR_MAX == 255.
118932         * lib/regex_internal.h (bitset_set_all): Likewise.
118933         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
118934         All uses changed.
118935         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
118936         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
118937         All uses changed.
118938         (BITSET_WORD_MAX): New macro.
118939         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
118940         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
118941         (bitset_empty, bitset_copy):
118942         Prefer sizeof (bitset) to multiplying it out ourselves.
118943         (bitset_not_merge): Remove; unused.
118944         (bitset_contain): Return bool, not unsigned int with one bit on.
118945         All callers changed.
118946         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
118947         alignment than re_node_set; do this by defining a new internal
118948         type struct dests_alloc and using it to allocate memory.
118950 2005-09-05  Bruno Haible  <bruno@clisp.org>
118952         * gnulib-tool (func_import): Fix comparison in handling of symbolic
118953         links.
118955 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
118957         * modules/size_max (Makefile.am): Add size_max.h
118959 2005-09-04  Derek Price  <derek@ximbiot.com>
118961         * gnulib-tool (func_import): Fix reversed $symbolic logic.
118963 2005-09-03  Simon Josefsson  <jas@extundo.com>
118965         * gnulib-tool: Fix typo.
118967 2005-09-03  Simon Josefsson  <jas@extundo.com>
118969         * config/srclist.txt: Add glibc bug 1293.
118971 2005-09-03  Derek Price  <derek@ximbiot.com>
118973         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
118974         From Larry Jones <lawrence.jones@ugs.com>.
118976 2005-09-02  Simon Josefsson  <jas@extundo.com>
118978         * modules/socklen: New file.
118980 2005-09-02  Simon Josefsson  <jas@extundo.com>
118982         * modules/havelib: New module.
118984         * modules/gettext, modules/iconv, modules/lock, modules/readline:
118985         Use havelib.
118987 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
118989         Check for arithmetic overflow when calculating sizes, to prevent
118990         some buffer-overflow issues.  These patches are conservative, in the
118991         sense that when I couldn't determine whether an overflow was possible,
118992         I inserted a run-time check.
118993         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
118994         macros.
118995         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
118996         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
118997         (re_xnrealloc, re_x2nrealloc): New inline functions.
118998         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
118999         parse_bracket_exp):
119000         (build_equiv_class, build_charclass): Check for arithmetic overflow
119001         in size expression calculations.
119002         * lib/regex_internal.c (re_string_realloc_buffers):
119003         (build_wcs_upper_buffer, re_node_set_add_intersect):
119004         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
119005         (re_dfa_add_node, register_state): Likewise.
119006         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
119007         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
119008         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
119009         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
119011 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119013         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
119014         m4/ulonglong.m4.  Problem reported by Martin Lambers.
119016 2005-09-02  Bruno Haible  <bruno@clisp.org>
119018         Support for lib vs. lib64 distinction on biarch platforms.
119019         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
119020         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
119021         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
119023 2005-09-02  Bruno Haible  <bruno@clisp.org>
119025         * gnulib-tool (import): In the other first-use case, provide defaults
119026         as well.
119028 2005-09-02  Bruno Haible  <bruno@clisp.org>
119030         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
119031         patches not yet found in the latest gettext release.
119033 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119035         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
119036         to avoid a collision with bits/local_lim.h in glibc.
119037         All uses changed.  Problem reported by Dmitry V. Levin in
119038         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
119040         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
119041         bugs in int versus size_t comparisons.
119042         (re_string_context_at): Fix bug where the code assumed that
119043         Idx is signed.
119045         Use bool where appropriate.
119046         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
119047         All callers changed.
119048         (calc_eclosure_iter): Likewise, for ROOT arg.
119049         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
119050         (build_charclass_op): Likewise, for NON_MATCH arg.
119051         * lib/regex_internal.c (re_string_allocate, re_string_construct):
119052         (re_string_construct_common): Likewise, for ICASE arg.
119053         * lib/regexec.c (re_search_2_stub, re_search_stub):
119054         Likewise, for RET_LEN arg.
119055         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
119056         (set_regs): Likewise, for FL_BACKTRACK arg.
119057         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
119058         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
119059         (calc_eclosure_iter, parse_bracket_exp):
119060         Use bool for internal variables that are booleans.
119061         * lib/regexec.c (re_search_internal, check_matching,
119062         proceed_next_node):
119063         (set_regs, build_sifted_states, sift_states_bkref):
119064         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
119065         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119066         (find_collation_sequence_value):
119067         Likewise.
119068         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
119069         (re_node_set_compare):
119070         Return bool, not int. All callers changed.
119071         * lib/regexec.c (check_halt_node_context, check_dst_limits):
119072         (build_trtable, check_node_accept): Likewise.
119073         * lib/regex_internal.h: Include stdbool.h.
119075         Fix bugs uncovered when converting to bool.
119076         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
119077         failure instead of charging ahead blindly.
119078         * lib/regex_internal.c (register_state): Likewise.
119079         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
119080         for freeing internal storage.
119081         (group_nodes_into_DFA_states): Use unsigned int, not int, for
119082         bitset pieces used as boolean, to avoid undefined behavior
119083         on hosts that do int overflow checking.
119085 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119087         * config/srclist.txt: Add glibc bugs 1285-1287.
119089 2005-09-01  Jim Meyering  <jim@meyering.net>
119091         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
119092         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
119093         Require gl_STAT_MACROS, too.
119095 2005-09-01  Bruno Haible  <bruno@clisp.org>
119097         * gnulib-tool (import): In the first-use case, provide defaults.
119099 2005-09-01  Bruno Haible  <bruno@clisp.org>
119101         * gnulib-tool (func_import): Remove the .tmp files.
119103 2005-09-01  Bruno Haible  <bruno@clisp.org>
119105         * gnulib-tool (func_import): Fix handling of symbolic links.
119107 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119109         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
119110         old glibc regex code mishandles strings longer than 2**31 bytes.
119111         This patch fixes this when the regex code is used in gnulib
119112         (i.e., outside glibc).
119114         This patch should not affect the use of the regex code inside
119115         glibc.  No doubt this problem also needs to be handled for glibc
119116         as well, but the result will be an incompatible change to the
119117         glibc ABI, and the old ABI will have to be supported too.  That
119118         can be the subject for another patch.
119120         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
119121         governing whether the rest of this patch is active.  By default,
119122         the macro is disabled and the patch has no effect.
119123         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
119124         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
119125         (struct re_pattern_buffer, re_search, re_search_2, re_match):
119126         (re_match_2, re_set_registers): Use the new types.
119127         * lib/regex_internal.h (Idx, re_hashval_t): New types.
119128         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
119129         New macros.
119130         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
119131         (re_string_context_at, bin_tree_t, re_dfastate_t):
119132         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
119133         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
119134         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
119135         (re_string_char_size_at, re_string_wchar_at):
119136         (re_string_elem_size_at):
119137         Use the new types and macros to port to 64-bit hosts.
119138         Use unsigned types for internal values, so that the code
119139         mostly works even for arrays larger than SSIZE_MAX.
119140         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
119141         (search_duplicated_node, calc_eclosure_iter, fetch_number):
119142         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
119143         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
119144         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
119145         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
119146         (calc_inveclosure, parse_dup_op, build_range_exp):
119147         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
119148         (fetch_number, create_token_tree, mark_opt_subexp):
119149         Likewise.
119150         * lib/regex_internal.c (re_string_construct_common,
119151         create_ci_newstate):
119152         (create_cd_newstate, re_string_allocate, re_string_construct):
119153         (re_string_realloc_buffers, build_wcs_upper_buffer):
119154         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119155         (re_string_reconstruct, re_string_peek_byte_case):
119156         (re_string_fetch_byte_case, re_string_context_at):
119157         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119158         (re_node_set_init_copy, re_node_set_add_intersect):
119159         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119160         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119161         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119162         (re_acquire_state, re_acquire_state_context, register_state):
119163         Likewise.
119164         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
119165         search_cur_bkref_entry):
119166         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
119167         (re_search_internal, re_search_2_stub, re_search_stub)
119168         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
119169         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
119170         (update_cur_sifted_state, check_dst_limits):
119171         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119172         (check_subexp_limits, sift_states_bkref, merge_state_array):
119173         (check_subexp_matching_top, get_subexp, get_subexp_sub):
119174         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
119175         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119176         (expand_bkref_cache, check_node_accept_bytes):
119177         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
119178         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
119179         (acquire_init_state_context, check_halt_node_context):
119180         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
119181         (sift_states_backward, clean_state_log_if_needed):
119182         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
119183         (find_recover_state, transit_state_sb, transit_state_mb):
119184         (transit_state_bkref, build_trtable, match_ctx_clean):
119185         Likewise.
119186         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
119187         to work around an assumption that REG_MISSING is negative.
119189         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
119190         (seek_collating_symbol_entry) [defined _LIBC]:
119191         (lookup_collation_sequence_value) [defined _LIBC]:
119192         (build_range_exp, build_collating_symbol) [defined _LIBC]:
119193         Use prototypes rather than old-style function definitions.
119194         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
119195         (transit_state_sb) [0]:
119196         (find_collation_sequence_value) [defined _LIBC]: Likewise.
119198         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
119199         rm_eo.
119201         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
119202         (optimize_subexps, lower_subexp):
119203         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
119204         since the signed shift might overflow.  Use 1u<<31 instead.
119205         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119206         Likewise.
119207         * lib/regexec.c (check_dst_limits_calc_pos_1,
119208         check_subexp_matching_top): Likewise.
119210         * lib/regcomp.c (optimize_subexps, lower_subexp):
119211         Use CHAR_BIT rather than 8, for clarity.
119212         * lib/regexec.c (check_dst_limits_calc_pos_1):
119213         (check_subexp_matching_top): Likewise.
119214         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
119215         have to worry about portability issues when shifting it left.
119216         Remove no-longer-needed test for table_size > 0.
119217         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
119218         in a word, as the resulting behavior is undefined.
119219         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
119220         in one case, a <= should have been an <, and in another case the
119221         whole test was missing.
119222         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
119223         the standard name CHAR_BIT.
119224         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
119225         this is not true on one's complement and signed-magnitude hosts.
119227         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
119228         next_last_offset.
119229         (struct re_dfa_t): Remove unused member states_alloc.
119230         * lib/regcomp.c (init_dfa): Don't initialize unused members.
119232 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119234         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
119235         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
119236         and large-file glibc and in 32-bit large-file Solaris.
119238 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119240         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
119241         lengths fit in regoff_t; this isn't true if regoff_t is the same
119242         width as size_t.
119243         * lib/regex.c (re_search_internal): 5th arg is LAST_START
119244         (= START + RANGE) instead of RANGE.  This avoids overflow
119245         problems when regoff_t is the same width as size_t.
119246         All callers changed.
119247         (re_search_2_stub): Check for overflow when adding the
119248         sizes of the two strings.
119249         (re_search_stub): Check for overflow when adding START
119250         to RANGE; if it occurs, substitute the extreme value.
119252 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119254         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
119256 2005-08-31  Jim Meyering  <jim@meyering.net>
119258         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
119259         a pointer-to-const.
119260         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
119261         (register_state): Likewise.
119262         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
119263         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119264         (group_nodes_into_DFAstates): Likewise.
119266 2005-08-31  Jim Meyering  <jim@meyering.net>
119268         * check-module: Add a FIXME comment.
119270 2005-08-31  Eric Blake  <ebb9@byu.net>
119272         * modules/unistd-safer (Files): Add unistd--.h.
119273         * modules/stdio-safer (Files): Add stdio--.h.
119275 2005-08-31  Derek Price  <derek@ximbiot.com>
119277         * lib/getdelim.c (getdelim): Return EOF on EOF.
119278         Reported by Larry Jones <lawrence.jones@ugs.com>.
119280 2005-08-31  Bruno Haible  <bruno@clisp.org>
119282         Avoid unnecessary diffs in the generated lib/Makefile.am.
119283         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
119284         the generated files.
119285         (func_import): Don't set cmd.
119287 2005-08-31  Bruno Haible  <bruno@clisp.org>
119289         * lib/strstr.c: Include <stddef.h>, for NULL.
119290         * lib/strcasestr.c: Likewise.
119291         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119293 2005-08-31  Bruno Haible  <bruno@clisp.org>
119295         * gnulib-tool: New option --macro-prefix.
119296         (func_import): Use macro_prefix.
119297         (import): Handle option --macro-prefix.
119299 2005-08-31  Bruno Haible  <bruno@clisp.org>
119301         * gnulib-tool (import): Rename most ac_* variables to cached_*.
119302         Also use new variables cached_lgpl, cached_libtool.
119304 2005-08-31  Bruno Haible  <bruno@clisp.org>
119306         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
119307         always instantiating them.
119309 2005-08-31  Bruno Haible  <bruno@clisp.org>
119311         * gnulib-tool (func_import): Read the previous cached settings
119312         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
119313         earlier added by gnulib but are now dropped. Warn when a gnulib file
119314         overwrites a non-gnulib file.
119316 2005-08-31  Bruno Haible  <bruno@clisp.org>
119318         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
119319         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
119320         projects that don't keep autogenerated files in CVS. Put into
119321         actioncmd only the specified modules, not the transitive closure.
119323 2005-08-31  Bruno Haible  <bruno@clisp.org>
119325         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
119326         Create directories that shall be filled.
119327         (import): Don't look for gl_* macros in configure.ac. Recurse across
119328         all directories containing a gnulib-cache.m4 files, if meaningful.
119330 2005-08-31  Bruno Haible  <bruno@clisp.org>
119332         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
119333         (import): Set seen_libtool when we see gl_LIBTOOL.
119335 2005-08-31  Bruno Haible  <bruno@clisp.org>
119337         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
119338         declaration macro definitions from generated gnulib.m4.
119340 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
119342         * lib/iconvme.h: Add prototype for iconv_alloc.
119344 2005-08-29  Simon Josefsson  <jas@extundo.com>
119346         * lib/iconvme.c: Fix errno.
119348 2005-08-29  Bruno Haible  <bruno@clisp.org>
119350         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
119351         that it works when the directory contains spaces.
119353 2005-08-29  Bruno Haible  <bruno@clisp.org>
119355         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
119357 2005-08-29  Bruno Haible  <bruno@clisp.org>
119359         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
119360         Emit more advice.
119362 2005-08-29  Bruno Haible  <bruno@clisp.org>
119363         and Stepan Kasal  <kasal@ucw.cz>
119365         * check-module: If more parameters are given, check each of them
119366         separately; add more exceptions, as noted by Jim Meyering.
119367         (check_module): New procedure.
119368         (%exempt_header): Now contains all exceptions.
119370 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
119372         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
119374 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
119376         * lib/iconvme.c: Split iconv_string into iconv_alloc.
119378 2005-08-28  Bruno Haible  <bruno@clisp.org>
119380         * m4/gnulib-tool.m4: New file.
119382 2005-08-27  Jim Meyering  <jim@meyering.net>
119384         * modules/unistd-safer (Files): Add pipe-safer.c.
119385         * modules/fcntl-safer (Files): Add creat-safer.c.
119387 2005-08-27  Jim Meyering  <jim@meyering.net>
119389         * m4/stdlib-safer.m4: New file.  From coreutils.
119390         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
119391         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
119392         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
119393         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
119394         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
119396 2005-08-27  Jim Meyering  <jim@meyering.net>
119398         * lib/fopen-safer.c: Merge minor changes from coreutils.
119399         * lib/dup-safer.c: Likewise.
119400         * lib/fd-safer.c: Likewise.
119402         Merge from coreutils.
119403         * lib/stdio--.h: New file.
119404         * lib/stdlib--.h: New file.
119405         * lib/mkstemp-safer.c: New file.
119407         GNU tar needs these.
119408         * lib/pipe-safer.c: New file.
119409         * lib/creat-safer.c: New file.
119410         * lib/fcntl--.h (creat): Define to creat_safer.
119411         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
119412         * lib/unistd--.h (pipe): Define to pipe_safer.
119413         * lib/unistd-safer.h: Declare pipe_safer.
119415 2005-08-26  Simon Josefsson  <jas@extundo.com>
119417         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
119418         Haible <bruno@clisp.org>.
119420 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
119422         * lib/regex_internal.h: Remove all references to
119423         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
119424         or better.
119425         (bitset_not, bitset_merge, bitset_not_merge):
119426         (bitset_mask, re_string_allocate, re_string_construct):
119427         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
119428         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
119429         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
119430         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
119431         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119432         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119433         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
119434         (re_acquire_state_context):
119435         Remove unnecessary forward decls.
119436         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
119437         Put __attribute at function definition,
119438         now that the function decl has been removed.
119439         * lib/regex_internal.c (re_string_peek_byte_case):
119440         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
119441         Likewise.
119443 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
119445         * m4/regex.m4: Add AC_PREREQ(2.50).
119446         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
119448 2005-08-25  Simon Josefsson  <jas@extundo.com>
119450         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
119451         __fsetlocking.
119453 2005-08-25  Simon Josefsson  <jas@extundo.com>
119455         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
119456         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
119457         GLIBC specific code.
119459 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119461         Make regex safe for g++.  This fixes one real bug (an "err"
119462         that should have been "*err").  g++ problem reported by
119463         Sam Steingold.
119464         * lib/regex_internal.h (re_calloc): New macro, consistent with
119465         re_malloc etc.  All callers of calloc changed to use re_calloc.
119466         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
119467         not int.  All callers changed.
119468         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
119469         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
119470         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
119471         (find_recover_state): Change "err" to "*err"; this fixes what
119472         appears to be a real bug.
119473         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
119474         versus int.
119476 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119478         * modules/regex (Depends-on): Add malloc, since the code
119479         assumes that !malloc(0) means failure.
119481 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119483         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
119485         alloca modernization/simplification for regex.
119486         * lib/regex.c: Remove portability cruft for alloca.  This no longer
119487         needs to be at the start of the file, and can be moved into
119488         regex_internal.h and simplified.
119489         * lib/regex_internal.h: Include <alloca.h>.
119490         (__libc_use_alloca) [!defined _LIBC]: New macro.
119491         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
119492         now works outside glibc.
119494 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119496         * config/srclist.txt: Add glibc bugs 1241, 1245.
119498 2005-08-25  Jim Meyering  <jim@meyering.net>
119500         * lib/open-safer.c: Include <config.h>.
119501         Otherwise, we'd lose LARGEFILE support in any file using
119502         e.g. "fcntl--.h"
119504 2005-08-25  Bruno Haible  <bruno@clisp.org>
119506         * m4/minmax.m4: Require autoconf 2.52.
119507         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
119508         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
119509         alternatives of translit over the alphabet.
119510         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
119512 2005-08-24  Simon Josefsson  <jas@extundo.com>
119514         * tests/test-getpass.c: New file.
119516 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119518         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
119519         for GNU regex features.
119521 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119523         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
119524         * lib/regex.h (regerror): Likewise.
119526         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
119527         requires this.  (The code never needed it.)
119529         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
119530         All uses of recently-renamed identifiers changed to use the new,
119531         POSIX-compliant names.  The code will build and run just fine
119532         without these changes, but it's better to eat our own dog food
119533         and use the standard-conforming names.
119535         * lib/regex.h: Fix a multitude of POSIX name space violations.
119536         These changes have an effect only for programs that define
119537         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
119538         do not change anything for programs compiled in the normal way.
119539         Also, there is no effect on the ABI.
119541         (_REGEX_SOURCE): New macro.
119542         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
119543         defined and _GNU_SOURCE is not; this fixes a name space violation.
119545         Rename the following macros to obey POSIX requirements.
119546         The old names are still visible as macros if _REGEX_SOURCE is defined.
119547         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
119548         RE_BACKSLASH_ESCAPE_IN_LISTS.
119549         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
119550         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
119551         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
119552         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
119553         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
119554         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
119555         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
119556         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
119557         (REG_INTERVALS): renamed from RE_INTERVALS.
119558         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
119559         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
119560         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
119561         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
119562         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
119563         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
119564         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
119565         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
119566         RE_UNMATCHED_RIGHT_PAREN_ORD.
119567         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
119568         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
119569         (REG_DEBUG): renamed from RE_DEBUG.
119570         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
119571         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
119572         unusual, since we can't clash with the POSIX REG_ICASE.
119573         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
119574         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
119575         (REG_NO_SUB): renamed from RE_NO_SUB.
119576         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
119577         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
119578         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
119579         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
119580         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
119581         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
119582         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
119583         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
119584         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
119585         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
119586         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
119587         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
119588         RE_SYNTAX_POSIX_MINIMAL_BASIC.
119589         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
119590         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
119591         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
119592         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
119593         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
119594         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
119595         (REG_FIXED): Renamed from REGS_FIXED.
119596         (REG_NREGS): Renamed from RE_NREGS.
119598         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
119599         of other REG_* macros, since POSIX says the user is allowed to
119600         #undef these macros selectively.
119602         (reg_errcode_t): Update comment stating what other tables need
119603         to be consistent.
119605         Rename the following enum values to obey POSIX requirements.
119606         The old names are still visible as macros.
119607         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
119608         is not defined, since GNU is supposed to be a superset of POSIX as
119609         much as possible, and since we want reg_errcode_t to be a signed
119610         type for implementation consistency.
119611         (_REG_NOERROR): Renamed from REG_NOERROR.
119612         (_REG_NOMATCH): Renamed from REG_NOMATCH.
119613         (_REG_BADPAT): Renamed from REG_BADPAT.
119614         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
119615         (_REG_ECTYPE): Renamed from REG_ECTYPE.
119616         (_REG_EESCAPE): Renamed from REG_EESCAPE.
119617         (_REG_ESUBREG): Renamed from REG_ESUBREG.
119618         (_REG_EBRACK): Renamed from REG_EBRACK.
119619         (_REG_EPAREN): Renamed from REG_EPAREN.
119620         (_REG_EBRACE): Renamed from REG_EBRACE.
119621         (_REG_BADBR): Renamed from REG_BADBR.
119622         (_REG_ERANGE): Renamed from REG_ERANGE.
119623         (_REG_ESPACE): Renamed from REG_ESPACE.
119624         (_REG_BADRPT): Renamed from REG_BADRPT.
119625         (_REG_EEND): Renamed from REG_EEND.
119626         (_REG_ESIZE): Renamed from REG_ESIZE.
119627         (_REG_ERPAREN): Renamed from REG_ERPAREN.
119628         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
119629         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
119630         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
119631         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
119633         (_REG_RE_NAME, _REG_RM_NAME): New macros.
119634         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
119635         changed.  But support the old name if the new one is not defined
119636         and if _REGEX_SOURCE.
119638         Change the following member names in struct re_pattern_buffer.
119639         The old names are still supported if !_REGEX_SOURCE.
119640         The new names are always supported, regardless of _REGEX_SOURCE.
119641         (re_buffer): Renamed from buffer.
119642         (re_allocated): Renamed from allocated.
119643         (re_used): Renamed from used.
119644         (re_syntax): Renamed from syntax.
119645         (re_fastmap): Renamed from fastmap.
119646         (re_translate): Renamed from translate.
119647         (re_can_be_null): Renamed from can_be_null.
119648         (re_regs_allocated): Renamed from regs_allocated.
119649         (re_fastmap_accurate): Renamed from fastmap_accurate.
119650         (re_no_sub): Renamed from no_sub.
119651         (re_not_bol): Renamed from not_bol.
119652         (re_not_eol): Renamed from not_eol.
119653         (re_newline_anchor): Renamed from newline_anchor.
119655         Change the following member names in struct re_registers.
119656         The old names are still supported if !_REGEX_SOURCE.
119657         The new names are always supported, regardless of _REGEX_SOURCE.
119658         (rm_num_regs): Renamed from num_regs.
119659         (rm_start): Renamed from start.
119660         (rm_end): Renamed from end.
119662         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
119663         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
119664         Prepend __ to parameter names.
119666         Undo yesterday's changes.
119668 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119670         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
119671         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
119672         lib/regex.c.
119674 2005-08-24  Jim Meyering  <jim@meyering.net>
119676         Sync from coreutils.
119677         * m4/fcntl-safer.m4: New file.
119679         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
119680         and object files for this module.
119682 2005-08-24  Jim Meyering  <jim@meyering.net>
119684         Sync from coreutils.
119685         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
119687 2005-08-24  Jim Meyering  <jim@meyering.net>
119689         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
119690         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
119692 2005-08-24  Jim Meyering  <jim@meyering.net>
119694         * modules/fcntl-safer: New module.
119695         * modules/fts (Depends-on): Add fcntl-safer.
119696         * MODULES.html.sh (File descriptor based Input/Output):
119697         Add fcntl-safer.
119699 2005-08-24  Bruno Haible  <bruno@clisp.org>
119701         Support for unit test modules.
119702         * modules/README: Mention tests modules.
119703         * modules/TEMPLATE-TESTS: New file.
119704         * gnulib-tool: New options --extract-tests-module, --with-tests and
119705         --tests-base (unused for the moment).
119706         (testsbase, inctests): New variables.
119707         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
119708         (func_verify_module): Exclude TEMPLATE-TESTS.
119709         (func_verify_nontests_module, func_verify_tests_module): New functions.
119710         (func_get_dependencies): Add implicit dependency for tests modules.
119711         (func_get_tests_module): New function.
119712         (func_modules_transitive_closure): When --with-tests was specified,
119713         include the unit tests as well, unless explicitly avoided.
119714         (func_emit_lib_Makefile_am): Ignore the tests modules here.
119715         (func_emit_tests_Makefile_am): New function.
119716         (func_create_testdir): When --with-tests was specified, emit a
119717         tests/ directory.
119718         * MODULES.html.sh (Future developments): Update.
119720 2005-08-24  Bruno Haible  <bruno@clisp.org>
119722         * modules/tls-tests: New file.
119723         * tests/test-tls.c: New file, from GNU gettext.
119725 2005-08-24  Bruno Haible  <bruno@clisp.org>
119727         * modules/lock-tests: New file.
119728         * tests/test-lock.c: New file, from GNU gettext.
119730 2005-08-24  Bruno Haible  <bruno@clisp.org>
119732         * lib/lock.h: Add multiple inclusion guard.
119733         * lib/tls.h: Add multiple inclusion guard.
119735 2005-08-24  Bruno Haible  <bruno@clisp.org>
119737         * gnulib-tool: Add support for the --aux-dir option to
119738         --create-testdir, --create-megatestdir, --test, --megatest.
119739         (func_create_testdir, func_create_megatestdir): Optionally emit a
119740         AC_CONFIG_AUX_DIR directive.
119741         (create-testdir, create-megatestdir, test, megatest): Provide a
119742         default value for $auxdir.
119744 2005-08-24  Bruno Haible  <bruno@clisp.org>
119746         * gnulib-tool (import): Use compound statement instead of subshell
119747         where possible.
119749 2005-08-24  Bruno Haible  <bruno@clisp.org>
119751         * gnulib-tool (import): Change --aux-dir default to "build-aux".
119753 2005-08-24  Bruno Haible  <bruno@clisp.org>
119755         * gnulib-tool (func_version): Update.
119757 2005-08-24  Bruno Haible  <bruno@clisp.org>
119759         * gnulib-tool (func_import, func_create_testdir,
119760         func_create_megatestdir): Quote all autoconf macro arguments.
119762 2005-08-24  Bruno Haible  <bruno@clisp.org>
119764         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
119765         option --force, because --force causes the aclocal.m4 of each
119766         subdirectory to be newer than the corresponding config.h.in.
119768 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119770         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
119771         All contents moved to gl_REGEX.
119772         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
119773         assume that it does.
119775 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119777         * lib/regex.h (REG_NOSYS)
119778         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
119779         Define, since POSIX requires it as of 2001.
119780         (_REG_ENOSYS)
119781         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
119782         New private symbol, used to keep the enum signed in all cases.
119783         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
119784         Youngman in
119785         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
119787         * lib/regex_internal.c (re_string_skip_chars, register_state):
119788         (calc_state_hash):
119789         Remove forward decls; no longer needed now that we use prototypes.
119790         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
119791         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
119792         (clean_state_log_if_needed): Likewise.
119794 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119796         * config/srclist.txt: Add glibc bugs 1231-1233.
119798 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119800         Fix problems reported by Sam Steingold in
119801         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
119802         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
119803         assumed that reg_errcode_t is a signed type, which is not
119804         necessarily true if _XOPEN_SOURCE is not defined.
119805         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
119806         since some compilers warn about it otherwise.
119808 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119810         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
119811         (init_word_char, create_initial_state, duplicate_node_closure):
119812         (fetch_token, peek_token_bracket, build_range_exp):
119813         (build_collating_symbol): Remove forward decls; no longer needed
119814         now that we use prototypes.
119816         * lib/regcomp.c:
119817         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
119818         (re_compile_fastmap_iter, regcomp, regerror, regfree):
119819         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
119820         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
119821         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
119822         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
119823         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
119824         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
119825         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
119826         (build_range_exp, build_collating_symbol, parse_bracket_exp):
119827         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
119828         (build_charclass, build_charclass_op, fetch_number, create_tree):
119829         (create_token_tree, mark_opt_subexp, duplicate_tree):
119830         Use prototypes rather than old-style definitions.
119832         * lib/regex_internal.c:
119833         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
119834         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
119835         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119836         (re_string_reconstruct, re_string_peek_byte_case):
119837         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
119838         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119839         (re_node_set_init_copy, re_node_set_add_intersect):
119840         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119841         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119842         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119843         (re_acquire_state, re_acquire_state_context, register_state):
119844         (create_ci_newstate, create_cd_newstate, free_state):
119845         Likewise.
119846         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
119847         re_search_2):
119848         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
119849         (re_search_internal, prune_impossible_nodes):
119850         (acquire_init_state_context, check_matching, static):
119851         (check_halt_node_context, check_halt_state_context, proceed_next_node):
119852         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
119853         (update_regs, sift_states_backward, build_sifted_states):
119854         (clean_state_log_if_needed, merge_state_array):
119855         (update_cur_sifted_state, add_epsilon_src_nodes):
119856         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
119857         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
119858         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
119859         (find_recover_state, check_subexp_matching_top, transit_state_mb):
119860         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
119861         (check_arrival, check_arrival_add_next_nodes):
119862         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119863         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119864         (check_node_accept_bytes, check_node_accept, extend_buffers):
119865         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
119866         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
119867         (sift_ctx_init):
119868         Likewise.
119870         * lib/regex_internal.h:
119871         (re_string_allocate, re_string_construct, re_string_reconstruct):
119872         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
119873         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
119874         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
119875         (re_string_context_at, re_string_peek_byte_case):
119876         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
119877         is defined, since we now use prototypes always.
119879         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
119880         C89 or better.  All uses removed.
119882 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119884         * config/srclist.txt: Add glibc bugs 1220-1227.
119886 2005-08-20  Jim Meyering  <jim@meyering.net>
119888         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
119889         of unused local, dfa.
119891 2005-08-20  Bruno Haible  <bruno@clisp.org>
119893         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
119895 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119897         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
119898         (re_node_set_insert_last, re_dfa_add_node):
119899         Rename local variables to avoid GCC shadowing warnings.
119901 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119903         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
119904         [defined lint]: Suppress bogus uninitialized-variable warnings.
119906         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
119907         and let the caller return REG_ESPACE if out of space.  This
119908         removes an uninitialied-variable warning with GCC 4.0.1, and also
119909         avoids taking the address of a local variable.  All callers
119910         changed.
119912 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119914         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
119915         $LIBCSRC/posix/regexec.c.
119916         Add glibc bug 1217 for regcomp.c.
119918 2005-08-19  Jim Meyering  <jim@meyering.net>
119920         * lib/regexec.c (proceed_next_node): Redo local variables to
119921         avoid GCC shadowing warnings.
119923 2005-08-18  Bruno Haible  <bruno@clisp.org>
119925         * lib/strstr.c (strstr): Fix return value in multibyte case.
119926         * lib/strcasestr.c (strcasestr): Likewise.
119928 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
119930         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
119932 2005-08-17  Jim Meyering  <jim@meyering.net>
119934         Make the %s format (seconds since the epoch) work for a negative
119935         number and when used with a zero-padded field width, e.g. %015s.
119937         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
119938         label so that it precedes the code to set `digits'.  Otherwise,
119939         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
119940         print `00-22'.  Now, it prints `-0022', as it should.
119942 2005-08-17  Bruno Haible  <bruno@clisp.org>
119944         * modules/strstr (Files): Add m4/mbrtowc.m4.
119945         (Depends-on): Add mbuiter.
119947 2005-08-17  Bruno Haible  <bruno@clisp.org>
119949         * modules/strcasestr: New file.
119950         * MODULES.html.sh (String handling, based on ANSI C 89): Add
119951         strcasestr.
119953 2005-08-17  Bruno Haible  <bruno@clisp.org>
119955         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
119957 2005-08-17  Bruno Haible  <bruno@clisp.org>
119959         * modules/mbuiter: New file.
119960         * MODULES.html.sh (Extended multibyte and wide character utilities):
119961         Add mbuiter.
119963 2005-08-17  Bruno Haible  <bruno@clisp.org>
119965         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
119966         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
119968 2005-08-17  Bruno Haible  <bruno@clisp.org>
119970         * m4/strcasestr.m4: New file.
119972 2005-08-17  Bruno Haible  <bruno@clisp.org>
119974         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
119975         * lib/strstr.c: Completely rewritten, with multibyte locale support.
119977 2005-08-17  Bruno Haible  <bruno@clisp.org>
119979         * lib/strcasestr.h: New file.
119980         * lib/strcasestr.c: New file.
119982 2005-08-17  Bruno Haible  <bruno@clisp.org>
119984         * lib/strcasecmp.c: Use mbuiter.h.
119986 2005-08-17  Bruno Haible  <bruno@clisp.org>
119988         * lib/mbuiter.h: New file.
119990 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
119992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
119993         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
119994         and gl_GETOPT are both invoked via different paths (as happens
119995         with GNU tar CVS because it uses both argp and getopt), the former
119996         wins.
119998 2005-08-16  Bruno Haible  <bruno@clisp.org>
120000         * modules/tls: New file.
120001         * MODULES.html.sh (Multithreading): Add tls.
120003 2005-08-16  Bruno Haible  <bruno@clisp.org>
120005         * modules/strnlen1: New file.
120006         * MODULES.html.sh (String handling): Add strnlen1.
120008 2005-08-16  Bruno Haible  <bruno@clisp.org>
120010         * modules/strcase (Files): Add m4/mbrtowc.m4.
120011         (Depends-on): Add strnlen1, mbchar.
120013 2005-08-16  Bruno Haible  <bruno@clisp.org>
120015         * modules/mbiter: New file.
120016         * MODULES.html.sh (Extended multibyte and wide character utilities):
120017         Add mbiter.
120019 2005-08-16  Bruno Haible  <bruno@clisp.org>
120021         * modules/mbfile: New file.
120022         * MODULES.html.sh (Extended multibyte and wide character utilities):
120023         Add mbfile.
120025 2005-08-16  Bruno Haible  <bruno@clisp.org>
120027         * modules/mbchar: New file.
120028         * MODULES.html.sh (Extended multibyte and wide character utilities):
120029         New section.
120031 2005-08-16  Bruno Haible  <bruno@clisp.org>
120033         * m4/tls.m4: New file, from GNU gettext.
120035 2005-08-16  Bruno Haible  <bruno@clisp.org>
120037         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
120038         always.
120039         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
120041 2005-08-16  Bruno Haible  <bruno@clisp.org>
120043         * m4/mbiter.m4: New file.
120045 2005-08-16  Bruno Haible  <bruno@clisp.org>
120047         * m4/mbfile.m4: New file.
120049 2005-08-16  Bruno Haible  <bruno@clisp.org>
120051         * m4/mbchar.m4: New file.
120053 2005-08-16  Bruno Haible  <bruno@clisp.org>
120055         * lib/tls.h: New file, from GNU gettext.
120056         * lib/tls.c: New file, from GNU gettext.
120058 2005-08-16  Bruno Haible  <bruno@clisp.org>
120060         * lib/strnlen1.h: New file.
120061         * lib/strnlen1.c: New file.
120063 2005-08-16  Bruno Haible  <bruno@clisp.org>
120065         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
120066         (mbi_init): Update.
120067         (mbi_avail, mbi_advance): Let the iteration end before the terminating
120068         NUL byte, not after it.
120070 2005-08-16  Bruno Haible  <bruno@clisp.org>
120072         * lib/strcase.h (strcasecmp): Add note in comments.
120073         * lib/strncasecmp.c: Use code from strcasecmp.c.
120074         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
120075         (strcasecmp): Work correctly in multibyte locales.
120077 2005-08-16  Bruno Haible  <bruno@clisp.org>
120079         * lib/mbiter.h: New file.
120081 2005-08-16  Bruno Haible  <bruno@clisp.org>
120083         * lib/mbfile.h: New file.
120085 2005-08-16  Bruno Haible  <bruno@clisp.org>
120087         * lib/mbchar.h: New file.
120088         * lib/mbchar.c: New file.
120090 2005-08-16  Bruno Haible  <bruno@clisp.org>
120092         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
120093         the valid ones. Makes the comparison operations transitive:
120094         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
120095         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
120097 2005-08-15  Simon Josefsson  <jas@extundo.com>
120099         * modules/ssize_t (License): Change to 'unlimited'.
120101         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
120103 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
120105         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
120106         Add comments for each pending glibc patch.
120108 2005-08-15  Bruno Haible  <bruno@clisp.org>
120110         * lib/regex.h (__restrict_arr): Don't define to __restrict if
120111         __cplusplus is defined.
120113 2005-08-14  Jim Meyering  <jim@meyering.net>
120115         Sync from coreutils.
120117         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
120118         Use the hash-table-based cycle-detection code not just when
120119         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
120120         Reported by James Youngman in
120121         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
120122         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
120123         FTS_TIGHT_CYCLE_CHECK.
120124         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
120125         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
120126         once again.
120127         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
120128         * lib/fts.c (fd_safer): Remove decl.
120129         Include fcntl--.h rather than unistd-safer.h
120130         (fts_safe_changedir): Don't call fd_safer; no longer needed
120131         now that we include fcntl--.h.
120133 2005-08-12  Simon Josefsson  <jas@extundo.com>
120135         * modules/getndelim2: Use ssize_t module.
120136         * modules/getnline: Likewise.
120137         * modules/safe-read: Likewise.
120138         * modules/xreadlink: Likewise.
120140         * modules/ssize_t: New file.
120142 2005-08-12  Simon Josefsson  <jas@extundo.com>
120144         * m4/readline.m4: Look for termcap, curses or ncurses if required.
120146 2005-08-12  Simon Josefsson  <jas@extundo.com>
120148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120149         ssize_t.
120151 2005-08-12  Simon Josefsson  <jas@extundo.com>
120153         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
120154         readline, getdelim and check_version.
120155         (Support for systems lacking ISO C 99: Sizes of integer types):
120156         Add size_max.
120158 2005-08-12  Bruno Haible  <bruno@clisp.org>
120160         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
120162 2005-08-11  Simon Josefsson  <jas@extundo.com>
120164         * modules/readline: New file.
120166         * modules/strnlen (Files): Add strnlen.h.
120168 2005-08-11  Simon Josefsson  <jas@extundo.com>
120170         * m4/readline.m4: New file.
120172 2005-08-11  Simon Josefsson  <jas@extundo.com>
120174         * lib/readline.h, readline.c: New file.
120176 2005-08-11  Simon Josefsson  <jas@extundo.com>
120178         * doc/gnulib.texi (Initial import, Finishing touches): Mention
120179         gl_AVOID.
120181 2005-08-11  Bruno Haible  <bruno@clisp.org>
120183         * lib/strnlen.h (strnlen): Change parameter name to match comment.
120185 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
120187         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
120189 2005-08-10  Simon Josefsson  <jas@extundo.com>
120191         * tests/test-iconvme.c: New file.
120193 2005-08-10  Simon Josefsson  <jas@extundo.com>
120195         * m4/strnlen.m4: New file.
120197         * m4/strndup.m4: Don't check for strnlen declaration, done in
120198         strnlen.m4.
120200 2005-08-10  Simon Josefsson  <jas@extundo.com>
120202         * lib/strndup.c: Use strnlen.h.
120204         * lib/strnlen.h: New file.
120206 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120208         * README: Typos.
120210 2005-08-02  Simon Josefsson  <jas@extundo.com>
120212         * modules/readline: New file.
120214 2005-08-02  Simon Josefsson  <jas@extundo.com>
120216         * modules/getdelim: New file.
120218         * modules/getline: Rewrite, don't use getndelim2.
120220 2005-08-02  Simon Josefsson  <jas@extundo.com>
120222         * m4/getline.m4: Separate out getdelim stuff into separate module.
120224         * m4/getdelim.m4: New file.
120226 2005-08-02  Simon Josefsson  <jas@extundo.com>
120228         * lib/getline.h, getline.c: Rewrite.
120230         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
120232 2005-07-31  Bruno Haible  <bruno@clisp.org>
120234         * lib/lock.h (gl_lock_initializer): New macro.
120235         (gl_lock_define_initialized): Use it.
120236         (gl_rwlock_initializer): New macro.
120237         (gl_rwlock_define_initialized): Use it.
120238         (gl_recursive_lock_initializer): New macro.
120239         (gl_recursive_lock_define_initialized): Use it.
120241 2005-07-30  Karl Berry  <karl@gnu.org>
120243         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
120244         Report from Ben Pfaff, regarding getopt.
120246 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
120248         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
120249         normal way.
120250         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
120251         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
120252         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
120253         (gl_GETOPT): Use the new macros.  Most of the implementation
120254         is moved to the new macros.  This is for programs like Emacs
120255         that don't want all the functionality of gl_GETOPT.
120257 2005-07-26  Bruno Haible  <bruno@clisp.org>
120259         * m4/lock.m4: Update from GNU gettext.
120261 2005-07-26  Bruno Haible  <bruno@clisp.org>
120263         * lib/lock.h: Update from GNU gettext.
120264         * lib/lock.c: Update from GNU gettext.
120266 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
120268         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
120269         obsolescent AC_TRY_RUN.  Include the default includes files, for
120270         'exit'.
120272 2005-07-24  Bruno Haible  <bruno@clisp.org>
120274         * modules/visibility: New file.
120275         * MODULES.html.sh (Misc): Add visibility.
120277 2005-07-24  Bruno Haible  <bruno@clisp.org>
120279         * m4/visibility.m4: New file.
120281 2005-07-24  Bruno Haible  <bruno@clisp.org>
120283         * doc/visibility.texi: New file.
120285 2005-07-22  Bruno Haible  <bruno@clisp.org>
120287         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
120288         $(ALLOCA_H), redundant through BUILT_SOURCES.
120289         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
120290         redundant through BUILT_SOURCES.
120291         * modules/byteswap (Makefile.am): Remove explicit dependency on
120292         $(BYTESWAP_H), redundant through BUILT_SOURCES.
120293         * modules/fnmatch (Makefile.am): Remove explicit dependency on
120294         $(FNMATCH_H), redundant through BUILT_SOURCES.
120295         * modules/getopt (Makefile.am): Remove explicit dependency on
120296         $(GETOPT_H), redundant through BUILT_SOURCES.
120297         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
120298         redundant through BUILT_SOURCES.
120299         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
120300         redundant through BUILT_SOURCES.
120301         * modules/stdbool (Makefile.am): Remove explicit dependency on
120302         $(STDBOOL_H), redundant through BUILT_SOURCES.
120303         * modules/stdint (Makefile.am): Remove explicit dependency on
120304         $(STDINT_H), redundant through BUILT_SOURCES.
120305         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
120306         Remove explicit dependency on $(SYSEXITS_H).
120307         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
120309 2005-07-18  Simon Josefsson  <jas@extundo.com>
120311         * lib/check-version.c (check_version): Accept identical versions too.
120313 2005-07-18  Bruno Haible  <bruno@clisp.org>
120315         * modules/lock: New file.
120316         * MODULES.html.sh (Multithreading): New section.
120318 2005-07-18  Bruno Haible  <bruno@clisp.org>
120320         * m4/lock.m4: New file, from GNU gettext.
120322 2005-07-18  Bruno Haible  <bruno@clisp.org>
120324         * lib/lock.h: New file, from GNU gettext.
120325         * lib/lock.c: New file, from GNU gettext.
120327 2005-07-18  Bruno Haible  <bruno@clisp.org>
120329         * lib/lock.h (gl_once_t): New type.
120330         (gl_once_define, gl_once): New macros.
120331         * lib/lock.c (fresh_once): New variable.
120332         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
120333         functions.
120335 2005-07-16  Simon Josefsson  <jas@extundo.com>
120337         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
120338         workaround, suggested by Bruno.
120340 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120342         * modules/xalloc (Depends-on): Add xalloc-die.
120343         * modules/xvasprintf (Depends-on): Add xalloc-die.
120345 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120347         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
120348         with a minor change.
120350 2005-07-15  Bruno Haible  <bruno@clisp.org>
120352         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
120353         When using lib/poll.c, define poll as rpl_poll.
120355 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
120357         * modules/argp (Depends-on): Remove unlocked-io.
120359 2005-07-14  Derek Price  <derek@ximbiot.com>
120361         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
120362         for glob symlink bug.
120364 2005-07-14  Bruno Haible  <bruno@clisp.org>
120366         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
120367         Instead, test for *_unlocked function declarations directly.
120369 2005-07-11  Simon Josefsson  <jas@extundo.com>
120371         * modules/size_max: New file.
120373         * modules/xsize: Depend on size_max module for size_max.m4.
120375 2005-07-11  Simon Josefsson  <jas@extundo.com>
120377         * lib/size_max.h: New file.
120379 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
120381         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
120382         copyright symbol and the year.
120383         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
120384         (version_etc_va): Use parameterized copyright notice.
120385         Reword to conform to the current GNU coding standards.
120387 2005-07-11  Karl Berry  <karl@gnu.org>
120389         * doc/gnulib.texi (Quoting): new node.
120390         (Initial import): more info, from Patrice.
120392 2005-07-11  Bruno Haible  <bruno@clisp.org>
120394         * gnulib-tool (func_usage): Document option --avoid.
120395         (Command line options): Handle --avoid.
120396         (func_acceptable): New function.
120397         (func_modules_transitive_closure): Use it.
120399 2005-07-11  Bruno Haible  <bruno@clisp.org>
120401         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
120402         Reported by Jim Meyering.
120404 2005-07-10  Bruno Haible  <bruno@clisp.org>
120406         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
120407         Needed when size_t is smaller than 'unsigned int'.
120408         Reported by Paul Eggert.
120410 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120412         * modules/argp (Depends-on): Add unlocked-io
120414 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120416         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
120417         block of defines.
120419 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
120421         * config/srclist.txt: Comment out regcomp.c, since we have a porting
120422         fix now.
120424 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
120425         and Paul Eggert  <eggert@cs.ucla.edu>
120427         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
120428         in wint_t, not wchar_t.  Remove now-unnecessary cast.
120430 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120432         * modules/regex (Files): Add lib/regex_internal.c,
120433         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
120434         (Depends-on): Add extensions.
120435         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
120437 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120439         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
120440         pathconf.
120441         * m4/same.m4 (gl_SAME): Likewise.
120442         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
120444         * m4/regex.m4: Adjust to new libc regex implementation.
120445         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
120446         all the .c and .h parts of (the new) regex.
120447         Quote the m4 stuff better.
120448         Check for RE_ICASE bug of old gnulib.
120449         Check for REG_STARTEND of recent libc.
120450         Rename local variables from jm_* to gl_*.
120451         Quote operand of "test -f".
120452         Say "recent enough" version of libc, not "version 2".
120453         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
120454         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
120455         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
120456         Remove check for btowc, isascii.
120457         Require AM_LANGINFO_CODESET.
120459 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120461         * lib/regex.c, regex.h: Sync from libc.
120462         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
120463         * lib/regexec.c:
120464         New files, synced from libc, except that regex_internal.h
120465         currently has a small porting fix.
120467 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120469         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
120470         regex_internal.c, regexec.c.
120471         Add regex_internal.h too, but as a comment, since the libc version
120472         is currently broken in gnulib mode.
120474 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
120476         Support programs like Emacs that use gnulib but not gettext.
120477         * MODULES.html.sh (Internationalization functions): Add gettext-h.
120478         * modules/gettext-h: New file.
120479         * modules/gettext (Files): Remove lib/gettext.h.
120480         (Depends-on): Add gettext-h.
120481         (Makefile.am): Remove lib_SOURCES.
120482         * modules/argmatch, modules/c-stack, modules/closeout:
120483         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
120484         * modules/execute, modules/file-type, modules/getaddrinfo:
120485         * modules/getopt, modules/human, modules/javacomp:
120486         * modules/javaexec, modules/mkdir-p, modules/obstack:
120487         * modules/openat, modules/pagealign_alloc, modules/pipe:
120488         * modules/quotearg, modules/regex, modules/rpmatch:
120489         * modules/unicodeio, modules/userspec, modules/version-etc:
120490         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
120491         * modules/xsetenv:
120492         Depend on gettext-h, not gettext.
120494 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
120496         * gnulib-tool (func_import): Add support for 'public domain' license.
120497         * modules/alloca, modules/atexit, modules/memmove:
120498         Now public domain, not GPL.
120499         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
120500         * modules/realloc, modules/strerror, modules/strtod:
120501         Now LGPL, not GPL.
120503 2005-07-05  Bruno Haible  <bruno@clisp.org>
120505         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
120506         autoconf CVS. Needed for mingw.
120508 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120510         Remove the dependency of the strftime module on the tzset module.
120511         * modules/strftime (Depends-on): Remove dependency on tzset.
120513 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120515         Remove the dependency of the strftime module on the tzset module.
120516         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
120517         gl_FUNC_TZSET_CLOBBER.
120519 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120521         Remove the dependency of the strftime module on the tzset module.
120522         * lib/strftime.c (my_strftime)
120523         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
120524         Copy the input structure, to work around some of the bug with
120525         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
120526         Solaris releases, you should also use the tzset module, but we won't
120527         require it as a dependency any more since we don't want LGPLed code
120528         to depend on GPLed code.
120530 2005-07-02  Jim Meyering  <jim@meyering.net>
120532         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
120533         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
120534         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
120535         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
120537 2005-07-02  Jim Meyering  <jim@meyering.net>
120539         * lib/backupfile.c (backup_args): Change a `0' to NULL.
120541 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
120543         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
120544         declares only 'struct timespec;' (!).
120546 2005-07-01  Jim Meyering  <jim@meyering.net>
120548         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
120549         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
120550         * lib/save-cwd.c, tempname.c:
120551         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120552         and don't include <sys/file.h>).
120554 2005-06-29  Jim Meyering  <jim@meyering.net>
120556         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
120557         type name.  Use the variable name instead.
120558         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
120559         Likewise.
120561 2005-06-28  Simon Josefsson  <jas@extundo.com>
120563         * modules/check-version (Files): Add check-version.m4.
120565 2005-06-28  Simon Josefsson  <jas@extundo.com>
120567         * m4/check-version.m4: New file, suggested by Jim Meyering
120568         <jim@meyering.net>.
120570 2005-06-28  Simon Josefsson  <jas@extundo.com>
120572         * lib/check-version.h, lib/check-version.c: New files.
120574 2005-06-28  Simon Josefsson  <jas@extundo.com>
120576         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
120577         collision with global variable.  Better indentation.  Don't
120578         increment buffer pointer beyond buffer end.  Based on comments
120579         from Paul Eggert <eggert@cs.ucla.edu>.
120581         * lib/base64.h: Indent.
120583 2005-06-28  Simon Josefsson  <jas@extundo.com>
120585         * doc/gnulib.texi (Library version handling): New section.
120587 2005-06-28  Jim Meyering  <jim@meyering.net>
120589         * check-module (find_included_lib_files): Hard-code another
120590         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
120591         but modules/fts-lgpl (correctly) does not list those files.
120593         * modules/canonicalize (Files): Add lib/pathmax.h.
120595 2005-06-25  Simon Josefsson  <jas@extundo.com>
120597         * modules/check-version: New file.
120599 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
120601         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
120602         initializer of struct addrinfo, as an indication that we don't
120603         care how many members the structure has.
120605 2005-06-24  Derek Price  <derek@ximbiot.com>
120606         and Bruno Haible  <bruno@clisp.org>
120608         Remove stat module & update lstat.
120609         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
120610         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
120611         * m4/stat.m4: Remove this file.
120613 2005-06-24  Derek Price  <derek@ximbiot.com>
120614         and Bruno Haible  <bruno@clisp.org>
120616         Remove stat module & update lstat.
120617         * lib/stat.c: Remove this file...
120618         (slash_aware_lstat): ...moving this content and its support...
120619         * lib/lstat.c (rpl_lstat): ...into here.
120620         * lib/lstat.h: New file.
120622 2005-06-24  Derek Price  <derek@ximbiot.com>
120623         and Bruno Haible  <bruno@clisp.org>
120625         Remove stat module & update lstat.
120626         * config/srclist.txt (libc sources): Remove stat.
120628 2005-06-24  Derek Price  <derek@ximbiot.com>
120629         and Bruno Haible  <bruno@clisp.org>
120631         Remove stat module & update lstat.
120632         * MODULES.html.sh (stat): Remove.
120633         * MODULES.html: Regenerated.
120634         * modules/lstat (Description): Correct function name.
120635         (Files): Add "lstat.h".
120636         (Depends-on): Remove stat, add xalloc, stat-macros.
120637         * modules/stat: Remove this file.
120638         (Include): Add "lstat.h", remove <sys/stat.h>.
120640 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
120642         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
120643         (ranged_convert): Don't save conversion in a temporary struct.
120644         This causes a warning with GCC 4.0.0, and anyway in the typical
120645         case it's not worth the extra 100 bytes or so of code.
120646         (ranged_convert, __mktime_internal): When calling a function via a
120647         pointer P, use P () rather than (*P) (), as we now assume C89 or
120648         better.
120650 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120652         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
120653         "who -r" failed to give output.  Problem reported by Tim Waugh.
120655         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
120656         (xcalloc): Use it to avoid needless tests.
120657         Problem reported by Jim Meyering.
120659 2005-06-20  Derek Price  <derek@ximbiot.com>
120661         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
120662         unnecessary for Autoconfs > 2.59c.
120664 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120666         * lib/argp.h (__option_is_short): Check upper limit of
120667         __key. Isprint() requires its argument to have the value
120668         of an unsigned char or EOF.
120670 2005-06-16  Jim Meyering  <jim@meyering.net>
120672         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
120673         when either N or S is zero.
120675 2005-06-16  Derek Price  <derek@ximbiot.com>
120677         * m4/bison.m4: Declare YACC & YFLAGS precious.
120679 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
120681         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
120682         multibyte string or pattern, fall back on unibyte matching.
120683         Problem reported by James Youngman.
120685 2005-06-08  Bruno Haible  <bruno@clisp.org>
120687         * modules/csharpcomp: New file.
120688         * MODULES.html.sh (C#): Add csharpcomp.
120690 2005-06-08  Bruno Haible  <bruno@clisp.org>
120692         * m4/csharpcomp.m4: New file, from GNU gettext.
120694 2005-06-08  Bruno Haible  <bruno@clisp.org>
120696         * lib/csharpcomp.h: New file, from GNU gettext.
120697         * lib/csharpcomp.c: New file, from GNU gettext.
120698         * lib/csharpcomp.sh.in: New file, from GNU gettext.
120700 2005-06-08  Bruno Haible  <bruno@clisp.org>
120702         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
120703         warning on mingw.
120705 2005-06-07  Derek Price  <derek@ximbiot.com>
120707         Sync from CVS.
120708         * lib/glob_.h: Indent nested #ifdef.
120710 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120712         Sync from coreutils.
120713         Use "file name" when talking about file names, instead of "filename"
120714         or "path", as per the GNU coding standards.
120715         * lib/mkdir-p.c: Renamed from makepath.c.
120716         (make_dir_parents): Renamed from make_path.  All callers changed.
120717         * lib/mkdir-p.h: Likewise.  All includers changed.
120718         * lib/filenamecat.c: Renamed from path-concat.c.
120719         (file_name_concat): Renamed from path_concat.  All callers changed.
120720         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
120721         * lib/filenamecat.h: Likewise.  All includers changed.
120722         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
120723         in comments or local variable names.
120724         * lib/basename.c: Likewise.
120725         * lib/canonicalize.c, canonicalize.h: Likewise.
120726         * lib/dirname.c, dirname.h: Likewise.
120727         * lib/euidaccess.c: Likewise.
120728         * lib/exclude.c: Likewise
120729         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
120730         * lib/fsusage.c, fsuage.h: Likewise.
120731         * lib/fts.c, fts_.h: Likewise.
120732         * lib/getcwd.c: Likewise.
120733         * lib/getloadavg.c: Likewise.
120734         * lib/mkstemp.c: Likewise.
120735         * lib/mountlist.c, mountlist.h: Likewise.
120736         * lib/openat.c, openat.h: Likewise.
120737         * lib/readlink-stub.c: Likewise.
120738         * lib/readutmp.c, readutmp.h: Likewise.
120739         * lib/rename.c: Likewise.
120740         * lib/rmdir.c: Likewise.
120741         * lib/same.c: Likewise.
120742         * lib/savedir.c: Likewise.
120743         * lib/stripslash.c: Likewise.
120744         * lib/tempname.c: Likewise.
120745         * lib/xreadlink.c: Likewise.
120746         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
120747         All uses changed.
120748         * lib/exclude.h: Likewise.
120750         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
120751         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120752         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
120753         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120754         * lib/pathmax.h: Include <limits.h> unconditionally, since other
120755         files have been getting away with it for years (MORE/BSD 4.3
120756         is extinct now).
120757         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
120758         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120760         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
120761         Define to 256, not 255, as per modern POSIX.
120763 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120765         Sync from coreutils.
120766         Use "file name" when talking about file names, instead of "filename"
120767         or "path", as per the GNU coding standards.
120768         * MODULES.html.sh: mkdir-p renamed from makepath.
120769         filenamecat renamed from path-concat.
120770         * modules/filenamecat: Renamed from modules/path-concat.
120771         (Files): filenamecat.h and filenamecat.c renamed from
120772         path-concat.h and path-concat.c.
120773         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
120774         (Include): filenamecat.h, not path-concat.h.
120775         * modules/mkdir-p: Renamed from modules/makepath.
120776         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
120777         makepath.c.
120778         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
120779         (Include): mkdir-p.h, not makepath.h.
120781 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120783         Sync from coreutils.
120784         * m4/mkdir-p.m4: Renamed from makepath.m4.
120785         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
120786         Rename files from makepath.c to mkdir-p.c, and from
120787         makepath.h to mkdir-p.h.
120788         * m4/filenamecat.m4: Renamed from path-concat.m4.
120789         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
120790         Rename files from path-concat.c to filenamecat.c,
120791         and from path-concat.h to filenamecat.h.
120792         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
120793         "file name" in local variables or comments.
120794         * m4/rename.m4: Likewise.
120796 2005-06-01  Bruno Haible  <bruno@clisp.org>
120798         * modules/csharpexec: New file.
120799         * MODULES.html.sh (C#): New section.
120801 2005-06-01  Bruno Haible  <bruno@clisp.org>
120803         * m4/csharp.m4: New file, from GNU gettext.
120804         * m4/csharpexec.m4: New file, from GNU gettext.
120806 2005-06-01  Bruno Haible  <bruno@clisp.org>
120808         * lib/csharpexec.h: New file, from GNU gettext.
120809         * lib/csharpexec.c: New file, from GNU gettext.
120810         * lib/csharpexec.sh.in: New file, from GNU gettext.
120812 2005-05-31  Derek Price  <derek@ximbiot.com>
120813             Paul Eggert  <eggert@cs.ucla.edu>
120815         Sync from cvs.
120816         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120818 2005-05-31  Derek Price  <derek@ximbiot.com>
120819             Paul Eggert  <eggert@cs.ucla.edu>
120821         Sync from cvs.
120822         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120824 2005-05-29  Derek Price  <derek@ximbiot.com>
120826         * config/srclist.txt (glob_.h, glob.c): Add these files.
120828 2005-05-29  Derek Price  <derek@ximbiot.com>
120830         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
120831         * modules/glob: New file.
120832         * modules/getlogin_r: Add link to POSIX spec in description.
120834 2005-05-29  Derek Price  <derek@ximbiot.com>
120835             Paul Eggert  <eggert@cs.ucla.edu>
120837         * m4/glob.m4: New file.
120839 2005-05-29  Derek Price  <derek@ximbiot.com>
120840             Paul Eggert  <eggert@cs.ucla.edu>
120842         * lib/glob_.h, lib/glob.c: New files.
120844 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120846         * modules/fts (Files): Remove m4/inttypes-pri.m4.
120847         * modules/fts-lgpl (Depends-on): Remove gettext.
120849 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120851         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
120852         and don't require gt_INTTYPES_PRI.
120854 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120856         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
120858         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
120859         the configuration hassle isn't worth it.
120860         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
120861         (LONGEST_MODIFIER, PRIuMAX): Remove.
120863 2005-05-27  Bruno Haible  <bruno@clisp.org>
120865         * lib/getlogin_r.h: Remove second include of <stddef.h>.
120867 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
120869         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
120870         _POSIX_PTHREAD_SEMANTICS for Solaris.
120872 2005-05-25  Derek Price  <derek@ximbiot.com>
120874         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
120876 2005-05-25  Derek Price  <derek@ximbiot.com>
120877             Paul Eggert  <eggert@cs.ucla.edu>
120879         * modules/getlogin_r, m4/getlogin_r.m4: New files.
120880         * lib/getlogin_r.c, getlogin_r.h: New files.
120882 2005-05-25  Bruno Haible  <bruno@clisp.org>
120883             Derek Price  <derek@ximbiot.com>
120885         * lib/getlogin_r.h: Simplify API documentation.
120887 2005-05-23  Derek Price  <derek@ximbiot.com>
120889         * modules/minmax (Files): Add m4/minmax.m4.
120890         (configure.ac): Add gl_MINMAX.
120892 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
120894         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
120895         so that unistd-safer.h (GPL'ed code) need not be included.
120897 2005-05-22  Bruno Haible  <bruno@clisp.org>
120899         * m4/minmax.m4: New file.
120900         Based on a patch by Derek Price <derek@ximbiot.com>.
120902 2005-05-22  Bruno Haible  <bruno@clisp.org>
120904         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
120905         (INT64_MIN): Fix definition.
120906         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
120908         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
120909         NEED_SIGNED_INT_TYPES.
120911         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
120912         HAVE_SYSTEM_INTTYPES.
120914 2005-05-22  Bruno Haible  <bruno@clisp.org>
120916         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
120917         Also include <sys/param.h> if it defines MIN, MAX.
120918         Based on a patch by Derek Price <derek@ximbiot.com>.
120920 2005-05-21  Jim Meyering  <jim@meyering.net>
120922         * modules/fts (Files): Add m4/inttypes-pri.m4.
120923         (Depends-on): Add lstat and remove gettext.  Alphabetize.
120925 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120927         New fts module.
120928         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
120929         (setup_dir, free_dir): New functions.
120930         (enter_dir, leave_dir): Define trivial
120931         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
120932         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
120933         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
120934         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
120935         Move to fts-cycle.c.
120936         (fts_open): Use setup_dir.
120937         (fts_close): Use free_dir.
120938         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
120939         This adds a label and some gotos, but the alternatives were messier.
120940         Check for memory allocation failure when entering a dir.
120941         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
120942         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
120943         (FTS): New member fts_cycle, that is a union that contains the
120944         old active_dir_ht and cycle_state.  All uses changed to mention
120945         fts_cycle.ht and fts_cycle.state.
120946         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
120947         fts.c, with the following changes:
120948         (setup_dir, free_dir): New functions.
120949         (enter_dir): Now returns bool.  Return true if successful, false
120950         if memory exhausted.  All callers changed.
120951         Do not bother partly cleaning up on
120952         memory allocation failure; that is free_dir's job.
120953         However, free ad if hash_insert fails, to avoid memory leak.
120954         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
120955         fts->fts_options to see which union member to use.
120957 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120959         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
120960         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
120962 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120964         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
120966 2005-05-20  Jim Meyering  <jim@meyering.net>
120968         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
120969         Now a macro, to pacify GCC.
120971 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
120973         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
120974         of -1.
120976 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
120978         * lib/chown.c (rpl_chown): Return -1 on failure.
120980 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
120982         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
120983         Don't check for stddef.h.
120984         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
120985         don't use its results.
120986         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
120987         since we include them unconditionally.  Don't require
120988         AM_STDBOOL_H, since stdbool is a prerequisite.
120989         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
120990         since we assume C89 or better.
120991         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
120992         as we don't use their results.
120993         Don't check for fchdir, memmove, memset, strrchr, as we use
120994         them unconditionally.
120995         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
120996         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
120998 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121000         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
121001         Include <stddef.h> unconditionally, since we assume C89 now.
121002         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
121003         * lib/fts.c: Include fts_.h first, to check interface.
121004         Do not include intprops.h; no longer needed.
121005         Include cycle-check.h and hash.h, since fts_.h no longer does.
121006         Remove unnecessary casts of closedir to void.
121007         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
121008         decide whether to decrement nlinks.
121009         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
121010         (FTS): Use struct hash_table * instead of Hash_table, so that
121011         we no longer need to include hash.h here.
121013 2005-05-18  Jim Meyering  <jim@meyering.net>
121015         * modules/dirfd (License): Change to LGPL.  Most of the code
121016         is already in the public domain.
121018 2005-05-18  Jim Meyering  <jim@meyering.net>
121020         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
121021         Reported by Yoann Vandoorselaere.
121023 2005-05-17  Jim Meyering  <jim@meyering.net>
121025         * m4/fts.m4: New file, from coreutils.
121027 2005-05-17  Jim Meyering  <jim@meyering.net>
121029         * lib/fts.c, lib/fts_.h: New files, from coreutils.
121031 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121033         Sync from coreutils.
121034         * m4/unlinkdir.m4: New file.
121036 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121038         Sync from coreutils.
121039         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
121040         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
121041         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
121042         White space changes only.
121043         * lib/makepath.c (make_path): Port to hosts where leading "//" is
121044         special.
121045         * lib/yesno.c: Include getline.h, not ctype.h.
121046         (yesno): Don't remove leading white space; POSIX doesn't allow it.
121047         Use getline to remove arbitrary restriction on response length.
121049 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121051         * config/srclist-update: Spell out "Street" in FSF postal
121052         mail address; this is the style the FSF seems to prefer.
121054         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
121055         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
121056         this updates FSF postal mail address.
121058         Sync from coreutils.
121059         * modules/unlinkdir: New file.
121060         * modules/yesno (Depends-on): Add getline.
121061         * MODULES.html.sh (File system functions): Add unlinkdir.
121063 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121065         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
121066         lib/strsep.h:
121067         Change the initial comment to refer to GPL, not LGPL.
121068         gnulib-tool will change it to LGPL as needed.
121070         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
121071         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
121072         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
121073         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
121074         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
121075         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
121076         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
121077         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
121078         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
121079         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
121080         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
121081         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
121082         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
121083         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
121084         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
121085         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
121086         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
121087         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
121088         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
121089         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
121090         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
121091         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
121092         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
121093         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
121094         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
121095         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
121096         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
121097         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
121098         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
121099         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
121100         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
121101         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
121102         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
121103         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
121104         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
121105         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
121106         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
121107         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
121108         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
121109         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
121110         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
121111         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
121112         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
121113         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
121114         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
121115         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
121116         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
121117         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
121118         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
121119         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
121120         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121121         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
121122         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
121123         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
121124         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
121125         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
121126         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
121127         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
121128         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
121129         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
121130         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
121131         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
121132         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
121133         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
121134         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
121135         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
121136         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
121137         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
121138         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
121139         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
121140         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
121141         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
121142         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
121143         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
121144         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
121145         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
121146         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
121147         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
121148         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
121149         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
121150         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
121151         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
121152         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
121153         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
121154         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
121155         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
121156         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
121157         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
121158         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
121159         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
121160         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
121161         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
121162         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
121163         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
121164         lib/yesno.c, lib/yesno.h:
121165         Update FSF postal mail address.
121167 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121169         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
121170         tests/test-memmem.c, tests/test-stpncpy.c:
121171         Update FSF postal mail address.
121173 2005-05-13  Bruno Haible  <bruno@clisp.org>
121175         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
121176         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
121177         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
121178         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
121179         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
121180         Add support for 64-bit integers in the MSVC compiler.
121182 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121184         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
121186 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
121188         * gnulib-tool (func_import): Sort and uniquify recommended includes.
121190 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
121192         * doc/getdate.texi (General date syntax): Don't say that date
121193         date --iso-8601=ns generates acceptable dates; it doesn't yet.
121194         Problem reported by Nic Ferrier.
121196 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121198         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
121199         specified in ai_socktype. Fix invalid ai_protocol
121200         check. ai_protocol is usually set to 0 or depending on
121201         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
121202         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
121203         ai_socktype / ai_protocol in the returned addrinfo structure.
121205 2005-05-10  Simon Josefsson  <jas@extundo.com>
121207         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
121208         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121210 2005-05-10  Karl Berry  <karl@gnu.org>
121212         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
121213         (from http://www.gnu.org/licenses).
121214         * doc/COPYING.LIB: also rename to COPYING.LESSER.
121215         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
121216         fdl.texi suffices.
121218 2005-05-10  Karl Berry  <karl@gnu.org>
121220         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
121221         (COPYING.DOC): remove.
121223         * config/srclist-update: new FSF address.
121225 2005-05-10  Derek Price  <derek@ximbiot.com>
121227         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
121228         possible.
121230 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121231             Bruno Haible  <bruno@clisp.org>
121233         * modules/inet_ntop: New file.
121234         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121235         inet_ntop.
121237 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121238             Bruno Haible  <bruno@clisp.org>
121240         * m4/inet_ntop.m4: New file.
121242 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121243             Bruno Haible  <bruno@clisp.org>
121245         * lib/inet_ntop.h: New file.
121246         * lib/inet_ntop.c: New file, from glibc with modifications.
121248 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
121250         * modules/time_r (License): Change to LGPL.
121251         * modules/extensions (License): Change to LGPL.  Actually,
121252         the license is more permissive than that, but currently gnulib-tool
121253         doesn't know how to handle more-permissive licenses.
121255         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
121256         Problem reported by Dave Love.
121258 2005-05-08  Jim Meyering  <jim@meyering.net>
121260         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
121261         blank.
121263 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121265         * modules/argmatch (Depends-on): Add stdbool.
121266         * modules/backupfile (Depends-on): Likewise.
121267         * modules/chdir-long (Depends-on): Likewise.
121268         * modules/closeout (Depends-on): Likewise.
121269         * modules/cycle-check (Depends-on): Likewise.
121270         * modules/dirname (Depends-on): Likewise.
121271         * modules/fnmatch (Depends-on): Likewise.
121272         * modules/fsusage (Depends-on): Likewise.
121273         * modules/fwriteerror (Depends-on): Likewise.
121274         * modules/getcwd (Depends-on): Likewise.
121275         * modules/getloadavg (Depends-on): Likewise.
121276         * modules/hard-locale (Depends-on): Likewise.
121277         * modules/makepath (Depends-on): Likewise.
121278         * modules/mountlist (Depends-on): Likewise.
121279         * modules/nanosleep (Depends-on): Likewise.
121280         * modules/posixtm (Depends-on): Likewise.
121281         * modules/quotearg (Depends-on): Likewise.
121282         * modules/readtokens (Depends-on): Likewise.
121283         * modules/readtokens0 (Depends-on): Likewise.
121284         * modules/readutmp (Depends-on): Likewise.
121285         * modules/save-cwd (Depends-on): Likewise.
121286         * modules/strftime (Depends-on): Likewise.
121287         * modules/userspec (Depends-on): Likewise.
121288         * modules/utimecmp (Depends-on): Likewise.
121289         * modules/xgetcwd (Depends-on): Likewise.
121290         * modules/xnanosleep (Depends-on): Likewise.
121291         * modules/xstrtod (Depends-on): Likewise.
121292         * modules/yesno (Depends-on): Likewise.
121294 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
121296         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
121297         needless checks.
121299 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121301         Merge from coreutils.  Among other things,
121302         add bulletproofing for cases where stdin, stdout, or stderr are closed.
121303         * lib/fd-safer.c: New file.
121304         * lib/fcntl-safer.h, open-safer.c: Remove.
121305         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
121306         * lib/dup-safer.c: Include unistd-safer.h first.
121307         Don't include errno.h.
121308         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
121309         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
121310         * lib/file-type.c: Rely on file-type.h change.
121311         * lib/getloadavg.c: Include unistd-safer.h.
121312         (getloadavg): Use safer open.
121313         * lib/getusershell.c: Include "stdio-safer.h".
121314         (getusershell): Use safer fopen.
121315         * lib/long-options.c (long_options): Use NULL rather than 0.
121316         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
121317         'free'.
121318         * lib/modechange.c: Likewise.
121319         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
121320         (MODE_DONE): New constant.
121321         (struct mode_change): Remove 'next' member.
121322         (make_node_op_equals): New function; like the old one of the
121323         same name, except it allocates an array.
121324         (mode_compile, mode_create_from_ref): Use it.
121325         (mode_compile): Allocate result as an array, not a linked list.
121326         Parse octal string ourself, so that we catch mistakes like "+0".
121327         (mode_adjust): Arg is an array, not a linked list.
121328         * lib/modechange.c: Include stat-macros.h, xalloc.h.
121329         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
121330         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
121331         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
121332         Remove.  This is now stat-macros.h's job.
121333         (talloc): Remove.  All callers replaced by xalloc, so that
121334         our invokers don't have to worry about reporting memory failures.
121335         (make_node_op_equals): Remove.
121336         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121337         New constants.
121338         (struct mode_change): Moved here from modechange.h.
121339         (mode_append_entry): Remove.
121340         (mode_compile): Remove MASKED_OPS arg, since it encouraged
121341         apps to have incorrect behavior.  Use simpler algorithm for head
121342         and tail.  Don't futz with umask; that's now the job of mode_adjust.
121343         Detect more invalid usages rather than having somewhat-random behavior.
121344         Don't insert an "a=" action, as that leads to incorrect behavior.
121345         (mode_compile, mode_create_from_ref): Return NULL on error instead
121346         of an enum, since now there's only one way to have an error.  All
121347         callers changed.
121348         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
121349         at the correct time.  Simplify calculation of "+u" and its ilk.
121350         Don't mishandle "+X".
121351         (mode_free): Remove "register" and localize decls.
121352         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121353         (struct mode_change): Move to modechange.c; callers don't
121354         need to see this stuff.
121355         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
121356         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
121357         (mode_change, mode_adjust): Reflect the new signatures noted above.
121358         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
121359         that might redefine system include files.
121360         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
121361         (my_usleep): Use NULL rather than (void *) 0.
121362         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
121363         Use siginterrupt to specify that system calls should be interrupted.
121364         (rpl_nanosleep): Move initialization of suspended closer to call of
121365         my_usleep.
121366         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
121367         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
121368         (desirable_utmp_entry): New function.
121369         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
121370         using x2nrealloc, to simplify logic.
121371         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
121372         size calculation.  Do not assume utmp file is a regular file.
121373         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
121374         (READ_UTMP_CHECK_PIDS): New constant.
121375         * lib/save-cwd.c: Include unistd-safer.h.
121376         (save_cwd): Use fd_safer.
121377         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
121378         [!_LIBC] Include "stat-macros.h" instead.
121379         * lib/unistd-safer.h (fd_safer): New decl.
121381 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121383         * modules/getloadavg (Depends-on): Add unistd-safer.
121384         * modules/getusershell (Depends-on): Add stdio-safer.
121385         * modules/lstat (Depends-on): Remove xalloc.
121386         * modules/mkstemp (Depends-on): Add stat-macros.
121387         * modules/modechange (Depends-on): Remove xstrtol.
121388         Add stat-macros, xalloc.
121389         * modules/save-cwd (Depends-on): Add unistd-safer.
121390         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
121391         * modules/unistd-safer (Files): Add lib/fd-safer.c
121392         (Makefile.am): Remove lib_SOURCES.
121394         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
121395         Remove fcntl-safer; unistd-safer supersedes it.
121397 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121399         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
121400         AC_HEADER_STAT.
121401         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
121402         (gl_PREREQ_CHOWN): Remove.
121403         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
121404         it.  Don't require AC_HEADER_STAT.
121405         (gl_PREREQ_LSTAT): Remove.
121406         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
121407         Don't require AC_HEADER_STAT.
121408         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
121409         (gl_PREREQ_RMDIR): Remove.
121410         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
121411         mention stat-macros.h or AC_HEADER_STAT, since we'll make
121412         the stat-macros module a prerequisite.
121413         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
121414         * m4/filemode.m4 (gl_FILEMODE): Likewise.
121415         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
121416         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
121417         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
121418         variable names.
121419         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
121420         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
121421         variable prefixes.
121422         * m4/fcntl-safer.m4: Remove.
121423         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
121424         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
121425         Invoke gl_PREREQ_FD_SAFER.
121426         (gl_PREREQ_FD_SAFER): New macro.
121427         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
121428         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
121429         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
121430         Remove duplicate call to AC_LIBOBJ(readutmp).
121431         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
121433         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
121434         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
121436 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121438         * MODULES.html.sh (Misc): Add byteswap.
121440 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121442         * modules/getcwd (Depends-on): Add extensions.
121443         * modules/openat (Depends-on): Likewise.
121445 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121447         * modules/byteswap: New file.
121449 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121451         * m4/byteswap.m4: New file.
121453 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121455         * lib/byteswap_.h: New file.
121457 2005-04-25  Karl Berry  <karl@gnu.org>
121459         * m4/gettext.m4: Update from GNU gettext 0.14.4.
121461 2005-04-25  Albert Chin  <china@thewrittenword.com>
121463         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
121464         Toolkit C bug.
121466 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
121468         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
121469         (func_ln_if_changed): Remove forcibly for no error message
121470         in case file does not exist.
121472 2005-04-19  Simon Josefsson  <jas@extundo.com>
121474         * gnulib-tool (Options): Make --symlink mean --symbolic.
121476 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
121478         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
121480 2005-04-16  Simon Josefsson  <jas@extundo.com>
121482         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
121484 2005-04-15  Simon Josefsson  <jas@extundo.com>
121486         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
121488 2005-04-15  Simon Josefsson  <jas@extundo.com>
121490         * gnulib-tool: Rename --symlink to --symbolic.
121492 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
121494         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
121495         symbolic links to files instead of copying/moving.  Add --aux-dir,
121496         specifying directory relative --dir where auxiliary build tools
121497         are placed.
121499 2005-04-14  Bruno Haible  <bruno@clisp.org>
121501         * modules/allocsa (License): Change to LGPL.
121502         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
121504 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
121506         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
121507         that "UTC +1 second" continues to work.  Problem reported
121508         by Dmitry V. Levin.
121509         (relunit_snumber): New rule.
121510         (relunit): Use it.
121512 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
121514         * lib/getdate.y (universal_time_zone_table): New constant.
121515         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
121516         universal_time_zone_table.
121517         (lookup_zone): Prefer universal_time_zone_table to
121518         local_time_zone_table, so that "GMT" time stamps are allowed in
121519         London during the summer.  Problem reported by Ian Abbott.
121521 2005-04-12  Jim Meyering  <jim@meyering.net>
121523         * lib/human.c (humblock): Set *options even when returning due to
121524         xstrtoumax conversion failure.  Thanks to a used-uninitialized
121525         warning from gcc-4.
121527 2005-04-09  Jim Meyering  <jim@meyering.net>
121529         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
121530         -Wuninitialized: initialize tm0.tm_year.
121532 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
121534         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
121535         count, since there's no maximum.  All uses changed.
121536         Add member dsts_seen.
121537         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
121538         not being INT_MAX.
121539         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
121540         Use pc_rels_seen to decide whether a date is absolute.
121542         * lib/getdate.y (number): Don't overwrite year.
121543         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
121544         check.
121546 2005-04-02  Simon Josefsson  <jas@extundo.com>
121548         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
121549         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
121551 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
121553         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
121554         where no absolute path name can be longer than PATH_MAX.
121556 2005-03-27  Jim Meyering  <jim@meyering.net>
121558         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
121560 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
121562         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
121563         "one's complement" -> "ones' complement" in comment, as per Knuth.
121564         "value of type" -> "type or expression" in comment.
121565         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
121567 2005-03-26  Jim Meyering  <jim@meyering.net>
121569         Comment nits.
121570         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
121571         Correct typos: s/or/of/.
121573 2005-03-26  Jim Meyering  <jim@meyering.net>
121575         * modules/check-include-files: Move to ../ and rename to...
121576         * check-module: ...this.
121578 2005-03-25  Jim Meyering  <jim@meyering.net>
121580         * modules/xvasprintf (Files): Add xalloc.h.
121582 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
121584         * modules/gettext (Files): config/config.rpath ->
121585         build-aux/config.rpath
121586         * modules/iconv (Files): Likewise.
121587         Problem reported by Oskar Liljeblad.
121589 2005-03-23  Jim Meyering  <jim@meyering.net>
121591         * modules/check-include-files: New script to check for
121592         missing dependencies, multiple includes, etc.
121594         * modules/c-strtold (Depends-on): Add xalloc.
121595         * modules/c-strtod (Depends-on): Add xalloc.
121596         * modules/hash (Depends-on): Add xalloc.
121597         (Files): Remove lib/xalloc.h.
121599         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
121600         * modules/userspec (Files): Add lib/inttostr.h.
121602 2005-03-23  Jim Meyering  <jim@meyering.net>
121604         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
121606 2005-03-22  Jim Meyering  <jim@meyering.net>
121608         * modules/stat-macros: New module.
121609         * modules/canonicalize, modules/euidaccess, modules/file-type,
121610         * modules/filemode, modules/lchown, modules/makepath,
121611         * modules/rmdir, modules/stat: Depend on new stat-macros module
121612         rather than listing lib/stat-macros.h manually.
121613         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
121615 2005-03-22  Jim Meyering  <jim@meyering.net>
121617         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
121619 2005-03-22  Bruno Haible  <bruno@clisp.org>
121621         * config/srclist.txt: Replace target directory 'config' with
121622         'build-aux'.
121623         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
121624         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
121625         ../build-aux/.
121627 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
121629         * modules/chdir-long (Depends-on): Add mempcpy.
121631         * modules/acl, modules/backupfile, modules/c-strtod,
121632         modules/c-strtold, modules/canon-host, modules/canonicalize,
121633         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
121634         modules/exclude, modules/exitfail, modules/file-type,
121635         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
121636         modules/getdate, modules/getline, modules/getpagesize,
121637         modules/getpass, modules/getugroups, modules/group-member,
121638         modules/hard-locale, modules/hash, modules/human, modules/idcache,
121639         modules/inttostr, modules/long-options, modules/makepath,
121640         modules/md5, modules/memcasecmp, modules/memcoll,
121641         modules/modechange, modules/mountlist, modules/path-concat,
121642         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
121643         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
121644         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
121645         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
121646         modules/strftime, modules/strndup, modules/strverscmp,
121647         modules/timespec, modules/unlocked-io, modules/userspec,
121648         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
121649         modules/yesno:
121650         Remove lib_SOURCES line from Makefile.am section, as this is now
121651         done automatically by the corresponding Autoconf macro.
121653 2005-03-21  Jim Meyering  <jim@meyering.net>
121655         Changes imported from coreutils.
121657         * lib/cycle-check.c: Don't include xalloc.h.
121659         * lib/path-concat.c: Don't include assert.h.
121660         (path_concat): Remove assertion that would have triggered
121661         for ABASE starting with more than one slash.
121662         Reported by Andreas Schwab.
121664         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
121665         properly when ABASE is an absolute file name.
121666         Correct the description of this function.
121667         Include <assert.h>.
121668         Add an assertion and a test driver.
121669         This fixes a bug introduced on 2004-07-02.
121670         Andreas Schwab reported the resulting failure of cp --parents:
121671         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
121673 2005-03-21  Jim Meyering  <jim@meyering.net>
121675         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
121676         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
121678 2005-03-21  Jim Meyering  <jim@meyering.net>
121679         and  Paul Eggert  <eggert@cs.ucla.edu>
121681         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
121682         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
121683         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
121684         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
121685         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
121686         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
121687         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
121688         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
121689         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
121690         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
121691         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
121692         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
121693         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
121694         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
121695         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
121696         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
121697         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
121698         for these modules.
121700 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
121702         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
121703         (which shouldn't happen), generate nothing instead of returning 0
121704         immediately, so that nstrftime (NULL, ...) doesn't return 0.
121706 2005-03-16  Bruno Haible  <bruno@clisp.org>
121708         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
121709         HAVE_LONGLONG_64BIT.
121711 2005-03-16  Bruno Haible  <bruno@clisp.org>
121713         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
121714         HAVE_LONGLONG_64BIT.
121716 2005-03-16  Bruno Haible  <bruno@clisp.org>
121718         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
121719         HAVE_LONGLONG_64BIT.
121721 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
121723         * lib/strftime.c (my_strftime): Prepend space to format so that we can
121724         reliably distinguish strftime failure from empty output on POSIX
121725         hosts.
121727 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
121729         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
121730         (iconv_string): Don't guess a size-zero buffer, as that might cause
121731         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
121732         result would be 'too large', where 'too large' is (heuristically)
121733         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
121734         overflow concerns.  This will prevent some unwanted malloc failures
121735         when the inputs are very large.
121737 2005-03-15  Karl Berry  <karl@gnu.org>
121739         * config/srclist.txt (config.rpath): from gettext.
121740         * config/config.rpath: update.
121742 2005-03-15  Bruno Haible  <bruno@clisp.org>
121744         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
121745         to 'negate'.
121747         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
121748         variable.
121750         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
121751         results.
121753 2005-03-14  Simon Josefsson  <jas@extundo.com>
121755         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
121756         <fx@gnu.org>.
121758 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
121760         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
121761         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
121762         intprops.h.
121763         * lib/strtol.c: Likewise.
121765 2005-03-14  Jim Meyering  <jim@meyering.net>
121767         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
121768         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
121769         to be nonzero so that we (and caller) can detect the difference
121770         between a valid zero-length expansion and an error return, even
121771         when the underlying strftime fails before writing anything into
121772         that location.
121774 2005-03-14  Bruno Haible  <bruno@clisp.org>
121776         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
121777         Update from GNU gettext 0.14.3.
121779 2005-03-10  Jim Meyering  <jim@meyering.net>
121781         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
121783 2005-03-10  Jim Meyering  <jim@meyering.net>
121785         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
121786         so that this module works on systems without fchdir.
121788 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
121790         Factor int-properties macros into a single file, except for
121791         glibc-related files.
121792         * lib/intprops.h: New file.
121793         * lib/getloadavg.c: Include it instead of limits.h.
121794         (INT_STRLEN_BOUND): Remove.
121795         * lib/human.c: Include intprops.h.
121796         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
121797         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
121798         302/1000.
121799         * lib/inttostr.h: Include intprops.h instead of limits.h.
121800         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
121801         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
121802         for consistency with intprops.h.
121803         (time_t_is_integer, twos_complement_arithmetic): Use them.
121804         * lib/sig2str.h: Include <signal.h>, intprops.h.
121805         (INT_STRLEN_BOUND): Remove.
121806         * lib/strftime.c (TYPE_SIGNED): Remove.
121807         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
121808         * lib/strtol.c: Adjust comments to match intprops.h.
121809         * lib/userspec.c: Include intprops.h.
121810         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
121811         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
121812         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
121813         instead of rolling our own expressions.
121814         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
121816         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
121817         instead of int.
121818         (my_strftime): Do not mishandle years close to INT_MAX, by doing
121819         the right thing even if adding 1900 would overflow.  Similarly
121820         for tm_mon + 1 and tm_yday + 1.
121821         Make %Y always equivalent to %C%y, and similarly for %G and %g.
121822         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
121823         (DO_SIGNED_NUMBER): New macro.
121824         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
121826 2005-03-07  Bruno Haible  <bruno@clisp.org>
121828         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
121830 2005-03-07  Bruno Haible  <bruno@clisp.org>
121832         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
121834 2005-03-04  Derek R. Price  <derek@ximbiot.com>
121836         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
121837         (func_import): Only replace files via --import when they have actually
121838         changed.
121840 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121842         * m4/mmap-anon.m4: New file.
121843         * m4/pagealign_alloc.m4: New file.
121845 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121846             Bruno Haible  <bruno@clisp.org>
121848         * modules/pagealign_alloc: New file.
121849         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
121851 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121852             Bruno Haible  <bruno@clisp.org>
121854         * lib/pagealign_alloc.h: New file.
121855         * lib/pagealign_alloc.c: New file.
121857 2005-03-03  Bruno Haible  <bruno@clisp.org>
121859         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
121860         Use an all-permissive copyright notice, recommended by RMS.
121862 2005-03-02  Bruno Haible  <bruno@clisp.org>
121864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
121865         of AIX, the replacement has to be done only after <string.h> is
121866         included, therefore not in config.h. stpncpy.h does the replacement,
121867         and stpncpy.c uses it.
121869 2005-03-02  Bruno Haible  <bruno@clisp.org>
121871         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
121872         stpncpy.c uses it.
121874 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121876         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
121877         The workaround isn't strictly needed for POSIX conformance, and
121878         it's too much of a pain to configure and maintain.  We'll ask
121879         people to fix their kernels instead.
121880         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
121881         (NANOSLEEP_BUG_WORKAROUND): Remove.
121882         (xnanosleep): Remove the workaround.
121884 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121886         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
121887         Reported by Derek Price.
121888         (Include): Add "timespec.h".
121890         * modules/xnanosleep (Depends-on): Remove gethrxtime.
121892 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121894         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
121895         to detect nanosleep bug.
121897 2005-03-01  Bruno Haible  <bruno@clisp.org>
121899         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
121901 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
121903         * modules/gethrxtime: New file.
121904         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
121905         (Depends-on): Add gethrxtime.
121906         (configure.ac): Add gl_XNANOSLEEP.
121907         (Makefile.am): Remove lib_SOURCES line.
121909 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121911         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
121912         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
121914 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121916         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
121917         * lib/timespec.h (gettime): Return void, since it always
121918         succeeds now.  All uses changed.
121919         * lib/gettime.c (gettime): Likewise.
121920         [HAVE_NANOTIME]: Prefer nanotime.
121921         Assume gettimeofday succeeds, as POSIX requires.
121922         Assime time () succeeds, since other code already does.
121923         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
121924         (timespec_subtract): Remove.
121925         (NANOSLEEP_BUG_WORKAROUND): New constant.
121926         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
121927         things considerably.  Use it only on GNU/Linux hosts, since the
121928         workaround shouldn't be needed elsewhere.
121930 2005-02-24  Bruno Haible  <bruno@clisp.org>
121932         * modules/gettext (Files): Add m4/glibc2.m4.
121934 2005-02-24  Bruno Haible  <bruno@clisp.org>
121936         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
121937         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
121938         * m4/progtest.m4:
121939         Update from GNU gettext 0.14.2.
121940         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
121942 2005-02-24  Bruno Haible  <bruno@clisp.org>
121944         * lib/localcharset.c: Update from GNU gettext 0.14.2.
121945         * lib/config.charset: Update from GNU gettext 0.14.2.
121947 2005-02-24  Bruno Haible  <bruno@clisp.org>
121949         * lib/gettext.h: Update from GNU gettext 0.14.2.
121951 2005-02-23  Simon Josefsson  <jas@extundo.com>
121953         * m4/iconvme.m4: New file.
121955 2005-02-23  Jim Meyering  <jim@meyering.net>
121957         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
121958         change.
121959         Thanks to Bruno Haible for catching it.
121961 2005-02-22  Simon Josefsson  <jas@extundo.com>
121963         * modules/iconvme: New file.
121965         * MODULES.html.sh: Add iconvme.
121967 2005-02-22  Simon Josefsson  <jas@extundo.com>
121969         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
121971 2005-02-22  Simon Josefsson  <jas@extundo.com>
121973         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
121975 2005-02-22  Jim Meyering  <jim@meyering.net>
121977         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
121978         s/ifndef/ifdef/.
121980 2005-02-20  Neil Conway  <neilc@samurai.com>
121982         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
121983         returned by OSX/Darwin if the specified buffer is not large
121984         enough for the hostname.
121986 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121988         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
121989         pass it to _help, otherwise the latter coredumps trying to
121990         dereference state.root_argp.
121992 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
121994         * modules/chdir-long (Depends-on): Add memrchr.
121995         * modules/memrchr (Files): Add lib/memrchr.h.
121996         (Include): "memrchr.h".
121998 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122000         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
122002 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122004         * lib/memrchr.h: New file.
122005         * lib/chdir-long.c: Include it.
122006         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
122007         Don't bother including stddef.h.
122009 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
122011         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
122012         inclusion.
122013         Include <sys/types.h>, for dev_t.
122014         (ME_DUMMY, ME_REMOTE): Move from here....
122015         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
122016         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
122017         Dmitry V. Levin.
122018         Include mountlist.h first, to test the interface.
122020 2005-01-29  Bruno Haible  <bruno@clisp.org>
122022         * lib/progname.c (program_name): Initialize.
122023         Needed when linking statically on MacOS X.
122025 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122027         Sync from coreutils.
122028         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
122029         (Depends-on): Add c-strtod.
122030         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
122032 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122034         Sync from coreutils.
122035         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
122037         Remove files that are specific to coreutils.
122038         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
122040 2005-01-28  Bruno Haible  <bruno@clisp.org>
122042         * modules/javacomp: New file.
122043         * MODULES.html.sh (Java): Add javacomp.
122045 2005-01-28  Bruno Haible  <bruno@clisp.org>
122047         * m4/javacomp.m4: New file, from GNU gettext.
122049 2005-01-28  Bruno Haible  <bruno@clisp.org>
122051         * lib/javacomp.sh.in: New file, from GNU gettext.
122052         * lib/javacomp.h: New file, from GNU gettext.
122053         * lib/javacomp.c: New file, from GNU gettext.
122055 2005-01-26  Simon Josefsson  <jas@extundo.com>
122057         * lib/gai_strerror.c: Use GPL in header.
122059 2005-01-26  Bruno Haible  <bruno@clisp.org>
122061         * modules/javaexec: New file.
122062         * MODULES.html.sh (Java): Add javaexec.
122064 2005-01-26  Bruno Haible  <bruno@clisp.org>
122066         * m4/javaexec.m4: New file, from GNU gettext.
122068 2005-01-26  Bruno Haible  <bruno@clisp.org>
122070         * lib/javaexec.sh.in: New file, from GNU gettext.
122071         * lib/javaexec.h: New file, from GNU gettext.
122072         * lib/javaexec.c: New file, from GNU gettext.
122074 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122076         * modules/lchown (Depends-on): Remove lchown.h
122078 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122080         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
122081         must be defined if the header file was not found, in order
122082         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
122084 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122086         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
122087         initializers for struct pentry_state.
122088         (__argp_error): Check return value of __asprintf
122089         (__argp_failure): Translate error message
122091         * lib/argp-parse.c: Removed braces around the expansion of N_()
122093 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
122095         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
122096         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
122097         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
122098         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
122099         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
122100         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
122101         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
122102         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
122103         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
122104         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
122105         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
122106         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
122107         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
122108         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
122109         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
122110         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
122111         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
122112         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
122113         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
122114         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
122115         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
122116         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
122117         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
122118         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
122119         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
122120         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
122121         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
122122         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
122123         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
122124         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
122125         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
122126         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
122127         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
122128         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
122129         xstrtol.m4, xstrtoumax.m4, yesno.m4:
122130         Use an all-permissive copyright notice, recommended by RMS.
122132 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
122134         * modules/chdir-long (Depends-on): Remove mempcpy.
122136 2005-01-21  Jim Meyering  <jim@meyering.net>
122138         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
122139         same value as for Solaris 9.
122141         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
122142         component length.  This included changing the parameter to be
122143         of type `char *' rather than `char const *'.
122144         * lib/chdir-long.h (chdir_long): Update prototype.
122146         * lib/openat.c (fdopendir, fstatat): New functions.
122147         * lib/openat.h: Include headers required for use of DIR and struct
122148         stat.
122149         [AT_SYMLINK_NOFOLLOW]: Define.
122150         (fdopendir, fstatat): Add prototypes.
122152 2005-01-21  Bruno Haible  <bruno@clisp.org>
122154         * modules/classpath: New file.
122155         * MODULES.html.sh (Java): Add classpath.
122157 2005-01-21  Bruno Haible  <bruno@clisp.org>
122159         * lib/classpath.h: New file, from GNU gettext.
122160         * lib/classpath.c: New file, from GNU gettext.
122162 2005-01-20  Simon Josefsson  <jas@extundo.com>
122164         * modules/version-etc-fsf: New file.
122166 2005-01-20  Simon Josefsson  <jas@extundo.com>
122168         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
122169         * lib/version-etc.c: Remove version_etc_copyright.
122170         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
122171         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
122173 2005-01-20  Simon Josefsson  <jas@extundo.com>
122175         * lib/base64.h (isbase64): Add.
122177         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
122178         using a unsigned prototype, don't inline.
122179         (base64_decode): Use it.
122181 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122183         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
122184         it.
122186 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122188         * lib/save-cwd.c (save_cwd): Remove code to support the case
122189         where fchdir is missing or flaky.
122191 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122193         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
122195 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
122197         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
122198         AC_LIBSOURCES now does this.
122199         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
122200         with new ullong_max module.
122202 2005-01-19  Bruno Haible  <bruno@clisp.org>
122204         * modules/sh-quote: New file.
122205         * MODULES.html.sh (Executing programs): Add sh-quote.
122207 2005-01-19  Bruno Haible  <bruno@clisp.org>
122209         * lib/sh-quote.h: New file, from GNU gettext.
122210         * lib/sh-quote.c: New file, from GNU gettext.
122212 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122214         Merge from coreutils.
122215         * m4/ullong_max.m4: New file.
122216         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
122217         (gl_MACROS): Assume localeconv exists.
122219 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122221         Merge changes from coreutils, as described below in several
122222         changelogs dated today.
122224         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
122225         (O_DIRECTORY): Remove; not needed here, since "." must be
122226         a directory.  All uses removed.
122227         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
122228         universal on Suns, and we also need to test for IRIX.
122229         Revamp code to use 'if' rather than '#if'.
122230         Avoid unnecessary comparison of cwd->desc to 0.
122232         * lib/utimens.c (futimens): Robustify the previous patch, by checking
122233         for known valid error numbers rather than observed invalid ones.
122235 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122237         * modules/ullong_max: New file.
122239         * modules/chdir-long, modules/openat: New files.
122240         * modules/save-cwd (Depends-on): Depend on chdir-long.
122241         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
122243 2005-01-18  Jim Meyering  <jim@meyering.net>
122245         Merge from coreutils.
122246         * m4/chdir-long.m4, m4/openat.m4: New files.
122247         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
122248         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
122249         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
122250         is sane and DOES follow symlinks.  Besides, testing 20 different
122251         systems found no broken chown implementations.
122252         Prompted by a change in rsync's copy of this macro.
122253         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
122255         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
122257         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
122258         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
122259         NULL-means-set-to-current-time semantics.
122260         Remove temporary file immediately, rather than waiting
122261         for configure's at-exit trap code to do it.
122263 2005-01-18  Jim Meyering  <jim@meyering.net>
122265         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122267         * lib/utimens.c (futimens): Account for the fact that futimes
122268         can also fail with errno == ENOSYS or errno == ENOENT.
122269         Patch from Dmitry V. Levin.
122271         Change the name of the robust chdir function from chdir to chdir_long.
122272         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
122273         (restore_cwd): Use chdir_long, not chdir.
122274         * lib/chdir-long.c: Renamed from chdir.c.
122275         * lib/chdir-long.h: Renamed from chdir.h.
122276         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
122277         Hurd.
122279 2005-01-18  Bruno Haible  <bruno@clisp.org>
122281         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
122282         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
122283         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
122284         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
122285         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
122286         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
122287         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
122288         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
122289         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
122290         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
122291         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
122292         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
122293         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
122294         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
122295         Use an all-permissive copyright notice, recommended by RMS.
122297 2005-01-18  Bob Proulx  <bob@proulx.com>
122299         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
122300         simplify offsetof() macro construct to avoid compile failure with
122301         native HP-UX 11.0 ANSI C compiler.
122303 2005-01-17  Bruno Haible  <bruno@clisp.org>
122305         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
122306         redundant because stpncpy.m4 takes care of it.
122308 2005-01-17  Bruno Haible  <bruno@clisp.org>
122310         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
122312 2005-01-17  Bruno Haible  <bruno@clisp.org>
122314         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
122315         used.
122317 2005-01-17  Bruno Haible  <bruno@clisp.org>
122319         * lib/fwriteerror.h (fwriteerror): Change specification to include
122320         fclose.
122321         * lib/fwriteerror.c: Include <stdbool.h>.
122322         (fwriteerror): At the end, close the file stream. Record whether
122323         stdout was already closed.
122325 2005-01-17  Bruno Haible  <bruno@clisp.org>
122327         * lib/execute.c (environ): Declare if needed.
122328         * lib/pipe.c (environ): Likewise.
122329         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
122331 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122333         * modules/argp: Depend on vsnprintf
122335 2005-01-10  Jim Meyering  <jim@meyering.net>
122337         * modules/closeout (Depends-on): Add atexit.
122339 2005-01-06  Bruno Haible  <bruno@clisp.org>
122341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
122343 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
122345         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
122346         definitions to be after all include files, to avoid collisions.
122347         Problem reported by Bob Proulx.
122349 2005-01-04  Jim Meyering  <jim@meyering.net>
122351         Changes imported from coreutils.
122352         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
122353         as the mkstemp template, use a temporary directory and an
122354         8.3-friendly template to avoid trouble on systems like DJGPP.
122355         Reported by Juan M. Guerrero via Stepan Kasal.
122356         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
122357         close. Remove the temporary directory right away, rather than waiting
122358         for configure's at-exit trap code to do it.
122359         Suggestion from Stepan Kasal.
122361 2005-01-01  Simon Josefsson  <jas@extundo.com>
122363         * gnulib-tool: Print #include directives when --import'ing.
122365 2004-12-28  Simon Josefsson  <jas@extundo.com>
122367         * tests/test-base64.c: Include required header files.  Remove
122368         unused variables.
122370 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122372         * modules/error (Depends-on): Remove gettext.
122374 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122376         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
122377         not needed.  This removes a dependency on the gettext module.
122378         [defined _LIBC]: Do not include <libintl.h>; not needed.
122380 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122382         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
122383         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
122385 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122387         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
122388         HAVE_DECL_STRTOLD.
122390 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122392         * modules/getdate (Depends-on): Remove alloca-opt.
122394 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122396         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
122398 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122400         * lib/argp-parse.c: Include <stddef.h>.
122401         (alignof, alignto): New macros.
122402         (parser_init): Don't assume that void * is aligned sufficiently
122403         for struct option.
122405         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
122406         need to extend the stack.
122407         (YYINITDEPTH): New macro, so that the initial stack isn't overly
122408         large.
122410 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122412         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
122414 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122416         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
122417         (2004-10-24) change.  Apparently this was a false alarm.
122419         * modules/getdate: Depend on alloca-opt, not alloca.
122421 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122423         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
122424         Remove now-obsolete comment about AIX.
122425         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
122426         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
122427         (YYMAXDEPTH): New macro.
122429 2004-12-18  Simon Josefsson  <jas@extundo.com>
122431         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
122433 2004-12-18  Bruno Haible  <bruno@clisp.org>
122435         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
122437 2004-12-18  Bruno Haible  <bruno@clisp.org>
122439         * lib/fatal-signal.c (fatal_signals): Make non-const.
122440         (init_fatal_signals): New function.
122441         (uninstall_handlers, install_handlers): Ignore signals that were set to
122442         SIG_IGN.
122443         (at_fatal_signal): Call init_fatal_signals.
122444         (init_fatal_signal_set): Likewise. Ignore signals that were set to
122445         SIG_IGN.
122446         Reported by Paul Eggert.
122448 2004-12-18  Bruno Haible  <bruno@clisp.org>
122450         * doc/alloca.texi: New file.
122451         * doc/alloca-opt.texi: New file.
122453 2004-12-17  Jim Meyering  <jim@meyering.net>
122455         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
122456         Otherwise, install-sh could exit with improper exit status when
122457         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
122459 2004-12-16  Simon Josefsson  <jas@extundo.com>
122461         * tests/test-base64.c: Add license.
122463 2004-12-15  Stepan Kasal  <address@hidden>
122465         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
122467 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
122469         * modules/getcwd (Files): Add m4/d-ino.m4.
122470         Suggested by Mark D. Baushke.
122472 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122474         * lib/getdate.y (textint): New member "negative".
122475         (time_zone_hhmm): New function.
122476         Expect 14 shift-reduce conflicts, not 13.
122477         (o_colon_minutes): New rule.
122478         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
122479         (yylex): Set the "negative" member of signed numbers.
122481 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122483         * doc/getdate.texi (Time of day items, Time zone items):
122484         Describe new formats +00:00, UTC+00:00.
122486 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
122488         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
122489         spurious "-l"s.  Problem reported by Stepan Kasal.
122491 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
122493         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
122494         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
122496 2004-12-04  Simon Josefsson  <jas@extundo.com>
122498         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
122499         Vandoorselaere <yoann@prelude-ids.org>.
122501 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122503         Changes imported from coreutils.
122504         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
122505         exist.
122506         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
122508 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122510         Changes imported from coreutils.
122511         * lib/hard-locale.c: Assume <locale.h> exists.
122512         Include "strdup.h".
122513         (GLIBC_VERSION): New macro.
122514         (hard_locale): Assume setlocale exists.
122515         Rewrite to avoid #ifdef.
122516         Use strdup rather than malloc + strcpy.
122517         * lib/human.c: Assume <locale.h> exists.
122518         (human_readable): Assume localeconv exists.
122520 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122522         * modules/hard-locale (Depends-on): Add strdup.
122524 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
122526         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
122527         convert T2, not T.  (Imported from libc.)
122529 2004-11-30  Simon Josefsson  <jas@extundo.com>
122531         * modules/restrict (License): Change to LGPL.
122533 2004-11-30  Simon Josefsson  <jas@extundo.com>
122535         * m4/restrict.m4: Add copyright and copying conditions.
122537 2004-11-30  Simon Josefsson  <jas@extundo.com>
122539         * m4/base64.m4: New file.
122541 2004-11-30  Simon Josefsson  <jas@extundo.com>
122543         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
122544         base64.
122546         * tests/test-base64.c: New file.
122548         * modules/base64: New file.
122550 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122552         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
122553         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
122555         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
122557 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122559         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
122560         (__getcwd.c): Don't restore errno; glibc doesn't.
122561         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
122562         first, falling back to our code only if its results look suspicious.
122563         Ensure that the resulting buffer is only as large as necessary.
122565         * lib/readutmp.c: Include readutmp.h first.
122566         Include <errno.h>, since readutmp.h no longer does that.
122567         * lib/readutmp.h: Don't include <errno.h>,
122568         <sys/param.h>, <time.h>; not needed to establish interface.
122569         (errno): Remove decl.
122570         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
122571         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
122572         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
122574 2004-11-28  Simon Josefsson  <jas@extundo.com>
122576         * lib/base64.h, base64.c: New file.
122578 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
122580         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
122582 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
122584         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
122585         (Depends-on): Remove pathmax, same.  Add mempcpy.
122586         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
122587         (Makefile.am): Append getcwd.h to lib_SOURCES.
122588         (Include): Add getcwd.h.
122589         (Maintainer): Change from Jim Meyering to "all, glibc",
122590         since getdate now uses intended-for-glibc code.
122591         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
122592         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
122594 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122596         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
122597         HP's ANSI C compiler.
122598         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
122599         Declaring int functions causes warnings on some modern systems and
122600         shouldn't be needed to compile on ancient ones.
122601         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
122602         defined.
122604         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
122605         with the following changes.
122606         (__set_errno): Parenthesize properly.
122607         Include <stdbool.h>.
122608         (MIN, MAX, MATCHING_INO): New macros.
122609         (__getcwd): Define with prototype, not K&R form.
122610         Use heuristics to allocate default buffer on stack if possible.
122611         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
122612         behavior, and to avoid the PATH_MAX limit when computing
122613         ../../../../...
122614         Use MATCHING_INO to compare inode number to file.
122615         Check for arithmetic overflow in size calculations.
122616         Fix bug in reallocation of dot array that caused getcwd to fail
122617         on directories nested deeper than 75.
122618         Be more careful about saving errno on error.
122619         Do not use realloc; use only free+malloc, as this is a bit
122620         more flexible and avoids a needless copy operation.
122621         Do not inspect st_dev and st_ino for symbolic links; POSIX
122622         doesn't specify the latter.
122623         Check for closedir errors.
122624         Avoid needless casts.
122625         Use "#ifdef weak_alias" around weak_alias, to be like other
122626         glibc code.
122627         The following changes to getcwd.c have effect only when used in
122628         gnulib; they have no effect inside glibc proper.
122629         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
122630         as alloca isn't used.
122631         (alloca, __alloca): Likewise.
122632         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
122633         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122634         unconditionally, as gnulib assumes C89 or better.
122635         Do not include <sys/param.h>.
122636         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
122637         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
122638         better.
122639         (NULL) [!defined NULL]: Remove; we assume C89 or better.
122640         Include <dirent.h> in a way that is compatible with modern Autoconf.
122641         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
122642         New macros, if not already defined.
122643         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
122644         Use "_LIBC", not "defined _LIBC", for consistency.
122645         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
122646         a mempcpy module.
122647         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
122648         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
122649         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
122650         credit only to Jim Meyering and adjust the copyright dates.
122651         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
122652         <stdlib.h>, <unistd.h>, "pathmax.h".
122653         Instead, include "xgetcwd.h" (first) and "getcwd.h".
122654         (INITIAL_BUFFER_SIZE): Remove.
122655         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
122657 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122659         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
122660         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
122661         Use the _ONCE methods, for efficiency.
122662         Check for fcntl.h.  In test program, include <errno.h>
122663         and <fcntl.h> if available.  Remove old K&R cruft from
122664         test program.  Check for common errors in GNU/Linux,
122665         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
122666         don't do AC_LIBOBJ, as that's getcwd.m4's job.
122667         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
122668         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
122669         name accordingly.
122670         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
122671         accommodate new getcwd.c.
122672         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
122673         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
122674         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
122675         that's all we need now.
122677 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122679         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
122680         argp-parse.c depends on getopt internals, that means we should
122681         always use our getopt, to be on the safe side.
122682         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
122683         order not to spoil the result of an eventual previous invocation
122684         of gl_GETOPT_SUBSTITUTE.
122686 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122688         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
122689         redefinition warnings. To avoid them, include the defines
122690         in `#if !defined __need_getopt ... #endif'. The only place
122691         where __getopt_argv_const is used is in definitions
122692         of getopt_long and getopt_long_only below, which are as well
122693         protected by `#ifndef __need_getopt'.
122694         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
122695         __need_getopt after including <stdio.h> and <unistd.h> These
122696         headers might have defined it.
122698 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122700         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
122702 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122704         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
122705         (futimens): New function, which uses futimes if available.
122706         (futimens, utimens): Support timespec==NULL, with same semantics
122707         as utime and utimens.
122708         * lib/utimens.h (futimens): New decl.
122710 2004-11-23  Jim Meyering  <jim@meyering.net>
122712         * lib/getopt_.h: Remove trailing blanks.
122714 2004-11-23  Jim Meyering  <jim@meyering.net>
122716         * lib/__fpending.c: Add comment.
122718 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
122720         * modules/canonicalize (Depends-on): Add xreadlink.
122721         Problem reported by James Youngman.
122723 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
122725         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
122726         New macros.
122727         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
122728         optopt): Use them instead of invoking ## directly; otherwise, the
122729         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
122731 2004-11-19  Bruno Haible  <bruno@clisp.org>
122733         * lib/strtok_r.c: Move comments from here...
122734         * lib/strtok_r.h: ... to here.
122736 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122738         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
122739         implementations that mishandle size_t overflow.
122741 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122743         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
122744         might fail.  Problem reported by Yoann Vandoorselaere.
122745         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
122746         implementations that mishandle size_t overflow.
122748 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122750         * modules/canon-host (Depends-on): Add strdup.
122752 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122754         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
122756 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122758         * lib/canon-host.c: Include "strdup.h".
122759         (canon_host): Use getaddrinfo if available, so that IPv6 works.
122760         Use strdup instead of malloc/strcpy to duplicate strings.
122762         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
122763         (human_space_before_unit): New constant.
122764         * lib/human.c (human_readable): Support it.
122766         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
122767         (xgetcwd): Set errno correctly when failing.
122768         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
122769         the failure is actually due to a PATH_MAX problem.
122771         Further getopt changes to make it more likely that glibc will
122772         buy the changes back.
122773         * lib/getopt.c (POSIXLY_CORRECT): New constant.
122774         (getopt): Use it, so to preserve glibc semantic
122775         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
122776         when compiling for libc.
122777         * lib/getopt_.h (__getopt_argv_const): Bring it back.
122778         (getopt_long, getopt_long_only): Use it.
122780         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122781         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
122782         (getopt): Argv is now char * const *, as per standard.
122783         (_getopt_internal_r, _getopt_internal): Argv is now char **,
122784         not char *__getopt_argv_const *.
122785         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122786         _getopt_long_only_r): Likewise.
122787         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
122788         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122789         _getopt_long_r, _getopt_long_only_r): Likewise.
122790         * lib/getopt_.h (__getopt_argv_const): Remove.
122791         (getopt): Argv is now char * const *, as per standard.
122793         * lib/getdate.y (tORDINAL): New token.
122794         (day, relunit): Allow it for relative times.
122795         (relative_time_table): Use tORDINAL for ordinals.
122797 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122799         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
122800         Document that "second" isn't allowed as an ordinal number.
122802 2004-11-16  Jim Meyering  <jim@meyering.net>
122804         * modules/closeout (Depends-on): Add fpending.
122806 2004-11-15  Jim Meyering  <jim@meyering.net>
122808         * lib/closeout.c: Include "__fpending.h" once again.
122809         Include <stdbool.h>.
122810         (close_stdout): Don't fail just because stdout was closed initially,
122811         since some programs don't write to stdout in the normal course of
122812         operation (other than --version and --help), and we don't want this
122813         function to make e.g. `touch file >&-' fail.
122814         But do fail if it was closed and someone has tried to write to it.
122815         E.g., `printf foo >&-' must fail.
122817 2004-11-13  Jim Meyering  <jim@meyering.net>
122819         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
122821 2004-11-12  Simon Josefsson  <jas@extundo.com>
122823         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
122824         small doc fix is still pending.
122826 2004-11-11  Simon Josefsson  <jas@extundo.com>
122828         * modules/strtok_r: New file.
122830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122831         strtok_r.
122833 2004-11-11  Simon Josefsson  <jas@extundo.com>
122835         * m4/strtok_r.m4: New file.
122837         * m4/getopt.m4: Replace opterr.
122839 2004-11-11  Simon Josefsson  <jas@extundo.com>
122841         * lib/strtok_r.h, strtok_r.c: New file.
122843 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122845         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
122846         of replacing opterr, getopt, etc.  This should handle the
122847         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
122849 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122851         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
122852         we can stop lying to compilers about the constness of argv when we
122853         are compiled outside glibc.
122854         (getopt, getopt_long, getopt_long_only): Use it.
122855         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122856         _getopt_internal, getopt): Likewise.
122857         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122858         _getopt_long_only_r): Likewise.
122859         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122860         _getopt_long_r, _getopt_long_only_r): Likewise.
122862         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
122863         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
122864         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
122865         the other external symbols.
122866         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
122867         declaration, since the above renaming now works around collisions.
122869 2004-11-11  Jim Meyering  <jim@meyering.net>
122871         * lib/linebreak.c: Remove trailing blanks.
122872         * lib/alloca_.h: Likewise.
122873         * lib/acosl.c: Likewise.
122874         * lib/euidaccess.c: Likewise.
122875         * lib/allocsa.h: Likewise.
122877 2004-11-10  Simon Josefsson  <jas@extundo.com>
122879         * m4/getaddrinfo.m4: New file.
122881 2004-11-10  Simon Josefsson  <jas@extundo.com>
122883         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
122885 2004-11-10  Simon Josefsson  <jas@extundo.com>
122887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122888         getaddrinfo.
122890         * modules/getaddrinfo: New file.
122892 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122894         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
122896 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122898         * lib/mktime.c (SHR): New macro, which is a portable
122899         substitute for >> that should work even on Crays.
122900         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
122901         Problem reported by Mark D. Baushke in
122902         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
122903         * lib/getdate.y (SHR): Likewise.
122904         (tm_diff): Use it.
122905         * lib/strftime.c (SHR): Likewise.
122906         (tm_diff): Use it.
122907         * lib/quotearg.c (struct quoting_options): Use unsigned int for
122908         quote_these_too, so that right shifts are well defined.  All uses
122909         changed.
122911 2004-11-10  Jim Meyering  <jim@meyering.net>
122913         Ensure that no close failure goes unreported.
122914         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
122915         return early when it seems there's nothing to flush.
122916         Don't include __fpending.h.
122918 2004-11-10  Jim Meyering  <jim@meyering.net>
122920         * modules/closeout (Depends-on): Remove fpending.
122922 2004-11-10  Jim Meyering  <jim@meyering.net>
122924         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
122926 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
122928         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
122929         gl_FUNC_STRFTIME.
122930         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
122931         and AC_REQUIRE when possible, to avoid duplicate checks.
122932         Check for <wchar.h>.
122934 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
122936         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
122938 2004-11-09  Bruno Haible  <bruno@clisp.org>
122940         * m4/sockpfaf.m4: New file.
122942 2004-11-05  Bruno Haible  <bruno@clisp.org>
122944         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
122945         Reported by Mark D. Baushke <mdb@cvshome.org>.
122947 2004-11-04  Bruno Haible  <bruno@clisp.org>
122949         2004-09-11  Bruno Haible  <bruno@clisp.org>
122950                 * allocsa.valgrind: New file.
122951         2004-02-06  Bruno Haible  <bruno@clisp.org>
122952                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
122953                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
122954                 Reported by Christopher Seip <chris.seip@hp.com>.
122956 2004-11-04  Bruno Haible  <bruno@clisp.org>
122958         * modules/allocsa (Files): Add lib/allocsa.valgrind.
122959         (Makefile.am): Distribute it.
122961 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
122963         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
122964         with errno == ERANGE if the buffer is too small.
122965         Problem reported by Mark D. Baushke.
122967 2004-11-03  Albert Chin  <china@thewrittenword.com>
122968             Paul Eggert  <eggert@cs.ucla.edu>
122970         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
122971         equivalent, substitute $ac_type for equivalent type rather than
122972         blindly using uint32_t *always* which won't work if uint32_t is not
122973         available.  Define _UINT32_T to work around typedef of uint32_t if
122974         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
122975         2.5.1.
122977 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122979         * m4/jm-macros.m4: Sync from coreutils.
122980         (gl_MACROS): Check for mbrlen, for pathchk.
122981         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
122983 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122985         * lib/xreadlink.c (MAXSIZE): New macro.
122986         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
122987         size does not exceed MAXSIZE.  Avoid cast.
122988         As suggested by Mark D. Baushke in
122989         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
122990         if readlink fails with buffer size just under MAXSIZE, try again
122991         with MAXSIZE.
122993 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
122995         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
122997 2004-11-02  Derek R. Price  <derek@ximbiot.com>
122998         and  Paul Eggert  <eggert@cs.ucla.edu>
123000         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
123001         (get_date): Overparenthesize to avoid GCC warning.
123003 2004-11-02  Bruno Haible  <bruno@clisp.org>
123005         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
123006         returns void.
123008 2004-11-02  Bruno Haible  <bruno@clisp.org>
123010         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
123011         function returns void.
123013 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123015         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
123016         fflush_unlocked, flockfile, funlockfile, funlockfile,
123017         fputs_unlocked, putc_unlocked.
123019 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123021         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123022         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
123023         already declared.
123025 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123027         * modules/getdate (Files): Add doc/getdate.texi.
123028         (Depends-on): Add setenv, xalloc.
123030 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123032         * lib/getdate.y: Add support for TZ="foo" within a date string.
123033         Fix some bugs near time_t boundaries.  Reject dates with
123034         out-of-range components, e.g., "Sept 31".
123035         Include <stdlib.h>, "setenv.h", "xalloc.h".
123036         (ISDIGIT_LOCALE): Remove; unused.
123037         Note that the TZ and time functions used here are not reentrant.
123038         (mktime_ok, get_tz): New functions.
123039         (TZBUFSIZE): New constant.
123040         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
123041         This requires that we sometimes generate our own TZ="XXX..." setting.
123043 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123045         * doc/getdate.texi: New file, from coreutils with modifications for
123046         the new TZ parsing.
123048 2004-10-27  Derek R. Price  <derek@ximbiot.com>
123050         * lib/mktime.c (not_equal_tm): Remove redundant check.
123052 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123054         * modules/regex (lib_SOURCES): Add regex.c.
123055         Reported by James Youngman in
123056         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
123058 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123060         * lib/getdate.y: Use Bison 1.875 features, and some minor
123061         code cleanups.  This change does not affect semantics.
123062         Don't include <stdlib.h>; no longer needed.
123063         Don't include unlocked-io.h; only the "#if TEST" code uses
123064         stdio, and performance isn't crucial there.
123065         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
123066         Bison 1.875 features as described below.
123067         All uses of "PC." replaced by "pc->".
123068         (YYSTYPE): Add a forward declaration.
123069         (yylex, yyerror): Use full prototypes in forward decls.
123070         Use "%pure-parser" rather than obsolescent "%pure_parser".
123071         Use %parse-param and %lex-param instead of obsolescent
123072         YYPARSE_PARAM and YYLEX_PARAM.
123073         (meridian_table, month_and_day_table, time_units_table,
123074         relative_time_table, time_zone_table, military_table,
123075         lookup_zone, lookup_word, get_date):
123076         Use NULL instead of 0 where appropriate.
123077         (to_hour): Avoid abort (), to avoid a dependency on
123078         stdlib.h.
123079         (yyerror, yylex): Now accepts parser_control * arg.
123080         (main) [TEST]: Use '\0' rather than 0 for char.
123082 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123084         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
123086 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123088         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
123089         It's now the caller's responsibility to handle the case where
123090         !HAVE_GETPAGESIZE && !defined getpagesize.
123092         * lib/mktime.c (leapyear): Arg is long int, not int.
123094 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
123096         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
123098 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
123100         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
123101         missing.  Problem reported by James Youngman.
123103 2004-10-16  Simon Josefsson  <jas@extundo.com>
123105         * gnulib-tool: Fix comments.  Fix parse problem.
123106         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
123108 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
123110         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
123111         implementation of getopt_long.  Problem reported by Alexander Taler in:
123112         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
123114 2004-10-15  Bruno Haible  <bruno@clisp.org>
123116         * gnulib-tool: Untabify. Initialize supplied_libname.
123117         (func_usage): More homogenous output.
123118         (func_modules_transitive_closure, func_modules_to_filelist,
123119         func_emit_lib_Makefile_am): New functions.
123120         (func_import): New function, extracted from big case statement. Use
123121         func_get_license, func_modules_transitive_closure,
123122         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
123123         opt_lgpl. Don't use test -a, as it's not portable.
123124         (func_create_testdir): Use func_modules_transitive_closure,
123125         func_modules_to_filelist, func_emit_lib_Makefile_am.
123127 2004-10-15  Bruno Haible  <bruno@clisp.org>
123129         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
123131 2004-10-15  Bruno Haible  <bruno@clisp.org>
123133         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
123134         the portions belonging to each module.
123135         Suggested by Derek Robert Price <derek@ximbiot.com>.
123137 2004-10-12  Simon Josefsson  <jas@extundo.com>
123139         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123140         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
123141         to real functions.
123143 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123145         * modules/vsnprintf: New file.
123147 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123149         * m4/vsnprintf.m4: New file.
123151 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123153         * lib/vsnprintf.h: New file.
123154         * lib/vsnprintf.c: New file.
123156 2004-10-11  Bruno Haible  <bruno@clisp.org>
123158         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
123159         vsnprintf.
123161 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
123163         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
123165 2004-10-07  Bruno Haible  <bruno@clisp.org>
123167         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
123168         fits into the provided buffer.
123170 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
123172         * lib/diacrit.c, diacrit.h: Add GPL notice.
123174         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
123175         notice.
123176         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
123177         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
123178         This avoids a potential constant-folding bug.
123180 2004-10-05  Bruno Haible  <bruno@clisp.org>
123182         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
123183         for the declaration of strsep.
123185 2004-10-05  Bruno Haible  <bruno@clisp.org>
123187         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
123189 2004-10-04  Simon Josefsson  <jas@extundo.com>
123191         * modules/memmem: New file.
123192         * tests/test-memmem.c: New file.
123193         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
123195 2004-10-04  Simon Josefsson  <jas@extundo.com>
123197         * m4/memmem.m4: New file.
123199 2004-10-04  Simon Josefsson  <jas@extundo.com>
123201         * lib/memmem.h: New file.
123202         * lib/memmem.c: New file, taken from glibc.
123204 2004-10-04  Simon Josefsson  <jas@extundo.com>
123206         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
123207         '#ifdef USE_UNLOCKED_IO'.
123209 2004-10-04  Simon Josefsson  <jas@extundo.com>
123211         * config/srclist.txt: Add memmem from glibc.
123213 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123215         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
123217         * modules/argmatch, modules/argp, modules/closeout, modules/error,
123218         modules/exclude, modules/getdate, modules/getline,
123219         modules/getndelim2, modules/getpass, modules/getpass-gnu,
123220         modules/getusershell, modules/linebuffer, modules/md5,
123221         modules/mountlist, modules/posixtm, modules/readtokens,
123222         modules/readutmp, modules/regex, modules/sha1,
123223         modules/version-etc, modules/yesno:
123224         Remove dependency on unlocked-io.
123226 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123228         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
123230         * m4/unlocked-io.m4: Add copyright notice.
123231         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
123233 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123235         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
123236         * lib/xmalloc.c (xmemdup): Likewise.
123237         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
123238         XFREE): Remove these long-obsolescent macros.
123239         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
123240         * lib/xstrdup.c: Remove.
123242         * lib/regex.c (re_comp): Cast gettext return value to char *,
123243         Problem reported by Martin Neitzel via Mark D. Baushke.
123245 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123247         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
123248         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
123249         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
123250         regex.c, sha1.c, version-etc.c, yesno.c:
123251         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
123252         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
123253         the includer's responsibility.
123255         Sync from coreutils.
123257         * lib/modechange.c (mode_compile): Don't decrement a pointer that
123258         points to the start of a string, as the C Standard says the
123259         resulting behavior is undefined.
123261         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
123262         simple -> simple_backups, numbered_existing ->
123263         numbered_existing_backups, numbered -> numbered_backups
123264         to avoid shadowing problems.  All uses changed.
123265         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
123266         * lib/backupfile.c (check_extension, numbered_backup):
123267         Rename locals to avoid shadowing 'basename'.
123268         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
123269         once.
123271         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
123272         * lib/.cvsignore: Add getopt.h.
123274 2004-10-04  Bruno Haible  <bruno@clisp.org>
123276         * modules/README: New file.
123277         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
123278         not a module.
123280 2004-10-02  Jim Meyering  <jim@meyering.net>
123282         * lib/dirfd.h, getpagesize.h: Add copyright notice.
123284 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123286         * modules/strsep: New file.
123288 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123290         * m4/strsep.m4: New file.
123292 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123294         * lib/strsep.h: New file.
123295         * lib/strsep.c: New file.
123297 2004-10-01  Simon Josefsson  <jas@extundo.com>
123299         * lib/snprintf.c (snprintf): Handle size==0.
123301 2004-10-01  Simon Josefsson  <jas@extundo.com>
123302             Bruno Haible  <bruno@clisp.org>
123304         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
123305         (snprintf): Declare 'args'.
123307 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
123309         * lib/snprintf.c: Remove comments as to why each header is needed.
123311 2004-10-01  Bruno Haible  <bruno@clisp.org>
123313         * MODULES.html.sh: Add strsep.
123315 2004-09-30  Simon Josefsson  <jas@extundo.com>
123317         * modules/snprintf: New file.
123319 2004-09-30  Simon Josefsson  <jas@extundo.com>
123321         * m4/snprintf.m4: New file.
123323 2004-09-30  Simon Josefsson  <jas@extundo.com>
123325         * lib/snprintf.h, lib/snprintf.c: New files.
123327 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123329         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
123330         (hol_entry_help): Never translate an empty string.
123331         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
123332         * lib/argp.h (OPTION_NO_TRANS): New option.
123334 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123336         * modules/argp (Maintainer): Replace Simon Josefsson
123337         by Sergey Poznyakoff.
123339 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123341         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
123342         changes merged back into glibc.
123344 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123346         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
123348 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
123350         * lib/xvasprintf.c: Include xalloc.h.
123351         (xvasprintf): Use xalloc_die, not xmalloc_die.
123353 2004-09-29  Bruno Haible  <bruno@clisp.org>
123355         * modules/alloca-opt: New file, derived from modules/alloca.
123356         * modules/allocsa: Depend on alloca-opt instead of alloca.
123357         * modules/setenv: Likewise.
123358         * modules/vasnprintf: Likewise.
123359         * MODULES.html.sh: Add alloca-opt.
123361 2004-09-28  Simon Josefsson  <jas@extundo.com>
123363         * gnulib-tool: New parameter --lgpl, to asseert that modules are
123364         LGPL, and to replace license template from GPL to LGPL.
123366 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123368         * modules/dummy: Change license to LGPL.
123370 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123372         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
123374 2004-09-24  Simon Josefsson  <jas@extundo.com>
123376         * modules/minmax (License): Change from GPL to LGPL.
123378 2004-09-23  Simon Josefsson  <jas@extundo.com>
123380         * gnulib-tool (--import): Typo.
123382 2004-09-23  Simon Josefsson  <jas@extundo.com>
123384         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
123386 2004-09-22  Bruno Haible  <bruno@clisp.org>
123388         * modules/*: Add 'License' field.
123389         * gnulib-tool: Accept --extract-license option.
123390         (func_get_license): New function.
123392 2004-09-21  Bruno Haible  <bruno@clisp.org>
123394         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
123395         Reported by Simon Josefsson.
123397 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123399         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
123400         gl_AC_TYPE_LONG_LONG.
123402 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123404         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
123406 2004-09-18  Simon Josefsson  <jas@extundo.com>
123407         and  Paul Eggert  <eggert@cs.ucla.edu>
123409         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
123410         calls with autoreconf.  Define GL_LIB.
123412 2004-09-14  Karl Berry  <karl@gnu.org>
123414         * config/srclist.txt: unsync setenv.c, sigh.
123416 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123418         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
123419         Problem reported by Bruno Haible in:
123420         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
123422 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123424         * config/srclist.txt: Comment out argp-pvh.c.
123426 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
123428         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
123429         in case some system header has #define'd it.  Problem reported by
123430         Soeren D. Schulze in
123431         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
123433 2004-09-09  Karl Berry  <karl@gnu.org>
123435         * regex.[ch]: delete from the root.  These were supposed to be
123436                 synced with emacs cvs, but this has not happened for about
123437                 a year, and anyway nothing else uses emacs regex.[ch].
123438                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
123439                 lib/regex[.ch] is untouched.
123441 2004-09-09  Bruno Haible  <bruno@clisp.org>
123443         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
123445 2004-09-09  Bruno Haible  <bruno@clisp.org>
123447         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
123448         modifications.
123449         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
123451 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123453         * modules/xvasprintf: New file.
123454         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
123456 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123458         * lib/xvasprintf.h: New file.
123459         * lib/xvasprintf.c: New file.
123460         * lib/xasprintf.c: New file.
123462 2004-09-08  Bruno Haible  <bruno@clisp.org>
123464         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
123466 2004-09-08  Bruno Haible  <bruno@clisp.org>
123468         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
123469         length is > INT_MAX.
123470         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
123471         more.
123473 2004-09-08  Bruno Haible  <bruno@clisp.org>
123475         * lib/stdint_.h: New file, taken from GNU clisp.
123477 2004-09-08  Bruno Haible  <bruno@clisp.org>
123478             Oskar Liljeblad  <oskar@osk.mine.nu>
123480         * modules/stdint: New file.
123481         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
123483 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123485         Import from coreutils.
123486         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
123487         strings on unbounded length.  alloca's performance benefits aren't
123488         that important here.
123489         (V_STRDUP): Remove.
123490         (parse_with_separator): New function, with most of the internals
123491         of the old parse_user_spec.  Allow user to omit both user and group,
123492         for compatibility with FreeBSD.
123493         Clone only the user name, not the entire spec.
123494         Do not set *uid, *gid unless entirely successful.
123495         Avoid memory leak in some failing cases.
123496         Fix regression for USER.GROUP reported by Dmitry V. Levin in
123497         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
123498         (parse_user_spec): Rewrite to use parse_with_separator.
123500 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123502         * modules/userspec: Don't depend on alloca.
123504 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123506         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
123508 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
123510         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
123511         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
123512         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
123514 2004-08-16  Simon Josefsson  <jas@extundo.com>
123516         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
123517         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
123518         Add --dry-run for --import.
123519         Let user provided command line parameters override configure.ac
123520         settings.
123522 2004-08-12  Simon Josefsson  <jas@extundo.com>
123524         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
123525         as discussed with Paul Eggert in threads rooted at
123526         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
123527         and
123528         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
123529         Before, the test was empty, and relied on ELIDE_CODE in source
123530         code.)
123531         (gl_PREREQ_GETOPT): New macro.
123532         (gl_GETOPT): Use them.
123534 2004-08-12  Simon Josefsson  <jas@extundo.com>
123536         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
123537         * lib/getopt_.h: Renamed from getopt.h.
123539 2004-08-12  Simon Josefsson  <jas@extundo.com>
123541         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
123542         Change default library name from libfoo to libgnu.
123543         Now, if you have a configure.ac that says:
123544                 gl_SOURCE_BASE(gl)
123545                 gl_M4_BASE(gl/m4)
123546                 gl_MODULES(error getopt etcetera)
123547                 gl_INIT
123548         you can import all you need by running:
123549                 ../gnulib/gnulib-tool --import
123551         * modules/getopt (Files): Rename getopt.h to getopt_.h.
123552         (Makefile.am): Rewrite, use logic from argz.
123553         (Include): Use <getopt.h> instead of "getopt.h".
123555 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123557         * modules/argp (Files): Add m4/unlocked-io.m4.
123558         (Depends-on): Add extensions.
123560 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123562         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
123563         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
123564         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
123565         Check for program_invocation_name, program_invocation_short_name,
123566         flockfile, funlockfile, features.h, _getopt_long_only_r.
123568 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123570         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
123571         its complicated substitute.
123572         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
123573         and program_invocation_name.
123574         (__argp_basename) [!_LIBC]: Remove; the only use was
123575         replaced by its body.
123576         (__argp_short_program_name): Change condition from
123577         !defined __argp_short_program_name to
123578         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
123579         to match argp-namefrob.h.
123580         (__argp_failure): Don't assume strerror_r returns char *.
123581         * lib/argp-parse.c (N_): Define unconditionally.
123582         (argp_default_options): Fill out initializers with 0 to avoid
123583         gcc warnings.
123585 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123587         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
123588         getopt1.c.
123590 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123592         Merge from coreutils.
123594         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
123596         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
123597         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
123599 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123601         Merge from coreutils.
123603         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
123604         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
123605         for Reliant Unix 5.43.
123607         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
123608         (union fooround): Use uintmax_t, not long int.
123609         The rest is a merge from libc:
123610         [defined _LIBC]: Include <shlib-compat.h>.
123611         (_obstack) [defined _LIBC]: Remove after 2.3.4.
123613         * lib/settime.c (settime): Recode to avoid warning with
123614         Sun Forte C 6U2.
123616         * lib/strverscmp.c: Convert to UTF-8.
123618 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123620         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
123621         m4/uintmax_t.m4.
123623 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123625         * modules/xalloc-die: New file.
123626         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
123628         * modules/md5 (Files): Add m4/uint32_t.m4.
123629         * modules/sha1: Renamed from modules/sha.
123630         (Files):
123631         Rename lib/sha.h to lib/sha1.h.
123632         Rename lib/sha.c to lib/sha1.c.
123633         Rename m4/sha.m4 to m4/sha1.m4.
123634         (lib_SOURCES): Likewise.
123635         (configure.ac): Rename gl_SHA to gl_SHA1.
123636         (Include): sha.h -> sha1.h.
123638 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123640         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
123641         * m4/sha1.m4: Renamed from sha.m4.
123642         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
123644 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123646         * lib/obstack.h (obstack_empty_p):
123647         Don't assume that chunk->contents is suitably aligned.
123648         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
123649         Likewise. Problem reported by Benno in
123650         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
123652         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
123653         readable.  This could be improved further but it'd take some work.
123655 2004-08-08  Simon Josefsson  <jas@extundo.com>
123657         * modules/xgethostname (Depends-on): Remove exit and error (not
123658         used).
123660         * modules/getpass-gnu: Add getpass.h.
123661         (Depends-on): Add stdbool.
123662         * modules/getpass: Add getpass.h.
123664 2004-08-08  Simon Josefsson  <jas@extundo.com>
123666         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
123667         Check getpass declaration.
123669 2004-08-08  Simon Josefsson  <jas@extundo.com>
123671         * lib/xgethostname.c: Don't include error.h (not used).
123673         * lib/getpass.h: Add.
123674         * lib/getpass.c: Include getpass.h first.
123676 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
123678         * lib/xalloc-die.c: New file.
123679         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
123680         All uses removed.
123681         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
123682         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
123683         xalloc-die.c.
123684         (_, N_, xalloc_die): Move to xalloc-die.c.
123685         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
123686         so that we needn't mess with xalloc_msg_memory_exhausted.
123688         * lib/sha1.h: Renamed from sha.h.
123689         (SHA1_H): Renamed from _SHA_H.
123690         (sha1_ctx): Renamed from sha_ctx.
123691         (sha1_init_ctx): Renamed from sha_init_ctx.
123692         (sha1_process_block): Renamed from sha_process_block.
123693         (sha1_process_bytes): Renamed from sha_process_bytes.
123694         (sha1_finish_ctx): Renamed from sha_finish_ctx.
123695         (sha1_read_ctx): Renamed from sha_read_ctx.
123696         (sha1_stream): Renamed from sha_stream.
123697         (sha1_buffer): Renamed from sha_buffer.
123698         * lib/sha1.c: Likewise; renamed from sha.c.
123699         Do not include <sys/types.h>.
123700         Include <stddef.h> rather than <stdlib.h>.
123702 2004-08-08  Bruno Haible  <bruno@clisp.org>
123704         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
123705         FILESYSTEM_PREFIX_LEN.
123706         * lib/progreloc.c: Likewise.
123707         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
123709 2004-08-06  Simon Josefsson  <jas@extundo.com>
123711         * modules/progname (Depends-on): Don't depend on stdbool.
123713 2004-08-06  Simon Josefsson  <jas@extundo.com>
123715         * modules/getsubopt: New file.
123716         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123717         getsubopt.
123719 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123721         More merge from coreutils.
123723         * m4/utimens.m4, m4/utimecmp.m4: New files.
123724         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
123725         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
123726         prereq.m4, sha.m4: Import changes from coreutils.
123728 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123730         More merge from coreutils.
123731         * modules/raise, modules/readtokens0, modules/utimens:
123732         * modules/utimecmp, module/xnanosleep: New files.
123733         * modules/strftime: Add lib/strftime.h.
123734         Change include from <time.h> to "strftime.h".
123735         * modules/yesno: Add lib/yesno.h.
123736         * modules/backupfile: Remove lib/addext.c.
123737         * modules/euidaccess: Add stat-macros.h.
123738         * modules/canonicalize, modules/euidaccess,
123739         modules/filemode, modules/lchown, modules/makepath,
123740         modules/rmdir, modules/stat: Likewise.
123742 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123744         Merge from tar.
123745         * lib/argp-help.c (make_hol, hol_append): Don't assume that
123746         SIZE_MAX is a valid preprocessor constant.
123747         (__argp_basename): Change from "#ifndef _LIBC"
123748         to "#ifndef __argp_short_program_name", so that
123749         we don't compile these functions for tar.
123751         More merges from coreutils.
123752         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
123753         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
123754         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
123755         * lib/addext.c: Remove; no longer needed.
123756         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
123757         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
123758         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
123759         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
123760         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
123761         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
123762         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
123763         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
123764         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
123765         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
123766         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
123767         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
123768         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
123769         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
123770         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
123771         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
123772         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
123773         Import changes from coreutils.
123775 2004-08-05  Simon Josefsson  <jas@extundo.com>
123777         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
123779 2004-08-05  Simon Josefsson  <jas@extundo.com>
123781         * m4/getsubopt.m4: New file.
123783 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123785         Merge from coreutils.
123787         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
123788         * m4/getcwd-path-max.m4: New files.
123790         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
123791         FILESYSTEM_PREFIX_LEN ->
123792         FILE_SYSTEM_PREFIX_LEN.
123793         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
123794         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
123795         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
123796         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
123798         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
123799         prerequisite modules now handle the DOS stuff.
123800         Don't check for unistd.h.
123802 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123804         Merge from coreutils.
123806         * lib/.gdb-history: Remove; this doesn't belong here.
123808         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
123809         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
123810         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
123811         * lib/getcwd.c: New files.
123813         * lib/dirname.h: Include <stdbool.h>.
123814         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
123815         for consistency with POSIX terminology.  All uses changed.
123816         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
123817         (strip_trailing_slashes): Use bool for booleans.
123818         * lib/stripslash.c (strip_trailing_slashes): Likewise.
123820         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
123821         sometimes returns a positive errno value even when it succeeds.
123822         (print_errno_message) [!LIBC]: Fall back on strerror if
123823         __strerror_r fails.
123825         * lib/path-concat.c (mempcpy): Don't define if a system header defines
123826         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
123827         (longest_relative_suffix): New function.
123828         (path_concat): Use it.  Assume first argument is not NULL.
123829         Port to DOS.  Omit redundant separators.
123830         Report an error instead of returning NULL.
123831         Use mempcpy instead of memcpy.
123832         (xpath_concat): Remove: not declared or used.
123834         * lib/same.h: Include <stdbool.h>
123835         (same_name): Return bool, not int.
123836         * lib/same.c (same_name): Likewise.
123837         (errno): Don't declare; we assume C89 or better now.
123839         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
123840         if not already defined.
123842         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
123843         * lib/dup-safer.c (errno): Likewise.
123845 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123847         Merge from coreutils.
123848         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
123849         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
123850         * modules/path-concat: Don't depend on strdup.
123852 2004-08-03  Simon Josefsson  <jas@extundo.com>
123854         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
123855         * lib/progname.h: Don't include stdbool.h.
123857 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123859         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
123860         * MODULES.html.sh (func_all_modules): Remove fatal.
123862 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123864         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
123866 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123868         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
123869         working.
123871 2004-08-02  Simon Josefsson  <jas@extundo.com>
123873         * lib/getsubopt.h: New file, with comments from Bruno Haible.
123874         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
123875         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
123877 2004-08-01  Simon Josefsson  <jas@extundo.com>
123879         * lib/xgetdomainname.c: Include stdlib.h, for free().
123881 2004-07-19  Bruno Haible  <bruno@clisp.org>
123883         * MODULES.html.sh (func_all_modules): Add dummy.
123885 2004-07-16  Simon Josefsson  <jas@extundo.com>
123887         * modules/dummy: New file.
123889 2004-07-16  Simon Josefsson  <jas@extundo.com>
123891         * lib/dummy.c: New file.
123893 2004-07-16  Bruno Haible  <bruno@clisp.org>
123895         * lib/backupfile.h: Add extern "C" for C++.
123896         * lib/closeout.h: Likewise.
123897         * lib/copy-file.h: Likewise.
123898         * lib/findprog.h: Likewise.
123899         * lib/full-write.h: Likewise.
123900         * lib/pathname.h: Likewise.
123901         * lib/progname.h: Likewise.
123902         * lib/stpcpy.h: Likewise.
123903         * lib/stpncpy.h: Likewise.
123904         * lib/strcase.h: Likewise.
123905         * lib/strstr.h: Likewise.
123906         * lib/xalloc.h: Likewise.
123908         * lib/mbswidth.h: Add extern "C" for C++.
123909         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
123911 2004-07-13  Robert Millan  <robertmh@gnu.org>
123913         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
123915 2004-07-09  Simon Josefsson  <jas@extundo.com>
123917         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
123918         failed without this.)
123920 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123922         * modules/chown (Files): Add lib/fchown-stub.c, since
123923         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
123925 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123927         * lib/fchown-stub.c: New file.
123929 2004-06-24  Jim Meyering  <jim@meyering.net>
123931         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
123933 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123935         * modules/argz: Omit "#include".
123937         * MODULES.html.sh (func_all_modules): Add calloc, to match
123938         2004-06-01 addition of calloc module.
123940 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123942         * m4/argz.m4: New file, which is autoupdated from libtool.
123944 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123946         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
123947         libtool.
123949 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
123951         * config/srclist-update: Don't insist on "USA." before the
123952         close-comment, as libtool omits the period and puts the */ on a
123953         separate line.
123954         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
123955         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
123957 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
123959         * modules/argz: New file.
123960         * MODULES.html.sh (func_all_modules): Add argz.
123962 2004-06-12  Jim Meyering  <jim@meyering.net>
123963         and  Paul Eggert  <eggert@cs.ucla.edu>
123965         * modules/hash (Files): Add lib/xalloc.h.
123966         * modules/pipe (Depends-on): Add wait-process.
123967         * modules/stat (Depends-on): Add xalloc.
123968         * modules/userspec (Files): Add lib/userspec.h.
123969         * modules/xstrto
123971         Upgrade from gettext-0.13.
123972         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
123973         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
123974         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
123976 2004-06-10  Jim Meyering  <jim@meyering.net>
123978         * lib/calloc.c: New file.
123980 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
123982         * lib/getdate.y (yylex): Allow space between sign and number.
123983         Problem reported by Dan Jacobson.
123985 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
123987         Merge from coreutils CVS.
123989         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
123990         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
123991         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
123992         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
123993         xstrtol.m4: Fix copyright date and/or serial number.
123995         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
123996         See if we need an fchown replacement.
123997         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
123998         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
123999         and use the replacement function if we detect either defect.
124001         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
124002         gl_UTIMECMP.
124004 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124005         and  Jim Meyering  <jim@meyering.net>
124007         Merge from coreutils CVS.
124009         * lib/stat-macros.h: New file, with contents from file-type.h
124010         and coreutils' system.h.
124011         * lib/file-type.c: Include "stat-macros.h".
124012         * lib/file-type.h (file_type): Move all macro definitions to new file,
124013         stat-macros.h.
124015         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
124016         Wrap old code with this conditional.
124017         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
124018         function that does not dereference symlinks.
124019         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
124021         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
124022         dependency problems.
124023         (xreadlink): Accept new arg SIZE, for efficiency.
124024         All decls and uses changed.
124025         * lib/xreadlink.h: Include <stddef.h>, for size_t.
124027         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
124028         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
124030         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
124031         sysexits.h.
124033 2004-06-01  Jim Meyering  <jim@meyering.net>
124035         * m4/calloc.m4: New file.
124037 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
124039         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
124040         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
124041         Also, fix a typo in a diagnostic.
124043 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124045         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
124046         or AC_FUNC_REALLOC.
124048 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124050         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
124051         macros to be defined.
124052         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
124053         the allocator returns NULL because the requested size is zero.
124055 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
124057         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
124058         var.  Add comment explaining why libc still defines it.  This
124059         merges the following patch from glibc:
124060         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
124062 2004-05-20  Andreas Schwab  <schwab@suse.de>
124064         * m4/free.m4: Replace free if it not known to work, not the other
124065         way round.
124067 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
124069         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
124070         present in glibc since revision 1.1 of this file.
124071         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
124072         obstack_alignment_mask, obstack_alloc, obstack_base,
124073         obstack_blank, obstack_blank_fast, obstack_chunk_size,
124074         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
124075         obstack_grow0, obstack_init, obstack_int_grow,
124076         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
124077         obstack_next_free, obstack_object_size, obstack_ptr_grow,
124078         obstack_ptr_grow_fast, obstack_room): Remove declarations of
124079         nonexistent functions.
124081 2004-05-18  Karl Berry  <karl@gnu.org>
124083         * config/srclist.txt: break link for vasnprintf.c.
124085 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124087         Port obstack to the AS/400, where pointers are 16 bytes wide and
124088         you cannot cast an integer to a valid pointer.  This patch is
124089         currently waiting to be integrated into glibc; see
124090         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
124092         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
124093         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
124094         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
124095         (struct obstack): temp member is now a union of a pointer and
124096         an integer, instead of an integer.  All integer uses changed.
124097         This does not affect the physical layout of struct obstack,
124098         except on hosts (like the AS/400) where the size or alignment of
124099         void * is greater than that of ptrdiff_t.
124100         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
124101         __STDC__)]: Store temporary in pointer member of union, not
124102         integer member.
124103         * lib/obstack.c: Include <stddef.h>, for offsetof.
124104         (struct fooalign): Remove; it doesn't need a name.
124105         (union fooround): Change double to long double, and add void *.
124106         (DEFAULT_ALIGNMENT): Use offsetof to compute.
124107         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
124108         not a macro.  Hence the values are always int; so remove all
124109         casts-to-int in uses.
124111 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124113         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
124114         we can get this patch merged into glibc.
124116 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124117             Paul Eggert  <eggert@cs.ucla.edu>
124119         * m4/argp: Depend on alloca.
124121 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124122             Paul Eggert  <eggert@cs.ucla.edu>
124124         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
124125         freecoding.
124127 2004-05-17  Bruno Haible  <bruno@clisp.org>
124129         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
124130         precision that consists of a '.' followed by an empty digit string.
124131         Patch by Tor Lillqvist <tml@iki.fi>.
124133 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124135         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
124136         for backward compatibility with older code.  We need our own
124137         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
124138         it under some other name, and our alloca.h will define it.
124140 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124141             Derek Price  <derek@ximbiot.com>
124143         * lib/alloca.c: Include <alloca.h>, to get our interface.
124144         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
124145         include <alloca.h> first.  Use C89 prototype for alloca; this
124146         requires including <stddef.h> for size_t.  Use extern "C" if C++.
124147         Use #elif for simplicity, since we can assume C89 now.
124148         Don't try to source the system alloca.h since it will not be found
124149         and to prevent recursively including its replacement.
124150         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
124151         * lib/regex.c: Likewise.
124153 2004-05-16  Derek Price  <derek@ximbiot.com>
124154             Paul Eggert  <eggert@cs.ucla.edu>
124156         getline cleanup.  This changes the getndelim2 API: both order of
124157         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
124158         no delimiter).
124160         * lib/getline.c: Don't include stddef.h or stdio.h, since our
124161         interface does that.
124162         (getline): Always use getdelim, so that we don't have two
124163         copies of this code.
124164         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
124165         if available.
124166         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
124167         (GETNDELIM2_MAXIMUM): New macro.
124168         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
124169         instead of the old practice of delim2==0.  All callers changed.
124170         Return -1 on overflow, instead of returning junk.
124171         Do not set *linesize unless allocation succeeds.
124172         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
124173         that we include sys/types.h.
124174         * lib/getnline.h: Likewise.
124175         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
124176         (getndelim2): Reorder arguments.
124177         * lib/getnline.c (getnline, getndelim):
124178         Don't discard the NMAX argument.
124179         (getnline): Invoke getndelim, to avoid code duplication.
124180         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
124181         of (size_t) -1 by callers of the getnline family.
124183 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124185         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
124186         Check for gettimeofday.
124187         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
124188         Check for settimeofday, stime.
124190 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124192         * lib/nanosleep.c (suspended): Change its type from int to
124193         sig_atomic_t volatile.
124194         (first_call): Make it private to rpl_nanosleep, and have it
124195         be zero initially as that's a bit faster.
124196         (my_usleep): Round up fractional times instead of truncating them,
124197         as this is the usual meaning for 'sleep'.
124199         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
124200         doesn't work.
124201         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
124202         (ENOSYS): Define if not defined.
124203         (settime): Fall back on stime if it exists and settimeofday fails.
124204         But don't bother with fallbacks if a method fails with errno == EPERM.
124206 2004-05-11  Jim Meyering  <jim@meyering.net>
124208         Prior to this change, the save_cwd caller required read access to the
124209         current directory on most systems (ones with the fchdir function).
124211         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
124212         fails, try write-only, and finally, resort to using xgetcwd.
124214 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
124216         * lib/obstack.c, obstack.h: Import changes from libc.
124218 2004-04-28  Bruno Haible  <bruno@clisp.org>
124220         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
124221         also implicitly appends .exe to executables.
124222         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
124223         accepts Windows pathnames.
124224         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124225         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124226         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124227         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124228         Reported by Derek Robert Price <derek@ximbiot.com>.
124230 2004-04-21  Karl Berry  <karl@gnu.org>
124232         * config/srclist.txt (localcharset.c): break sync.
124234 2004-04-20  Paul Eggert  <eggert@twinsun.com>
124236         * m4/host-os.m4: Add a copyright notice.
124238 2004-04-20  Jim Meyering  <jim@meyering.net>
124240         Change UTILS_ to gl_ in AC_DEFINE'd names.
124241         Change utils_- and jm_-prefixed variables, too.
124242         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
124243         UTILS_FUNC_MKDIR_TRAILING_SLASH.
124244         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
124246         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
124247         Don't emit trailing blanks.
124248         Also rename jm_-prefixed variables to have gl_ prefix.
124250         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
124251         Also rename jm_-prefixed variables to have gl_ prefix.
124253         * m4/jm-macros.m4: Reflect the renamings.
124254         * m4/prereq.m4: Likewise.
124256 2004-04-20  Jim Meyering  <jim@meyering.net>
124258         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
124259         memory.
124261 2004-04-20  Jim Meyering  <jim@meyering.net>
124262             Bruno Haible  <bruno@clisp.org>
124264         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
124265         memory when realloc fails.
124267 2004-04-19  Jim Meyering  <jim@meyering.net>
124269         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
124270         now that readutmp.c may call `free (0)'.
124272 2004-04-19  Bruno Haible  <bruno@clisp.org>
124274         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
124275         * m4/inttypes_h.m4: Likewise.
124276         * m4/stdint_h.m4: Likewise.
124277         * m4/intmax_t.m4: Likewise.
124278         * m4/uintmax_t.m4: Likewise.
124280 2004-04-18  Jim Meyering  <jim@meyering.net>
124282         * m4/prereq.m4: Don't forbid jm_ prefix.
124284         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
124285         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
124286         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
124287         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
124288         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
124289         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
124290         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
124291         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
124292         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
124293         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
124294         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
124295         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
124296         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
124297         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
124298         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
124299         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
124300         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
124301         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
124302         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
124304 2004-04-18  Jim Meyering  <jim@meyering.net>
124306         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
124307         failure, don't leak memory and do call END_UTMP_ENT.
124309 2004-04-16  Jim Meyering  <jim@meyering.net>
124311         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
124312         coreutils' stat program.
124313         (gl_PREREQ): Don't require jm_PREREQ_STAT.
124315 2004-04-11  Paul Eggert  <eggert@twinsun.com>
124317         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
124318         C89.
124319         (CHAR_BIT): Remove, since we assume C89.
124320         Include <stdint.h> if available, as per current Autoconf CVS advice.
124322 2004-03-31  Jim Meyering  <jim@meyering.net>
124324         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
124325         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
124326         * m4/xalloc.m4: Likewise.
124328 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124330         Merge from coreutils.
124332         * m4/inttostr.m4: New file.
124333         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
124334         Require AM_STDBOOL_H and gl_TIMESPEC instead.
124335         Require gl_CLOCK_TIME.
124336         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
124338 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124340         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
124341         not bool, to be more consistent with Unix conventions.
124342         Suggested by Bruno Haible.
124344         Merge from coreutils.
124346         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
124347         * lib/umaxtostr.c: New files.
124349         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
124350         the usual <time.h> dance.
124351         (get_date): Change signature to support fractional time stamps.
124352         All callers changed.
124353         * lib/getdate.y: Include "getdate.h" first, as we can now
124354         assume C89 and don't need to worry about 'const'.
124355         Similarly, include "unlocked-io.h" near start, not in middle.
124356         Include <limits.h>.
124357         (textint.value): Use long int rather than int.
124358         (textint.digits): Use size_t rather than int.
124359         (BILLION, LOG10_BILLION): New constants.
124360         (parser_control): New member rel_ns.  Members day_ordinal,
124361         time_zone, month, day, hour, minutes, rel_year, rel_month,
124362         rel_day, rel_hour, rel_minutes, rel_seconds
124363         are now long int, not int.  Member seconds is now struct timespec,
124364         not int.  New member timespec_seen.  Members dates_seen, days_seen,
124365         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
124366         not int.
124367         (%union.intval): Now long int, not int.
124368         New member timespec.
124369         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
124370         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
124371         (spec): Now is a timespec or an item list.
124372         (timespec, items): New nonterminals.
124373         (time, rel, relunit, number, get_date):
124374         Add support for fractional seconds.
124375         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
124376         (gmtime, localtime, mktime): Remove decls; not needed with C89.
124377         (to_hour): First arg is now long int, not int.
124378         (to_year): Returns long int, not int.
124379         Don't treat year -70 like 70.
124380         (tm_diff): Returns long int, not int.
124381         (lookup_word): Use bool instead of int when appropriate.
124382         (yylex): Use size_t for count, not int.
124383         Detect overflow when parsing large integer constants.
124384         Add support for fractions.
124385         (get_date): Make pointers 'const' if possible.
124386         Use more-portable code to detect integer overflow.
124387         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
124388         Don't use ctime; it's not reliable if the year has >4 digits.
124390         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
124391         This is for compatibility with BSD.
124393         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
124394         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
124395         From coreutils' system.h.
124397         * lib/userspec.c: Don't include "posixver.h".
124398         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
124399         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
124400         compatible extension.  Simplify code by removing a boolean int
124401         that was always nonzero if a string was nonnull.
124403 2004-03-30  Jim Meyering  <jim@meyering.net>
124405         Merge from coreutils.
124407         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
124408         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
124409         on some systems one must include <grp.h> before it.
124410         Reported by Christian Krackowizer.
124412 2004-03-30  Jim Meyering  <jim@meyering.net>
124414         Merge from coreutils.
124416         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
124418         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
124419         an empty input stream.
124421         * lib/readtokens.c: Include <stdbool.h>.
124422         (readtoken): Use `size_t' rather than int/long.
124423         All callers adjusted.
124424         Use `bool' rather than `int' where appropriate.
124425         Use memset rather than an explicit loop.
124426         Use x2nrealloc rather than xrealloc.
124427         Allow the use of `\0' as a delimiter.
124428         (readtokens): Likewise.
124429         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
124431 2004-03-30  Jim Meyering  <jim@meyering.net>
124433         * m4/realloc.m4: Remove file, since now it does no more than
124434         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
124435         the `configure.ac' section of module/realloc.
124436         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
124438 2004-03-30  Bruno Haible  <bruno@clisp.org>
124440         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
124441         nonnull.
124443 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124445         Merge changes to getloadavg.c from coreutils and Emacs.
124447         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
124448         Define to an expression, not to the empty string.
124449         Include cloexec.h and xalloc.h.
124450         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
124451         Use set_cloexec_flag rather than rolling our own.
124452         * lib/cloexec.c, lib/cloexec.h: New files.
124454 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124456         * m4/cloexec.m4: New file.
124458 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124460         * lib/getopt.h: Sync with libc CVS.
124462 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124463             Bruno Haible  <bruno@clisp.org>
124465         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
124466         mbswidth.
124468 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124469             Bruno Haible  <bruno@clisp.org>
124471         * lib/mbswidth.h: Include <wchar.h> only if
124472         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
124473         <wchar.h>.
124474         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
124476 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124478         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
124479         Sync with libc CVS.
124480         * lib/getopt_int.h: New file, also synced from libc.
124482 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124484         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
124485         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
124486         Bring back getopt.c, getopt.h, getopt1.c.
124488 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124490         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
124491         All uses changed.  Check for sa_sigaction member; this fixes
124492         a bug first reported by Jason Andrade in
124493         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124495 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124497         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
124498         '#if' expressions.  Unlike the code it replaces, it does not
124499         depend on (defined _SC_PAGESIZE).  However, it does depend on
124500         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
124501         first reported by Jason Andrade in
124502         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124504 2004-02-25  Simon Josefsson  <jas@extundo.com>
124506         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
124508 2004-02-25  Simon Josefsson  <jas@extundo.com>
124510         * lib/strdup.h: New file.
124511         * lib/strdup.c: Include it.
124512         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
124513         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
124515 2004-02-23  Karl Berry  <karl@gnu.org>
124517         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
124518         (from fencepost.gnu.org:/gd/gnuorg).
124520 2004-02-23  Karl Berry  <karl@gnu.org>
124522         * config/srclistvars.sh (GNUORG) [karl]: redefine.
124523         * config/srclist.txt: add maintain/standards documents.
124525 2004-02-18  Bruno Haible  <bruno@clisp.org>
124527         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
124528         Reported by Derek Robert Price <derek@ximbiot.com>.
124530 2004-02-16  Karl Berry  <karl@gnu.org>
124532         * config/mkinstalldirs, install-sh: update from automake.
124534 2004-02-06  Karl Berry  <karl@gnu.org>
124536         * m4/po.m4: update from gettext 0.14.1.
124538 2004-02-06  Karl Berry  <karl@gnu.org>
124540         * lib/config.charset: update from gettext 0.14.1.
124542 2004-02-05  Paul Eggert  <eggert@twinsun.com>
124544         Add comments and code, prompted by suggestions from Bruno Haible
124545         for sh-quote.
124546         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
124547         describing the enum quoting_style values.
124548         * lib/quotearg.c (quotearg_alloc): New function.
124549         (quotearg_buffer_restyled): Treat lone { and } as special.
124550         Treat = as special.  Work around bug with older shells
124551         that "see" a '\' that is really the 2nd byte of a multibyte char.
124552         Quote empty string with shell_quoting_style.
124554 2004-02-03  Bruno Haible  <bruno@clisp.org>
124556         * m4/pipe.m4: New file, from GNU gettext.
124558 2004-02-03  Bruno Haible  <bruno@clisp.org>
124560         * lib/pipe.h: New file, from GNU gettext.
124561         * lib/pipe.c: New file, from GNU gettext.
124563 2004-01-27  Bruno Haible  <bruno@clisp.org>
124565         * m4/execute.m4: New file, from GNU gettext.
124567 2004-01-27  Bruno Haible  <bruno@clisp.org>
124569         * lib/execute.h: New file, from GNU gettext.
124570         * lib/execute.c: New file, from GNU gettext.
124571         * lib/w32spawn.h: New file, from GNU gettext.
124573 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124575         Merge from diffutils.
124577         * lib/file-type.c (file_type): Add typed memory objects.
124578         * lib/file-type.h (S_TYPEISTMO): New macro.
124580         * lib/c-stack.h (c_stack_action): Remove argv argument.
124581         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
124582         (die): Don't calculate message unless segv_action returns.
124583         (get_stack_location, min_address_from_argv, max_address_from_argv,
124584         volatile stack_base, volatile_stack_size): Remove.
124585         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
124586         that every segmentation violation is a stack overflow.  (Ouch!)
124587         See Debian bug 136249 (still outstanding) for more info about why
124588         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
124590 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124592         Exit-status fix from coreutils.
124594         Use exit_failure consistently in place of EXIT_FAILURE,
124595         so that program exit statuses are consistent on failure.
124597         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
124598         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
124599         * lib/argmatch.h: Comment fix to match the above.
124600         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
124601         Now a macro referring to exit_failure, instead of a separate
124602         variable.  Include "exitfail.h" to get it.
124603         * lib/xstrtol.h: Include "exitfail.h".
124604         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
124606         * lib/long-options.c (parse_long_options): Use prototype
124607         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
124608         for clarity.
124610 2004-01-21  Jim Meyering  <jim@meyering.net>
124612         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
124613         so as not to conflict with a different-sized __mktime_internal
124614         function in GNU libc.
124615         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
124616         Problem building statically-linked `ls' reported by Michael Brunnbauer.
124618 2004-01-20  Karl Berry  <karl@gnu.org>
124620         * config/config.guess: update from config.
124622         * config/srclistvars.sh: GNUWWWLICENSES for karl.
124624 2004-01-20  Bruno Haible  <bruno@clisp.org>
124626         Safer stack allocation.
124627         * lib/setenv.c: Include allocsa.h.
124628         (alloca): Remove fallback definition.
124629         (freea): Remove macro.
124630         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
124631         instead of freea.
124633 2004-01-20  Bruno Haible  <bruno@clisp.org>
124635         * m4/eealloc.m4: New file, from GNU gettext.
124637 2004-01-20  Bruno Haible  <bruno@clisp.org>
124639         * m4/allocsa.m4: New file, from GNU gettext.
124641 2004-01-20  Bruno Haible  <bruno@clisp.org>
124643         * lib/xallocsa.h: New file, from GNU gettext.
124644         * lib/xallocsa.c: New file, from GNU gettext.
124646 2004-01-20  Bruno Haible  <bruno@clisp.org>
124648         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
124650 2004-01-20  Bruno Haible  <bruno@clisp.org>
124652         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
124653         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
124654         specially.
124656 2004-01-20  Bruno Haible  <bruno@clisp.org>
124658         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
124659         patch.
124661 2004-01-20  Bruno Haible  <bruno@clisp.org>
124663         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
124665 2004-01-20  Bruno Haible  <bruno@clisp.org>
124667         * lib/eealloc.h: New file.
124669 2004-01-20  Bruno Haible  <bruno@clisp.org>
124671         * lib/binary-io.h: Avoid warnings on Cygwin.
124673 2004-01-20  Bruno Haible  <bruno@clisp.org>
124675         * lib/allocsa.h: New file, from GNU gettext.
124676         * lib/allocsa.c: New file, from GNU gettext.
124678 2004-01-18  Karl Berry  <karl@gnu.org>
124680         * doc/gpl.texi, doc/lgpl.texi: new files.
124682 2004-01-18  Karl Berry  <karl@gnu.org>
124684         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
124685         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
124687 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124689         Merge from coreutils.
124691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
124692         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
124693         (gl_DEFAULT_POSIX2_VERSION): Move
124694         the documentation from 'configure' into 'config.hin',
124695         so that 'configure --help' isn't burdened by it and
124696         we don't have to worry about its formatting there.
124697         Reword the documentation so that it's more succinct
124698         and can be run together into a single paragraph.
124699         * m4/same.m4 (gl_SAME): Check for pathconf.
124701 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124703         Merge from coreutils.
124705         * lib/posixver.c: Include posixver.h.
124707         * lib/same.c: Include <stdbool.h>, <limits.h>.
124708         (_POSIX_NAME_MAX): Define if not defined.
124709         (MIN): New macro.
124710         (same_name): If file names are silently truncated, report
124711         that the file names are the same if they are the same after
124712         the silent truncation.
124714         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
124715         conversion function.
124716         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
124717         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
124718         longer needed.
124720 2004-01-15  Jim Meyering  <jim@meyering.net>
124722         Merge from coreutils.
124724         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
124725         if no library is required.
124726         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
124727         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
124728         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
124729         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
124730         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
124731         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
124732         value, $ac_cv_search_crypt, if it's "none required".
124733         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
124734         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
124735         not gl_FUNC_GETLOADAVG.
124736         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
124737         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
124739 2004-01-15  Jim Meyering  <jim@meyering.net>
124741         Merge from coreutils.
124743         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
124744         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
124745         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
124747         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
124748         optional configure-time default.
124750         * lib/version-etc.c (version_etc_copyright): Update copyright date.
124752         * lib/xreadlink.c (xreadlink): Correct outdated comment.
124754 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
124756         Merge from coreutils.
124758         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
124759         value, $ac_cv_search_nanosleep, if it's "none required".
124761 2004-01-14  Paul Eggert  <eggert@twinsun.com>
124763         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
124764         with like-named macro in fnmatch.c.
124765         (EXT): Use an internal constant instead.
124767         Merge fnmatch patches from glibc.
124768         * lib/fnmatch.c (mbsinit): Remove define.
124769         Add libc_hidden_ver (__fnmatch, fnmatch).
124770         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
124771         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
124773 2004-01-14  Karl Berry  <karl@gnu.org>
124775         * config/install-sh: update from automake.
124777 2004-01-13  Karl Berry  <karl@gnu.org>
124779         * config/install-sh: update from automake.
124781 2004-01-09  Karl Berry  <karl@gnu.org>
124783         * config/install-sh: update from automake.
124785 2004-01-05  Karl Berry  <karl@gnu.org>
124787         * config/config.{sub,guess}: update from config.
124789 2003-12-31  Karl Berry  <karl@gnu.org>
124791         * config/depcomp: update from automake.
124793 2003-12-14  Karl Berry  <karl@gnu.org>
124795         * lib/config.charset: update from gettext-runtime.
124797 2003-12-03  Paul Eggert  <eggert@twinsun.com>
124799         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
124800         Bug reported by Alfred M. Szmidt.
124802 2003-12-03  Bruno Haible  <bruno@clisp.org>
124804         * m4/gettext.m4: Upgrade from gettext-0.13.
124805         * m4/po.m4: Upgrade from gettext-0.13.
124806         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
124807         * m4/intmax.m4: New file, from gettext-0.13.
124808         * m4/printf-posix.m4: New file, from gettext-0.13.
124810 2003-11-29  Karl Berry  <karl@gnu.org>
124812         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
124814 2003-11-25  Paul Eggert  <eggert@twinsun.com>
124815             Bruno Haible  <bruno@clisp.org>
124817         * lib/printf-parse.h: Don't include sys/types.h.
124818         (ARG_NONE): New macro.
124819         (char_directive): Change type of *arg_index fields to size_t.
124820         * lib/printf-parse.c: Don't include sys/types.h.
124821         (SSIZE_MAX): Remove macro.
124822         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
124823         Remove unnecessary overflow check.
124824         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
124825         fields.
124827 2003-11-25  Bruno Haible  <bruno@clisp.org>
124829         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
124831 2003-11-25  Bruno Haible  <bruno@clisp.org>
124833         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
124834         gt_TYPE_SSIZE_T.
124836 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124838         * modules/alloca: Remove dependency on xalloc.
124840 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124842         * lib/alloca.c: Remove dependency on xalloc module.
124843         (xalloc_die): Remove.
124844         (memory_full) [!defined emacs]: New macro.
124845         [!defined emacs]: Don't include xalloc.h.
124846         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
124847         address arithmetic overflows.  Change datatypes a bit to avoid
124848         unnecessary casts.
124850 2003-11-22  Jim Meyering  <jim@meyering.net>
124852         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
124853         s/size/size_t/.
124855 2003-11-21  Karl Berry  <karl@gnu.org>
124857         * config/config.{sub,guess}: update from config.
124859 2003-11-18  Karl Berry  <karl@gnu.org>
124861         * config/config.{sub,guess}: update from config.
124863         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
124865 2003-11-17  Paul Eggert  <eggert@twinsun.com>
124867         * README: Mention that S+T cannot overflow if S is the size of
124868         an existing object and T is sufficiently small.
124870 2003-11-17  Jim Meyering  <jim@meyering.net>
124872         On systems without utime and without a utimes function capable of
124873         dealing with a NULL struct utimbuf* argument, this utime replacement
124874         could -- in unusual circumstances -- leak a file descriptor.
124875         * lib/utime.c: Include <unistd.h> and <errno.h>.
124876         (utime_null): Be sure to close `fd' and to preserve errno.
124877         Reported by Geoff Collyer via Arnold Robbins.
124879 2003-11-17  Bruno Haible  <bruno@clisp.org>
124881         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
124882         (Depends-on): Add xsize.
124884 2003-11-17  Bruno Haible  <bruno@clisp.org>
124886         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
124888 2003-11-17  Bruno Haible  <bruno@clisp.org>
124890         * lib/vasnprintf.c (alloca): Remove fallback definition.
124891         (freea): Remove definition.
124892         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
124893         Reported by Paul Eggert.
124895 2003-11-16  Paul Eggert  <eggert@twinsun.com>
124896             Bruno Haible  <bruno@clisp.org>
124898         Protect against address arithmetic overflow.
124899         * lib/printf-args.h: Include stddef.h.
124900         (arguments): Change type of field 'count' to size_t.
124901         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
124902         'unsigned int' where appropriate.
124903         * lib/printf-parse.h: Include sys/types.h.
124904         (char_directive): Change type of *arg_index fields to ssize_t.
124905         (char_directives): Change type of fields 'count', max_*_length to
124906         size_t.
124907         * lib/printf-parse.c: Include sys/types.h and xsize.h.
124908         (SSIZE_MAX): Define fallback value.
124909         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
124910         instead of 'int' where appropriate. Check a_allocated, d_allocated
124911         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
124912         * lib/vasnprintf.c: Include xsize.h.
124913         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
124914         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
124915         overflow. Avoid wraparound when converting a width or precision from
124916         decimal to binary.
124918 2003-11-16  Bruno Haible  <bruno@clisp.org>
124920         Update from GNU gettext.
124921         * lib/printf-parse.c: Generalize to it can be compiled for wide
124922         strings.
124923         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
124924         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
124925         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
124926         SNPRINTF): New macros.
124927         Don't include <alloca.h> if the file is used inside libintl.
124928         (local_wcslen): New function, for Solaris 2.5.1.
124929         (VASNPRINTF): Use it instead of wcslen.
124931 2003-11-16  Bruno Haible  <bruno@clisp.org>
124933         * lib/xsize.h (xmax): New function.
124934         (xsum, xsum3, xsum4): Declare as "pure" functions.
124936 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124938         * modules/xalloc (Files): Undo latest change, since xalloc.h
124939         no longer needs SIZE_MAX or PTRDIFF_MAX.
124941 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124943         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
124944         gl_PTRDIFF_MAX.
124946 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124948         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
124949         "return", to pacify some unknown compiler.  Problem reported
124950         by Joerg Schilling.
124952 2003-11-12  Paul Eggert  <eggert@twinsun.com>
124954         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
124955         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
124956         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
124957         heuristic is just as accurate as far as we know, and it removes a
124958         dependency on size_max.m4 and ptrdiff_max.m4.
124960 2003-11-11  Bruno Haible  <bruno@clisp.org>
124962         * modules/xsize (Files): Add m4/size_max.m4.
124963         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
124965 2003-11-11  Bruno Haible  <bruno@clisp.org>
124967         * m4/size_max.m4: New file.
124968         * m4/ptrdiff_max.m4: New file.
124969         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
124970         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
124971         (gl_XALLOC): Invoke it.
124973 2003-11-11  Bruno Haible  <bruno@clisp.org>
124975         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
124976         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
124977         defined.
124979 2003-11-10  Paul Eggert  <eggert@twinsun.com>
124981         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
124982         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
124983         rejected some allocations of exactly SIZE_MAX - 2 bytes.
124984         From Bruno Haible.
124985         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
124986         not (size_t) -1, since it's defined here.
124988 2003-11-09  Karl Berry  <karl@gnu.org>
124990         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
124992 2003-11-06  Paul Eggert  <eggert@twinsun.com>
124994         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
124995         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
124996         Reject sizes of exactly SIZE_MAX bytes.
124997         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
124998         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
125000 2003-11-05  Bruno Haible  <bruno@clisp.org>
125002         * lib/xsize.h: Include limits.h, to avoid a possible collision with
125003         SIZE_MAX defined in <limits.h> on Solaris.
125005 2003-11-04  Jim Meyering  <jim@meyering.net>
125007         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
125008         variable names, rather than @VAR@.
125009         * modules/poll: Likewise.
125011 2003-11-04  Bruno Haible  <bruno@clisp.org>
125013         * modules/xsize: New file.
125014         * modules/linebreak: Depend on xsize.
125015         * MODULES.html.sh (func_all_modules): Add xsize.
125017 2003-11-04  Bruno Haible  <bruno@clisp.org>
125019         * m4/xsize.m4: New file.
125021 2003-11-04  Bruno Haible  <bruno@clisp.org>
125023         * lib/xsize.h: New file.
125024         * lib/linebreak.c: Include xsize.h.
125025         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
125026         argument for overflow.
125027         Suggested by Paul Eggert.
125029 2003-11-03  Karl Berry  <karl@gnu.org>
125031         * config/config.{guess,sub}: update from config.
125033 2003-11-03  Jim Meyering  <jim@meyering.net>
125035         * modules/userspec (lib_SOURCES): Add userspec.h.
125036         (Include): Add "userspec.h".
125037         Improve description.
125039 2003-11-03  Jim Meyering  <jim@meyering.net>
125041         * lib/userspec.c: Include "userspec.h".
125042         * lib/userspec.h: New file.
125044 2003-11-03  Bruno Haible  <bruno@clisp.org>
125046         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
125048 2003-11-03  Bruno Haible  <bruno@clisp.org>
125050         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
125051         available, to avoid (extremely rare) race condition.
125052         Suggested by Paul Eggert.
125054 2003-11-02  Karl Berry  <karl@gnu.org>
125056         * config/srclist.txt (vasprintf.c): sync broken, sigh.
125058 2003-10-31  Paul Eggert  <eggert@twinsun.com>
125060         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
125061         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
125062         (read_filesystem_list): Set and use me_type_malloced.
125063         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
125064         whatever the type happens to be), for brevity and consistency.
125065         Check for size calculation overflow on Alphas running OSF/1.
125067 2003-10-31  Jim Meyering  <jim@meyering.net>
125069         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
125071         * lib/linebuffer.c: Include <string.h> for declaration of memset.
125073 2003-10-30  Paul Eggert  <eggert@twinsun.com>
125074             Bruno Haible  <bruno@clisp.org>
125076         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
125077         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
125079 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
125081         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
125082         netbsd*-gnu*.  Suggested by Robert Millan.
125084 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125086         * modules/group-member: Depend on stdbool.
125088 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125090         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
125092 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125094         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
125095         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
125096         after the 'gnu' in these cases.  This fixes some bugs in the
125097         previous change, and is based on suggestions by Robert Millan.
125099 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125101         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
125102         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
125103         no longer needed.
125104         * lib/quotearg.c (quotearg_n_options): Use it.
125105         * lib/group-member.c: Include <stdbool.h>.
125106         (free_group_info): Arg is now const *; don't free arg.
125107         (get_group_info): Now returns bool and accepts struct group_info *,
125108         rather than returning a malloc'ed struct group_info *.
125109         All uses changed.  Check for overflow in internal size calculation.
125111         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
125112         rather than xmalloc/xrealloc.
125113         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
125114         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
125115         conformance bug: the old code used a pointer after freeing the
125116         storage that it addressed.
125117         * lib/hash.c (hash_initialize): Simplify the code by using
125118         xalloc_oversized rather than doing it by hand.
125119         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
125120         the buffer preserved.  Use free and xmalloc instead.
125121         * lib/quotearg.c (quotearg_n_options): Likewise.
125122         Use a simpler test for size overflow.  Don't use xalloc_oversized
125123         because unsigned int might be wider than size_t (!); this suggests
125124         that we should switch from unsigned int to size_t for slot numbers.
125126 2003-10-28  Paul Eggert  <eggert@twinsun.com>
125128         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
125129         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
125130         NetBSD kernels.  Requested by Richard Stallman.
125132 2003-10-27  Paul Eggert  <eggert@twinsun.com>
125134         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
125135         to allocate the returned structure.  Do not allocate a subarray,
125136         as x2nrealloc will do that.
125137         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
125138         instead of xnrealloc.
125139         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
125141 2003-10-27  Bruno Haible  <bruno@clisp.org>
125143         * lib/stdbool_.h: Better support for BeOS.
125145 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125147         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
125148         now uses inline.
125150 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125152         * lib/xalloc.h (xalloc_oversized): New static inline function, for
125153         callers that want to do their own size-overflow checking.  Include
125154         <stdbool.h>, since xalloc_oversized returns bool.
125155         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
125156         to use xalloc_oversized.
125158         Add two functions x2realloc, x2nrealloc, for programs that grow
125159         arrays dynamically by doubling their sizes.
125160         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
125161         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
125162         New functions.
125164         Port to C99 semantics for 'inline' of external functions.
125165         Bug reported by Bruno Haible.
125166         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
125167         with the old contents of xnmalloc.
125168         (xnmalloc, xmalloc): Use it.
125169         (xnrealloc_inline): New static inline function,
125170         with the old contents of xnrealloc.
125171         (xnrealloc, xrealloc): Use it.
125173         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
125174         that.
125176 2003-10-26  Karl Berry  <karl@gnu.org>
125178         * config/srclist.txt (COPYING.DOC): no longer available from
125179         /gd/gnuorg; don't know where the ultimate source is.
125181 2003-10-25  Paul Eggert  <eggert@twinsun.com>
125183         Fix several address-calculation bugs in the hash modules,
125184         plus some minor code cleanup.
125186         * lib/hash.h: Include <stdbool.h>, for bool.
125187         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
125188         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
125189         hash_get_n_entries, hash_get_max_bucket_length,
125190         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
125191         hash_rehash): Use size_t rather than unsigned.
125192         * lib/hash.c (struct hash_table, hash_get_n_buckets,
125193         hash_get_n_buckets_used, hash_get_n_entries,
125194         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
125195         hash_get_entries, hash_do_for_each, hash_string, is_prime,
125196         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
125197         Likewise.
125198         (SIZE_MAX): Define if not defined.
125199         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
125200         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
125201         hash_print):
125202         Use const * when possible.
125203         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
125204         (check_tuning): Fix bug: if tuning parameters were very close to
125205         0 or 1, rounding errors could have caused subscript violations.
125206         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
125207         (hash_initialize): Add 'fail:' label
125208         to free table and return NULL, and use it to simplify code.
125209         Use calloc rather than clearing the storage ourself.
125210         (hash_initialize, hash_rehash): Check for arithmetic overflow in
125211         buffer size calculations.
125212         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
125213         Include <stddef.h>, for size_t.
125214         * lib/hash-pjw.c (hash_pjw): Likewise.
125215         Switch to method described by Bruno Haible.
125216         Include <limits.h>, for CHAR_BIT.
125217         (SIZE_BITS): New macro.
125219 2003-10-23  Paul Eggert  <eggert@twinsun.com>
125221         * m4/getline.m4 (AM_FUNC_GETLINE):
125222         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
125223         hosts.  Problem reported by Derek Robert Price in
125224         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
125225         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
125226         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
125228 2003-10-21  Paul Eggert  <eggert@twinsun.com>
125230         * lib/getndelim2.c (getndelim2): When size calculation overflows,
125231         ceiling the allocation at NMAX bytes rather than silently
125232         discarding input bytes before NMAX is reached.  This makes
125233         a difference only if NMAX exceeds SIZE_MAX / 2.
125235         * lib/obstack.c: Merge from glibc.
125236         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
125237         Add libc_hidden_def (_obstack_newchunk).
125238         (_obstack_free) [! defined _LIBC]: Remove.
125239         [defined _LIBC]: Make a strong alias from obstack_free, rather than
125240         a clone of the function body.
125241         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
125242         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
125244         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
125245         glibc.
125246         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
125247         arg to memcpy.
125249         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
125250         (obstack_ptr_grow_fast, obstack_int_grow_fast):
125251         Don't use lvalue casts, as GCC plans to remove support for them
125252         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
125253         was also present in the non-GCC version, indicating that this
125254         code had always been buggy and had never been widely used.
125255         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
125256         Use the fast variant of each macro, rather than copying the
125257         definiens of the fast variant; that way, we'll be more likely to
125258         catch future bugs in the fast variants.
125260 2003-10-20  Bruno Haible  <bruno@clisp.org>
125262         * modules/wait-process: New file.
125263         * MODULES.html.sh (func_all_modules): Add wait-process.
125265 2003-10-20  Bruno Haible  <bruno@clisp.org>
125267         * m4/wait-process.m4: New file.
125269 2003-10-20  Bruno Haible  <bruno@clisp.org>
125271         * lib/wait-process.h: New file, from GNU gettext.
125272         * lib/wait-process.c: New file, from GNU gettext.
125274 2003-10-19  Jim Meyering  <jim@meyering.net>
125276         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
125277         HPUX 10.20.
125279 2003-10-18  Karl Berry  <karl@gnu.org>
125281         * config/config.guess: update from config.
125283 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125285         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
125286         (getgroups): First arg is int, not size_t.
125287         Don't let 'free' mangle errno.
125289 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125291         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
125293 2003-10-16  Karl Berry  <karl@gnu.org>
125295         * config/config.{guess,sub}: update from config.
125297 2003-10-16  Jim Meyering  <jim@meyering.net>
125299         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
125300         memcpy.
125302 2003-10-15  Paul Eggert  <eggert@twinsun.com>
125304         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
125305         (SIZE_MAX): Remove.
125306         (new_exclude, add_exclude_file): Initial size no longer needs to
125307         be a power of 2.
125308         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
125309         our own address arithmetic overflow checking.
125311         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
125312         (fnmatch): Do not alloca more than 2000 wide characters;
125313         instead, use malloc for large buffers.
125314         Check for address arithmetic overflow, and return -1
125315         with errno set to ENOMEM in that case.
125316         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
125317         (NEW_PATTERN): Do not alloca more than 8000 bytes;
125318         instead, return -1.  Check for address arithmetic overflow.
125320 2003-10-14  Paul Eggert  <eggert@twinsun.com>
125322         Handle invalid suffixes and overflow independently, so that
125323         callers can treat them independently as needed.  Fix some bugs in
125324         suffix handling, e.g., "100k@" was not diagnosed as an invalid
125325         suffix for a human-readable blocksize.  The major caller-visible
125326         change is the addition of a new
125327         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
125328         that both overflow and suffix chars were found.
125330         * lib/human.c (humblock): Don't check separately for invalid suffix
125331         char; that is xstrtoumax's job (now that its bug is fixed).
125332         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
125333         INTMAX_MAX]: New macros.
125334         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
125335         TYPE_MAXIMUM): New macros.
125336         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
125337         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
125338         if overflow occurs, as it's what __strtol does and it's more useful
125339         in practice.
125340         (__xstrtol): If __strtol reports some error other than ERANGE,
125341         reflect it to the caller as LONGINT_INVALID.  If it reports
125342         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
125343         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
125344         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
125345         value.
125346         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
125347         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
125348         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
125349         [defined UINTMAX_MAX]: New macros.
125351 2003-10-14  Bruno Haible  <bruno@clisp.org>
125353         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
125355 2003-10-14  Bruno Haible  <bruno@clisp.org>
125357         * m4/sig_atomic_t: New file, from GNU gettext.
125358         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
125360 2003-10-14  Bruno Haible  <bruno@clisp.org>
125362         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
125363         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
125364         Also use volatile where needed.
125366 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125368         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
125369         Change maintainer from Bruno Haible to 'all'.
125371 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125373         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
125375 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125377         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
125378         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
125379         and define in terms of the other primitives.
125380         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
125381         (SIZE_MAX): Define if not already defined.
125382         (array_size_overflow): New function.
125383         (xalloc_die): Abort instead of exiting if 'error' returns.
125384         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
125385         (xmalloc, xrealloc): Use them.
125386         (xcalloc): Check for address arithmetic overflow.
125387         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
125388         a bit faster than strcpy.
125390 2003-10-10  Simon Josefsson  <jas@extundo.com>
125392         * modules/argp (Depends-on): Add restrict and strcase.
125394 2003-10-10  Simon Josefsson  <jas@extundo.com>
125396         * m4/argp.m4: Add AC_C_INLINE.
125398 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125400         Merge getpass from libc, plus a few fixes.
125402         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
125403         Include <stdbool.h>.
125404         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
125405         __fsetlocking to empty.
125406         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
125407         do include <bits/libc-lock.h>.
125408         Do not include <fcntl.h>; not needed.
125409         [_LIBC]: Include <wchar.h>.
125410         (NOTCANCEL_MODE): New macro.
125411         (flockfile, funlockfile) [_LIBC]: New macros.
125412         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
125413         [!_LIBC]: New macros.
125414         (call_fclose): New function.
125415         (getpass): Use it.  Save tty stream separately; this simplifies the
125416         code and makes it more reliable if stdin happens to equal stdout.
125417         Invoke __fsetlocking on tty.
125418         Handle thread cancellation if needed.
125419         Namespace cleanup (use __tcgetattr, __getline).
125420         Use bool for Booleans.
125421         [USE_IN_LIBIO]: Handle wide streams.
125422         [!_LIBC]: Unconditionally do the fseek, since we don't know what
125423         stream might go where.
125425         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
125426         doesn't have to include <stdio.h> before us.
125427         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
125428         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
125429         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
125430         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
125431         if not declared, so that we can use getpass.c code from libc without
125432         rewriting it.
125433         (flockfile, ftrylockfile, funlockfile): New macros.
125435 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125437         * modules/getpass: Depend on stdbool.
125439 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125441         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
125443 2003-10-07  Karl Berry  <karl@gnu.org>
125445         * config/config.{guess,sub}: update from config.
125447 2003-10-06  Jim Meyering  <jim@meyering.net>
125448             Bruno Haible  <bruno@clisp.org>
125450         This lets translators provide better translations for the
125451         "Written by ..." part of --version output.
125452         * lib/version-etc.h: Include stdarg.h.
125453         (version_etc_copyright): Declare as readonly.
125454         (version_etc): Make this function variadic with a NULL-terminated list
125455         of author name strings.
125456         (version_etc_va): New declaration.
125457         * lib/version-etc.c: Include stdarg.h, stdlib.h.
125458         (version_etc_copyright): Declare as readonly.
125459         (version_etc_va): New function. Provide a different translatable string
125460         for each possible number of authors < 10. Abbreviate when there are 10
125461         authors or more.
125462         (version_etc): Make this function variadic. Call version_etc_va.
125463         Suggestion from Gary V. Vaughan.
125465         * lib/long-options.h (parse_long_options): Change prototype: the
125466         authors string is moved to the end and becomes variadic.
125467         * lib/long-options.c: Include stdarg.h.
125468         (parse_long_options): Make this function variadic, too.
125469         Call version_etc_va, not version_etc.
125471 2003-10-06  Bruno Haible  <bruno@clisp.org>
125473         * modules/version-etc-2: Remove file.
125474         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
125476 2003-10-06  Bruno Haible  <bruno@clisp.org>
125478         * modules/fatal-signal: New file.
125479         * MODULES.html.sh (func_all_modules): Add fatal-signal.
125481 2003-10-06  Bruno Haible  <bruno@clisp.org>
125483         * m4/fatal-signal.m4: New file.
125484         * m4/signalblocking.m4: New file, from GNU gettext.
125486 2003-10-06  Bruno Haible  <bruno@clisp.org>
125488         * lib/version-etc-2.h: Remove file.
125489         * lib/version-etc-2.c: Remove file.
125491 2003-10-06  Bruno Haible  <bruno@clisp.org>
125493         * lib/fatal-signal.h: New file, from GNU gettext.
125494         * lib/fatal-signal.c: New file, from GNU gettext.
125496 2003-10-05  Paul Eggert  <eggert@twinsun.com>
125498         * README: Rework advice for preventing empty .o files.
125499         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
125500         not <sys/types.h>.
125502 2003-10-04  Karl Berry  <karl@gnu.org>
125504         * lib/argp*: update from libc.
125506 2003-10-04  Karl Berry  <karl@gnu.org>
125508         * config/config.{guess,sub}: update from config.
125510 2003-10-02  Bruno Haible  <bruno@clisp.org>
125512         * modules/lchown (Include): Add lchown.h.
125513         * modules/time_r (Include): Use "..." syntax.
125514         * modules/xgetdomainname (Include): Add xgetdomainname.h.
125516 2003-10-01  Simon Josefsson  <jas@extundo.com>
125518         * MODULES.html.sh (func_all_modules): Move gethostname from section
125519         'based on' to section 'lacking' POSIX:2001.
125521 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
125523         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
125524         to output mode on the same stream.
125526 2003-09-29  Paul Eggert  <eggert@twinsun.com>
125528         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
125529         Fix arg typo in previous patch.
125531 2003-09-28  Jim Meyering  <jim@meyering.net>
125533         * lib/error.c: Correct cpp indentation.
125535 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125537         * modules/free: New file.
125539 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125541         * m4/free.m4: New file.
125543 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125545         * lib/minmax.h (MIN, MAX)
125546         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
125547         Omit the special code that used __typeof__, since we worry that
125548         it could be more trouble than it's worth.  See:
125549         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
125550         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
125552         * lib/free.c: New file.
125554 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
125556         Trivial fixes to Makefile.am parts of module listings.
125557         * modules/strstr: Append strstr.h to lib_SOURCES.
125558         * modules/strcase: Likewise, for strcase.h.
125560 2003-09-27  Karl Berry  <karl@gnu.org>
125562         * config/mkinstalldirs: update from automake.
125564 2003-09-26  Paul Eggert  <eggert@twinsun.com>
125566         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
125567         (error_tail): Do not loop, reallocating temporary buffer, since
125568         the output cannot contain more wide characters than the input
125569         contains bytes, the size must be big enough already.  This avoids
125570         one potential size overflow calculation.  Check for size overflow
125571         when calculating temporary buffer size.  Free temporary buffer
125572         when done, if it was allocated with malloc; this plugs a memory
125573         leak.  Remove casts from void * to pointers, that are no longer
125574         needed now that we're assuming C89 or better.
125576         Merge error changes from glibc.
125578         * lib/error.c, error.h: Update copyright notice header to match glibc.
125579         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
125580         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
125581         Disable cancellation while printing error.
125582         * lib/error.h: Prepend __ to parameter names.
125584 2003-09-26  Jim Meyering  <jim@meyering.net>
125586         * lib/error.c (error_tail): Move some declarations
125587         into inner scope where the local variables are used.
125589 2003-09-26  Bruno Haible  <bruno@clisp.org>
125591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
125592         stpncpy().
125593         Don't define stpncpy through config.h; it's now done through stpncpy.h.
125595 2003-09-26  Bruno Haible  <bruno@clisp.org>
125597         * lib/stpncpy.h (gnu_stpncpy): New declaration.
125598         (stpncpy): Define as alias for gnu_stpncpy.
125599         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
125601 2003-09-25  Simon Josefsson  <jas@extundo.com>
125603         * lib/xgetdomainname.h: New file.
125604         * lib/xgetdomainname.c: New file.
125606 2003-09-25  Simon Josefsson  <jas@extundo.com>
125607             Bruno Haible  <bruno@clisp.org>
125609         * modules/getdomainname: New file.
125610         * modules/xgetdomainname: New file.
125611         * MODULES.html.sh (func_all_modules): Add getdomainname,
125612         xgetdomainname.
125614 2003-09-25  Simon Josefsson  <jas@extundo.com>
125615             Bruno Haible  <bruno@clisp.org>
125617         * m4/getdomainname.m4: New file.
125619 2003-09-25  Simon Josefsson  <jas@extundo.com>
125620             Bruno Haible  <bruno@clisp.org>
125622         * lib/getdomainname.h: New file.
125623         * lib/getdomainname.c: New file.
125625 2003-09-25  Karl Berry  <karl@gnu.org>
125627         * lib/argp-fmtstream.c, argp-help.c: update from libc.
125629 2003-09-25  Karl Berry  <karl@gnu.org>
125631         * config/install-sh: update from automake.
125633 2003-09-25  Bruno Haible  <bruno@clisp.org>
125635         * modules/version-etc-2: New file, from modules/version-etc with
125636         modifications.
125637         * MODULES.html.sh (func_all_modules): Add version-etc-2.
125639 2003-09-25  Bruno Haible  <bruno@clisp.org>
125641         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
125642         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
125644 2003-09-24  Simon Josefsson  <jas@extundo.com>
125646         * modules/xgethostname: Add xgethostname.h.
125648 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125650         * lib/linebuffer.c (freebuffer): Don't free the argument, just
125651         the buffer associated with the argument.  Bug reported by
125652         Simon Josefsson.
125654 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125656         * README: Document assumptions that 'int' is at least 32 bits
125657         wide, that integer arithmetic is 2's complement without overflow,
125658         that there are no holes in integer values, that adding sizes of
125659         two nonoverlapping objects can't overflow, and that all-bits-zero
125660         yields scalar zero.  Fix spelling and capitalization typos.
125662 2003-09-19  Karl Berry  <karl@gnu.org>
125664         * lib/argp.h: update from libc.
125666 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125668         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
125669         to avoid spurious warnings like "AC_RUN_IFELSE was called before
125670         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
125672 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125674         * gnulib-tool: Use "test -h", not "test -L", for portability
125675         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
125676         (tags_regexp): Remove, since \| doesn't conform to POSIX.
125677         (sed_extract_prog): Issue s commands one-by-one, rather than
125678         using \| in one s command.
125680 2003-09-16  Paul Eggert  <eggert@twinsun.com>
125682         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
125683         input error, instead of returning NULL the next time we are called
125684         (and therefore losing track of errno).
125686 2003-09-16  Bruno Haible  <bruno@clisp.org>
125688         * gnulib-tool (func_create_testdir): Warn about duplicated
125689         dependencies.
125691 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125693         * modules/argmatch, modules/fatal, modules/obstack,
125694         modules/xalloc, modules/xgethostname: Sort dependencies by
125695         importance, not alphabetically.
125697 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125699         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
125700         fails, so that the caller gets the proper errno.
125702         * lib/readutmp.c (read_utmp): Likewise.
125703         Check for fstat error.  Close stream and free storage
125704         when failing.
125706 2003-09-14  Karl Berry  <karl@gnu.org>
125708         * config/srclist.txt (strdup.c): disable for c89 changes.
125710 2003-09-14  Jim Meyering  <jim@meyering.net>
125712         * lib/getloadavg.c: Correct cpp indentation.
125713         * lib/strdup.c: Likewise.
125714         * lib/vasnprintf.c: Likewise.
125716 2003-09-14  Bruno Haible  <bruno@clisp.org>
125718         * modules/fwriteerror: New file.
125719         * MODULES.html.sh (func_all_modules): Add fwriteerror.
125721 2003-09-14  Bruno Haible  <bruno@clisp.org>
125723         * lib/fwriteerror.h: New file.
125724         * lib/fwriteerror.c: New file.
125726 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125728         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
125729         modules/xgethostname, modules/xalloc: Depend on exit.
125731 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125733         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
125735         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
125736         and AC_MINIX, too, so that their extensions are available.
125738         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
125739         This macro has been superseded by gl_BACKUPFILE.
125741         More patches to assume C89 or better.
125743         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
125745         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
125746         unconditionally.
125747         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
125748         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
125749         Include <string.h>, <stdlib.h> unconditionally.
125750         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
125751         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
125752         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
125753         headers or for string.h.
125754         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
125755         or strtoul.
125757         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
125758         headers.
125759         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
125760         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125761         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
125762         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
125763         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125764         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
125765         memcpy, memset.
125766         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
125767         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
125768         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
125769         strtol.
125770         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
125771         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
125772         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
125773         strtoul.
125775 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125777         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
125778         * lib/obstack.c [!defined _LIBC]: Likewise.
125779         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
125780         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
125781         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
125783         More changes to assume C89 or better.
125785         * lib/error.c (error_tail): Assume vprintf.
125787         * lib/argmatch.c (getenv): Remove decl.
125788         * lib/progreloc.c (get_full_program_name): Define via prototype.
125789         * lib/setenv.c (clearenv): Likewise.
125790         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
125791         needed.
125792         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
125793         (malloc, memcpy): Remove decls.
125794         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
125795         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
125796         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125797         (memcpy): Remove macro.
125798         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
125799         (__P): Remove.  All uses removed.
125800         (PTR): Remove.  All uses changed to void *.
125801         (CHAR_BIT, NULL): Remove.
125802         (spaces, zeros, memset_space, memset_zero)
125803         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
125804         Remove.
125805         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
125806         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
125807         Define with prototype.
125808         Remove now-unnecessary prototype decl.
125809         (extra_args_spec): Assume ANSI C.  All uses changed.
125810         (extra_args_spec_iso): Remove.
125811         (my_strftime, emacs_strftimeu): Define via prototype.
125812         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
125813         unconditionally.
125814         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
125815         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
125816         (strtoul, strtol): Remove decls.
125817         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
125818         LONG_MAX): Remove.
125819         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125820         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
125821         (LOCALE_PARAM_PROTO): New macro.
125822         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
125823         (INTERNAL (strtol), strtol): Define with a prototype.
125824         (PARAMS): Remove.  All uses removed.
125825         * lib/tempname.c: Include <string.h> unconditionally.
125826         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
125827         * lib/xgethostname.c (main): Define with a prototype.
125828         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
125829         Include <stdlib.h> unconditionally.
125830         (calloc, malloc, realloc, free): Remove decls.
125831         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
125832         Include <stdlib.h> unconditionally.  Sort include file names.
125833         (strtod): Remove.
125834         (xstrtod): Define with a prototype.
125835         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
125836         (strtol, strtoul): Remove decls.
125838 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125840         More patches to assume C89 or better.
125841         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
125842         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
125843         string.h, memchr, STDC_HEADERS.
125845 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125847         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
125848         Include <stdlib.h>, <string.h> unconditionally.
125849         Remove now-unnecessary cast to char *.
125850         * lib/strnlen.c: Include <string.h> unconditionally.
125851         * lib/yesno.c (yesno): Define with a prototype.
125853 2003-09-11  Bruno Haible  <bruno@clisp.org>
125855         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
125857 2003-09-10  Jim Meyering  <jim@meyering.net>
125859         * lib/error.c: Correct indentation of cpp directives.
125861 2003-09-10  Bruno Haible  <bruno@clisp.org>
125863         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
125864         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
125865         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
125866         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
125867         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
125868         <stdlib.h> and <string.h> checks.
125869         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
125870         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
125872 2003-09-10  Bruno Haible  <bruno@clisp.org>
125874         * lib/strcspn.c: Include <string.h> unconditionally.
125875         * lib/strpbrk.c: Include <string.h> unconditionally.
125876         * lib/strstr.c: Include <string.h> unconditionally.
125877         * lib/unicodeio.c: Include <string.h> unconditionally.
125878         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
125879         * lib/unsetenv.c: Likewise.
125880         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
125881         * lib/yesno.c: Include <stdlib.h> unconditionally.
125882         (rpmatch): Add prototype.
125884 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125886         More patches to assume C89 or better.
125887         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
125888         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
125889         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
125890         or for string.h.
125891         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
125892         stdlib.h.
125893         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
125894         C headers.
125895         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
125896         string.h.
125897         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
125898         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
125899         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
125900         or for string.h.
125901         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
125902         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
125903         C headers.
125904         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
125905         memcpy.
125906         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
125907         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
125908         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
125909         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
125910         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
125911         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
125912         string.h, free.
125913         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
125914         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
125915         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
125916         C headers, or for string.h.
125917         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
125918         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
125919         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
125920         headers, memory.h, stdlib.h, string.h, strings.h.
125921         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
125922         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
125923         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
125924         strchr.
125925         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
125926         headers, memory.h, string.h.
125927         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
125928         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
125929         free.
125930         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
125931         headers.
125932         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
125933         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
125934         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
125935         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
125936         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
125938 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125940         More K&R removal.
125942         * lib/acosl.c (main): Use a prototype.
125943         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
125944         tanl.c: Likewise.
125946         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
125948         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
125949         (getopt, etopt_long, getopt_long_only, _getopt_internal)
125950         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
125951         with a prototype.
125952         * lib/getopt.c (const): Remove macro.
125953         Include <string.h> unconditionally.
125954         (my_index): Remove; all uses changed to strchr.
125955         (strlen): Remove decl.
125956         (exchange): Remove forward decl; no longer needed.
125957         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
125958         Define with prototype.
125959         * lib/getopt1.c (const): Remove macro.
125960         (getopt_long, getopt_long_only, main): Define with prototype.
125962         * lib/getugroups.c: Include <string.h> unconditionally.
125964         * lib/getusershell.c: Include <stdlib.h> unconditionally.
125965         (getusershell, setusershell, endusershell, readname, main):
125966         Define with prototypes.
125968         * lib/group-member.c: Include group-member.h first.
125969         Include <stdlib.h> unconditionally.
125971         * lib/hard-locale.c: Include hard-locale.h first.
125972         Include <stdlib.h>, <string.h> unconditionally.
125974         * lib/hash.c (free, malloc): Remove decls.
125975         Include <stdlib.h> unconditionally.
125977         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
125978         (getenv): Do not declare.
125980         * lib/idcache.c: Include <string.h> unconditionally.
125982         * lib/long-options.c: Include long-options.h first, to test interface.
125983         Include <stdlib.h> unconditionally.
125985         * lib/makepath.c: Include makepath.h first, to test interface.
125986         Include <stdlib.h> and <string.h> unconditionally.
125988         * lib/linebuffer.c: Include <stdlib.h>.
125989         (free): Remove decl.
125991         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
125992         stddef.h. rpl_malloc returns void *, not char *.
125993         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
125994         prototype.
125996         * lib/md5.h: Include <limits.h> unconditionally.
125997         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
125998         (__P): Remove; all uses removed.
125999         * lib/md5.c: Include "md5.h" first.
126000         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
126001         md5_buffer, md5_process_bytes, md5_process_block):
126002         Define with prototypes.
126003         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
126004         * lib/sha.c: Include "sha.h" first.
126005         Include <stdlib.h>, <string.h> unconditionally.
126007         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
126008         * lib/memcmp.c (__ptr_t): Likewise.
126009         * lib/memrchr.c (__ptr_t): Likewise.
126010         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
126011         Include <string.h> unconditionally.
126012         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
126013         * lib/memchr.c: Include <stdlib.h> unconditionally.
126014         * lib/memchr.c (LONG_MAX): Remove.
126015         * lib/memrchr.c (LONG_MAX): Likewise.
126016         * lib/memchr.c (__memchr): Define via a prototype.
126017         * lib/memrchr.c (__memrchr): Likewise.
126018         * lib/memcmp.c (__P): Remove, and remove all uses.
126019         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
126020         Remove forward decls; no longer needed.
126021         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
126022         Use types required by C89 in prototype.
126024         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
126025         * lib/savedir.c: Likewise.
126026         * lib/mkdir.c (free): Remove decl.
126027         * lib/rmdir.c (rmdir): Define with a prototype.
126028         * lib/savedir.c: Include savedir.h first, to test interface.
126030         * lib/mktime.c (STDC_HEADERS): Remove.
126031         Include <stdlib.h>, <string.h> unconditionally.
126033         * lib/modechange.c: Include <stdlib.h> unconditionally.
126034         (malloc): Remove decl.
126036         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
126037         (free): Remove decl.
126039         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
126040         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
126041         (This type really should be intptr_t, but that's a C99ism.)
126042         (_obstack_memcpy): Remove: all uses changed to memcpy.
126043         Include <string.h> unconditionally.
126044         (struct obstack): Assume __STDC__ for types of members
126045         chunkfun, freefun, extra_arg.
126046         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
126047         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
126048         obstack_begin, obstack_specify_allocation,
126049         obstack_specify_allocation_with_arg, obstack_chunkfun,
126050         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
126051         Remove unprototyped decls and the macros that use them.
126052         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
126053         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
126054         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
126055         (defined __STDC__ && __STDC__)]:
126056         Remove nonprototyped code.
126057         Include <stdlib.h> unconditionally.
126058         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
126059         _obstack_allocated_p, _obstack_free, obstack_free,
126060         _obstack_memory_used, print_and_abort):
126061         Define using prototypes.
126062         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
126063         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
126064         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
126065         obstack_next_free, obstack_object_size, obstack_room) [0]:
126066         Remove unused, unprototyped code.
126068         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
126070         * lib/physmem.c (physmem_total, physmem_available, main): Define
126071         with prototypes.
126073         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
126074         (main): Define with a prototype.
126076         * lib/posixver.c (getenv): Remove decl.
126078         * lib/putenv.c (malloc): Returns void *, not char *.
126079         Include <string.h> unconditionally.
126080         (strchr, memcpy, NULL): Do not define.
126082         * lib/readtokens.c: Include readtokens.h first, to test interface.
126083         Include <stdlib.h>, <string.h> unconditionally.
126084         (init_tokenbuffer): Define with a prototype.
126086         * lib/regex.c (PARAMS): Remove.  All uses removed.
126087         All uses of _RE_ARGS removed, too.
126088         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
126089         unconditionally.
126090         (bzero): Assume memset exists.
126091         (memcmp, memcpy, NULL): Remove.
126092         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
126093         char, or assignments to local vars of type signed char.
126094         (init_syntax_once, PREFIX(extract_number_and_incr),
126095         PREFIX(print_partial_compiled_pattern),
126096         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
126097         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
126098         PREFIX(regex_grow_registers), PREFIX(regex_compile),
126099         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
126100         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
126101         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
126102         wcs_compile_range, byte_compile_range, truncate_wchar,
126103         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
126104         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
126105         count_mbs_length, wcs_re_match_2_internal,
126106         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
126107         PREFIX(alt_match_null_string_p),
126108         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
126109         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
126110         regfree, PREFIX(extract_number)): Define with prototype.  Remove
126111         now-unnecessary declaration, if any.
126112         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
126113         regcomp, regexec):
126114         Remove now-unnecessary casts among pointer types.
126115         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
126117         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
126118         (free): Remove decl.
126120         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
126122         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
126123         (free): Remove decl.
126125         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
126126         * lib/xgetcwd.c: Likewise.
126128         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
126129         (free): Remove decl.
126131         * lib/strchrnul.c (strchrnul): Define with a prototype.
126132         Fix bug: c_in was not converted to char before searching.
126134         The following changes are not K&R related:
126136         * lib/group-member.h: Include <sys/types.h>, so that this file is
126137         self-contained.
126138         * lib/makepath.h: Likewise.
126140         * lib/getusershell.c (readname, default_index, line_size, readname):
126141         Use size_t, not int, for sizes.
126142         (readname): If the size overflows, report an error instead of
126143         looping forever.
126145 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126147         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
126148         libc.
126150 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126152         * README: New section: portability guidelines.
126154 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126156         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
126157         C89 spec.
126159 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126161         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
126163 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126165         Assume C89 or better; remove K&R cruft.
126166         A few of these changes were first proposed by Derek Robert Price
126167         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
126169         * lib/addext.c: Include <string.h> unconditionally.
126170         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
126171         Don't declare getenv or malloc.
126173         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
126174         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
126175         (NULL): Remove.
126176         (find_stack_direction, alloca): Use prototypes.
126178         * lib/atexit.c (atexit): Define using a prototype.
126180         * lib/basename.c, dirname.c, stripslash.c:
126181         Include <string.h> unconditionally.
126183         * lib/bcopy.c: Include <stddef.h>.
126184         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
126186         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
126188         * lib/error.h (error, error_at_line, error_print_progname)
126189         [! (defined (__STDC__) && __STDC__)]: Remove decls.
126190         * lib/error.c: Include error.h first, to check interface.
126191         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126192         (VA_START): Remove; all uses changeed to va_start.
126193         (exit, strerror): Remove decls.
126194         (error_print_progname): Prototype uncondionally.
126195         Don't include <errno.h>; no longer needed.
126196         (private_strerror): Remove.
126197         (error_tail): Always define.
126198         (error, error_at_line): Assume C89 or better; always use prototypes.
126199         * lib/fatal.c: Include "fatal.h" first, to test interface.
126200         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126201         (VA_START): Remove; all uses changed to va_start.
126202         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
126203         this case.
126204         (exit): Remove decl.
126205         (fatal): Prototype unconditionally.  Assume va_start works.
126206         Abort at end, to pacify gcc.
126208         * lib/euidaccess.c (main): Define with a prototype.
126210         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
126212         * lib/exitfail.c: Include <stdlib.h> unconditionally.
126214         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
126215         prototypes.
126216         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
126217         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
126218         (getenv): Remove decl.
126219         (fnmatch): Define using a prototype.
126220         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
126221         (FCT): Define using a prototype.
126223         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
126225         * lib/gethostname.c: Include <stddef.h>.
126226         (gethostname): Define with prototype.  Length is size_t, not int.
126228 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126230         Assume C89 or better; remove K&R cruft.
126231         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
126232         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
126233         string.h, getenv, malloc.
126234         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
126235         headers.
126236         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
126237         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
126238         do not check for strerror.
126239         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
126240         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
126241         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
126242         do not check for doprnt or vprintf.
126243         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
126244         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
126246 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126248         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
126249         getversion.c should have been removed then, but was accidentally
126250         preserved.
126252         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
126253         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
126255 2003-09-08  Karl Berry  <karl@gnu.org>
126257         * config/config.sub, config.guess, srclistvars.sh: update from savannah
126258                 config, forget about prep.
126260         * config/depcomp, missing: update from automake.
126262 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126264         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
126265         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126267 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126269         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
126270         copy_tm_result.  Bug reported by Simon Josefsson in
126271         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126273 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126275         * m4/time_r.m4: New file.
126276         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
126277         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
126278         is. Check for timegm declaration.
126279         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
126280         Do not check for gmtime_r.
126281         Replace mktime if __mktime_internal does not exist and if mktime
126282         hasn't been replaced already.
126284 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126286         * lib/time_r.c, lib/time_r.h: New files.
126288         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
126289         __localtime_r.
126290         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
126291         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
126293         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
126294         __gmtime_r.
126295         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
126296         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
126297         Include <time_r.h>.
126299         * lib/timegm.c: Switch to glibc implementation, with the following
126300         changes:
126301         [defined HAVE_CONFIG_H]: Include <config.h>.
126302         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
126303         (__mktime_internal) [!defined _LIBC]: New decl.
126304         (__gmtime_r) [!defined _LIBC]: New macro and function.
126305         (timegm): Use a prototype, since gnulib assumes C89.
126306         Do not bother declaring tmp to be const, as it's not really usefu.
126307         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
126308         (timegm): Declare only if HAVE_DECL_TIMEGM.
126310 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126312         * MODULES.html.sh (func_all_modules): Add time_r.
126313         * modules/time_r: New file.
126314         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
126315         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
126317 2003-09-03  Paul Eggert  <eggert@twinsun.com>
126319         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
126320         Bug reported by Lute Kamstra in
126321         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
126323         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
126324         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
126325         course with correspondingly smaller numbers for tomorrow and
126326         yesterday.  From Tadayoshi Funaba.  Originally installed into
126327         sh-utils on 1999-08-07, but the patch got lost (I guess during the
126328         coreutils merge?).
126330 2003-08-31  Simon Josefsson  <jas@extundo.com>
126332         * modules/timegm: New file.
126333         * MODULES.html.sh (func_all_modules): Add timegm.
126335 2003-08-31  Simon Josefsson  <jas@extundo.com>
126337         * m4/timegm.m4: New file.
126339 2003-08-31  Simon Josefsson  <jas@extundo.com>
126341         * lib/timegm.h: New file.
126342         * lib/timegm.c: New file.  Based on
126343         wget-1.8.2/src/http.c:mktime_from_utc.
126345 2003-08-31  Karl Berry  <karl@gnu.org>
126347         * lib/argp.h: update from libc.
126349 2003-08-28  Bruno Haible  <bruno@clisp.org>
126351         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
126352         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
126353         followed by '#define fnmatch fnmatch_posix' gives an error.
126355 2003-08-28  Bruno Haible  <bruno@clisp.org>
126357         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
126358         warning on QNX, which defines O_BINARY to 000000.
126360 2003-08-27  Jim Meyering  <jim@meyering.net>
126362         * m4/mkstemp.m4: Require that the system mkstemp be able to create
126363         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
126364         would fail after 32.  Reported by Danny Levinson.  Details here:
126365         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
126367 2003-08-24  Bruno Haible  <bruno@clisp.org>
126369         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
126370         MSVC7 <stdio.h> is included later.
126372 2003-08-22  Simon Josefsson  <jas@extundo.com>
126374         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
126376 2003-08-20  Karl Berry  <karl@gnu.org>
126378         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
126380 2003-08-20  Bruno Haible  <bruno@clisp.org>
126382         * modules/progname: New file.
126383         * MODULES.html.sh (func_all_modules): Add progname.
126385 2003-08-20  Bruno Haible  <bruno@clisp.org>
126387         * lib/progname.h: New file, from GNU gettext.
126388         * lib/progname.c: New file, from GNU gettext.
126389         * lib/progreloc.c: New file, from GNU gettext.
126391 2003-08-19  Jim Meyering  <jim@meyering.net>
126393         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
126394         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
126396 2003-08-19  Bruno Haible  <bruno@clisp.org>
126398         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
126399         more.
126401 2003-08-19  Bruno Haible  <bruno@clisp.org>
126403         * lib/xstrdup.c: Assume <string.h> exists.
126405 2003-08-18  Paul Eggert  <eggert@twinsun.com>
126407         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
126408         in makefile rules.
126410 2003-08-18  Jim Meyering  <jim@meyering.net>
126412         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
126413         * m4/lib-ld.m4: Likewise.
126415 2003-08-18  Jim Meyering  <jim@meyering.net>
126417         * lib/setenv.h: Indent nested cpp directive.
126418         * lib/vasnprintf.c: Remove trailing blanks.
126420 2003-08-17  Simon Josefsson  <jas@extundo.com>
126422         * modules/xstrndup: New file.
126423         * MODULES.html.sh (func_all_modules): Add xstrndup.
126425 2003-08-17  Simon Josefsson  <jas@extundo.com>
126427         * modules/argp: Fix autoconf macro name. Add more dependencies.
126429 2003-08-17  Simon Josefsson  <jas@extundo.com>
126431         * m4/xstrndup.m4: New file.
126433 2003-08-17  Simon Josefsson  <jas@extundo.com>
126435         * m4/argp.m4: New file.
126437 2003-08-17  Simon Josefsson  <jas@extundo.com>
126438             Bruno Haible  <bruno@clisp.org>
126440         * lib/xstrndup.h: New file.
126441         * lib/xstrndup.c: New file.
126443 2003-08-17  Bruno Haible  <bruno@clisp.org>
126445         * modules/strndup (Files, Include): Add lib/strndup.h.
126447 2003-08-17  Bruno Haible  <bruno@clisp.org>
126449         * modules/euidaccess (Files): Add lib/euidaccess.h.
126451 2003-08-17  Bruno Haible  <bruno@clisp.org>
126453         * lib/strndup.h: New file.
126455 2003-08-17  Bruno Haible  <bruno@clisp.org>
126457         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
126458         like AC_GNU_SOURCE.
126459         * modules/extensions (configure.ac): Comment out the invocation of
126460         gl_USE_SYSTEM_EXTENSIONS.
126462 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126464         Merges from coreutils, etc.
126465         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
126466         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
126467         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
126468         fixing a typo.
126469         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
126470         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
126472 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126474         Document merge from coreutils.
126475         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
126476         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
126477         * modules/utime: Add m4/utimes-null.m4.
126479 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126481         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
126482         space, undoing this 2003-08-12 change:
126483         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126485 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126487         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
126488         strtoul.c from libc, undoing this 2003-08-12 change:
126489         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126491 2003-08-16  Jim Meyering  <jim@meyering.net>
126493         Merges from coreutils.
126494         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
126495         prefix.  Adjust cache variables similarly.  Create 500 rather than
126496         just 300 files, to exercise bug on Darwin6.5, too.
126497         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
126498         $missing_dir.
126499         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
126500         AM_SYS_POSIX_TERMIOS.
126501         Reported by mkc@mathdogs.com.
126502         Also change use of $am_cv_sys_posix_termios
126503         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
126504         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
126505         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
126506         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
126507         in /proc/mounts until it finds one with matching device number.  This
126508         is unnecessary when the FILE argument *is* a mount point.  No stat call
126509         is necessary in that case.  So, disable the statvfs-testing code on
126510         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
126511         as RedHat bug# 84846.
126512         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126513         to 1MB, so as not to render systems with no stack size limit (e.g.,
126514         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126515         Include <unistd.h>.  On some systems,
126516         it is required for the definition of _SC_PAGESIZE.
126518 2003-08-16  Jim Meyering  <jim@meyering.net>
126520         Merge from coreutils.
126521         * lib/xstrtoimax.c: #else #if -> #elif.
126522         * lib/xstrtoumax.c: Likewise.
126524 2003-08-16  Jim Meyering  <jim@meyering.net>
126526         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
126527         * m4/utimes.m4: Removed.
126528         * m4/utimes-null.m4: Renamed from utimes.m4.
126530         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126531         to 1MB, so as not to render systems with no stack size limit (e.g.,
126532         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126533         Include <unistd.h>.  On some systems,
126534         it is required for the definition of _SC_PAGESIZE.
126536 2003-08-16  Jim Meyering  <jim@meyering.net>
126537         and Paul Eggert  <eggert@cs.ucla.edu>
126539         Merges from coreutils, etc.
126541         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
126542         using the latest version from cvs.  This avoids problems with #line
126543         directives using a vendor (Sun) compiler.
126544         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
126545         Don't set GETGROUPS_LIB here; now it's
126546         done via getgroups.m4's wrapper function.
126547         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
126548         rather than just in sh-util/configure.in, so that the
126549         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
126550         same.
126551         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
126552         AC_FUNC_GETLOADAVG where to find getloadavg.c.
126553         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
126554         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
126555         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
126556         Remove code that is now done by the newly-required macros.
126557         Append $(EXEEXT) to DF_PROG.
126558         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
126559         Do not invoke or require the following here,
126560         since prereq.m4 or some gnulib .m4 now does this for us:
126561         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
126562         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
126563         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
126564         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
126565         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
126566         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
126567         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
126568         AC_FUNC_OBSTACK.
126569         Do not replace the following functions, as this is now the job
126570         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
126571         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
126572         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
126573         atexit getpass, strdup, getpagesize.
126574         Replace 'raise'.
126575         Do not check for the following functions, as this is now the job
126576         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
126577         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
126578         setregid.
126579         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
126580         Check for sys/sysctl.h.
126581         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
126582         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
126583         of checking for ssize_t ourselves.
126585         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
126586         Require every macro that gnulib/modules/* suggests for us.
126587         (jm_PREREQ_ADDEXT): New macro.
126588         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
126589         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
126591         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
126592         (gl_PHYSMEM): Use it.
126593         Also check for `table' function.
126594         Check for new headers and functions.
126595         Add check for sys/sysmp.h.
126596         With suggestions from Kaveh Ghazi.
126597         Ignore headers that are present but cannot be compiled.  This
126598         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
126599         C 5.4.
126601 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126603         Document merge from coreutils.
126604         * modules/userspec: Depend on posixver.
126605         * modules/strftime: Depend on tzset.
126607 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126609         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
126610         rather than tab, after '#' in shell-script copyright notices.
126611         Suggested by Bruno Haible.
126613 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126615         * config/srclist-update: Use three spaces, rather than tab, after '#'
126616         in shell-script copyright notices.  Suggested by Bruno Haible.
126617         Remove unnecessary parenthesization in regular expression.
126619 2003-08-15  Jim Meyering  <jim@meyering.net>
126621         Merge from coreutils.
126622         * lib/xgethostname.c: Include <stdlib.h>.
126623         (xghostname): Don't exit for anything other than memory-related
126624         failure; just return NULL.
126625         * lib/userspec.c: Include "posixver.h".
126626         (parse_user_spec): Accept `.' as a separator only
126627         in pre-POSIX-200112 mode.
126628         * lib/strtoimax.c: Use #elif rather than #else #if.
126629         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
126630         Remove function, now that we can rely on a working tzset function.
126631         [!_LIBC]: Ensure that the required autoconf test has been run.
126632         [!defined _NL_CURRENT && HAVE_STRFTIME]:
126633         Use underlying_strftime for %r.
126634         * lib/sha.c: Merge in some clean-up and optimization changes from
126635         glibc.
126636         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
126637         Ensure that it is a multiple of 64.
126638         Rearrange loop exit tests so as to avoid performing an
126639         additional fread after encountering an error or EOF.
126640         * lib/realloc.c: Update copyright date.
126642 2003-08-15  Jim Meyering  <jim@meyering.net>
126643         and Paul Eggert  <eggert@twinsun.com>
126645         Merge from coreutils.
126646         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
126647         member but strut utmpx does not.  Needed for AIX 4.3.3.
126648         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
126650 2003-08-15  Jim Meyering  <jim@meyering.net>
126651         and Paul Eggert  <eggert@cs.ucla.edu>
126653         Merges from coreutils, etc.
126654         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
126655         Require gl_FUNC_TZSET_CLOBBER.
126656         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
126657         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
126658         members.
126660 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126662         Help the merge from coreutils.
126663         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
126664         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
126665         * m4/tzset.m4: Use it too.
126667 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126669         * modules/tzset: New file.
126671 2003-08-14  Jim Meyering  <jim@meyering.net>
126673         Merges from coreutils.
126674         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
126675         variable names, rather than @FNMATCH_H@.
126676         * modules/alloca: Likewise for $(ALLOCA_H).
126678         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
126679         the three copies of the literal target, `fnmatch.h'.
126680         * modules/alloca (alloca.h): Likewise.
126682 2003-08-14  Jim Meyering  <jim@meyering.net>
126684         Merge from coreutils.
126685         * m4/tzset.m4: New file.
126686         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
126687         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
126688         otherwise, AIX 5.1 systems would end up using the latter.
126689         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
126690         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
126691         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
126692         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
126694 2003-08-14  Jim Meyering  <jim@meyering.net>
126696         Merge from coreutils.
126697         * lib/obstack.h: Whitespace changes.
126698         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
126699         and xcalloc return values.
126700         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
126701         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
126702         hang on OSF/1 5.1 for DIR on both local and remote file systems.
126703         Reported by (and fix confirmed by) Nelson H. F. Beebe.
126704         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
126705         error from mntctl.
126706         Use mntctl's return value to drive the entry-processing loop, since
126707         we can't rely on the value of the vmt_length member in the last
126708         entry.  On some systems doing so could result in exhausting
126709         virtual memory.  Based in part on a patch from Mike Jetzer.
126711 2003-08-14  Jim Meyering  <jim@meyering.net>
126712         and Paul Eggert  <eggert@twinsun.com>
126714         Merges from coreutils, plus other fixes.
126715         * lib/physmem.c: Merge in portability changes from gcc/libiberty
126716         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
126717         for credits and details.  Thanks to Kaveh Ghazi for helping
126718         to keep these files in sync.
126719         (ARRAY_SIZE): Define it.
126720         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
126721         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
126722         (memcasecmp): Don't assume size_t fits in unsigned int.
126723         Remove casts and duplicate code.
126724         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
126725         (memcpy): Remove definition.
126726         Merge in some clean-up and optimization changes from glibc.
126727         [BLOCKSIZE]: Move definition to top of file.
126728         Ensure that it is a multiple of 64.
126729         Rearrange loop exit tests so as to avoid performing an
126730         additional fread after encountering an error or EOF.
126731         * lib/md5.h (md5_uintptr): Define.
126732         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
126733         return to the initial working directory.  Preserve errno
126734         for caller.
126735         * lib/idcache.c: Include "xalloc.h".
126736         (xmalloc, xrealloc): Remove decls.
126737         (getuser): Remove casts no longer required in C89.
126738         * lib/human.c: Include stdio.h, for sprintf.
126739         * lib/group-member.c: Include "xalloc.h".
126740         (xmalloc, xrealloc): Remove decls.
126741         (get_group_info): Remove casts no longer required in C89.
126742         * lib/getusershell.c (readname): Remove casts no longer required in
126743         C89.
126744         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
126745         * lib/getline.c: Whitespace fix, from coreutils.
126747 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126749         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
126750         Check for isascii.
126752         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126753         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126754         Undo previous (whitespace-only) change.
126756 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126758         * lib/exclude.c: Include <ctype.h>
126759         (IN_CTYPE_DOMAIN): New macro.
126760         (is_space): New fn.
126761         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
126762         and empty lines.
126764         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126765         Undo previous (whitespace-only) change.
126767 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126769         * config/srclist-update: Change update back to the old behavior,
126770         leaving whitespace alone.  Use one 'sed' command rather than a
126771         pipeline.
126772         (fixlicense): Now a variable, not a function.
126773         (remove_trailing_blanks): Remove.
126774         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
126775         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126776         Undo previous (whitespace-only) change.
126778 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126780         Merge from coreutils.
126781         * modules/euidaccess: Add lib_SOURCES, include for new
126782         file euidaccess.h
126784 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126786         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126787         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126788         Normalize leading white space and remove trailing white space.
126790         Merge from coreutils
126791         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
126793         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
126794         0.12.1.  These files are now being upgraded automatically by
126795         ../config/srclist-update.
126797 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126799         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126800         Normalize leading white space and remove trailing white space.
126801         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
126802         notice, as per ../config/srclist-update.
126804         Merge from coreutils.
126805         * lib/euidaccess.h: New file.
126806         * lib/euidaccess.c: Include it.
126807         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
126808         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
126809         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
126811 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126813         * config/srclist-update: Add copyright notice.
126814         (remove_id_lines, remove_trailing_blanks): New constants.
126815         (fixfile): Use them to normalize spacing a bit in copied files.
126816         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126817         Normalize leading white space and remove trailing white space.
126819         * config/texinfo.tex: Sync with texinfo.
126821         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
126822         strtoul.c from libc, to merge coreutils whitespace changes.
126824         * config/srclist.txt: Get the following m4 files from gettext:
126825         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
126826         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
126827         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
126828         wint_t.m4.
126830 2003-08-12  Karl Berry  <karl@gnu.org>
126832         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
126833         been made.
126835 2003-08-11  Paul Eggert  <eggert@twinsun.com>
126837         * modules/gnu-source, m4/gnu-source.m4:
126838         Remove; we're assuming Autoconf 2.54 or later now.
126839         Suggested by Bruno Haible.
126840         * MODULES.html.sh (func_all_modules): Remove gnu-source.
126842 2003-08-11  Bruno Haible  <bruno@clisp.org>
126844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
126846 2003-08-11  Bruno Haible  <bruno@clisp.org>
126848         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
126849         (vasnprintf): Use it instead of wcslen.
126851 2003-08-11  Bruno Haible  <bruno@clisp.org>
126853         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
126854         value to ensure that _Bool promotes to int. Use #define for _Bool when
126855         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
126857 2003-08-10  Karl Berry  <karl@gnu.org>
126859         * lib/regex.h: update from libc (whitespace fix).
126861 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126863         Merge some files from coreutils.  These changes were
126864         originally made by Jim Meyering.
126865         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
126866         many older Unixes require this.
126867         * lib/alloca.c (alloca): Remove cast to argument of free;
126868         no longer needed in C89.
126869         * lib/alloca_.h, regex.h: Fix white space to match
126870         what GNU indent does.
126872 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126874         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
126875         apparently Emacs's Unicode mode got confused before my 2003-08-05
126876         checkin.
126878 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126880         * m4/extensions.m4: New file.
126881         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
126882         Require gl_USE_SYSTEM_EXTENSIONS.
126883         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
126884         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
126886 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126888         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
126889         * modules/extensions, modules/gnu-source: New files.
126890         * modules/timespec, modules/unlocked-io: Depend on extensions.
126892 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126894         * modules/restrict: New file.
126895         * MODULES.html.sh (func_all_modules): Add restrict.
126896         * modules/regex: Depend on restrict.
126898 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126900         * m4/restrict.m4: New file.
126901         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
126903 2003-08-07  Bruno Haible  <bruno@clisp.org>
126905         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
126906         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
126908 2003-08-07  Bruno Haible  <bruno@clisp.org>
126910         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
126911         makes the module 'getndelim2' compatible with the module 'getline'.
126913 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126915         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
126916         byte with "\201" to avoid glitches when editing that source file
126917         with multi-gnome-terminal.
126919 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126921         * lib/bumpalloc.h: Remove.
126923 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126925         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
126926         * modules/bumpalloc: Remove.
126928 2003-08-04  Paul Eggert  <eggert@twinsun.com>
126930         * lib/getloadavg.c: Change copyright notice and spacing to conform to
126931         GNU coding style.
126933         Merge from coreutils.
126934         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
126935         1. From glibc.
126936         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
126937         from Karl Berry, implemented by Jim Meyering.
126938         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
126939         from Dmitry V. Levin.
126940         Remove anachronistic cast of xrealloc.
126941         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
126942         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
126943         type. Otherwise, it wouldn't compile with at least /bin/cc on
126944         ymp-cray-unicos9.0.2.X.
126945         Combine two mostly-identical uses of alloca into one.
126946         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
126948 2003-08-04  Dave Love  <d.love@dl.ac.uk>
126950         [From Emacs.]
126952         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
126953         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
126954         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
126955         obsolete NLIST_NAME_UNION.
126956         [__GNU__]: Undef BSD and FSCALE.
126957         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
126959 2003-08-03  Paul Eggert  <eggert@twinsun.com>
126961         * lib/stdbool_.h (_Bool): Make it signed char, instead of
126962         an enum type, so that it's guaranteed to promote to int.  See:
126963         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
126965 2003-08-03  Karl Berry  <karl@gnu.org>
126967         * config/depcomp: update from automake.
126969 2003-07-31  Paul Eggert  <eggert@twinsun.com>
126971         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
126972         (strerror): Don't assume that a printable int fits in 14 bytes.
126974 2003-07-31  Bruno Haible  <bruno@clisp.org>
126976         * modules/getpass-gnu: New file.
126977         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
126979 2003-07-31  Bruno Haible  <bruno@clisp.org>
126981         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
126983 2003-07-24  Karl Berry  <karl@gnu.org>
126985         * config/missing: update from automake.
126987 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
126988             Bruno Haible  <bruno@clisp.org>
126990         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
126991         * lib/getline.c (getline, getdelim): Likewise.
126992         Remove _GNU_SOURCE define; now it's defined in config.h through
126993         m4/getline.m4.
126995 2003-07-23  Karl Berry  <karl@gnu.org>
126997         * config/config.sub: update from prep.
126999 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127001         * modules/xalloc (Depends-on): Add exitfail.
127002         * modules/xmemcoll: Likewise.
127004 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127006         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
127007         over-parenthesization in macros.
127009         Sync with coreutils.
127011         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
127012         required by C99.
127014         Use `exit_failure' for xalloc and xmemcoll instead of their own
127015         private exit-failure variables.
127016         * lib/xalloc.h (xalloc_exit_failure): Remove.
127017         * lib/xmalloc.c: Likewise.  Include exitfail.h.
127018         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
127019         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
127020         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
127021         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
127023 2003-07-20  Jim Meyering  <jim@meyering.net>
127025         * modules/closeout (Depends-on): Add exitfail.
127026         Suggestion from Bruno Haible.
127028 2003-07-19  Karl Berry  <karl@gnu.org>
127030         * config/config.sub: update from prep.
127032 2003-07-18  Paul Eggert  <eggert@twinsun.com>
127034         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
127035         Remove.
127036         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
127037         to test that it can stand by itself.  Include "exitfail.h".
127038         Clients should set exit_failure instead.
127039         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
127041 2003-07-18  Bruno Haible  <bruno@clisp.org>
127043         * modules/getndelim2: New file.
127044         * modules/getline: Share files with module getndelim2.
127045         * modules/getnline: Depend on getndelim2 instead of sharing files with
127046         it. Add getnline.c to lib_SOURCES.
127047         * MODULES.html.sh (func_all_modules): Add getndelim2.
127049 2003-07-18  Bruno Haible  <bruno@clisp.org>
127051         * m4/getndelim2.m4: New file.
127052         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
127053         invoke gl_PREREQ_GETNDELIM2.
127054         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
127055         gl_PREREQ_GETNDELIM2.
127056         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
127057         gl_GETNDELIM2.
127059 2003-07-18  Bruno Haible  <bruno@clisp.org>
127061         * lib/getndelim2.h: New file.
127062         * lib/getndelim2.c: Make into a module of its own. Include config.h,
127063         getndelim2.h.
127064         (getndelim2): Make non-static. Change return type to ssize_t.
127065         * lib/getline.h: Change argument names.
127066         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
127067         * lib/getnline.c: Include getndelim2.h.
127069 2003-07-18  Andreas Schwab  <schwab@suse.de>
127071         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
127073 2003-07-17  Karl Berry  <karl@gnu.org>
127075         * config/config.sub: update from prep.
127077 2003-07-17  Bruno Haible  <bruno@clisp.org>
127079         * modules/getnline: New file.
127080         * modules/getline: Add lib/getndelim2.c to source file list.
127081         * MODULES.html.sh (func_all_modules): Add getnline.
127083 2003-07-17  Bruno Haible  <bruno@clisp.org>
127085         * m4/getnline.m4: New file.
127087 2003-07-17  Bruno Haible  <bruno@clisp.org>
127089         * m4/Makefile.am.in: Remove file.
127090         * m4/Makefile.am: Remove file.
127091         * m4/Makefile.in: Remove file.
127093 2003-07-17  Bruno Haible  <bruno@clisp.org>
127095         * lib/getnline.h: New file.
127096         * lib/getnline.c: New file.
127097         * lib/getndelim2.c: New file, extracted from getline.c.
127098         (getndelim2): Renamed from getdelim2, with added nmax argument.
127099         * lib/getline.c: Include getndelim2.c.
127100         (getdelim2): Moved out to getndelim2.c.
127101         (getline, getdelim): Update.
127103 2003-07-17  Bruno Haible  <bruno@clisp.org>
127105         * lib/Makefile.am: Remove file.
127106         * lib/Makefile.in: Remove file.
127108 2003-07-17  Bruno Haible  <bruno@clisp.org>
127110         * configure.in: Remove file.
127111         * Makefile.in: Remove file.
127113 2003-07-17  Bruno Haible  <bruno@clisp.org>
127115         * MODULES.html.sh: Put the </BODY> right before </HTML>.
127117 2003-07-16  Karl Berry  <karl@gnu.org>
127119         * config/srclist-update: was running fixlicense twice, which caused
127120                 texinfo.tex to be nullified for some reason.  Simplify,
127121                 $gplsrc is no longer needed as far as I can see?
127123 2003-07-16  Jim Meyering  <jim@meyering.net>
127125         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
127127 2003-07-15  Paul Eggert  <eggert@twinsun.com>
127129         * config/srclist.txt: Get the following files from gettext-runtime/intl
127130         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
127131         ref-del.sin.  From Bruno Haible.
127132         * config/srclist-update (fixfile): Change grep pattern again, since the
127133         previous fix didn't work (there was another trailing $).  Use
127134         '[$]' to escape the $s.
127136 2003-07-15  Karl Berry  <karl@gnu.org>
127138         * lib/vasnprintf.c: update from gettext.
127140 2003-07-15  Karl Berry  <karl@gnu.org>
127142         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
127143         gets expanded when surrounded by '$'.
127145 2003-07-15  Jim Meyering  <jim@meyering.net>
127147         * modules/save-cwd: Don't depend on error.  From Derek Price.
127149 2003-07-15  Jim Meyering  <jim@meyering.net>
127151         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
127153 2003-07-14  Simon Josefsson  <jas@extundo.com>
127155         * modules/mempcpy: New file.
127156         * MODULES.html.sh (func_all_modules): Add mempcpy.
127158 2003-07-14  Simon Josefsson  <jas@extundo.com>
127160         * m4/mempcpy.m4: New file.
127162 2003-07-14  Simon Josefsson  <jas@extundo.com>
127164         * lib/mempcpy.h: New file.
127165         * lib/mempcpy.c: New file.
127167 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127169         * modules/getdate, modules/posixtm: Depend on mktime.
127171 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127173         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
127174         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
127175         unicodeio.c, unicodeio.h, unlocked-io.h:
127176         Switch from LGPL to GPL.
127178 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127180         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
127181         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
127182         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
127183         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
127184         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
127185         updated automatically by ../config/srclist-update.  This changes
127186         their license from LPGL to GPL.
127188 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127190         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
127191         assumed to refer to the root of the most recent stable gettext version.
127192         * config/srclistvars.sh: Add defaults for eggert.
127193         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
127194         Match "This program" as well as "The program".  This is needed
127195         for gettext.
127197 2003-07-14  Jim Meyering  <jim@meyering.net>
127199         Don't emit diagnostics.  Let callers do that.
127200         * lib/save-cwd.c: Don't include "error.h".
127201         (save_cwd): Don't call error.  Ensure that errno is valid
127202         when returning nonzero.
127204         * lib/save-cwd.h (restore_cwd): Update prototype.
127205         * lib/save-cwd.c (restore_cwd): Remove two parameters.
127206         Simplify.  Don't call error upon failure.  Let callers do that.
127207         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
127208         when auditing is enabled.  But don't bother updating the #if.
127210 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
127212         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
127213         it breaks C++ compilation.
127214         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
127216 2003-07-10  Simon Josefsson  <jas@extundo.com>
127218         * modules/strchrnul (Makefile.am): Add strchrnul.h.
127220 2003-07-10  Jim Meyering  <jim@meyering.net>
127222         * m4/clock_time.m4: Remove trailing blank.
127223         * m4/intmax_t.m4: Likewise.
127225 2003-07-10  Jim Meyering  <jim@meyering.net>
127227         * lib/vasnprintf.c: Remove trailing blanks.
127228         Make cpp indentation consistent.
127230 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127232         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
127233         posixver.c, strftime.c, strnlen.c, strverscmp.c:
127234         Switch from LGPL to GPL.
127236 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127238         * config/srclist.txt: Sort sublists.  Add
127239         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
127240         that differ from gnulib for one reason or another; we'd like this list
127241         to be smaller but for now let's document what we have.
127243 2003-07-08  Paul Eggert  <eggert@twinsun.com>
127245         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
127246         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
127247         and sweeter "eval x=$x".
127248         * config/srclist.txt: Get lib/argp* from glibc.
127250 2003-07-07  Paul Eggert  <eggert@twinsun.com>
127252         * lib/mktime.c: Fix some boundary cases and remove need for floating
127253         point.
127255         Issue a compile-time diagnostic if time_t is floating point, or if
127256         two's complement arithmetic is not in effect, or if arithmetic
127257         right shift does not propagate the sign.  These assumptions were
127258         all in the original code but they weren't checked.
127260         (TIME_T_MIDPOINT, verify): New macros.
127261         (__isleap): Remove; it has integer overflow problems.
127262         (leapyear): New function, without those problems.
127263         (ydhms_tm_diff): Remove; splitting into two parts.
127264         (ydhms_diff): New function, containing the arithmetic part of
127265         the old ydhms_tm_diff function.  Issue a compile-time
127266         diagnostic if we are not using C99 integer division.
127267         Avoid casts when possible.
127268         (guess_time_tm): New function, containing the checking part of
127269         the old ydhms_tm_diff function.  Return the new value, rather than
127270         the difference between it and the old.  Accept a new argument T
127271         so that *T specifies the old value.  Check for overflow in the result.
127273         (__mktime_internal): Use a time_t offset, not a long int offset.
127274         This undoes the 2003-06-04 change, which is no longer needed now
127275         that we have better overflow checking.
127276         (localtime_offset): Likewise.
127278         (__mktime_internal): Avoid harmful overflow on hosts where time_t
127279         and long are 64-bit but int is only 32-bit.
127280         (ydhms_diff): Use long int to store year1 and yday1.
127281         Issue a compile-time diagnostic if long int is not wide enough.
127283         (__mktime_internal): Use long int to store adjusted year and yday.
127284         Use plain C rather than preprocessor commands, if that doesn't
127285         affect efficiency.
127286         Check for overflow (and try to repair) after each probe
127287         rather than checking only at the very end.  This avoids some bugs
127288         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
127289         does not equal GMT offset at maximum time).
127290         Use integer to check for overflow rather than floating point; this
127291         is more portable to non-IEEE hosts, and is a tad faster.
127292         When we detect that we are oscillating between two values,
127293         don't check whether tm_isdst has the requested value, since
127294         we already know the answer.  When tm_isdst has the wrong value,
127295         use a different heuristic to find the right one, based on the
127296         extreme values actually observed in practice in tz2003a,
127297         rather than the (overly optimistic) "previous 3 calendar quarters".
127299         (not_equal_tm, print_tm, check_result): Use "const T" rather than
127300         "T const" to accommodate glibc style.
127301         (check_result): Use less-confusing report format.  "long" -> "long int.
127302         (main): Likewise.
127303         Don't loop if the iteration overflows time_t.
127304         Allow a negative step in the iteration.
127306 2003-07-06  Karl Berry  <karl@gnu.org>
127308         * config/depcomp: update from automake.
127309         * config/config.sub: update from prep.
127311 2003-07-03  Karl Berry  <karl@gnu.org>
127313         * config/config.guess: update from prep.
127315 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127317         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
127318         xreadlink.c now includes it unconditionally.
127320 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127322         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
127323         having it depend on HAVE_SYS_TYPES_H.
127325 2003-07-01  Bruno Haible  <bruno@clisp.org>
127327         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
127328         <sys/types.h> should be sufficient.
127329         Reported by Paul Eggert.
127331 2003-06-26  Karl Berry  <karl@gnu.org>
127333         * config/depcomp: update from automake.
127335 2003-06-26  Bruno Haible  <bruno@clisp.org>
127337         * modules/human: Depend on module stdbool.
127339 2003-06-25  Bruno Haible  <bruno@clisp.org>
127341         * modules/readlink: New file.
127342         * modules/xreadlink: Depend on it.
127343         * MODULES.html.sh (func_all_modules): Add readlink.
127345 2003-06-25  Bruno Haible  <bruno@clisp.org>
127347         * m4/readlink.m4: New file.
127349 2003-06-25  Bruno Haible  <bruno@clisp.org>
127351         * lib/readlink.c: New file.
127353 2003-06-22  Karl Berry  <karl@gnu.org>
127355         * config/srclist.txt: update mkinstalldirs from automake.
127356         * config/mkinstalldirs: update.
127358 2003-06-22  Bruno Haible  <bruno@clisp.org>
127360         Portability to mingw32.
127361         * m4/ssize_t.m4: New file, from GNU gettext.
127362         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
127363         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
127365 2003-06-22  Bruno Haible  <bruno@clisp.org>
127367         * modules/safe-read: Add m4/ssize_t.m4.
127368         * modules/xreadlink: Add m4/ssize_t.m4.
127370 2003-06-20  Bruno Haible  <bruno@clisp.org>
127372         Assume C89, so PARAMS isn't needed.
127373         * lib/unicodeio.h (PARAMS): Remove.
127374         * lib/unicodeio.c: Don't use PARAMS.
127376 2003-06-18  Karl Berry  <karl@gnu.org>
127378         * config/config.{guess,sub}: update from prep.
127380 2003-06-18  Jim Meyering  <jim@meyering.net>
127382         Merge changes from coreutils.
127383         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
127384         Remove explicit declarations of xmalloc and realloc.
127385         Include xalloc.h.
127386         (read_utmp): Remove anachronistic cast of xmalloc.
127388 2003-06-17  Paul Eggert  <eggert@twinsun.com>
127390         Assume C89, so PARAMS isn't needed.
127391         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
127392         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
127393         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
127394         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
127395         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
127396         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
127397         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
127398         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
127399         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
127400         lib/xstrtod.h, lib/xstrtol.h: Likewise.
127401         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
127402         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
127403         no longer needed. Anyway, config.h should always be included before any
127404         other file.
127406 2003-06-11  Simon Josefsson  <jas@extundo.com>
127408         * modules/sysexits: New file.
127409         * MODULES.html.sh (func_all_modules): Add sysexits.
127411 2003-06-11  Simon Josefsson  <jas@extundo.com>
127413         * lib/sysexit_.h: New file.
127415 2003-06-11  Derek Price  <derek@ximbiot.com>
127417         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
127418         necessary.
127420 2003-06-11  Bruno Haible  <bruno@clisp.org>
127422         * m4/sysexits.m4: New file.
127424 2003-06-10  Simon Josefsson  <jas@extundo.com>
127426         * lib/argp.h: New file, from glibc.
127427         * lib/argp-ba.c: New file, from glibc.
127428         * lib/argp-eexst.c: New file, from glibc.
127429         * lib/argp-fmtstream.c: New file, from glibc.
127430         * lib/argp-fmtstream.h: New file, from glibc.
127431         * lib/argp-fs-xinl.c: New file, from glibc.
127432         * lib/argp-help.c: New file, from glibc.
127433         * lib/argp-namefrob.h: New file, from glibc.
127434         * lib/argp-parse.c: New file, from glibc.
127435         * lib/argp-pv.c: New file, from glibc.
127436         * lib/argp-pvh.c: New file, from glibc.
127437         * lib/argp-xinl.c: New file, from glibc.
127439 2003-06-10  Simon Josefsson  <jas@extundo.com>
127441         * modules/strchrnul: New file.
127443 2003-06-10  Simon Josefsson  <jas@extundo.com>
127445         * modules/argp: New file.
127447 2003-06-10  Simon Josefsson  <jas@extundo.com>
127449         * m4/strchrnul.m4: New file.
127451 2003-06-10  Simon Josefsson  <jas@extundo.com>
127453         * lib/strchrnul.h: New file.
127454         * lib/strchrnul.c: New file.
127456 2003-06-10  Bruno Haible  <bruno@clisp.org>
127458         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
127460 2003-06-07  Karl Berry  <karl@gnu.org>
127462         * config/config.{guess,sub}: update from prep.
127464 2003-06-07  Jim Meyering  <jim@meyering.net>
127466         * modules/strtod: Use $(...) notation, not @...@ for
127467         AC_REPLACE'd variables.
127468         * modules/localcharset: Likewise.
127470 2003-06-07  Jim Meyering  <jim@meyering.net>
127472         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
127473         in place of my name in the copyright comment.
127474         Remove definition and uses of __P.
127476         From coreutils.
127477         * lib/stat.c: Don't declare xmalloc explicitly.
127478         Instead, include "xalloc.h".
127479         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
127480         xrealloc, and xcalloc return values.
127481         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
127482         Improve comment.
127483         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
127485 2003-06-07  Bruno Haible  <bruno@clisp.org>
127487         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
127488         avoid AC_CONFIG_LINKS.
127489         * modules/fnmatch (Makefile.am): Use explicit creation rule for
127490         fnmatch.h, to avoid AC_CONFIG_LINKS.
127491         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
127493 2003-06-07  Bruno Haible  <bruno@clisp.org>
127495         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
127496         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
127497         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127498         directory.
127499         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
127500         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127501         directory.
127503 2003-06-06  Jim Meyering  <jim@meyering.net>
127505         Merge from coreutils.
127506         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
127507         Consolidate declarations and initializations of *_base* locals.
127509         Merge from coreutils.
127510         This avoids a core dump on systems without GNU putenv,
127511         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
127512         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
127513         (unsetenv): New static function, from GNU libc.
127514         (rpl_putenv): Use it.
127516         * lib/modechange.c: Remove trailing blanks.
127518         Merge from coreutils.
127519         * lib/fsusage.c: Remove declaration of statfs.
127520         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
127522         * lib/posixtm.c: Include <stdbool.h> unconditionally.
127524 2003-06-06  Jim Meyering  <jim@meyering.net>
127526         * lib/stdbool_.h: Renamed from stdbool.h.in.
127528 2003-06-06  Jim Meyering  <jim@meyering.net>
127529             Bruno Haible  <bruno@clisp.org>
127531         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
127532         Adjust Makefile.am snippet not to redirect directly to target.
127533         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
127535 2003-06-05  Paul Eggert  <eggert@twinsun.com>
127537         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
127538         mismatch, look in future quarters as well as past.  This fixes a
127539         bug when processing fall-backwards gaps immediately after a long
127540         period of daylight-saving time.
127542         * lib/mktime.c: Assume freestanding C89 or better.
127543         (HAVE_LIMITS_H): Remove.  Assume it's 1.
127544         (__P): Remove; not used.
127545         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
127546         (mktime, not_equal_tm, print_tm, check_result,
127547         main): Use prototypes.  Use const * where appropriate.
127548         (main): Fix typo in testing code that uncovered by above changes.
127549         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
127551 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127553         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
127554         locale.h, localeconv.  This merges changes from coreutils.
127556         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
127557         It can be removed after the next Autoconf is released.
127558         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
127559         needed.
127561 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127563         * lib/mktime.c: Fix Debian bug 177940
127564         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
127565         (localtime_offset): Now long int, not time_t, because we want it
127566         to be guaranteed to be signed.  All uses changed.
127567         (__mktime_internal): If overflow would occur when adding offset,
127568         don't add it.
127570         Merge 'human' changes from coreutils.  Rewrite to support
127571         locale-specific notations like thousands separators.
127572         * lib/human.c: Simplify authorship notice.
127573         Include human.h immediately after config.h.
127574         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
127575         <limits.h>: Do not include, since human.h does.
127576         (SIZE_MAX, UINTMAX_MAX): New macros.
127577         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
127578         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
127579         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
127580         (power_letter): Renamed from suffixes.
127581         (generate_suffix_backwards): Remove.
127582         (adjust_value): Now takes int style (because of human.h changes)
127583         and long double value (for greater precision on some platforms).
127584         (group_number): New function.
127585         (human_readable): Use it.  Use integer options, not enum.
127586         Put the options before the sizes in the arg list.
127587         Support all the new options.
127588         The old human_readable function has been removed;
127589         use inttostr.h instead.
127590         (human_readable, default_block_size, humblock):
127591         Use uintmax_t, not int, for block sizes.
127592         (human_readable_inexact, block_size_types): Remove.
127593         (block_size_opts): New constant.
127594         (human_options): Renamed from human_block_size, with new signature
127595         that allows block sizes up to UINTMAX_MAX.  All callers changed.
127596         * lib/human.h: Add copyright and authorship notice.
127597         Include <limits.h> and <stdbool.h> unconditionally.
127598         (PARAMS): Remove.  All uses removed.
127599         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
127600         (enum human_inexact_style): Remove tag; now a nameless enum.
127601         (human_floor, human_ceiling, human_round_to_even): Now have
127602         values 2, 0, 1 rather than -1, 1, 0.
127603         (human_group_digits, human_suppress_point_zero, human_autoscale,
127604         human_base_1024, human_SI, human_B): New constants.
127605         (human_readable_inexact, human_block_size): Remove.
127606         (human_readable): Size args are now uintmax_t, not int.
127607         (human_options): New decl.
127609         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
127610         unnecessary now that we assume C89 or better.  This change
127611         imported from coreutils.
127613         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127614         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
127615         in the 2003-05-30 sync from glibc.
127617         .h files should stand alone, but we shouldn't include <sys/types.h>
127618         if we can get away with just <stddef.h>.
127620         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
127621         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
127622         rather than <sys/types.h>, as we merely need size_t.
127623         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
127624         to get size_t.
127625         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
127626         Include <stdio.h>, to get FILE.
127627         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
127628         memcasecmp.h has included <stddef.h> and all we need is size_t.
127629         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
127630         our interface, instead of including <sys/types.h>
127632 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127634         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
127635         now, as glibc mktime is buggy on non-glibc systems.
127637 2003-06-03  Karl Berry  <karl@gnu.org>
127639         * config/config.sub: update from prep.
127641 2003-06-02  Paul Eggert  <eggert@twinsun.com>
127643         [from coreutils]
127644         Fix some minor time-related bugs with POSIX time arguments.
127645         Some valid time stamps were being rejected (notably -1, and
127646         time stamps before 1900 on 64-bit hosts).  And some invalid
127647         time stamps were being accepted, e.g. September 31.
127649         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
127650         that we can return (time_t) -1 successfully.
127651         * lib/posixtm.c: Likewise.
127652         [HAVE_STDBOOL_H]: Include <stdbool.h>.
127653         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
127654         (t): Remove static var.
127655         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
127656         of static var.  All uses changed.
127657         (year): Do not reject years before 1900; they can occur with
127658         64-bit time_t.
127659         (posix_time_parse): Do not check for out-of-range components;
127660         that is now the caller's responsibility, since our checks were
127661         only approximations.
127662         (posixtime): Use mktime to check for out-of-range components,
127663         since it knows them exactly.
127664         If mktime returns (time_t) -1, check whether an error actually occurred
127665         by invoking localtime on -1.
127666         (main) [TEST_POSIXTIME]: Check for input data errors, and report
127667         posixtime failures better.
127668         Improve the test data (in comments only).
127670 2003-06-02  Karl Berry  <karl@gnu.org>
127672         * config/mkinstalldirs (version): new variable.
127673         (--version): new option.
127674         (usage): improve message.
127676 2003-05-30  Karl Berry  <karl@gnu.org>
127678         * lib/mktime.c: update from libc.
127680 2003-05-30  Bruno Haible  <bruno@clisp.org>
127682         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
127683         * config/config.rpath: Upgrade to gettext-0.12.1.
127685 2003-05-30  Bruno Haible  <bruno@clisp.org>
127687         * m4/gettext.m4: Upgrade to gettext-0.12.1.
127688         * m4/nls.m4: New file, from gettext-0.12.1.
127689         * m4/po.m4: New file, from gettext-0.12.1.
127690         * m4/progtest.m4: Upgrade to gettext-0.12.1.
127692 2003-05-30  Bruno Haible  <bruno@clisp.org>
127694         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
127695         * lib/localcharset.h: Likewise.
127696         * lib/localcharset.c: Likewise.
127698 2003-05-29  Karl Berry  <karl@gnu.org>
127700         * config/config.rpath: update from gettext.
127702 2003-05-28  Paul Eggert  <eggert@twinsun.com>
127704         Assume the headers required for C89 freestanding compilers.
127705         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
127706         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
127707         * m4/human.m4 (gl_HUMAN): Likewise.
127708         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
127709         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
127710         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127711         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
127712         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127713         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
127715 2003-05-28  Paul Eggert  <eggert@twinsun.com>
127717         Assume the headers required for C89 freestanding compilers.
127718         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
127719         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
127720         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
127721         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
127722         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
127723         define, since <limits.h> is guaranteed to do that.
127724         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
127725         * lib/exclude.c: Include <stdbool.h> unconditionally.
127726         * lib/tempname.c: Include <stddef.h> unconditionally.
127727         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
127728         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
127729         <stddef.h> does that.
127730         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
127731         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
127732         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
127733         needed.
127734         * lib/xstrtol.c: Likewise.
127735         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
127736         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
127738         * lib/addext.c (addext): Use assignment rather than cast, to avoid
127739         warnings on some platforms.
127741         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127742         arbitrarily.
127744 2003-05-26  Jim Meyering  <jim@meyering.net>
127746         Merge in a change from coreutils:
127747         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
127748         that is guaranteed to be `no'.  Use `no_such_member' to indicate
127749         that condition, rather than `-1' which is slightly misleading.
127750         Change the name of the cache variable to have the gl_ prefix.
127751         Prompted by a patch from Richard Dawe for DJGPP.
127753 2003-05-24  Karl Berry  <karl@gnu.org>
127755         * config/config.guess: update from prep.
127757 2003-05-22  Karl Berry  <karl@gnu.org>
127759         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
127761 2003-05-20  Karl Berry  <karl@gnu.org>
127763         * config/config.guess: update from prep.
127765 2003-05-18  Karl Berry  <karl@gnu.org>
127767         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
127768         might actually be set by the user.
127770         * config/depcomp, install-sh, mdate-sh: update from automake.
127772 2003-05-17  Bruno Haible  <bruno@clisp.org>
127774         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
127775         invalid expansion for AC_EGREP_CPP.
127776         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
127777         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
127778         Suggested by Akim Demaille <akim@epita.fr> in
127779         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
127781 2003-05-12  Jim Meyering  <jim@meyering.net>
127783         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
127784         the space-padded-by-default conversion specifiers, %e, %k, %l.
127786 2003-05-12  Bruno Haible  <bruno@clisp.org>
127788         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
127789         the string is longer than 4 KB.
127791 2003-05-11  Karl Berry  <karl@gnu.org>
127793         * config/config.{guess,sub}: update from prep.
127795 2003-05-09  Bruno Haible  <bruno@clisp.org>
127797         * modules/error: Add m4/strerror_r.m4 to file list.
127799 2003-05-03  Bruno Haible  <bruno@clisp.org>
127801         Upgrade to Unicode-4.0.
127802         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
127803         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
127804         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
127805         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
127806         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
127807         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
127808         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
127809         Change width of U+E0100..U+E01EF from 1 to 0.
127811 2003-04-25  Jim Meyering  <jim@meyering.net>
127813         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
127814         of type size_t, not int.
127816 2003-04-25  Bruno Haible  <bruno@clisp.org>
127818         * lib/copy-file.c: Include <stddef.h>, for size_t.
127820 2003-04-21  Paul Eggert  <eggert@twinsun.com>
127822         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
127823         code which expansion is under static control.  Patch imported from
127824         Akim Demaille's patch to Bison; see
127825         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
127827 2003-04-14  Bruno Haible  <bruno@clisp.org>
127829         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
127831 2003-04-11  Jim Meyering  <jim@meyering.net>
127833         Merge changes from Coreutils.
127835         2003-03-22  Jim Meyering  <jim@meyering.net>
127837         * lib/strftime.c (widen): Cast alloca return value to proper type.
127839         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
127841         From GNU libc.
127842         * lib/strftime.c (my_strftime): Handle very large width
127843         specifications for numeric values correctly.  Improve checks for
127844         overflow.
127846         2003-01-19  Jim Meyering  <jim@meyering.net>
127848         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
127849         definitions.
127850         (nl_get_alt_digit) [! defined my_strftime]: Define.
127851         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
127852         _nl_get_alt_digit and _nl_get_walt_digit.
127854         * lib/strftime.c (my_strftime): Merge in locale-related changes from
127855         libc. These changes have no effect outside of _LIBC.
127857 2003-04-10  Bruno Haible  <bruno@clisp.org>
127859         * modules/findprog: New file.
127860         * MODULES.html.sh (func_all_modules): Add it.
127862 2003-04-10  Bruno Haible  <bruno@clisp.org>
127864         * m4/findprog.m4: New file.
127865         * m4/eaccess.m4: New file.
127867 2003-04-10  Bruno Haible  <bruno@clisp.org>
127869         * lib/findprog.h: New file, from GNU gettext.
127870         * lib/findprog.c: New file, from GNU gettext.
127872 2003-04-05  Jim Meyering  <jim@meyering.net>
127874         Merge changes from Coreutils.
127876         * lib/exclude.h (PARAMS): Remove definition and uses.
127877         * lib/exclude.c: Remove uses of `PARAMS'.
127879         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
127880         Add test-cases for DOS filenames. Declare program_name.
127881         (main): Set up program_name.  Patch by Rich Dawe.
127883         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127884         error from mntctl.
127885         Use mntctl's return value to drive the entry-processing loop, since
127886         we can't rely on the value of the vmt_length member in the last
127887         entry.  On some systems doing so could result in exhausting
127888         virtual memory.  Based in part on a patch from Mike Jetzer.
127890 2003-04-04  Bruno Haible  <bruno@clisp.org>
127892         * modules/linebreak: New file.
127893         * MODULES.html.sh (func_all_modules): Add it.
127895 2003-04-04  Bruno Haible  <bruno@clisp.org>
127897         * m4/linebreak.m4: New file.
127899 2003-04-04  Bruno Haible  <bruno@clisp.org>
127901         * lib/linebreak.h: New file, from GNU gettext.
127902         * lib/linebreak.c: New file, from GNU gettext with slight
127903         modifications.
127904         * lib/lbrkprop.h: New file, from GNU gettext.
127906 2003-04-03  Bruno Haible  <bruno@clisp.org>
127908         * modules/utf8-ucs4: New file.
127909         * modules/utf16-ucs4: New file.
127910         * modules/ucs4-utf8: New file.
127911         * modules/ucs4-utf16: New file.
127912         * MODULES.html.sh (func_all_modules): Add them.
127914 2003-04-03  Bruno Haible  <bruno@clisp.org>
127916         * m4/utf-ucs4.m4: New file.
127917         * m4/ucs4-utf.m4: New file.
127919 2003-04-03  Bruno Haible  <bruno@clisp.org>
127921         * lib/utf8-ucs4.h: New file, from GNU gettext.
127922         * lib/utf16-ucs4.h: New file, from GNU gettext.
127923         * lib/ucs4-utf8.h: New file, from GNU gettext.
127924         * lib/ucs4-utf16.h: New file, from GNU gettext.
127926 2003-04-02  Bruno Haible  <bruno@clisp.org>
127928         * modules/binary-io: New file.
127929         * MODULES.html.sh (func_all_modules): Add it.
127931 2003-04-02  Bruno Haible  <bruno@clisp.org>
127933         * lib/binary-io.h: New file, from GNU gettext.
127935 2003-04-01  Bruno Haible  <bruno@clisp.org>
127937         * modules/pathname: New file.
127938         * MODULES.html.sh (func_all_modules): Add it.
127940 2003-04-01  Bruno Haible  <bruno@clisp.org>
127942         * lib/pathname.h: New file, from GNU gettext.
127943         * lib/concatpath.c: New file, from GNU gettext.
127945 2003-03-30  Bruno Haible  <bruno@clisp.org>
127947         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
127949 2003-03-30  Bruno Haible  <bruno@clisp.org>
127951         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
127952         function chown() doesn't exist.
127954 2003-03-28  Bruno Haible  <bruno@clisp.org>
127956         * modules/copy-file: New file.
127957         * MODULES.html.sh (func_all_modules): Add it.
127959 2003-03-28  Bruno Haible  <bruno@clisp.org>
127961         * m4/copy-file.m4: New file.
127963 2003-03-28  Bruno Haible  <bruno@clisp.org>
127965         * lib/copy-file.h: New file, from GNU gettext.
127966         * lib/copy-file.c: New file, from GNU gettext.
127968 2003-03-18  Jim Meyering  <jim@meyering.net>
127970         * lib/quote.c (quote_n): Fix typo in comment.
127972 2003-03-18  Bruno Haible  <bruno@clisp.org>
127974         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
127975         checking.
127976         * m4/onceonly_2_57.m4: Likewise.
127978 2003-03-17  Bruno Haible  <bruno@clisp.org>
127980         * m4/onceonly.m4: Require autoconf 2.54 or newer.
127981         (m4_quote): Remove macro.
127982         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
127984 2003-03-14  Jim Meyering  <jim@meyering.net>
127986         Merge changes from Coreutils.
127987         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
127988         to be const, in order to avoid warnings.
127989         (obstack_room): Likewise.
127990         (obstack_empty_p): Likewise.
127992 2003-03-14  Bruno Haible  <bruno@clisp.org>
127994         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
127995         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
127997 2003-03-13  Paul Eggert  <eggert@twinsun.com>
127999         Merge changes from Bison.
128000         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
128001         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
128002         when compiling Bison 1.875's `bitset bset = obstack_alloc
128003         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
128004         * lib/hash.c: Include <stdbool.h> unconditionally.
128006 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128008         * m4/onceonly.m4 (m4_quote): New macro.
128009         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
128010         Quote AC_FOREACH variable-expansions properly.
128012 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128014         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
128016 2003-03-09  Paul Eggert  <eggert@twinsun.com>
128018         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
128019         Reported by Bruce Becker; see:
128020         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
128022 2003-03-03  Paul Eggert  <eggert@twinsun.com>
128023             Bruno Haible  <bruno@clisp.org>
128025         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
128026         Reported by John Hughes, see
128027         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
128029 2003-02-20  Bruno Haible  <bruno@clisp.org>
128031         * MODULES.html.sh (func_all_modules): Add poll.
128033 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128035         * modules/poll: New file.
128037 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128039         * lib/poll_.h: New file.
128040         * lib/poll.c: New file.
128042 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128044         * m4/poll.m4: New file.
128046 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128048         * modules/mathl: New file.
128050 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128052         * lib/mathl.h: New file.
128053         * lib/acosl.c: New file.
128054         * lib/asinl.c: New file.
128055         * lib/atanl.c: New file.
128056         * lib/ceill.c: New file.
128057         * lib/cosl.c: New file.
128058         * lib/expl.c: New file.
128059         * lib/floorl.c: New file.
128060         * lib/frexpl.c: New file.
128061         * lib/ldexpl.c: New file.
128062         * lib/logl.c: New file.
128063         * lib/sincosl.c: New file.
128064         * lib/sinl.c: New file.
128065         * lib/sqrtl.c: New file.
128066         * lib/tanl.c: New file.
128067         * lib/trigl.c: New file.
128068         * lib/trigl.h: New file.
128070 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128072         * m4/mathl.m4: New file.
128074 2003-02-18  Bruno Haible  <bruno@clisp.org>
128076         * MODULES.html.sh (func_all_modules): Add mathl.
128078 2003-02-17  Bruno Haible  <bruno@clisp.org>
128080         * modules/mkdtemp: New module.
128081         * MODULES.html.sh (func_all_modules): Add it.
128083 2003-02-17  Bruno Haible  <bruno@clisp.org>
128085         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
128087 2003-02-17  Bruno Haible  <bruno@clisp.org>
128089         * lib/mkdtemp.h: New file, from GNU gettext.
128090         * lib/mkdtemp.c: New file, from GNU gettext.
128092 2003-02-02  Jim Meyering  <jim@meyering.net>
128094         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
128095         e.g. glibc-2.2.93.
128097 2003-01-31  Bruno Haible  <bruno@clisp.org>
128099         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
128100         'rpl_rename'.
128101         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
128102         'rpl_strnlen'.
128103         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
128104         'rpl_strtod'.
128105         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
128106         'rpl_utime'.
128108 2003-01-31  Bruno Haible  <bruno@clisp.org>
128110         * lib/rename.c: #undef rename before defining rpl_rename.
128111         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
128113 2003-01-30  Bruno Haible  <bruno@clisp.org>
128115         * modules/vasnprintf, modules/vasprintf: New modules.
128116         * MODULES.html.sh (func_all_modules): Add them.
128118 2003-01-30  Bruno Haible  <bruno@clisp.org>
128120         * m4/signed.m4: New file, from GNU gettext.
128121         * m4/longdouble.m4: New file, from GNU gettext.
128122         * m4/wchar_t.m4: New file, from GNU gettext.
128123         * m4/wint_t.m4: New file, from GNU gettext.
128124         * m4/vasnprintf.m4: New file.
128125         * m4/vasprintf.m4: New file.
128127 2003-01-30  Bruno Haible  <bruno@clisp.org>
128129         * lib/printf-args.h: New file, from GNU gettext.
128130         * lib/printf-args.c: New file, from GNU gettext.
128131         * lib/printf-parse.h: New file, from GNU gettext.
128132         * lib/printf-parse.c: New file, from GNU gettext.
128133         * lib/vasnprintf.h: New file, from GNU gettext.
128134         * lib/vasnprintf.c: New file, from GNU gettext.
128135         * lib/asnprintf.c: New file, from GNU gettext.
128136         * lib/vasprintf.h: New file, from GNU gettext with modifications.
128137         * lib/vasprintf.c: New file, from GNU gettext.
128138         * lib/asprintf.c: New file, from GNU gettext.
128140 2003-01-29  Bruno Haible  <bruno@clisp.org>
128142         * modules/stpncpy: New module.
128143         * MODULES.html.sh (func_all_modules): Add it.
128145 2003-01-29  Bruno Haible  <bruno@clisp.org>
128147         * m4/stpncpy.m4: New file.
128149 2003-01-29  Bruno Haible  <bruno@clisp.org>
128151         * lib/stpncpy.h: New file, from GNU gettext with modifications.
128152         * lib/stpncpy.c: New file, from GNU gettext with modifications.
128154 2003-01-28  Bruno Haible  <bruno@clisp.org>
128156         * modules/c-ctype: New module.
128157         * MODULES.html.sh (func_all_modules): Add it.
128159 2003-01-28  Bruno Haible  <bruno@clisp.org>
128161         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
128162         Paul Eggert.
128163         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
128164         Paul Eggert.
128166 2003-01-27  Bruno Haible  <bruno@clisp.org>
128168         * modules/xsetenv: New module.
128169         * MODULES.html.sh (func_all_modules): Add it.
128171 2003-01-27  Bruno Haible  <bruno@clisp.org>
128173         * lib/xsetenv.h: New file, from GNU gettext.
128174         * lib/xsetenv.c: New file, from GNU gettext.
128176 2003-01-23  Jim Meyering  <jim@meyering.net>
128178         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
128179         from working on systems without dirfd (at least Irix and OSF1/Tru64).
128181 2003-01-23  Bruno Haible  <bruno@clisp.org>
128183         * modules/minmax: New module.
128184         * MODULES.html.sh (func_all_modules): Add it.
128186 2003-01-23  Bruno Haible  <bruno@clisp.org>
128188         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
128189         Eggert.
128191 2003-01-22  Bruno Haible  <bruno@clisp.org>
128193         * modules/exit: New module.
128194         * MODULES.html.sh (func_all_modules): Add it.
128196 2003-01-22  Bruno Haible  <bruno@clisp.org>
128198         * lib/exit.h: New file, from GNU gettext.
128200 2003-01-19  Bruno Haible  <bruno@clisp.org>
128202         * gnulib-tool: Recognize option --extract-maintainer.
128203         (func_get_maintainer): New function.
128204         * modules/*: Add Maintainer entry.
128206 2003-01-16  Jim Meyering  <jim@meyering.net>
128208         * m4/regex.m4: The `regex' struct is both input and output.
128209         Initialize it before each use.  Patch by Tim Waugh.
128211 2003-01-16  Bruno Haible  <bruno@clisp.org>
128213         * MODULES.html.sh: Add a table of contents. Add the module name as
128214         leftmost column. Add hyperlinks.
128216 2003-01-15  Bruno Haible  <bruno@clisp.org>
128218         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
128220 2003-01-15  Bruno Haible  <bruno@clisp.org>
128222         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
128223         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
128224         suffix.
128226 2003-01-15  Bruno Haible  <bruno@clisp.org>
128228         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
128230 2003-01-15  Bruno Haible  <bruno@clisp.org>
128232         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
128233         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
128235 2003-01-14  Jim Meyering  <jim@meyering.net>
128237         * lib/same.c (same_name): Tweak a comment.
128239 2003-01-14  Bruno Haible  <bruno@clisp.org>
128241         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
128242         when a string comparison is sufficient.
128244 2003-01-14  Bruno Haible  <bruno@clisp.org>
128246         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
128247         'unsigned int'.
128249 2003-01-14  Bruno Haible  <bruno@clisp.org>
128251         * lib/hash-pjw.c: Add comment about low quality of this function.
128253 2003-01-13  Bruno Haible  <bruno@clisp.org>
128255         * modules/stpcpy: Distribute lib/stpcpy.h.
128256         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
128258 2003-01-13  Bruno Haible  <bruno@clisp.org>
128260         * modules/*: Add a description.
128261         * modules/strpbrk: Fix Makefile.am snippet.
128262         * modules/strtoimax: Fix dependencies.
128263         * modules/strtoumax: Likewise.
128265 2003-01-13  Bruno Haible  <bruno@clisp.org>
128267         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
128268         * modules/alloca (Makefile.am): All object files depend on alloca.h.
128269         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
128271 2003-01-13  Bruno Haible  <bruno@clisp.org>
128273         * gnulib-tool (func_create_testdir): Store config/* files in the main
128274         directory.
128275         * config.rpath: Move to ...
128276         * config/config.rpath: ... here.
128277         * modules/gettext: Contains config/config.rpath, not config.rpath.
128278         * modules/iconv: Likewise.
128280 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128282         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128283         to avoid collisions with libcurses and libreadline.
128285         * m4/getstr.m4: Remove.
128286         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
128288 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128290         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128291         to avoid collisions with libcurses and libreadline.
128293         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
128294         * lib/getstr.h, getstr.c: Remove.
128295         * lib/getline.c: Include "getline.h", to check interface.
128296         Move body of old getstr.c here: this defines MIN_CHUNK and
128297         declares getdelim2, which is renamed from getstr.
128298         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
128300         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
128301         All uses changed.
128302         * lib/linebuffer.h: Likewise.
128303         (readline): Remove backward-compatibility macro.
128305 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128307         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128308         to avoid collisions with libcurses and libreadline.
128309         * getstr: Remove.
128310         * MODULES.html.sh: Remove getstr.
128311         * modules/getline: Depend on unlocked-io, not getstr.
128313 2003-01-12  Jim Meyering  <jim@meyering.net>
128315         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
128317 2003-01-10  Bruno Haible  <bruno@clisp.org>
128319         * modules/alloca: Change Makefile.am requirements. Simplify Include
128320         requirements. Add lib/alloca_.h to file list.
128322 2003-01-10  Bruno Haible  <bruno@clisp.org>
128324         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
128326 2003-01-10  Bruno Haible  <bruno@clisp.org>
128328         * lib/alloca_.h: New file.
128329         * lib/getdate.y: Unconditionally include alloca.h.
128330         * lib/makepath.c: Likewise.
128331         * lib/setenv.c: Likewise.
128332         * lib/userspec.c: Likewise.
128334 2003-01-09  Karl Berry  <karl@gnu.org>
128336         * MODULES.html.sh: include `dirname $0` in PATH, to find
128337         gnulib-tool.
128339 2003-01-09  Bruno Haible  <bruno@clisp.org>
128341         * modules/stdbool: Change configure.ac, Makefile.am requirements.
128342         Simplify Include requirements. Add lib/stdbool.h.in to file list.
128344 2003-01-09  Bruno Haible  <bruno@clisp.org>
128346         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
128348 2003-01-09  Bruno Haible  <bruno@clisp.org>
128350         * lib/stdbool.h.in: New file.
128352 2003-01-09  Bruno Haible  <bruno@clisp.org>
128354         * gnulib-tool (func_all_modules): Ignore files ending in ~.
128355         * MODULES.html.sh: Likewise.
128357 2003-01-08  Jim Meyering  <jim@meyering.net>
128359         * lib/full-write.c: Undefine and define-away `const' after inclusion
128360         of errno.h, not before.  Suggestion from Bruno Haible.
128362 2003-01-08  Bruno Haible  <bruno@clisp.org>
128364         * modules/full-read: Depend on full-write.
128366 2003-01-08  Bruno Haible  <bruno@clisp.org>
128368         * lib/safe-read.c: Include specification header first, to ensure its
128369         selfcontainedness.
128370         * lib/full-write.c: Likewise.
128372 2003-01-07  Jim Meyering  <jim@meyering.net>
128374         * lib/full-write.c: Rework so that it may serve to define full_read,
128375         too.
128376         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
128378 2003-01-07  Bruno Haible  <bruno@clisp.org>
128380         * lib/strtoimax.c: Include <stdint.h> as an alternative to
128381         <inttypes.h>.
128382         * lib/xstrtol.h: Likewise.
128383         * lib/xstrtoimax.c: Likewise.
128384         * lib/xstrtoumax.c: Likewise.
128385         * lib/human.h: Likewise.
128387         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
128388         on systems that have <inttypes.h> but not <stdint.h>.
128390 2003-01-07  Bruno Haible  <bruno@clisp.org>
128392         * MODULES.html.sh: Add copyright notice.
128393         (missed_files): Omit CVS directory entries.
128394         (func_module): Make it work with sed-3.02.
128395         * MODULES.txt: Remove file.
128397 2003-01-06  Jim Meyering  <jim@meyering.net>
128399         * lib/version-etc.c: Update year in translatable copyright string.
128401 2003-01-03  Karl Berry  <karl@gnu.org>
128403         * config/config.{guess,sub}: update from prep.
128405 2003-01-02  Karl Berry  <karl@gnu.org>
128407         * doc/COPYING.DOC: belatedly updated to 1.2.
128409 2003-01-01  Karl Berry  <karl@gnu.org>
128411         * gnulib-tool (func_verify_module): report module name $module in
128412         error message, not $1.
128413         * gnulib-tool (create-testdir): don't complain if destdir couldn't
128414         be created, only if it doesn't exist.
128415         * gnulib-tool (last_checkin_date): don't expand the $Date here.
128417 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128419         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
128421 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128423         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
128424         memcmp if strcoll doesn't work.
128426 2002-12-31  Bruno Haible  <bruno@clisp.org>
128428         * lib/utime.c (utime_null): No need to call ftruncate if the file was
128429         nonempty.
128431 2002-12-31  Bruno Haible  <bruno@clisp.org>
128433         * lib/memcoll.c (STRCOLL): New macro.
128434         (memcoll): Use it.
128436 2002-12-31  Bruno Haible  <bruno@clisp.org>
128438         * lib/localcharset.h: New file.
128439         * lib/localcharset.c: Include it.
128440         * lib/unicodeio.c: Likewise.
128442 2002-12-31  Bruno Haible  <bruno@clisp.org>
128444         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
128445         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
128447 2002-12-31  Bruno Haible  <bruno@clisp.org>
128449         * lib/getline.h: Include <stddef.h>, for size_t.
128451         * lib/unicodeio.h: Include <stddef.h>, for size_t.
128452         * lib/unicodeio.c: Don't include <stddef.h>.
128454 2002-12-31  Bruno Haible  <bruno@clisp.org>
128456         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
128457         HAVE_TM_ZONE.
128459 2002-12-24  Karl Berry  <karl@gnu.org>
128461         * config/config.guess: update from prep.
128463 2002-12-24  Bruno Haible  <bruno@clisp.org>
128465         General infrasructure.
128466         * m4/README: Rewritten.
128467         * m4/onceonly.m4: New file.
128468         * m4/onceonly_2_57.m4: New file.
128470         Module atexit.
128471         * m4/atexit.m4: New file.
128473         Module strtod.
128474         * m4/strtod.m4: New file.
128476         Module strtol.
128477         * m4/strtol.m4: New file.
128479         Module strtoul.
128480         * m4/strtoul.m4: New file.
128482         Module memchr.
128483         * m4/memchr.m4: New file.
128485         Module memcmp.
128486         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
128487         (jm_FUNC_MEMCMP): Invoke it.
128489         Module memcpy.
128490         * m4/memcpy.m4: New file.
128492         Module memmove.
128493         * m4/memmove.m4: New file.
128495         Module memset.
128496         * m4/memset.m4: New file.
128498         Module strcspn.
128499         * m4/strcspn.m4: New file.
128501         Module strpbrk.
128502         * m4/strpbrk.m4: New file.
128504         Module strstr.
128505         * m4/strstr.m4: New file.
128507         Module strerror.
128508         * m4/strerror.m4: New file.
128510         Module mktime.
128511         * m4/mktime.m4: Renamed from jm-mktime.m4.
128512         (gl_PREREQ_MKTIME): New macro.
128513         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
128515         Module malloc.
128516         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
128517         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
128518         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
128520         Module realloc.
128521         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
128522         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
128523         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
128525         Module strftime.
128526         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
128527         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
128528         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
128529         gl_TM_GMTOFF.
128530         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
128532         Module xalloc.
128533         * m4/xalloc.m4: New file.
128535         Module alloca.
128536         * m4/alloca.m4: New file.
128538         Module putenv.
128539         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
128540         (jm_FUNC_PUTENV): Invoke it.
128542         Module setenv.
128543         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
128544         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
128545         when invoked twice.
128546         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
128547         gt_FUNC_SETENV.
128549         Module memrchr.
128550         * m4/memrchr.m4: New file.
128552         Module stpcpy.
128553         * m4/stpcpy.m4: New file.
128555         Module strcase.
128556         * m4/strcase.m4: New file.
128558         Module strdup.
128559         * m4/strdup.m4: New file.
128561         Module strnlen.
128562         * m4/strnlen.m4: New file.
128564         Module strndup.
128565         * m4/strndup.m4: New file.
128567         Module xstrtod.
128568         * m4/xstrtod.m4: New file.
128570         Module xstrtol.
128571         * m4/xstrtol.m4: New file.
128573         Module getdate.
128574         * m4/getdate.m4: New file.
128576         Module unlocked-io.
128577         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
128578         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
128579         * m4/jm-glibc-io.m4n: Remove file.
128581         Module long-options.
128582         * m4/long-options.m4: New file.
128584         Module md5.
128585         * m4/md5.m4: New file.
128587         Module sha.
128588         * m4/sha.m4: New file.
128590         Module getstr.
128591         * m4/getstr.m4: New file.
128593         Module getline.
128594         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
128595         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
128596         <sys/types.h>, for size_t. Use the function name gnu_getline, not
128597         simply getline. Infoke gl_PREREQ_GETLINE.
128599         Module obstack.
128600         * m4/obstack.m4: New file.
128602         Module hash.
128603         * m4/hash.m4: New file.
128605         Module readtokens.
128606         * m4/readtokens.m4: New file.
128608         Module strverscmp.
128609         * m4/strverscmp.m4: New file.
128611         Module stdbool.
128612         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
128613         OSF/1.
128615         Module strtoll.
128616         * m4/strtoll.m4: New file.
128618         Module strtoull.
128619         * m4/strtoull.m4: New file.
128621         Module strtoimax.
128622         * m4/strtoimax.m4: New file.
128624         Module strtoumax.
128625         * m4/strtoumax.m4: New file.
128627         Module xstrtoimax.
128628         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
128629         jm_AC_PREREQ_XSTRTOIMAX.
128630         Moved the strtol prerequisites to strtol.m4.
128631         Moved the strtoll prerequisites to strtoll.m4.
128632         Moved the strtoimax prerequisites to strtoimax.m4.
128634         Module xstrtoumax.
128635         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
128636         jm_AC_PREREQ_XSTRTOUMAX.
128637         Moved the strtoul prerequisites to strtoul.m4.
128638         Moved the strtoull prerequisites to strtoull.m4.
128639         Moved the strtoumax prerequisites to strtoumax.m4.
128641         Module chown.
128642         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
128643         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
128645         Module dup2.
128646         * m4/dup2.m4: New file.
128648         Module ftruncate.
128649         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
128650         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
128652         Module getgroups.
128653         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
128654         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
128656         Module gettimeofday.
128657         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
128658         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
128659         gl_PREREQ_GETTIMEOFDAY.
128661         Module mkdir.
128662         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
128663         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
128665         Module mkstemp.
128666         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
128667         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
128668         jm_AC_TYPE_UINTMAX_T.
128669         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
128671         Module stat.
128672         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
128673         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
128675         Module lstat.
128676         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
128677         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
128679         Module timespec.
128680         * m4/timespec.m4 (gl_TIMESPEC): New macro.
128681         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
128682         * m4/st_mtim.m4: Indentation.
128684         Module nanosleep.
128685         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
128686         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
128687         gl_PREREQ_NANOSLEEP.
128689         Module regex.
128690         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
128691         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
128692         (gl_REGEX): New macro.
128694         Module rename.
128695         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
128696         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
128698         Module rmdir.
128699         * m4/rmdir.m4: New file.
128701         Module utime.
128702         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
128703         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
128704         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
128706         Module dirname.
128707         * m4/dirname.m4: New file.
128709         Module getopt.
128710         * m4/getopt.m4: New file.
128712         Module unistd-safer.
128713         * m4/unistd-safer.m4: New file.
128715         Module fnmatch.
128716         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
128717         declaration.
128718         (gl_PREREQ_FNMATCH_EXTRA): New macro.
128719         (gl_FUNC_FNMATCH_POSIX): New macro.
128720         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
128721         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
128722         simply fnmatch.
128724         Module exclude.
128725         * m4/exclude.m4: New file.
128727         Module human.
128728         * m4/human.m4: New file.
128730         Module acl.
128731         * m4/acl.m4: Nop.
128733         Module backupfile.
128734         * m4/backupfile.m4: New file.
128735         * m4/d-ino.m4: Indentation.
128737         Module fsusage.
128738         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
128739         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
128740         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
128742         Module dirfd.
128743         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
128744         requirements.
128746         Module euidaccess.
128747         * m4/euidaccess.m4: New file.
128749         Module file-type.
128750         * m4/file-type.m4: New file.
128752         Module fileblocks.
128753         * m4/fileblocks.m4: New file.
128755         Module filemode.
128756         * m4/filemode.m4: New file.
128758         Module isdir.
128759         * m4/isdir.m4: New file.
128761         Module lchown.
128762         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
128763         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
128765         Module makepath.
128766         * m4/makepath.m4: New file.
128768         Module modechange.
128769         * m4/modechange.m4: New file.
128771         Module mountlist.
128772         * m4/mountlist.m4: New file.
128773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
128774         Indentation.
128776         Module path-concat.
128777         * m4/path-concat.m4: New file.
128779         Module pathmax.
128780         * m4/pathmax.m4: New file.
128782         Module same.
128783         * m4/same.m4: New file.
128785         Module save-cwd.
128786         * m4/save-cwd.m4: New file.
128788         Module savedir.
128789         * m4/savedir.m4: New file.
128791         Module xgetcwd.
128792         * m4/xgetcwd.m4: New file.
128793         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
128795         Module xreadlink.
128796         * m4/xreadlink.m4: New file.
128798         Module safe-read.
128799         * m4/safe-read.m4: New file.
128801         Module safe-write.
128802         * m4/safe-write.m4: New file.
128804         Module closeout.
128805         * m4/closeout.m4: New file.
128807         Module stdio-safer.
128808         * m4/stdio-safer.m4: New file.
128810         Module getpass.
128811         * m4/getpass.m4: New file.
128813         Module getugroups.
128814         * m4/getugroups.m4: New file.
128816         Module group-member.
128817         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
128818         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
128820         Module idcache.
128821         * m4/idcache.m4: New file.
128823         Module userspec.
128824         * m4/userspec.m4: New file.
128826         Module gettime.
128827         * m4/clock_time.m4: New file.
128828         * m4/gettime.m4: New file.
128830         Module settime.
128831         * m4/settime.m4: New file.
128833         Module posixtm.
128834         * m4/posixtm.m4: New file.
128836         Module gethostname.
128837         * m4/gethostname.m4: New file.
128839         Module canon-host.
128840         * m4/canon-host.m4: New file.
128842         Module gettext.
128843         * m4/codeset.m4: New file, from gettext-0.11.5.
128844         * m4/gettext.m4: New file, from gettext-0.11.5.
128845         * m4/glibc21.m4: New file, from gettext-0.11.5.
128846         * m4/iconv.m4: New file, from gettext-0.11.5.
128847         * m4/intdiv0.m4: New file, from gettext-0.11.5.
128848         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
128849         * m4/inttypes.m4: New file, from gettext-0.11.5.
128850         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
128851         * m4/isc-posix.m4: New file, from gettext-0.11.5.
128852         * m4/lcmessage.m4: New file, from gettext-0.11.5.
128853         * m4/lib-ld.m4: New file, from gettext-0.11.5.
128854         * m4/lib-link.m4: New file, from gettext-0.11.5.
128855         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
128856         * m4/progtest.m4: New file, from gettext-0.11.5.
128857         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
128858         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
128859         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
128861         Module localcharset.
128862         * m4/localcharset.m4: New file.
128864         Module hard-locale.
128865         * m4/hard-locale.m4: New file.
128867         Module mbswidth.
128868         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
128869         onceonly macros.
128870         * m4/mbrtowc.m4: Add comment.
128872         Module memcasecmp.
128873         * m4/memcasecmp.m4: New file.
128875         Module memcoll.
128876         * m4/memcoll.m4: New file.
128878         Module unicodeio.
128879         * m4/unicodeio.m4: New file.
128881         Module rpmatch.
128882         * m4/rpmatch.m4: New file.
128884         Module yesno.
128885         * m4/yesno.m4: New file.
128887         Module exitfail.
128888         * m4/exitfail.m4: New file.
128890         Module c-stack.
128891         * m4/c-stack.m4 (gl_C_STACK): New macro.
128892         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
128894         Module error.
128895         * m4/error.m4 (gl_ERROR): New macro.
128896         (jm_PREREQ_ERROR): Use onceonly macros.
128898         Module fatal.
128899         * m4/fatal.m4: New file.
128901         Module getloadavg.
128902         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
128903         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
128905         Module getpagesize.
128906         * m4/getpagesize.m4: New file.
128908         Module getusershell.
128909         * m4/getusershell.m4: New file.
128911         Module physmem.
128912         * m4/physmem.m4: New file.
128914         Module posixver.
128915         * m4/posixver.m4: New file.
128917         Module quotearg.
128918         * m4/quotearg.m4: New file.
128920         Module quote.
128921         * m4/quote.m4: New file.
128923         Module readutmp.
128924         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
128926         Module sig2str.
128927         * m4/sig2str.m4: New file.
128929         Other.
128930         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
128931         ulonglong.m4.
128932         * m4/intmax_t.m4: New file.
128933         * m4/d-type.m4: Indentation.
128934         * m4/jm-macros.m4: Update.
128935         * m4/prereq.m4 (jm_PREREQ): Update.
128936         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
128937         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
128938         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
128939         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
128940         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
128941         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
128942         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
128943         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
128944         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
128945         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
128946         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
128947         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
128948         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
128949         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
128950         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
128951         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
128952         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
128953         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
128954         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
128956 2002-12-24  Bruno Haible  <bruno@clisp.org>
128958         * MODULES.txt: Update according to m4/ changes.
128960         Module gettext.
128961         * config.rpath: New file, from gettext-0.11.5.
128963         * modules/*: New module descriptions.
128964         * gnulib-tool: New file.
128965         * MODULES.html.sh: New file.
128967 2002-12-21  Karl Berry  <karl@gnu.org>
128969         * doc/fdl.texi: update to version 1.2.
128971 2002-12-19  Karl Berry  <karl@gnu.org>
128973         * config/config.guess: update from prep.
128975 2002-12-18  Bruno Haible  <bruno@clisp.org>
128977         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
128978         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
128980 2002-12-17  Bruno Haible  <bruno@clisp.org>
128982         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
128983         stdlib.h, string.h.
128985 2002-12-17  Bruno Haible  <bruno@clisp.org>
128987         * lib/canon-host.c (strdup): Remove unused declaration.
128989         * lib/fsusage.c: Include full_read.h.
128990         (get_fs_usage): Use full_read instead of safe_read.
128992         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
128994 2002-12-12  Karl Berry  <karl@gnu.org>
128996         * config/config.guess: update from prep.
128998 2002-12-11  Bruno Haible  <bruno@clisp.org>
129000         * m4/setenv.m4: New file, from gettext-0.11.5.
129002 2002-12-11  Bruno Haible  <bruno@clisp.org>
129004         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
129005         not unsetenv().
129006         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
129007         modifications:
129009         2002-12-11  Bruno Haible  <bruno@clisp.org>
129011                 * setenv.c (alloca): Fall back to malloc.
129012                 (freea): New macro.
129013                 (setenv): Use freea() to free memory allocated with alloca().
129015         2002-11-13  Bruno Haible  <bruno@clisp.org>
129017                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
129018                 function declarations.
129019                 * unsetenv.c (unsetenv): Likewise.
129021         2002-03-04  Bruno Haible  <bruno@clisp.org>
129023                 Portability to AIX 4.3.3.
129024                 * unsetenv.c: New file, extracted from setenv.c.
129025                 * setenv.c: Move the unsetenv() function to unsetenv.c.
129027         2001-12-20  Bruno Haible  <bruno@clisp.org>
129029                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
129030                 use malloc instead. For SunOS 4.
129032         2001-12-11  Bruno Haible  <bruno@clisp.org>
129034                 * setenv.c: Declare alloca.
129035                 (compar_fn_t): New typedef.
129036                 (KNOWN_VALUE, STORE_VALUE): Use it.
129038         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
129039         setenv.h.
129041 2002-12-10  Paul Eggert  <eggert@twinsun.com>
129043         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
129044         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
129045         Choose values that are less likely to collide with system fnmatch
129046         options.
129047         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
129048         defined (e.g., a pure POSIX system).
129049         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
129050         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
129052 2002-12-06  Paul Eggert  <eggert@twinsun.com>
129054         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
129055         a pain in practice to deal with generated m4 files.  This change
129056         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
129058         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
129059         and jm-glibc-io.m4, as they are no longer a special case.
129060         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
129061         kludge and the auto-generation stuff.  Check only whether the
129062         functions are declared, not whether they exist, since older hosts
129063         that don't declare the functions can't use the optimization anyway.
129065 2002-12-06  Jim Meyering  <jim@meyering.net>
129067         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
129069         Merge in changes from libc's misc/error.c, in preparation
129070         for the merge of gnulib's changes back into libc.
129072         * lib/error.c (_): Define only if not already defined.
129073         Move definition to follow all #include directives.
129074         Include unlocked-io.h only if !_LIBC.
129075         [_LIBC]: Include <libio/libioP.h>.
129076         [USE_IN_LIBIO]: Include <libio/iolibio.h>
129077         (fflush): Tweak definition to use INTUSE.
129078         (putc): Define.
129080 2002-12-05  Paul Eggert  <eggert@twinsun.com>
129082         * lib/alloca.c [defined emacs]: Include "lisp.h".
129083         (xalloc_die) [defined emacs]: New macro.
129084         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
129085         [! defined emacs]: Include <xalloc.h>.
129086         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
129087         (pointer): Typedef to POINTER_TYPE *.
129088         (malloc): Remove decl; we now always use xmalloc.
129089         (alloca): Use old-style definition, since Emacs needs this.
129090         Check for arithmetic overflow when computing combined size.
129092 2002-12-04  Paul Eggert  <eggert@twinsun.com>
129094         Do not generate unlocked-io.h automatically, since it's easier to
129095         maintain it by hand.
129097         * lib/unlocked-io.h: New file, from GNU diffutils,
129098         but with proper copyright notice and attribution.
129099         * lib/gen-uio: Remove.
129100         * lib/Makefile.am: Add copyright notice.
129101         (libfetish_a_SOURCES): Add unlocked-io.h.
129102         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
129103         (DISTCLEANFILES, io_functions): Remove macros.
129104         (EXTRA_DIST): Remove gen_uio.
129105         (unlocked-io.h): Remove rule.
129107 2002-12-04  Jim Meyering  <jim@meyering.net>
129109         Reflect the fact that stat.c and lstat.c are no longer generated.
129110         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
129111         (DISTCLEANFILES): Likewise.
129112         (EXTRA_DIST): Likewise.
129113         (all_local): Don't depend on stat.c or lstat.c.
129114         (stat.c, lstat.c): Remove rules.
129115         (EXTRA_DIST): Remove xstat.in.
129117         * lib/xstat.in: Remove file.  Contents moved into stat.c.
129118         * lib/stat.c: New file.  Contents mostly from xstat.in.
129119         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
129120         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
129122         * lib/safe-read.c: Rework so that it may serve to define safe_write,
129123         too.
129124         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
129126 2002-12-03  Jim Meyering  <jim@meyering.net>
129128         * lib/safe-read.c, safe-write.c: Change variable names and comments,
129129         but not semantics, to minimize the differences between these two files.
129130         (safe_read): Change comment to mention SAFE_READ_ERROR.
129132         * lib/safe-read.c (IS_EINTR): Define.
129133         (safe_read): Use IS_EINTR in place of in-function cpp directives.
129135 2002-12-02  Jim Meyering  <jim@meyering.net>
129137         * lib/safe-read.c (EINTR): Define.
129138         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129139         (INT_MAX): Provide fallback.
129140         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
129142         * lib/safe-read.h (SAFE_READ_ERROR): Define.
129144 2002-12-02  Bruno Haible  <bruno@clisp.org>
129146         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
129147         Define, taken from safe-read.c.
129148         (INT_MAX): Provide fallback.
129149         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
129150         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
129152         * lib/safe-read.c (EINTR): Remove definition.
129153         (safe_read): Don't use EINTR if it is absent.
129155 2002-12-01  Jim Meyering  <jim@meyering.net>
129157         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
129158         zero.
129159         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
129161 2002-11-27  Paul Eggert  <eggert@twinsun.com>
129163         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
129164         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
129165         with `if (! (value < limit)) abort ();', for readability.
129167 2002-11-26  Karl Berry  <karl@gnu.org>
129169         * lib/strdup.c: copy from libc again, with jim's ok.
129170         * lib/.cppi-disable: re-add strdup.c
129172 2002-11-25  Karl Berry  <karl@gnu.org>
129174         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
129175         instead of "strtol.c".
129177 2002-11-25  Karl Berry  <karl@gnu.org>
129179         * config/install-sh: update from automake for variable quoting, $0 in
129180         error msgs, etc.
129182         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
129183         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
129184         entry.
129186 2002-11-25  Jim Meyering  <jim@meyering.net>
129188         * lib/mktime.c: Sync from libc, now that it has the latest fix.
129190 2002-11-24  Karl Berry  <karl@gnu.org>
129192         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
129193         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
129195 2002-11-24  Jim Meyering  <jim@meyering.net>
129197         Update from coreutils:
129199         * lib/mktime.c: Merge in changes from libc.
129201         Avoid a link-time failure on some Linux systems.
129202         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
129203         (otherwise).
129204         (__mon_yday): Declare with the STATIC attribute.
129205         (__mktime_internal): Likewise.
129206         Based on a report from Greg Schafer.
129208 2002-11-23  Jim Meyering  <jim@meyering.net>
129210         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
129211         Use `unsigned', not `int', as type of index.
129213         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
129215         * lib/fsusage.c: Remove unneeded parentheses around operands of
129216         `defined'.
129218 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129220         * lib/quotearg.h: Allow multiple inclusion by surrounding with
129221         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
129222         so that we can be included first.
129223         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
129224         * lib/quotearg.c: Include quotearg.h immediately after config.h.
129225         No need to include stddef.h or sys/types.h any more.
129226         Surround local include files with "", not "<>".
129227         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
129228         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
129229         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
129230         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
129231         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
129232         (ISPRINT): Remove; no longer needed now that we assume C89.
129234         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
129235         Preserve errno.
129237         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
129238         quotearg_char): Use SIZE_MAX rather than
129239         (size_t) -1 when we are talking about "infinity".
129241         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
129243 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129245         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
129246         hint that one should use `if (! x) abort ();' rather than `assert
129247         (x);', and anyway it's one less thing to worry about configuring.
129248         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
129249         hash_rehash, hash_insert): Use abort rather than assert.
129251 2002-11-22  Bruno Haible  <bruno@clisp.org>
129253         * lib/safe-read.h: Assume C89. Add comments.
129254         (safe_read): Change return type to size_t.
129255         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
129256         byte counts > SSIZE_MAX correctly.
129257         * lib/safe-write.h: New file.
129258         * lib/safe-write.c: New file.
129259         * lib/full-read.h: New file.
129260         * lib/full-read.c: New file.
129261         * lib/full-write.h: Assume C89. Add comments.
129262         * lib/full-write.c: Include safe-write.h.
129263         (full_write): Rewritten to use safe_write.
129264         Suggested by Jim Meyering and Paul Eggert.
129266 2002-11-21  Jim Meyering  <jim@meyering.net>
129268         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
129270         Merge in changes from the coreutils.
129272         2002-09-25  Paul Eggert  <eggert@twinsun.com>
129273         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
129274         <stdint.h>.
129275         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
129276         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
129277         int.  Work more efficiently if X is the same width as uintmax_t.
129278         Do not compare X to -1, to avoid bogus compiler warning.
129279         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
129280         Don't assume that f_frsize and f_bsize are the same type.
129282         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
129283         warning on FreeBSD.
129285         * lib/makepath.c (make_path): Restore umask *before* creating the final
129286         component.
129287         (make_path): Minor reformatting.
129289         * lib/xmalloc.c: Adjust to work with new autoconf macros,
129290         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
129291         HAVE_MALLOC/HAVE_REALLOC.
129293         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
129294         dummy ones.  At least on GNU/Linux systems, `auto' means something
129295         else.
129296         From Michael Stone.
129298 2002-11-21  Bruno Haible  <bruno@clisp.org>
129300         Remove case insensitive option matching.
129301         * lib/argmatch.h (argcasematch): Remove declaration.
129302         (ARGCASEMATCH): Remove macro.
129303         (__xargmatch_internal): Remove case_sensitive argument.
129304         (XARGMATCH): Update.
129305         (XARGCASEMATCH): Remove macro.
129306         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
129307         case_sensitive argument.
129308         (argcasematch): Remove function.
129309         (__xargmatch_internal): Remove case_sensitive argument.
129310         (main): Use XARGMATCH instead of XARGCASEMATCH.
129312         * lib/xmalloc.c: Change compile-time error message. Add comment about
129313         required autoconf version.
129315 2002-11-20  Paul Eggert  <eggert@twinsun.com>
129317         Merge argmatch cleanups from Bison.  Assume C89.
129319         * lib/argmatch.c: Include config.h here, not in argmatch.h.
129320         Include stdlib.h, for EXIT_FAILURE.
129321         Always include <string.h>, since we assume C89.
129322         (EXIT_FAILURE): Remove pre-C89 bug workaround.
129323         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
129324         Include <stddef.h> instead, since it's all we need for size_t.
129325         (PARAMS): Remove.  All uses removed.
129326         (ARRAY_CARDINALITY): Do not bother to #undef.
129327         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
129328         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129329         Remove unnecessary parentheses.
129330         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129331         Insert necessary parentheses.
129332         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
129333         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
129335 2002-11-19  Bruno Haible  <bruno@clisp.org>
129337         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
129338         * lib/mbswidth.h: Include <stddef.h>, for size_t.
129340         * lib/mbswidth.h (PARAMS): Remove macro.
129341         (mbswidth, mbsnwidth): Use ANSI C function declarations.
129342         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
129344         * lib/gcd.h (PARAMS): Remove macro.
129345         (gcd): Use ANSI C function declarations.
129346         * lib/gcd.c (gcd): Likewise.
129348 2002-11-15  Bruno Haible  <bruno@clisp.org>
129350         * lib/strcspn.c: Include <stddef.h>.
129351         (strcspn): Use ANSI C function declaration. Change return type to
129352         size_t. Use NULL.
129353         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
129354         (strpbrk): Use NULL.
129355         * lib/strpbrk.h (PARAMS): Remove macro.
129356         (strpbrk): Use ANSI C function declaration.
129357         * lib/strstr.c: Don't include <sys/types.h>.
129358         * lib/strstr.h (PARAMS): Remove macro.
129359         (strstr): Use ANSI C function declarations.
129361 2002-11-14  Karl Berry  <karl@gnu.org>
129363         * config/mkinstalldirs: `do' on separate line, instead of
129364         `for var; do'.
129366 2002-11-06  Bruno Haible  <bruno@clisp.org>
129368         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
129369         * lib/gcd.c (gcd): Likewise.
129371 2002-11-05  Bruno Haible  <bruno@clisp.org>
129373         * lib/gcd.h: New file, from gettext-0.11.5.
129374         * lib/gcd.c: New file, from gettext-0.11.5.
129376 2002-11-05  Bruno Haible  <bruno@clisp.org>
129378         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129379         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129380         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129381         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129383         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
129384         <libintl.h>.
129385         * lib/makepath.c: Include gettext.h instead of <locale.h> and
129386         <libintl.h>.
129388         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
129389         * lib/human.c: Include gettext.h instead of <libintl.h>.
129390         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
129391         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
129392         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
129393         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
129394         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
129395         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
129396         (textdomain): Remove definition.
129397         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
129399         * lib/long-options.c: Remove include of <libintl.h> and definition of
129400         _.
129401         * lib/same.c: Remove include of <libintl.h> and definition of _.
129403 2002-11-04  Owen Taylor  <otaylor@redhat.com>
129405         * lib/config.charset: A few additions for Solaris.
129407 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129409         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
129410         * lib/localcharset.c (locale_charset): Declare as extern "C".
129412 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129414         * lib/config.charset: msdos in uk_UA uses CP1125.
129416 2002-11-04  Bruno Haible  <bruno@clisp.org>
129418         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
129419         * lib/strcase.h: New file, from GNU gettext-0.11.5.
129420         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
129421         * lib/strstr.h: New file, from GNU gettext-0.11.5.
129422         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
129424 2002-11-04  Bruno Haible  <bruno@clisp.org>
129426         * lib/localcharset.c (locale_charset): Don't return an empty string.
129428 2002-11-04  Bruno Haible  <bruno@clisp.org>
129430         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
129431         aliases.
129433 2002-11-04  Bruno Haible  <bruno@clisp.org>
129435         * lib/config.charset: Update for newest glibc. Add canonical names
129436         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
129438 2002-11-04  Bruno Haible  <bruno@clisp.org>
129440         * lib/config.charset: Add support for NetBSD.
129442 2002-11-04  Bruno Haible  <bruno@clisp.org>
129444         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
129446 2002-11-01  Bruno Haible  <bruno@clisp.org>
129448         * configure.in: Add AC_CONFIG_AUX_DIR call.
129449         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
129450         test/Makefile.
129451         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
129453 2002-09-28  Karl Berry  <karl@gnu.org>
129455         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
129456         installed automake until the next release, since changes have been
129457         made.
129459 2002-09-25  Karl Berry  <karl@gnu.org>
129461         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
129462         * lib/getopt*: copy from libc/posix.
129463         * lib/gettext.h: copy from gettext.
129464         * lib/.cppi-disable: add strdup.c, gettext.h.
129466 2002-09-25  Karl Berry  <karl@gnu.org>
129468         * config/srclist.txt: enable gettext.h check.
129469         * config/config.{guess,sub}: update from prep.
129470         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
129471                 from automake 1.6.3.
129472         See srclist*.
129474 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
129476         * regex.c (PATFETCH): Remove the translating fetch.
129477         (PATFETCH_RAW): Rename to PATFETCH.
129478         (set_image_of_range): New fun.
129479         (SET_RANGE_TABLE_WORK_AREA): Use it.
129480         (regex_compile): Don't translate the pattern chars so eagerly.
129481         Only do it when inserting an `exactn' bytecode or when handling
129482         a char-range.
129483         (mutually_exclusive_p): Avoid empty statement.
129485 2002-07-06  Jim Meyering  <meyering@lucent.com>
129487         * m4/README: Don't mention Makefile.am.in.
129488         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
129490 2002-07-01  Jim Meyering  <meyering@lucent.com>
129492         * lib/c-stack.c: Include sys/time.h.
129493         From Volker Borchert.
129495 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129497         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
129499 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129501         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
129502         New macro.  Use it uniformly instead of
129503         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
129504         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
129505         reported by Vin Shelton.
129507 2002-06-22  Paul Eggert  <eggert@twinsun.com>
129509         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
129510         Do not assume SA_SIGINFO behavior.
129511         Bug reported by Jim Meyering on NetBSD 1.5.2.
129513 2002-06-22  Jim Meyering  <meyering@lucent.com>
129515         * m4/c-stack.m4: New file, from diffutils-2.8.2.
129516         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
129518         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
129519         now that configure.ac uses AC_GNU_SOURCE.
129520         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
129521         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
129523         Update to latest tools.  Suggestions from Paul Eggert.
129524         * m4/stdbool.m4: New file, from diffutils-2.8.2.
129525         * m4/gnu-source.m4: Update from diffutils-2.8.2.
129526         * m4/fnmatch.m4: Likewise.
129527         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
129528         to AC_HEADER_STDBOOL
129530 2002-06-22  Jim Meyering  <meyering@lucent.com>
129532         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
129533         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
129535 2002-06-22  Jim Meyering  <meyering@lucent.com>
129537         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
129539         * lib/exitfail.c, exitfail.h: Likewise.
129540         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
129542         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
129543         of fnmatch.h.
129544         (EXTRA_DIST): Add fnmatch_loop.c.
129545         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
129547         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
129548         * lib/fnmatch.c: Update from diffutils-2.8.2.
129549         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
129550         * lib/fnmatch.h: Remove file.
129552 2002-06-21  Jim Meyering  <meyering@lucent.com>
129554         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
129555         * m4/mbrtowc.m4: Likewise.
129557         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
129558         * m4/mbswidth.m4: Reflect name change:
129559         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
129560         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129562         * m4/lib-link.m4: Update from gettext-0.11.2.
129563         * m4/gettext.m4: Likewise.
129565         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
129566         From Alfred M. Szmidt.
129568 2002-06-18  Paul Eggert  <eggert@twinsun.com>
129570         * lib/file-type.h: Report an error if neither S_ISREG nor
129571         S_IFREG is defined, instead of using a test specific to glibc
129572         2.2.  This should be safe, since POSIX requires S_ISREG and
129573         Unix Version 7 had S_IFREG.  We don't need to check for
129574         <sys/types.h> since we don't use any symbols that it defines.
129576 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
129578         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
129579         $@-t, so that each temporary file name is unique and valid in the first
129580         8 characters, for operation under DOS.
129582 2002-06-15  Paul Eggert  <eggert@twinsun.com>
129584         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
129586 2002-06-15  Jim Meyering  <meyering@lucent.com>
129588         Work even with DJGPP 2.03, which lacks support for symlinks.
129589         From Richard Dawe.
129590         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
129591         is defined.
129592         * lib/lchown.c (S_ISLNK): Likewise.
129594 2002-06-15  Jim Meyering  <meyering@lucent.com>
129596         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
129597         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
129598         have been included before this file.
129600 2002-06-14  Jim Meyering  <meyering@lucent.com>
129602         * lib/file-type.h: Use the version from diffutils-2.8.2.
129603         * lib/file-type.c: Likewise.
129605 2002-06-07  Jim Meyering  <meyering@lucent.com>
129607         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
129608         They're needed at least for NetBSD 1.5.2.
129609         ($statxfs_includes): Include those same headers.
129610         ($statxfs_includes): Include sys/vfs.h if available.
129611         ($statxfs_includes): Likewise for sys/statvfs.h.
129612         Check for the following members in both structs statfs and statvfs:
129613         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
129615 2002-06-01  Jim Meyering  <meyering@lucent.com>
129617         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
129618         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
129620 2002-05-28  Jim Meyering  <meyering@lucent.com>
129622         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
129623         Reported by Volker Borchert.
129625 2002-05-27  Jim Meyering  <meyering@lucent.com>
129627         Fix a problem seen only on nonconforming systems whereby ls.c's
129628         use of localtime, and then of gettimeofday would cause trouble:
129629         the localtime call used to initialize rpl_gettimeofday's save
129630         mechanism would clobber ls's current local time information so
129631         that in any long listing the first file would always be listed
129632         with date 1970-01-01.  Analysis by Volker Borchert.
129634         * lib/gettimeofday.c (localtime): Undefine.
129635         (rpl_localtime): New function.
129637 2002-05-27  Jim Meyering  <meyering@lucent.com>
129639         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
129640         localtime.
129642         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
129643         use the replacement function; it wouldn't resolve at link time.
129644         Reported by Volker Borchert.
129646 2002-05-22  Jim Meyering  <meyering@lucent.com>
129648         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
129649         file-type.h.
129650         * lib/file-type.h: New file.
129651         * lib/file-type.c (file_type): New file/function.  Extracted from
129652         diffutils.
129654 2002-04-30  Jim Meyering  <meyering@lucent.com>
129656         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
129658 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129660         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
129662 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129664         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
129665         Do not check for alloca.h (no longer used) or stdbool.h (was never
129666         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
129668 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129670         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
129672 2002-04-29  Jim Meyering  <meyering@lucent.com>
129674         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
129675         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
129676         Use AC_FUNC_STRNLEN here instead.
129678         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
129679         With autoconf-2.53a, it's part of AC_PROG_CC.
129681 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129683         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
129684         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
129686 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129688         * lib/sig2str.h, lib/sig2str.c: New files.
129689         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
129691 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129693         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
129694         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
129695         of 127, since 64 is the largest conceivable number for ancient
129696         nonstandard hosts.
129697         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
129699 2002-04-28  Jim Meyering  <meyering@lucent.com>
129701         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
129703 2002-04-24  Jim Meyering  <meyering@lucent.com>
129705         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
129706         (jm_PREREQ): Use it.
129708         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
129709         mach/mach.h fcntl.h.
129710         Check for this function: setlocale.
129712 2002-04-24  Jim Meyering  <meyering@lucent.com>
129714         * lib/gettext.h: New file, from Gettext.
129715         * lib/Makefile.am (INCLUDES): Remove -I../intl.
129716         (libfetish_a_SOURCES): Add gettext.h.
129718 2002-04-16  Jim Meyering  <meyering@lucent.com>
129720         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
129721         ut_pid, ut_id, ut_exit.
129723 2002-04-16  Jim Meyering  <meyering@lucent.com>
129725         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
129726         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
129727         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
129729 2002-04-12  Jim Meyering  <meyering@lucent.com>
129731         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
129732         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
129733         existence of the getmntinfo function.  Needed for Darwin 5.3.
129735         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
129736         This is necessary at least on Darwin 5.3.
129738         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
129739         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
129740         strnlen.o in the library, and that makes some versions of ranlib
129741         object.
129743 2002-04-12  Jim Meyering  <meyering@lucent.com>
129745         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
129747 2002-04-09  Jim Meyering  <meyering@lucent.com>
129749         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
129750         to be more precise.  Rather than saying we're checking whether the
129751         function `works', say what we're testing.
129752         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
129753         Reported by Bruno Haible.
129755 2002-03-10  Jim Meyering  <meyering@lucent.com>
129757         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
129758         Suggestion from Santiago Vila.
129760 2002-03-08  Jim Meyering  <meyering@lucent.com>
129762         * lib/rename.c: Mention that this wrapper is needed also on
129763         mips-dec-ultrix4.4 systems.
129765 2002-03-02  Jim Meyering  <meyering@lucent.com>
129767         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
129768         not HAVE_CLOCK_SETTIME.
129770 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129772         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
129773         Check for clock_settime.
129775 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129777         * lib/nanosleep.h: Rename to....
129778         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
129780         * lib/gettime.c: New file.
129781         * lib/settime.c: New file.
129782         * lib/stime.c: Remove.
129784         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
129785         timespec.h.  Remove nanosleep.h.
129787 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129789         * m4/acl.m4: New file.
129790         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
129791         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
129793 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129795         * lib/acl.c, lib/acl.h: New files.
129796         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
129798 2002-02-24  Jim Meyering  <meyering@lucent.com>
129800         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
129801         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
129802         cause trouble.  Reported by Nelson Beebe.
129804 2002-02-23  Paul Eggert  <eggert@twinsun.com>
129806         * lib/path-concat.c (xpath_concat): Reorder code to pacify
129807         compilers that don't know that xalloc_die never returns.
129809 2002-02-20  Jim Meyering  <meyering@lucent.com>
129811         * lib/getdate.c: Regenerate using bison-1.33.
129813 2002-02-17  Jim Meyering  <meyering@lucent.com>
129815         * config/config.guess (main): Don't use `head -1'; it's no longer
129816         portable. Use `sed 1q' instead.
129818 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
129820         * m4/codeset.m4: Upgrade to gettext-0.11.
129821         * m4/gettext.m4: Upgrade to gettext-0.11.
129822         * m4/glibc21.m4: Upgrade to gettext-0.11.
129823         * m4/iconv.m4: Upgrade to gettext-0.11.
129824         * m4/isc-posix.m4: Upgrade to gettext-0.11.
129825         * m4/lcmessage.m4: Upgrade to gettext-0.11.
129826         * m4/lib-ld.m4: New file, from gettext-0.11.
129827         * m4/lib-link.m4: New file, from gettext-0.11.
129828         * m4/lib-prefix.m4: New file, from gettext-0.11.
129829         * m4/progtest.m4: Upgrade to gettext-0.11.
129831 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129833         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
129834         (jm_PREREQ): Use it.
129836 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129838         * lib/posixver.c, lib/posixver.h: New files.
129839         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129841 2002-02-02  Paul Eggert  <eggert@twinsun.com>
129842             Bruno Haible  <bruno@clisp.org>
129844         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
129845         (fwrite_success_callback): New declaration.
129846         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
129847         print_unicode_char. Call failure callback instead of error.
129848         (fwrite_success_callback): New function.
129849         (exit_failure_callback): New function.
129850         (fallback_failure_callback): New function.
129851         (print_unicode_char): Call unicode_to_mb.
129853 2002-01-26  Jim Meyering  <meyering@lucent.com>
129855         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
129856         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
129858 2002-01-26  Jim Meyering  <meyering@lucent.com>
129860         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
129862 2002-01-22  Paul Eggert  <eggert@twinsun.com>
129864         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
129866 2002-01-22  Jim Meyering  <meyering@lucent.com>
129868         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
129869         Otherwise, some versions of automake would omit the rule that makes
129870         Makefile from Makefile.in.
129872 2002-01-21  Paul Eggert  <eggert@twinsun.com>
129874         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
129875         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129876         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
129877         (memcoll): Set errno to zero if there is no error.
129879         * lib/quotearg.c (quotearg_buffer_restyled):
129880         Fix bug with quoting buffers containing NUL when backslashing escapes.
129881         This bug was exposed by the other changes in this patch.
129882         (quotearg_n_options): New arg ARGSIZE.
129883         All callers changed.
129884         (quoting_options_from_style): New function.
129885         (quotearg_n_style): Use it.
129886         (quotearg_n_style_mem): New function.
129888         * lib/quotearg.h (quotearg_n_style_mem): New function.
129890 2002-01-19  Jim Meyering  <meyering@lucent.com>
129892         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
129893         Remove useless quotes: DF_PROG="df".
129894         * m4/strnlen.m4: New file.
129896 2002-01-16  Paul Eggert  <eggert@twinsun.com>
129898         * lib/backupfile.c (ISDIGIT): Comment fix.
129899         * lib/getdate.y (ISDIGIT): Likewise.
129900         * lib/posixtm.c (ISDIGIT, year): Likewise.
129901         * lib/strverscmp.c (ISDIGIT): Likewise.
129902         * lib/userspec.c (ISDIGIT): Likewise.
129904 2002-01-16  Jim Meyering  <meyering@lucent.com>
129906         * lib/getdate.y: Add three semicolons, each just before a closing
129907         brace. Bison (as of version 1.31) no longer papers over that mistake.
129909 2002-01-05  Jim Meyering  <meyering@lucent.com>
129911         * lib/version-etc.c (version_etc_copyright): Update copyright year.
129913 2001-12-19  Paul Eggert  <eggert@twinsun.com>
129915         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
129916         not silently exit merely because the output buffer happens to
129917         have nothing pending.
129919 2001-12-18  Paul Eggert  <eggert@twinsun.com>
129921         See the big note in ../ChangeLog.
129922         * lib/human.c (suffixes): Prefer K to k for 1024.
129923         (generate_suffix_backwards): New function.
129924         (human_readable_inexact): Use it.
129925         * lib/xstrtol.c (__xstrtol): If there is no number but there
129926         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
129927         Accept 'K' as well as 'k'.
129929 2001-12-15  Jim Meyering  <meyering@lucent.com>
129931         * lib/regex.h (__restrict_arr): Update from libc.
129933         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
129934         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
129935         (STREQ): Define.
129937 2001-12-14  Jim Meyering  <meyering@lucent.com>
129939         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
129940         Suggestion from Bruno Haible.
129942 2001-12-10  Jim Meyering  <meyering@lucent.com>
129944         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
129945         xrealloc, Instead, include "xalloc.h".
129946         (initbuffer): Don't cast xmalloc return value to char*.
129947         (readline): Reword comment.
129948         Don't cast xrealloc return value to char*
129949         Return NULL, not 0.
129951 2001-12-09  Jim Meyering  <meyering@lucent.com>
129953         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
129954         about `signed and unsigned type in conditional expression'.
129955         * lib/posixtm.c (posix_time_parse): Likewise.
129957         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
129959         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
129960         to avoid a pedantic warning.
129962         * lib/getstr.c: Don't include assert.h.
129963         (getstr): Remove warning-evoking assertions.
129964         Return -1 if offset parameter is out of bounds.
129965         Change the type of a local from int to size_t.
129967         * lib/strftime.c (my_strftime_localtime_r): Include this function
129968         definition in the `#if ! HAVE_TM_GMTOFF' block.
129970         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
129971         Include xalloc.h instead.
129973 2001-12-02  Jim Meyering  <meyering@lucent.com>
129975         * lib/tempname.c: Don't declare getenv, thus reverting the change of
129976         2001-11-18.  It's no longer necessary, now that stdlib.h is always
129977         included.
129979         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
129980         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
129982 2001-11-30  Akim Demaille  <akim@epita.fr>
129984         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
129985         before being defined.
129987 2001-11-27  Paul Eggert  <eggert@twinsun.com>
129989         * lib/quotearg.h (quotearg_n, quotearg_n_style):
129990         First arg is int, not unsigned.
129991         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
129992         (SIZE_MAX, UINT_MAX): New macros.
129993         (quotearg_n_options): Abort if N is negative.
129994         Avoid overflow check on hosts where size_t is 64 bits and int
129995         is 32 bits, as overflow is impossible there.
129996         Fix off-by-one typo that caused unnecessary reallocation.
129998 2001-11-27  Jim Meyering  <meyering@lucent.com>
130000         * lib/tempname.c: Merge with version from libc.
130001         * lib/regex.c: Likewise.
130003         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
130004         systems for which STDC_HEADERS is 0, it was not included, resulting in
130005         a warning about an integer-to-pointer conversion problem with getenv.
130006         Reported by Volker Borchert.
130008 2001-11-26  Jim Meyering  <meyering@lucent.com>
130010         * lib/gtod.h: Remove file.
130011         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
130012         * lib/gettimeofday.c: Don't include gtod.h.
130013         (GTOD_init): Remove function.
130014         (rpl_gettimeofday): Do its job here instead, rather than aborting.
130015         Suggestion from Volker Borchert.
130017 2001-11-23  Jim Meyering  <meyering@lucent.com>
130019         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
130020         it.
130021         * lib/hash.c (struct hash_table): Define it here instead.
130023 2001-11-22  Jim Meyering  <meyering@lucent.com>
130025         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
130027 2001-11-20  Jim Meyering  <meyering@lucent.com>
130029         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
130030         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
130032 2001-11-19  Jim Meyering  <meyering@lucent.com>
130034         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
130035         directory.  Use "conftestXXXXXX" as the template.
130036         Suggestion from Paul Eggert.
130038         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
130039         immediately, so the test doesn't mistakenly hit the max-open-files
130040         limit.
130042 2001-11-18  Paul Eggert  <eggert@twinsun.com>
130044         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
130045         (TEMPORARIES): New macro.
130046         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
130047         removes an artificial limitation (e.g. HP-UX 10.20, where
130048         TMP_MAX is 17576).
130050 2001-11-18  Jim Meyering  <meyering@lucent.com>
130052         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
130054 2001-11-18  Jim Meyering  <meyering@lucent.com>
130056         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
130057         on SunOS 4.
130059         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
130060         files will be created before anything else.
130062 2001-11-17  Paul Eggert  <eggert@twinsun.com>
130064         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
130065         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
130067 2001-11-17  Jim Meyering  <meyering@lucent.com>
130069         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
130070         Prompted by a report from Bob Proulx.
130072         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
130073         Instead, require UTILS_FUNC_MKSTEMP.
130075 2001-11-17  Jim Meyering  <meyering@lucent.com>
130077         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
130078         Now, that's done as part of AC_FUNC_STRTOD.
130080 2001-11-17  Jim Meyering  <meyering@lucent.com>
130082         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
130083         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
130084         rather than group writable.  Patch by Juan F. Codagnone.
130086         * lib/readtokens.c: Remove explicit declarations of xmalloc and
130087         xrealloc, Instead, include "xalloc.h".
130089         * lib/mountlist.c: Include unlocked-io.h after all system headers.
130090         Remove explicit declarations of xmalloc, xrealloc,
130091         and xstrdup.  Instead, include "xalloc.h".
130093         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
130094         unlocked-io.h.
130095         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
130096         Likewise.
130097         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
130099         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
130100         Reported by Padraig Brady.
130102         * lib/mkstemp.c: #undef mkstemp.
130103         Include config.h.
130104         (rpl_mkstemp): Rename from mkstemp.
130105         Protoize.
130107 2001-11-16  Jim Meyering  <meyering@lucent.com>
130109         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
130110         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
130111         determine the amount of total physical memory, use pstat_getstatic.
130112         HPUX-11 doesn't define _SC_PHYS_PAGES.
130113         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
130114         If sysconf couldn't be used to determine the amount of available
130115         physical memory, use both pstat_getstatic and pstat_getdynamic.
130116         Based on a patch from Bob Proulx.
130118 2001-11-10  Jim Meyering  <meyering@lucent.com>
130120         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
130121         (jm_PREREQ): Use it.
130123 2001-11-09  Jim Meyering  <meyering@lucent.com>
130125         * m4/jm-macros.m4: Require autoconf-2.52f.
130126         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
130127         Use these AC_-prefixed names, not the AM_-prefixed ones.
130129         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
130131 2001-11-05  Jim Meyering  <meyering@lucent.com>
130133         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
130135 2001-11-04  Jim Meyering  <meyering@lucent.com>
130137         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
130138         $DEFS.
130140 2001-11-03  Jim Meyering  <meyering@lucent.com>
130142         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
130143         of AC_DEFUN.
130145         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
130146         know the name of the variable in the macro definition.
130148 2001-11-03  Jim Meyering  <meyering@lucent.com>
130150         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
130151         in argmatch_to_argument call.
130153         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
130154         argument.
130156         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
130157         e.g., a fault due to an attempt to free a NULL pointer.
130159 2001-11-01  Jim Meyering  <meyering@lucent.com>
130161         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
130162         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
130164 2001-11-01  Jim Meyering  <meyering@lucent.com>
130166         * lib/dirfd.c, lib/dirfd.h: New files.
130167         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
130169         * lib/hash.c (hash_print) [TESTING]: Clean up.
130171 2001-10-22  Paul Eggert  <eggert@twinsun.com>
130173         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
130174         to avoid a warning if -Wall.
130176 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
130178         * README: New file
130179         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
130180         (per RMS's instructions, this is now the canonical source)
130181         * lgpl/, gpl/: New directories.
130183 2001-10-21  Paul Eggert  <eggert@twinsun.com>
130185         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
130187 2001-10-21  Jim Meyering  <meyering@lucent.com>
130189         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
130190         this code would end up calling gettext even in packages built
130191         with --disable-nls.
130192         * lib/getopt.c (_): Likewise.
130193         * lib/regex.c (_): Likewise.
130195 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130197         * m4/error.m4 (jm_PREREQ_ERROR):
130198         Do not invoke AC_CHECK_FUNCS with strerror_r, as
130199         AC_FUNC_STRERROR_R does that.
130200         Check for strerror declaration.
130202         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
130203         are supposed to have them these days.
130204         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
130205         Merge changes from latest Autoconf CVS.
130206         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
130207         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
130208         POSIX decided to standardize on the int flavor of strerror_r.
130210 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130212         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
130213         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
130214         Use strerror_r that is only a macro, even if it is not a function.
130215         (strerror): Check for HAVE_DECL_STRERROR before declaring.
130216         (private_strerror): Use prototypes, not old-style function definition.
130217         (print_errno_message): New function.
130218         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
130219         char*-flavored one.
130220         (error_tail, error, error_at_line): Use it.
130222 2001-10-11  Jim Meyering  <meyering@lucent.com>
130224         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
130225         and quote_n (1, ... to avoid clobbering a buffer.
130227 2001-10-05  Jim Meyering  <meyering@lucent.com>
130229         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
130230         hash-pjw.h.
130231         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
130232         * lib/hash-pjw.h: New file.
130234 2001-09-30  Jim Meyering  <meyering@lucent.com>
130236         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
130237         `struct fsstat' has the `f_fstypename' member.
130238         Use that to define FS_TYPE, which is now used to make
130239         the getfsstat link test tighter.
130241 2001-09-30  Jim Meyering  <meyering@lucent.com>
130243         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
130244         Include <sys/ucred.h>, for Apple Darwin.
130245         Include sys/mount.h and sys/fs_types.h only if available.
130246         (FS_TYPE): Define.
130247         (read_filesystem_list): Use FS_TYPE.
130249 2001-09-29  Paul Eggert  <eggert@twinsun.com>
130251         * lib/exclude.c (excluded_filename): 0 -> false, since it's
130252         a boolean context.
130254 2001-09-29  Jim Meyering  <meyering@lucent.com>
130256         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130257         [one-argument getmntent function]): Include stdio.h before mntent.h.
130258         SunOS 4.1.x needs it for the declaration of `FILE'.
130259         Patch by Volker Borchert.
130261         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130262         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
130263         sys/fs_types.h, and make the link-test for getfsstat guard #include
130264         directives with appropriate #if HAVE_*_H tests so that we can
130265         detect getfsstat on Apple Darwin1.3.7 systems.
130266         Reported by Nelson Beebe.
130267         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
130269 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130271         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130272         #defines strtoimax.  Also treat the other strto* functions
130273         like strtoimax.
130275         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130276         Check for strtoul and strtoumax,
130277         as those declarations are made even in the signed case.
130278         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
130279         Likewise, for strtol and strtoimax.
130281 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130283         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130284         #defines strtoimax.  Also treat the other strto* functions
130285         like strtoimax.
130287         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
130288         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
130289         (strtoimax, strtoumax): Do not declare if already defined as a macro.
130291 2001-09-26  Jim Meyering  <meyering@lucent.com>
130293         Most macros in unlocked-io.h had the wrong number of arguments.
130294         * lib/gen-uio: New script.
130295         (USE_UNLOCKED_IO): Define to 1 if not already defined.
130296         * lib/unlocked-io.hin: Remove file.
130297         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
130298         rather than trying to embed it here.
130299         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
130300         Reported by Padraig Brady.
130302 2001-09-25  Volker Borchert  <bt@teknon.de>
130304         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
130305         `result'.
130307 2001-09-24  Jim Meyering  <meyering@lucent.com>
130309         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
130311 2001-09-23  Jim Meyering  <meyering@lucent.com>
130313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
130314         instead of the mere test for existence of mntent.h.  The latter
130315         would get a false-positive on AIX 3.4 systems.
130316         In the outer getmntent if-block, don't die if neither of the getmntent
130317         tests succeeds.  Instead, just fall through and continue with the
130318         remaining tests.
130320 2001-09-23  Jim Meyering  <meyering@lucent.com>
130322         * lib/mountlist.c: Remove useless parentheses in #if directives.
130323         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
130324         the deprecated MOUNTED symbol is no longer defined in mntent.h.
130326 2001-09-22  Jim Meyering  <meyering@lucent.com>
130328         * m4/gettext.m4: New file.  From gettext.
130329         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
130330         * m4/progtest.m4: Likewise
130331         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
130332         * m4/glibc21.m4: Likewise.
130334         * m4/libintl.m4: Remove.  No longer used.
130336 2001-09-22  Jim Meyering  <meyering@lucent.com>
130338         * lib/localcharset.c: Update from latest gettext.
130339         * lib/config.charset: Likewise.
130341 2001-09-20  Jim Meyering  <meyering@lucent.com>
130343         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
130344         strtoimax.
130345         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
130346         strtoumax.
130348 2001-09-20  Jim Meyering  <meyering@lucent.com>
130350         * lib/xstrtol.c (strtoimax): Guard declaration with
130351         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
130352         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
130353         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
130354         (strtoumax): Likewise, for completeness (it wasn't necessary).
130356 2001-09-17  Paul Eggert  <eggert@twinsun.com>
130358         * lib/strtoimax.c (HAVE_LONG_LONG):
130359         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
130360         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
130361         to work around bug in IBM C compiler.
130363 2001-09-17  Jim Meyering  <meyering@lucent.com>
130365         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
130366         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
130367         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
130368         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
130369         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
130370         whenever the right hand side need not be expanded by the shell.
130372 2001-09-16  Paul Eggert  <eggert@twinsun.com>
130374         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
130375         library.  It's not correct, as some older glibcs are buggy.
130376         fnmatch wasn't fixed until glibc 2.2.
130378         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
130379         special shell magic here.
130381 2001-09-16  Jim Meyering  <meyering@lucent.com>
130383         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
130384         * m4/jm-macros.m4: Require it.
130386 2001-09-16  Jim Meyering  <meyering@lucent.com>
130388         * lib/mkdir.c: New file.
130390 2001-09-15  Jim Meyering  <meyering@lucent.com>
130392         * m4/jm-macros.m4: Check for help2man.
130394 2001-09-11  Jim Meyering  <meyering@lucent.com>
130396         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
130397         The body, by Paul Eggert, was moved here from configure.in.
130398         * m4/jm-macros.m4: Require UTILS_HOST_OS.
130400 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130402         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
130403         (jm_PREREQ): Use it.
130405 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130407         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
130408         Use ssize_t, not int, to store result of readlink.
130409         Check for ssize_t overflow as well as size_t overflow,
130410         as POSIX says the result of readlink is implementation-defined
130411         when ssize_t overflows.
130412         Remove unnecessary cast to char*.
130413         Use free+malloc instead of realloc, as the storage doesn't need
130414         to be preserved and it's clearer and can be more efficient that way.
130415         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
130416         * lib/xreadlink.h (xreadlink): Update prototype.
130418 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130420         * lib/xgetcwd.c: Revert some of the previous change; intead,
130421         fix the HAVE_GETCWD_NULL code to behave more like the
130422         !HAVE_GETCWD_NULL code used to.
130424         Include "xalloc.h".
130425         (xgetcwd): Do not return NULL when memory is exhausted; instead,
130426         invoke xalloc_die.
130428 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130430         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
130431         sys/param.h, as pathmax.h includes them.
130433 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130435         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
130436         (jm_PREREQ_XGETCWD): New macro.
130438         * m4/getcwd.m4: New file.
130440 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130442         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
130443         like the HAVE_GETCWD_NULL code.
130444         Include pathmax.h if not HAVE_GETCWD.
130445         Do not include xalloc.h.
130446         (INITIAL_BUFFER_SIZE): New symbol.
130447         Do not use xmalloc / xrealloc, since the caller is responsible for
130448         handling errors.  Preserve errno around `free' during failure.
130449         Do not overrun buffer when using getwd.
130451 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130453         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
130454         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
130455         getcwd (NULL, 0).
130457 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130459         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
130460         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
130461         spotted by Jim Meyering.
130463 2001-09-03  Jim Meyering  <meyering@lucent.com>
130465         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
130466         failure.
130468 2001-09-02  Jim Meyering  <meyering@lucent.com>
130470         * lib/error.c: Update from GNU libc.
130472 2001-09-01  Jim Meyering  <meyering@lucent.com>
130474         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
130475         Used by df.
130477 2001-09-01  Jim Meyering  <meyering@lucent.com>
130479         * lib/xreadlink.c: New file.
130480         * lib/xreadlink.h: New file.
130481         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
130482         xreadlink.h.
130484         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
130485         doesn't conflict with sparc Solaris 7's definition in
130486         /usr/include/sys/int_types.h.
130488         * lib/exclude.c: Use `""', not `<>' to #include non-system header
130489         files.
130490         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
130491         and strncasecmp as r-values.  Unixware didn't have declarations.
130493 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130495         * lib/xstrtol.h: Add copyright notice.
130496         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
130497         LONGINT_INVALID_SUFFIX_CHAR.
130499 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130501         * lib/xstrtol.c (strtoimax): New decl.
130503 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130505         * lib/xgetcwd.c: Don't include pathmax.h.
130506         Include stdlib.h and unistd.h if available.
130507         Include xalloc.h.
130508         (xmalloc, xstrdup, free): Remove decls.
130509         (xgetcwd): Don't assume sizes fit in unsigned.
130510         Check for overflow when computing sizes.
130511         Simplify reallocation code.
130513 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130515         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
130516         a directory's st_size can have an arbitrary value, so the old
130517         usage could waste an arbitrary amount of memory.  All uses
130518         changed.
130519         * lib/savedir.h: Update prototype.
130521 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130523         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
130525         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
130526         old strtoimax.c.
130528         Also, make the following further changes to make this file's
130529         configuration more similar to that of strtol.c:
130530         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
130531         (strtoumax, uintmax_t, strtoull, strtol): Remove.
130532         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
130533         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
130534         changed to signed values.
130536         And make the following changes as well:
130537         Fix copyright notice, as 1999 was missing.
130538         (verify): New macro.
130539         (strtoimax): Check sizes at compile-time, not run-time.
130540         Prefer strtol to strtoll if both work.
130541         (main): Remove; it was not that useful and was a pain to maintain.
130543         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
130545 2001-08-31  Jim Meyering  <meyering@lucent.com>
130547         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
130548         Use an initial, malloc'd, buffer of length 128 rather than
130549         a statically allocated one of length 1024.
130551 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130553         Simplify code, partly by assuming autoconf 2.52 semantics.
130555         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
130557         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
130558         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
130559         All uses removed.
130560         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
130561         Move AC_REQUIRE to next-to-top level, to avoid confusion.
130562         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
130563         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
130564         jm_AC_HEADER_INTTYPES_H.
130565         * m4/jm-macros.m4 (jm_MACROS): Likewise.
130567         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
130569         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130570         Quote first arg of AC_DEFUN.
130571         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
130572         since they are needed to parse the include file even if we need
130573         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
130574         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
130575         but with opposite signedness.
130577 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130579         Merge 'exclude' changes from tar 1.13.22.
130580         This fixes one or two unlikely storage allocation overflow bugs,
130581         but doesn't change user-visible behavior otherwise.
130583 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130585         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
130586         (jm_PREREQ_EXCLUDE): New macro.
130588 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130590         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
130591         tm to be declared.
130593 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130595         * lib/hash.c: Remove '2001' from copyright notice.
130597 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130599         * lib/full-write.h: New file.
130600         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
130601         * lib/full-write.c: Correct credits, as cccp.c no longer
130602         exists and anyway it was so heavily changed from the old cccp
130603         code as to be unrecognizable.  Include full-write.h.
130604         (full_write): Return size_t, with short writes meaning failure.
130605         All callers changed.  This fixes a bug with large buffers
130606         on 64-bit hosts.
130607         * lib/utime.c: Include full-write.h.
130609 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130611         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
130612         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
130613         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
130614         Include if available.
130615         (<xalloc.h>): Include
130616         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
130617         (verify): New macro.  Use it to verify that EXCLUDE macros do not
130618         collide with FNM macros.
130619         (struct patopts): New struct.
130620         (struct exclude): Use it, as exclude patterns now come with options.
130621         (new_exclude): Support above changes.
130622         (new_exclude, add_exclude_file):
130623         Initial size must now be a power of two to simplify overflow checking.
130624         (free_exclude, fnmatch_no_wildcards): New function.
130625         (excluded_filename): No longer requires options arg, as the options
130626         are determined by add_exclude.  Now returns bool, not int.
130627         (excluded_filename, add_exclude):
130628         Add support for the fancy new exclusion options.
130629         (add_exclude, add_exclude_file): Now takes int options arg.
130630         Check for arithmetic overflow when computing sizes.
130631         (add_exclude_file): xrealloc might modify errno, so don't
130632         realloc until after errno might be used.
130634         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
130635         New macros.
130636         (free_exclude): New decl.
130637         (add_exclude, add_exclude_file): Now takes int options arg.
130638         (excluded_filename): No longer requires options arg, as the options
130639         are determined by add_exclude.  Now returns bool, not int.
130641 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130643         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
130645 2001-08-27  Jim Meyering  <meyering@lucent.com>
130647         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
130649         * lib/version-etc.c (N_): Remove definition.
130650         Revert most of last change.
130651         Instead, simply don't mark the `Copyright...' string for translation.
130652         Based on advice from Paul Eggert.
130654         * lib/strtoxmax.c: Tweak comment.
130656 2001-08-26  Jim Meyering  <meyering@lucent.com>
130658         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
130660         * m4/xstrtoimax.m4: New file.
130661         * m4/xstrtoumax.m4: Add comments explaining why we
130662         AC_REPLACE_FUNCS(strtol).
130664 2001-08-26  Jim Meyering  <meyering@lucent.com>
130666         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
130667         of copyright with `%s' so translators don't get an untranslated
130668         message in 2002.
130669         (COPYRIGHT_YEAR): Define.
130670         (version_etc): Use fprintf rather than fputs.
130671         Suggestion from Ulrich Drepper.
130673         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
130675         * lib/strtoll.c: New file, from GNU libc.
130676         * lib/xstrtoimax.c: New file.
130678         * lib/xstrtol.h: Add xstrtoimax.
130679         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
130680         * lib/strtoimax.c: New file.  Likewise, but first define
130681         STRTOUXMAX_SIGNED.
130683         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
130684         ...
130685         * lib/strtoxmax.c: ... then renamed to this.
130687 2001-08-18  Paul Eggert  <eggert@twinsun.com>
130689         * m4/inttypes.m4: Add AC_PREREQ(2.13).
130690         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
130691         (jm_AC_TYPE_INTMAX_T): New macro.
130692         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
130694         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
130696         * m4/longlong.m4: Renamed from ulonglong.m4.
130697         * m4/inttypes.m4: Renamed from inttypes_h.m4.
130698         * m4/uintmax_t.m4: Removed.
130700 2001-08-13  Paul Eggert  <eggert@twinsun.com>
130702         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
130703         Port to Solaris 8, where 'sed' requires a space after the 'r'
130704         command, and where sh dislikes "$/".  Clean up the spacing a bit.
130705         Redirect output to $tmp just once.
130707 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
130709         * lib/addext.c (<errno.h>): Include.
130710         (errno): Declare if not defined.
130711         (addext): Work correctly when pathconf returns -1 and leaves
130712         errno alone because there is no limit.  Also, work even if
130713         pathconf returns a value greater than SIZE_MAX.
130715 2001-08-12  Jim Meyering  <meyering@lucent.com>
130717         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
130718         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
130719         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
130720         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
130721         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
130722         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
130723         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
130724         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
130725         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
130726         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
130727         utime.m4, utimes.m4, xstrtoumax.m4:
130728         Quote the first argument in each use of AC_DEFUN.
130730 2001-08-12  Jim Meyering  <meyering@lucent.com>
130732         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
130733         Simply `return getcwd (NULL, 0);'.
130734         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
130735         Use 1300 as initial value for length, not PATH_MAX.
130737         * lib/pathmax.h: Clean up cpp syntax.
130739 2001-08-12  Jim Meyering  <meyering@lucent.com>
130741         * lib/gettimeofday.c: New file.
130742         * lib/gtod.h: New file.
130743         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
130745 2001-08-05  Jim Meyering  <meyering@lucent.com>
130747         * m4/jm-macros.m4: Require autoconf-2.52.
130749 2001-08-04  Jim Meyering  <meyering@lucent.com>
130751         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
130752         stmt, to get in sync with glibc.
130754 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130756         The following changes are from gettext 0.10.39 as maintained by
130757         Bruno Haible.
130759         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
130760         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
130761         with inverted sense.  All uses changed.
130763         * lib/mbswidth.c: Don't include <limits.h>.
130764         Include <stdlib.h> and <string.h> unconditionally.
130765         (iswcntrl, mbsinit, ISCNTRL): New macros.
130766         (mbsnwidth): Use K&R style function declarations.
130767         Don't bother checking for MB_LEN_MAX == 1, since the compiler
130768         can optimize it when MB_CUR_MAX == 1.
130769         The width of control characters is zero, not 1.
130771 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130773         The following changes are from gettext 0.10.39 as maintained by
130774         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
130776         * m4/codeset.m4: Upgrade to serial AM1.
130777         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
130778         all uses changed.  Quote first arg of AC_DEFUN.
130779         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
130781         * m4/iconv.m4: Upgrade to serial AM2.
130782         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
130783         Add --with-libconv-prefix.
130784         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
130785         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
130786         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
130787         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
130788         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
130790         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
130791         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
130792         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
130793         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
130794         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
130795         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
130796         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
130797         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
130798         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
130800         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
130801         string.h any more.
130803         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
130804         not the default value.
130806         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
130807         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
130808         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
130809         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
130810         Also check for iswcntrl, used for wcwidth fallback.
130811         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
130812         to Autoconf 2.13.
130814 2001-08-03  Jim Meyering  <meyering@lucent.com>
130816         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
130817         as it was in the original.  Reported by Paul Eggert.
130819 2001-07-16  Jim Meyering  <meyering@lucent.com>
130821         * m4/gettimeofday.m4: New file.
130822         Prompted by a report from Bernhard Baehr.
130824 2001-07-15  Jim Meyering  <meyering@lucent.com>
130826         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
130827         stuff. Now it's in ../Makefile.cfg.
130829 2001-07-15  Jim Meyering  <meyering@lucent.com>
130831         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
130832         (BUILT_SOURCES): Add unlocked-io.h.
130833         (io_functions): Define.
130834         (unlocked-io.h): New rule.
130835         (DISTCLEANFILES): Add unlocked-io.h.
130836         (all-local): Depend on unlocked-io.h, to ensure it is created.
130838         * lib/unlocked-io.hin: New file
130840         * lib/regex.c: Update from glibc.
130842 2001-07-05  Jim Meyering  <meyering@lucent.com>
130844         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
130845         recommendation.
130846         (libfetish_a_SOURCES): Put all .h files here instead.
130847         Remove a thus-exposed (better checks in automake) duplicate and
130848         two unnecessary .h files.
130850 2001-07-04  Jim Meyering  <meyering@lucent.com>
130852         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
130853         that generates jm-glibc-io.m4 so that it doesn't trigger any make
130854         distcheck failure.
130856 2001-07-02  Jim Meyering  <meyering@lucent.com>
130858         The following changes were prompted by suggestions from Bruno Haible.
130860         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
130861         is now generated.
130862         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
130863         definition of EXTRA_DIST.
130864         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
130865         ensure that the generated file is created/updated whenever the list
130866         of $(unlocked_functions) is changed.
130867         (jm-glibc-io.m4): New rule.
130868         (unlocked-io.h): New rule -- currently unused.
130870 2001-06-24  Jim Meyering  <meyering@lucent.com>
130872         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
130873         unmatched right bracket, rather than kludging it with an extra,
130874         falsely-matching quote in a comment.  Patch by Akim Demaille.
130876 2001-06-11  Jim Meyering  <meyering@lucent.com>
130878         * lib/regex.c: Update from GNU libc.
130880 2001-05-27  Jim Meyering  <meyering@lucent.com>
130882         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
130883         Check for ut_type in struct utmp.
130885 2001-05-27  Jim Meyering  <meyering@lucent.com>
130887         * lib/readutmp.h (UT_TYPE): Define.
130889 2001-05-24  Jim Meyering  <meyering@lucent.com>
130891         * lib/argmatch.c: Include "quote.h".
130892         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
130893         quote function.  Reported by Göran Uddeborg.
130895 2001-05-22  Jim Meyering  <meyering@lucent.com>
130897         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
130898         now that we use the package-supplied version unconditionally.
130899         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
130901 2001-05-21  Jim Meyering  <meyering@lucent.com>
130903         * m4/regex.m4: Change a couple backticks to single quotes to avoid
130904         shell syntax errors.
130906 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
130908         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
130910 2001-05-20  Paul Eggert  <eggert@twinsun.com>
130912         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
130913         Don't bother to check library strftime, since
130914         we'll be using our own my_strftime function anyway.
130915         Define my_strftime instead of strftime.
130917 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
130919         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
130920         which is not yet declared.
130922 2001-05-15  Jim Meyering  <meyering@lucent.com>
130924         * m4/regex.m4: Use proper quoting so brackets appear in the test
130925         program.
130926         Reported by, and with help from, Bruno Haible.
130928 2001-05-13  Jim Meyering  <meyering@lucent.com>
130930         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
130931         undefined.
130933 2001-05-11  Paul Eggert  <eggert@twinsun.com>
130935         dirname code cleanup.  base_name now behaves more compatibly
130936         with POSIX basename when given file names that have trailing
130937         slashes, and similarly for dir_name.  Add new primitives
130938         base_len and dir_len.  Put the directory-name-related decls
130939         into dirname.h.
130941         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
130942         * lib/backupfile.c (base_name): Likewise.
130943         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
130944         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
130945         * lib/makepath.c (strip_trailing_slashes): Likewise.
130946         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
130947         ISSLASH): Likewise.
130948         * lib/rename.c (strip_trailing_slashes): Likewise.
130949         * lib/same.c (base_name): Likewise.
130950         * lib/stripslash.c (ISSLASH): Likewise.
130952         * lib/addext.c: Include <dirname.h> after size_t is defined.
130953         * lib/backupfile.c: Likewise.
130955         * lib/addext.c (addext): Use base_len to trim redundant
130956         trailing slashes instead of doing it ourselves.
130957         But do not trim the last slash if it is not redundant.
130959         * lib/backupfile.c (find_backup_file_name,
130960         max_backup_version): Use base_len instead of rolling it ourselves.
130961         Handle the case of "" and (on DOS) "C:" correctly.
130963         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
130964         needed. Include <string.h>, <dirname.h>.
130965         (base_name): Allow file names ending in slashes, other than names
130966         that are all slashes.  In this case, return the basename followed
130967         by the slashes.  This is more general, and can be used in places
130968         where the original base_name purposely had an assertion failure.
130969         (base_len): New function.
130971         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
130972         Do not include <assert.h>; no longer needed.
130973         Include xalloc.h.
130974         (memrchr): Remove decl.
130975         (dir_name_r): Remove.
130976         (dir_len): Renamed from dirlen.  All callers changed.
130977         Rewrite in terms of base_name, for simplicity and consistency.
130978         (dir_name): Never return NULL.  All callers changed.
130979         Do not include <stdlib.h> in test program; no longer needed.
130980         return 0; is fine for test program.
130982         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
130983         New macros.
130984         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
130986         * lib/path-concat.c (path_concat): Use base_len to compute
130987         base length, not strlen; this means we cannot rely on memcpy
130988         to null-terminate.
130990         * lib/same.c (STREQ): Remove.
130991         (same_name): Handle the case where the basename ends in trailing '/'.
130993         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
130994         a slash was stripped.  Do not strip the last slash after a
130995         file system prefix.
130997 2001-05-11  Paul Eggert  <eggert@twinsun.com>
130999         * lib/Makefile.am (libfetish_a_SOURCES):
131000         Add strftime.c, since we now compile it on all hosts.
131002         * lib/strftime.c (my_strftime):
131003         Define to nstrftime if emacs, but only if my_strftime is not defined.
131004         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
131005         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
131006         Add one more extra argument: a nanoseconds value.
131007         All uses changed.
131008         (ns): New macro.
131009         (my_strftime function): Add %N format.
131010         (emacs_strftimeu): Renamed from emacs_strftime,
131011         with extra ut argument.
131013 2001-05-09  Paul Eggert  <eggert@twinsun.com>
131015         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
131017 2001-04-21  Jim Meyering  <meyering@lucent.com>
131019         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
131020         doesn't interfere.
131022 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131024         * m4/ftruncate.m4: Check for chsize.
131025         Link with ftruncate.o unconditionally if ftruncate is missing.
131026         This was required when cross-compiling to i586-mingw32msvc.
131028 2001-04-08  Jim Meyering  <meyering@lucent.com>
131030         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
131031         recomputed; that's necessary when the offset spans a DST transition.
131032         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
131034 2001-04-02  Jim Meyering  <meyering@lucent.com>
131036         * lib/regex.h, regex.c: Update from GNU libc.
131038 2001-03-24  Jim Meyering  <meyering@lucent.com>
131040         * m4/jm-macros.m4: Require autoconf-2.49d.
131042 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
131044         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
131046 2001-03-19  Paul Eggert  <eggert@twinsun.com>
131048         * lib/version-etc.c (version_etc_copyright): Update to 2001.
131050 2001-03-17  Jim Meyering  <meyering@lucent.com>
131052         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
131053         now that the version in autoconf is equivalent.
131054         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
131056         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
131057         Suggestion from Akim Demaille.
131059         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
131060         (jm_PREREQ_TEMPNAME): New function.
131062 2001-03-16  Paul Eggert  <eggert@twinsun.com>
131064         * lib/tempname.c (uint64_t): Define to uintmax_t if
131065         not defined, and if UINT64_MAX is not defined.
131066         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
131067         Reported by John David Anglin.
131069 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
131071         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
131072         resolve alias if codeset is empty.
131073         * lib/config.charset (BeOS): Use wildcard syntax.
131075 2001-03-13  Jim Meyering  <meyering@lucent.com>
131077         * lib/path-concat.c (path_concat)
131078         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
131079         concatenating e.g., `C:' and `foo'.
131080         From Bruno Haible.
131082 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131084         * lib/localcharset.c (locale_charset): Don't use
131085         setlocale(LC_CTYPE,NULL). Don't return NULL.
131086         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
131088 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131090         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
131091         support for DOS/DJGPP.
131093 2001-03-01  Paul Eggert  <eggert@twinsun.com>
131095         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
131096         lacks mkstemp.  Compile our own tempname.c if we compile our own
131097         mkstemp.c, as mkstemp relies on tempname.
131099 2001-03-01  Jim Meyering  <meyering@lucent.com>
131101         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
131102         AH_VERBATIM really does output its argument verbatim.
131104 2001-02-28  Paul Eggert  <eggert@twinsun.com>
131106         * lib/Makefile.am (libfetish_a_SOURCES):
131107         Add dup-safer.c, fopen-safer.c.
131108         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
131110         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
131111         * lib/unistd-safer.h: New files.
131113 2001-02-25  Paul Eggert  <eggert@twinsun.com>
131115         The mkstemp replacement is taken from glibc 2.2.2, with some
131116         portability fixes for use outside glibc, as follows:
131118         * lib/tempname.c (struct_stat64): New macro.
131119         (direxists, __gen_tempname): Use it.
131120         This avoids a portability problem with Solaris 8.
131122         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
131123         (<stddef.h>, <stdint.h>, <string.h>):
131124         Include only if STDC_HEADERS || _LIBC.
131125         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
131126         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
131127         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
131128         (__set_errno): Define this macro if <errno.h> doesn't.
131129         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
131130         Define these macros if <stdio.h> doesn't.
131131         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
131132         Define these macros if <sys/stat.h>
131133         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
131134         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
131135         __xstat64): Define if not _LIBC.
131136         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
131137         (__gen_tempname): Invoke gettimeofday only if
131138         HAVE_GETTIMEOFDAY || _LIBC;
131139         otherwise, fall back on plain "time".
131140         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
131142         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
131144         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
131146 2001-02-18  Paul Eggert  <eggert@twinsun.com>
131148         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
131150 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131152         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
131153         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
131154         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
131155         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131157 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131159         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
131160         Remove workaround macros for hosts that have mbrtowc but not
131161         mbstate_t, as we now insist on proper declarations for both
131162         before using mbrtowc.
131164 2001-02-17  Jim Meyering  <meyering@lucent.com>
131166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
131167         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
131168         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
131169         UnixWare 7.1.1.
131171         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
131172         rather than AC_CACHE_VAL.
131174 2001-02-17  Jim Meyering  <meyering@lucent.com>
131176         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
131177         around included file name.
131179         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
131181         * lib/strftime.c: Update from GNU libc (the only changes were to
131182         comments).
131184 2001-02-17  Jim Meyering  <meyering@lucent.com>
131186         * lib/regex.c: Update from libc.
131188 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
131190         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
131191         clash.
131193 2001-02-16  Paul Eggert  <eggert@twinsun.com>
131195         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
131196         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
131197         Reported by Mark Hounschell via Paul Eggert.
131199 2001-02-07  Jim Meyering  <meyering@lucent.com>
131201         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
131203 2001-02-05  Jim Meyering  <meyering@lucent.com>
131205         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
131206         it includes the patch required for `large file' support with at least
131207         HP-UX's 10.20 /bin/cc.
131209 2001-02-03  Jim Meyering  <meyering@lucent.com>
131211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
131212         AS_IF, now that it works once again (mysteriously).
131213         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131215 2001-01-30  Jim Meyering  <meyering@lucent.com>
131217         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
131218         * m4/chown.m4: Rename conftestchown to conftest.chown.
131219         * m4/rename.m4: s/conftestdir/conftest.d1/ and
131220         s/conftestdir2/conftest.d2/.
131221         * m4/utimes.m4: s/conftestdata/conftest.data/
131222         Inspired by Pavel Roskin's change in autoconf.
131224 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
131226         * lib/config.charset: Update for FreeBSD 4.2.
131228 2001-01-27  Jim Meyering  <meyering@lucent.com>
131230         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
131231         a use of AS_IF.
131232         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131234 2001-01-26  Jim Meyering  <meyering@lucent.com>
131236         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
131237         quotearg.c includes it.
131239 2001-01-26  Jim Meyering  <meyering@lucent.com>
131241         * lib/quotearg.c: Include stddef.h.
131242         * lib/quote.c: Include stddef.h.
131243         Reported by Axel Kittenberger.
131245         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
131246         line in double quotes so that it evokes a better diagnostic.
131247         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
131248         Reported by Axel Kittenberger.
131250 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
131252         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
131253         as if it was a `charset'.
131255 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131257         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
131258         has const.
131260 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131262         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
131263         to avoid a warning.  Add back 'const' to inptr.
131265 2001-01-20  Jim Meyering  <meyering@lucent.com>
131267         Be sure that headers are checked before used in code compiled
131268         for the type checks.
131269         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
131270         In place of that, invoke jm_CHECK_ALL_TYPES.
131271         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
131272         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
131273         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
131274         The check for ssize_t was mistakenly run before the test for unistd.h.
131276         The configure-time check for stdbool.h was missing.
131277         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
131278         (jm_PREREQ_HASH): New function.
131280 2001-01-17  Jim Meyering  <meyering@lucent.com>
131282         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
131283         for autoconf-2.49c.
131284         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
131286 2001-01-16  Jim Meyering  <meyering@lucent.com>
131288         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
131289         From Bruno Haible.
131291 2001-01-14  Jim Meyering  <meyering@lucent.com>
131293         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
131294         foo and bar.  Create conftestdir/ in the script, not in the C code.
131295         Remove directories in the script, not in the C code.
131296         Remove conftestdir{,2} before trying to create the directory.
131297         Make the entire configure script fail if the mkdir fails.
131299 2001-01-14  Jim Meyering  <meyering@lucent.com>
131301         * lib/rename.c: New file.  From Volker Borchert.
131302         Include stdlib.h, string.h or strings.h, and xalloc.h.
131303         Use strip_trailing_slashes rather than open-coding it.
131305 2001-01-03  Paul Eggert  <eggert@twinsun.com>
131307         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
131309 2001-01-03  Jim Meyering  <meyering@lucent.com>
131311         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
131312         of local `inptr' to avoid warning with some system declarations of
131313         iconv.
131315 2001-01-02  Volker Borchert  <bt@teknon.de>
131317         * m4/rename.m4: New file.
131318         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
131320 2001-01-01  Jim Meyering  <meyering@lucent.com>
131322         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
131323         even on systems with utmpx.h.  It's necessary for the declaration of
131324         utmp's ut_user member.  Reported by Andreas Jaeger.
131326         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
131327         available. They are required for the declarations of getgrgid and
131328         getpwuid resp.
131329         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
131330         Reported by Andreas Jaeger.
131332 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
131334         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
131335         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
131336         so `make install' also works in VPATH builds.
131338 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
131340         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
131341         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
131342         can be used in subdirectories.
131344 2000-12-29  Paul Eggert  <eggert@twinsun.com>
131346         * lib/modechange.c: Do not assume that mode_t uses the
131347         traditional octal encoding.  E.g. "chmod 1 FOO" should set
131348         the other-execute bit of FOO even if S_IXOTH != 1.
131350         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
131351         WOTH, XOTH, ALLM): New macros.
131352         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
131353          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
131354         Use them.
131355         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
131356         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
131357         (mode_compile):
131358         No need to use uintmax_t; unsigned long is long enough.
131359         Don't bother to get suffix since we don't use it.
131361 2000-12-26  Jim Meyering  <meyering@lucent.com>
131363         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
131364         better with autoheader.
131366 2000-12-24  Jim Meyering  <meyering@lucent.com>
131368         * lib/hash.c (is_prime): Return explicit boolean values.
131369         (hash_get_first): Return NULL to appease Irix5.6's 89.
131370         Reported by Nelson Beebe.
131372 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
131374         * lib/localcharset.c (locale_charset): Add support for Win32.
131376 2000-12-18  Paul Eggert  <eggert@twinsun.com>
131378         * lib/physmem.h, lib/physmem.c: New files.
131380         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
131381         (noinst_HEADERS): Add physmem.h.
131383         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
131384         't' for compatibility with Solaris 8 sort.
131386 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
131388         * lib/config.charset: Add support for BeOS.
131390 2000-12-17  Jim Meyering  <meyering@lucent.com>
131392         * m4/dos.m4 (jm_AC_DOS): New file and macro.
131393         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
131395 2000-12-16  Jim Meyering  <meyering@lucent.com>
131397         This bug had a serious impact on chown: `chown N:M FILE' (for integer
131398         N and M) would have treated it like `chown N:N FILE'.
131400         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
131402 2000-12-16  Jim Meyering  <meyering@lucent.com>
131404         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
131405         SHELLS_FILE to a file name that's useful on djgpp systems.
131406         Include stdlib.h.
131407         (ADDITIONAL_DEFAULT_SHELLS): Define.
131408         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
131409         Based mostly on a patch from Prashant TR.
131411 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
131413         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
131414         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
131415         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
131417 2000-12-08  Andreas Schwab  <schwab@suse.de>
131419         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
131420         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
131422 2000-12-07  Jim Meyering  <meyering@lucent.com>
131424         * lib/stripslash.c (ISSLASH): Define.
131425         (strip_trailing_slashes): Use ISSLASH rather than comparing against
131426         `/'.
131427         From Prashant TR.
131429         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
131430         (dir_name_r): Declare this function as static.
131431         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
131432         manifest itself on a name containing a mix of slashes and
131433         backslashes.
131434         Make this function work with names starting with a DOS-style
131435         drive letter and colon prefix.
131436         (dir_name): Append `.' if necessary.
131437         Based mostly on patches from Prashant TR and Eli Zaretskii.
131439         * lib/dirname.h (dir_name_r): Remove prototype.
131441 2000-12-06  Paul Eggert  <eggert@twinsun.com>
131443         * m4/off_t-format.m4: Remove this file.
131444         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
131446 2000-12-06  Jim Meyering  <meyering@lucent.com>
131448         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
131449         replacement strtoull, we may well need the replacement strtoul, too.
131450         Check for declarations of strtoul and strtoull.
131451         Check for strtol.  Mainly as a cue to cause automake to include
131452         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
131453         Check for limits.h -- strtol.c needs it.
131455 2000-12-05  Jim Meyering  <meyering@lucent.com>
131457         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
131459 2000-12-04  Jim Meyering  <meyering@lucent.com>
131461         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
131462         Also include memory.h, stdlib.h, unistd.h if appropriate.
131463         Reported by Andreas Jaeger (conflicting declaration of malloc).
131465 2000-12-02  Jim Meyering  <meyering@lucent.com>
131467         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
131468         * m4/jm-macros.m4 (jm_MACROS): require it.
131470 2000-12-02  Jim Meyering  <meyering@lucent.com>
131472         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
131474 2000-12-01  Paul Eggert  <eggert@twinsun.com>
131476         * lib/memrchr.c: Include <config.h> before any system include file.
131478 2000-11-30  Jim Meyering  <meyering@lucent.com>
131480         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
131482 2000-11-30  Jim Meyering  <meyering@lucent.com>
131484         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
131486 2000-11-29  Paul Eggert  <eggert@twinsun.com>
131488         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
131490 2000-11-26  Jim Meyering  <meyering@lucent.com>
131492         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
131494 2000-11-22  Paul Eggert  <eggert@twinsun.com>
131496         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
131497         size of (size_t) -1; it's not portable.
131499 2000-11-17  Jim Meyering  <meyering@lucent.com>
131501         * lib/strstr.c: Update from GNU libc.
131503 2000-11-17  Akim Demaille  <akim@epita.fr>
131505         * lib/obstack.h: Formatting changes.
131506         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
131507         prevent type checking.
131508         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
131509         cast the value to (void *): assigning a `foo *' to a `void *'
131510         variable is valid.
131511         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
131513 2000-11-16  Jim Meyering  <meyering@lucent.com>
131515         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
131517 2000-11-11  Jim Meyering  <meyering@lucent.com>
131519         * lib/error.c: Add a couple #includes, merging from GNU libc version.
131521 2000-11-10  Jim Meyering  <meyering@lucent.com>
131523         * lib/obstack.h: Update from GNU libc.
131524         * lib/obstack.c: Likewise.
131526 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
131528         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
131530 2000-11-06  Paul Eggert  <eggert@twinsun.com>
131532         * lib/getusershell.c (setusershell): Use rewind rather than
131533         fseek/fseeko, to avoid configuration hassles with fseeko.
131534         Don't bother opening SHELLS_FILE if shellstream is NULL;
131535         it's not necessary.
131537 2000-11-05  Jim Meyering  <meyering@lucent.com>
131539         * lib/makepath.h (make_dir): Declare.
131540         * lib/makepath.c (make_dir): Remove `static' attribute.
131541         Tweak a comment.
131543 2000-11-04  Jim Meyering  <meyering@lucent.com>
131545         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
131547 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
131549         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
131550         last one in a bucket, advance to the next bucket.
131552 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
131554         * lib/fnmatch.c: Do not comment out all the code if we are using
131555         the GNU C library, because in some cases we are replacing buggy
131556         code in the GNU C library itself.
131558 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
131560         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
131561         (regex_compile): Catch bogus \(\1\).
131563 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131565         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
131566         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
131567         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
131569 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131571         * lib/error.h, getline.h, modechange.h:
131572         Remove "2000" from Copyright line, as the file hasn't been
131573         changed this year other than in the copyright notice.
131575         * lib/xalloc.h: Add "2000" to Copyright line, as this file
131576         was changed this year.
131578 2000-10-29  Jim Meyering  <meyering@lucent.com>
131580         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
131581         renaming.
131582         * m4/ls-mntd-fs.m4: Likewise
131584 2000-10-29  Jim Meyering  <meyering@lucent.com>
131586         * lib/xstat.in: Fix grammar in comment.
131588 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
131590         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
131591         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
131592         doesn't define __restrict_arr.
131594 2000-10-28  Jim Meyering  <meyering@lucent.com>
131596         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
131597         (jm_PREREQ_MEMCHR): New function.
131599 2000-10-28  Jim Meyering  <meyering@lucent.com>
131601         * lib/memchr.c: Update from libc.
131602         Adjust for portability:
131603         [HAVE_STDLIB_H]: Include stdlib.h.
131604         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
131605         Undef __memchr, too.
131606         [!weak_alias]: Define __memchr to memchr.
131608         * lib/regex.c: Update from libc.
131609         * lib/regex.h: Likewise.
131610         * lib/getopt1.c: Likewise.
131611         * lib/memcmp.c: Likewise.
131613         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
131614         Avoid using fseek, when possible -- it's broken by design.
131615         Patch by Ulrich Drepper.
131617 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
131619         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
131620         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
131621         Giving in to popular pressure to shut up the compiler with casts.
131623 2000-10-26  Jim Meyering  <meyering@lucent.com>
131625         * lib/strftime.c: Update from libc.
131627 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
131629         * regex.c: More `unsigned char' -> `re_char' changes.
131630         Also change several `int' into `re_wchar_t'.
131631         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
131632         (PUSH_FAILURE_POINTER): Don't cast any more.
131633         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
131634         We want GCC to complain, since this piece of code makes
131635         re_match non-reentrant, which *should* be fixed.
131636         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
131637         (EXTEND_BUFFER): Use RETALLOC.
131638         (SET_LIST_BIT): Don't cast.
131639         (re_wchar_t): New type.
131640         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
131641         that those two functions will always properly return.
131642         (IMMEDIATE_QUIT_CHECK): Cast to void.
131643         (analyse_first): Use recursion rather than an explicit stack.
131644         (re_compile_fastmap): Can't fail anymore.
131645         (re_search_2): Don't check re_compile_fastmap for failure.
131646         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
131647         Now also sets the new value (passed in a new argument).
131648         (re_match_2_internal): Use it.
131649         Also, use a new var `reg' of type size_t when looping through regs
131650         rather than reuse the inappropriate `mcnt'.
131652 2000-10-25  Jim Meyering  <meyering@lucent.com>
131654         * lib/obstack.c: Update from libc.
131656 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
131658         * regex.c (regex_compile): Change the way of handling a range from
131659         a char less than 256 to a char not less than 256.
131661 2000-10-24  Andrew Innes  <andrewi@gnu.org>
131663         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
131664         NT-Emacs only.
131665         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
131666         so that re_search functions only quit when callers expect them to.
131668 2000-10-23  Jim Meyering  <meyering@lucent.com>
131670         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
131671         wrong.  That set_locale call must not have any side effects.
131672         From Paul Eggert.
131674 2000-10-22  Jim Meyering  <meyering@lucent.com>
131676         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
131677         [CYCLIC]: Remove now-unused definition.
131679         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
131680         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
131681         Suggestion from Ulrich Drepper.
131683 2000-10-21  Jim Meyering  <meyering@lucent.com>
131685         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
131686         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
131687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
131689 2000-10-21  Jim Meyering  <meyering@lucent.com>
131691         * lib/dirname.c (memrchr): Declare if necessary.
131692         (dir_name): Remove the restriction that there be no
131693         trailing slashes.  Now, this code skips past them, effectively
131694         ignoring them.
131695         [TEST_DIRNAME] (main): New unit tests.
131697         * lib/memrchr.c: New file from GNU libc.
131698         Undef __memrchr, too.
131699         [!weak_alias]: Define __memrchr to memrchr.
131700         Guard weak_alias use with `#ifdef weak_alias'.
131702 2000-10-21  Jim Meyering  <meyering@lucent.com>
131704         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
131705         (dir_name): Use dir_name_r.
131706         * lib/dirname.h (dir_name_r): Declare it.
131708 2000-10-17  Jim Meyering  <meyering@lucent.com>
131710         * lib/quote.h (PARAMS): Define and use.
131711         Reported by Akim Demaille.
131713         * lib/getopt.c: Update from libc.
131715 2000-10-16  Jim Meyering  <meyering@lucent.com>
131717         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
131718         setlocale.
131719         From Jan Fedak.
131721 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
131723         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
131725 2000-09-25  Jim Meyering  <meyering@lucent.com>
131727         * lib/md5.h (rol): Define (from GnuPG).
131729         * lib/sha.c: Give credit (GnuPG) where due.
131730         (M): Use rol rather than open-coding it.
131731         Add a FIXME comment.
131733 2000-09-21  Jim Meyering  <meyering@lucent.com>
131735         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
131736         Reported by Michael Stone.
131738 2000-09-20  Jim Meyering  <meyering@lucent.com>
131740         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
131741         (noinst_HEADERS): Add sha.h.
131742         Based on code from Scott G. Miller and from GnuPG.
131744 2000-09-18  Jim Meyering  <meyering@lucent.com>
131746         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
131747         LIBS. Otherwise, everyone ends up linking with -lelf for some
131748         configurations.
131749         Reported by Mike Stone.
131751 2000-09-15  Jim Meyering  <meyering@lucent.com>
131753         * lib/regex.c: Update from libc.
131755 2000-09-10  Jim Meyering  <meyering@lucent.com>
131757         * lib/getopt.c (_getopt_internal): Update from glibc.
131759 2000-09-09  Jim Meyering  <meyering@lucent.com>
131761         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
131762         think it should be used as a general replacement for isascii.
131763         * lib/fnmatch.c: Likewise.
131764         * lib/mbswidth.c: Likewise
131765         * lib/regex.c: Likewise.
131767         Don't use atoi.
131768         * lib/userspec.c: Include sys/param.h and limits.h.
131769         Include xstrtol.h.
131770         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
131771         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
131772         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
131773         UID, GID.  Check range.
131775 2000-09-06  Jim Meyering  <meyering@lucent.com>
131777         * lib/getopt.c (_getopt_internal): Update from glibc.
131779 2000-08-30  Jim Meyering  <meyering@lucent.com>
131781         * lib/strftime.c: Merge in changes from GNU libc.
131783 2000-08-26  Jim Meyering  <meyering@lucent.com>
131785         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
131786         * m4/fpending.m4: New file.
131788 2000-08-26  Jim Meyering  <meyering@lucent.com>
131790         * lib/closeout.c: Include "__fpending.h".
131791         (close_stdout_status): Return right away if there's nothing to flush.
131793         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
131794         * lib/__fpending.c: New file.
131795         * lib/__fpending.h: New file.
131797 2000-08-20  Jim Meyering  <meyering@lucent.com>
131799         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
131800         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
131801         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
131803 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
131805         Improve fileutils installation on systems where running
131806         programs (like install) can't be unlinked.
131807         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
131808         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
131810 2000-08-07  Paul Eggert  <eggert@twinsun.com>
131812         Standardize on "memory exhausted" instead of "Memory exhausted"
131813         or "virtual memory exhausted".
131814         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
131815         "virtual memory exhausted".
131816         * lib/same.c (same_name): Invoke xalloc_die instead of printing
131817         our own message.
131818         * lib/userspec.c (parse_user_spec): Likewise.
131819         * lib/bumpalloc.h: comment fix
131820         * lib/same.c, userspec.c: Include xalloc.h.
131822         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
131823         not char *const and pointing to a constant array.
131824         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
131825         (xrealloc): Comment fix.
131827         * lib/userspec.c (parse_user_spec):
131828         Don't translate a message until just before returning,
131829         to avoid unnecessary translation.
131831 2000-08-07  Jim Meyering  <meyering@lucent.com>
131833         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
131834         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
131835         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
131836         getgroups.c, gethostname.c, getopt.h, group-member.c,
131837         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
131838         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
131839         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
131840         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
131841         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
131842         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
131843         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
131844         yesno.c: Back out Copyright date changes for each file with no change
131845         this year.  This eases coordination with other programs using the same
131846         source code modules.  From Paul Eggert.
131848 2000-08-06  Paul Eggert  <eggert@twinsun.com>
131850         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
131851         not char, for compatibility with glibc 2.1.3 strftime.c.
131853 2000-08-03  Greg McGary  <greg@mcgary.org>
131855         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
131856         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
131857         (EXTEND_BUFFER): Use them.
131859 2000-08-01  Jim Meyering  <meyering@lucent.com>
131861         * lib/dirname.c (ISSLASH): Define.
131862         (BACKSLASH_IS_PATH_SEPARATOR): Define.
131863         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
131864         both `\' and `/' may be use as path separators.
131865         Based on a patch from Prashant TR.
131867 2000-07-31  Paul Eggert  <eggert@twinsun.com>
131869         * lib/quotearg.c (quotearg_n_options): Don't make the initial
131870         slot vector a constant, since it might get modified.
131872 2000-07-31  Jim Meyering  <meyering@lucent.com>
131874         * lib/xmalloc.c: Use `virtual memory exhausted', not
131875         `Memory exhausted'.
131876         * lib/obstack.c (print_and_abort): Likewise.
131878 2000-07-30  Paul Eggert  <eggert@twinsun.com>
131880         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
131881         buffer, so that the caller can always quote one small
131882         component of a "memory exhausted" message in slot 0.
131883         From a suggestion by Jim Meyering.
131885 2000-07-30  Jim Meyering  <meyering@lucent.com>
131887         * lib/makepath.c (make_path): Quote the other instance, too.
131889         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
131890         (STATIC_BUF_SIZE): Define.
131891         (quotearg_n_options): Use only statically allocated storage when
131892         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
131893         than STATIC_BUF_SIZE.
131895 2000-07-29  Jim Meyering  <meyering@lucent.com>
131897         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
131898         * lib/dirname.c (dir_name): Likewise.
131900         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
131901         `/'.
131903         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
131904         (dir_name): Assert that there are no trailing slashes.
131906 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
131908         * lib/mbswidth.h (mbswidth): Add a flags argument.
131909         (mbswidth): New declaration.
131910         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
131911         * lib/mbswidth.c (mbswidth): Add a flags argument.
131912         (mbsnwidth): New function.
131914 2000-07-24  Jim Meyering  <meyering@lucent.com>
131916         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
131918 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131920         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
131922 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131924         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
131925         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
131926         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
131927         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
131928         invoke multibyte primitives.
131930 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131932         * lib/quotearg.c:
131933         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
131934         so that mbstate_t is always defined.
131936         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
131937         be 1 in at least one GCC installation, and this configuration
131938         error is likely to be common.  Ignoring MB_LEN_MAX hurts
131939         performance on hosts that have mbrtowc but have only unibyte
131940         locales, but I assume these hosts are rare.
131942 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131944         * lib/mbswidth.c (_XOPEN_SOURCE):
131945         Don't define; this causes problems on Solaris 7.
131946         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
131948 2000-07-23  Jim Meyering  <meyering@lucent.com>
131950         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
131951         too: getgrgid, getpwuid, getuid.
131953 2000-07-23  Jim Meyering  <meyering@lucent.com>
131955         * lib/basename.c (base_name): Add an assertion.
131957 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
131959         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
131960         shadow its mbsinit function.
131962 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
131964         * lib/mbswidth.h: New file.
131965         * lib/mbswidth.c: New file.
131966         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
131967         (noinst_HEADERS): Add mbswidth.h.
131969 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
131971         * lib/config.charset: Add support for FreeBSD. Improve support for
131972         HP-UX and IRIX 6.
131974 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
131976         * m4/mbswidth.m4: New file.
131977         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
131979 2000-07-15  Jim Meyering  <meyering@lucent.com>
131981         * lib/makepath.c: Include quote.h.
131982         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
131983         corresponding argument in a `quote (...)' call.
131984         Give better diagnostics.
131986         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
131987         (noinst_HEADERS): Add quote.h.
131989         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
131990         from tar's src/misc.c.
131991         * lib/quote.h: New file.  Prototypes for same.
131993 2000-07-14  Paul Eggert  <eggert@twinsun.com>
131995         From a suggestion by Bruno Haible.
131996         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
131997         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
131998         to decide whether to define the BeOS workaround macro;
131999         this adjusts to the change to AC_MBSTATE_T.
132001 2000-07-14  Jim Meyering  <meyering@lucent.com>
132003         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
132004         jm_AC_TYPE_UINTMAX_T.
132006 2000-07-13  Paul Eggert  <eggert@twinsun.com>
132008         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
132010         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
132011         quotearg_buffer_restyled): Add support for
132012         clocale_quoting_style.  Undo previous change to
132013         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
132014         and "{RIGHT QUOTATION MARK}" msgids.
132016 2000-07-10  Paul Eggert  <eggert@twinsun.com>
132018         From a suggestion by Bruno Haible.
132019         * m4/mbstate_t.m4 (AC_MBSTATE_T):
132020         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
132021         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
132022         and mbstate_t, to a single-part test that simply defines mbstate_t.
132023         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
132024         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
132026 2000-07-10  Jim Meyering  <meyering@lucent.com>
132028         * m4/strerror_r.m4: Mirror the correction made in autoconf.
132030         * m4/gnu-source.m4: Output to confdefs.h directly.
132031         Suggestion from Akim Demaille.
132033 2000-07-09  Paul Eggert  <eggert@twinsun.com>
132035         The old behavior of quoting `like this' doesn't look good with
132036         newer, ISO-style fonts.  See:
132037         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
132039         Instead, quote "like this" by default.  Let the translator
132040         tailor the locale-specific quoting behavior by providing
132041         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
132043         * lib/quotearg.c (N_): New macro.
132044         (gettext_default): New function.
132045         (quotearg_buffer_restyled): Use
132046         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
132047         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
132049 2000-07-09  Jim Meyering  <meyering@lucent.com>
132051         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
132052         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
132054         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
132055         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
132057 2000-07-09  Jim Meyering  <meyering@lucent.com>
132059         * lib/Most files: Update copyright dates to include 2000.
132061 2000-07-08  Jim Meyering  <meyering@lucent.com>
132063         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
132064         if not defined.
132065         (xgethostname): Remove now-unnecessary #ifdef.
132066         Move declaration of `err' into loop where it's used.
132068 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132069         and Bruno Haible  <haible@clisp.cons.org>
132071         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
132072         only if the test for an object-type mbstate_t fails.  This
132073         prevents us from mistakenly reporting that mbstate_t is a
132074         system object type after we "#define mbstate_t int" to work
132075         around its lack.
132077 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132078         and Bruno Haible  <haible@clisp.cons.org>
132080         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
132082 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132084         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
132085         to strerror_r.
132086         Include <ctype.h> for use of isalpha.
132088 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132090         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
132091         by allocating a larger buffer. Test the gethostname return value for
132092         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
132093         returns an error and ENAMETOOLONG isn't defined.
132095 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132097         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
132098         dimension.
132100 2000-07-04  Jim Meyering  <meyering@lucent.com>
132102         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
132103         of the deprecated AC_CHECKING.
132105 2000-07-04  Jim Meyering  <meyering@lucent.com>
132107         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
132108         Reported by Bruno Haible.
132110 2000-07-04  Jim Meyering  <meyering@lucent.com>
132112         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
132113         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
132114         lacks mbrtowc.
132116 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132118         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
132119         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
132121 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132122         and Bruno Haible  <haible@clisp.cons.org>
132124         * lib/quotearg.c (mbrtowc):
132125         Assign to *pwc, and return 1 only if result is nonzero.
132126         (iswprint): Use ISPRINT when substituting our own mbrtowc.
132128 2000-07-03  Jim Meyering  <meyering@lucent.com>
132130         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
132132 2000-07-03  Jim Meyering  <meyering@lucent.com>
132134         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
132135         This is necessary to get a definition of e.g., UTMP_FILE on
132136         HP-UX 10.20.
132137         From Bob Proulx.
132139 2000-07-02  Jim Meyering  <meyering@lucent.com>
132141         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
132143         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
132144         AC_LIBOBJ(function_name).
132145         * m4/chown.m4: Likewise.
132146         * m4/fnmatch.m4: Likewise.
132147         * m4/ftruncate.m4: Likewise.
132148         * m4/getgroups.m4: Likewise.
132149         * m4/getline.m4: Likewise.
132150         * m4/group-member.m4: Likewise.
132151         * m4/jm-macros.m4: Likewise.
132152         * m4/lstat.m4: Likewise.
132153         * m4/malloc.m4: Likewise.
132154         * m4/memcmp.m4: Likewise.
132155         * m4/nanosleep.m4: Likewise.
132156         * m4/putenv.m4: Likewise.
132157         * m4/realloc.m4: Likewise.
132158         * m4/regex.m4: Likewise.
132159         * m4/stat.m4: Likewise.
132160         * m4/strftime.m4: Likewise.
132162 2000-07-02  Jim Meyering  <meyering@lucent.com>
132164         * lib/quotearg.c (mbstate_t): Don't define here.
132166 2000-07-02  Jim Meyering  <meyering@lucent.com>
132168         * lib/nanosleep.c (SIGCONT): Define if not already defined.
132170 2000-07-01  Jim Meyering  <meyering@lucent.com>
132172         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
132174 2000-07-01  Jim Meyering  <meyering@lucent.com>
132176         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
132177         problem.
132179 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132181         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
132182         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
132184 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132186         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
132187         per change in ../m4/ls-mntd-fs.m4.
132188         (read_filesystem_list): Ignore symbolic links.
132190 2000-06-29  Jim Meyering  <meyering@lucent.com>
132192         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
132193         for declaration of strcmp.
132195         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
132197         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
132198         Avoid warning by casting result to `char *' to remove `const'.
132200 2000-06-28  Jim Meyering  <meyering@lucent.com>
132202         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
132203         included by quotearg.c, for which we perform this test.  From
132204         Bruno Haible.
132206 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132208         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
132209         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
132210         <utmpx.h> exists, put readutmp.o into LIBOBJS.
132212 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132214         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
132216 2000-06-26  Paul Eggert  <eggert@twinsun.com>
132218         savedir now sets errno on failure and invokes xmalloc to get memory.
132219         Fix a couple of other minor bugs while we're at it.
132221         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
132222         (NAMLEN): Remove macro.
132223         (malloc, realloc): Remove decls.
132224         (stpcpy): Likewise.
132225         ("xalloc.h"): Include.
132226         (NAME_SIZE_DEFAULT): New macro.
132227         (savedir): Use xmalloc / xrealloc to allocate memory.
132228         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
132229         Skip "" directory entries.
132230         Use strlen to calculate directory entry length, since the old method
132231         is rarely used these days and isn't worth supporting.
132232         Don't use a pointer after freeing it.
132233         Check for integer overflow when calculating allocation size.
132234         Use memcpy to copy entries, instead of stpcpy.
132235         Set errno properly when returning NULL.
132236         Check for readdir error.
132238 2000-06-26  Jim Meyering  <meyering@lucent.com>
132240         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
132242 2000-06-25  Jim Meyering  <meyering@lucent.com>
132244         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
132245         Linux header bug when _XOPEN_SOURCE is defined to 500.
132247 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132249         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
132250         deficiency.
132252 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132254         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
132255         Include xalloc.h.
132256         Don't include <stdlib.h>.  Don't declare malloc, realloc.
132258 2000-06-24  Jim Meyering  <meyering@lucent.com>
132260         * m4/strerror_r.m4: Revive this file -- to try out an experimental
132261         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
132262         for which strerror does return char*, but which lacks a conveniently
132263         accessible declaration of the function.  If the compile-test says
132264         strerror_r doesn't work, then resort to a `run'-test that works on
132265         BeOS and segfaults on DEC Unix.
132267 2000-06-24  Jim Meyering  <meyering@lucent.com>
132269         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
132271 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132273         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
132274         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
132276 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132278         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
132279         (mbrtowc, mbstate_t): Define substitutes if
132280         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
132281         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
132282         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
132284 2000-06-23  Jim Meyering  <meyering@lucent.com>
132286         * m4/afs.m4: Add missing AC_MSG_RESULT.
132287         Reported by Bruno Haible.
132289         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
132290         Suggestion from Bruno Haible.
132292 2000-06-23  Jim Meyering  <meyering@lucent.com>
132294         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
132296 2000-06-21  Jim Meyering  <meyering@lucent.com>
132298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
132300 2000-06-21  Jim Meyering  <meyering@lucent.com>
132302         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
132303         (noinst_HEADERS): Add getstr.h.
132305         * lib/getline.c (getstr): Move into a separate file.
132306         * lib/getstr.c (getstr): New file, extracted from getline.c, with
132307         the following changes: new parameter, delim2; both delim[12]
132308         parameters have type `int', not `char'.  The latter would lose
132309         with 8-bit delimiters.
132310         * lib/getstr.h: New file.
132312 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132314         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
132315         than 1024, return a memory chunk of least possible size, instead
132316         of size PATH_MAX + 2. In the loop, increment the size proportionally.
132317         Use free/xmalloc instead of xrealloc to avoid copying for very long
132318         paths.
132320 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132322         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
132323         the empty string.
132325 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132327         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
132328         address, not strdup.  Include <stdlib.h> and don't declare free().
132330 2000-06-19  Jim Meyering  <meyering@lucent.com>
132332         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
132334 2000-06-18  Jim Meyering  <meyering@lucent.com>
132336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
132338         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
132339         `checking whether...' message to be consistent with that of the
132340         lstat test.
132342 2000-06-18  Jim Meyering  <meyering@lucent.com>
132344         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
132345         Besides, these days every porting target provides a mkdir function.
132347         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
132348         needed. (this snippet comes from src/system.h).
132350 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
132352         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
132354 2000-06-15  Paul Eggert  <eggert@twinsun.com>
132356         * lib/human.c (adjust_value): New function.
132357         (human_readable_inexact): Apply rounding style even when
132358         printing approximate values.
132360 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132362         * lib/human.c (human_readable_inexact): Allow an input block
132363         size that is not a multiple of the output block size, and vice versa.
132364         Reported by Piergiorgio Sartor.
132366 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132368         * lib/getdate.y (get_date): Apply relative times after time
132369         zone indicator, not before.  Reported by Todd A. Jacobs.
132371 2000-06-13  Jim Meyering  <meyering@lucent.com>
132373         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
132375         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
132377 2000-06-12  Paul Eggert  <eggert@twinsun.com>
132379         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
132381 2000-06-12  Jim Meyering  <meyering@lucent.com>
132383         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
132384         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
132385         optional argument.
132386         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
132387         the optional argument, `lib'.
132389 2000-06-08  Jim Meyering  <meyering@lucent.com>
132391         * m4/largefile.m4: Remove file (now that it's part of autoconf).
132393 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132395         Rewrite largefile configuration so that we don't need to run
132396         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
132397         AC_CANONICAL_HOST in configure.in -- jmm]
132399         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
132400         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
132401         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
132402         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
132403         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
132404         All uses changed.
132405         Instead of inspecting the output of getconf, try to compile the
132406         test program without and with the macro definition.
132407         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
132408         for getconf.  Instead, check for the needed flags by compiling
132409         test programs.
132411 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132413         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
132415 2000-06-04  Jim Meyering  <meyering@lucent.com>
132417         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
132418         SunOS 4.1.4 for which gid_t is an unsigned type.
132420 2000-06-03  Jim Meyering  <meyering@lucent.com>
132422         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
132423         now that autoconf requires that.
132425         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
132426         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
132427         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
132429 2000-06-03  Jim Meyering  <meyering@lucent.com>
132431         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
132433 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132435         * m4/glibc21.m4: New file.
132436         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
132438 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132440         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
132441         newer, don't install charset.alias.
132442         * lib/config.charset: Change the Linux/glibc rules so they become empty
132443         on glibc-2.1 or newer.
132445 2000-06-02  Jim Meyering  <meyering@lucent.com>
132447         * lib/mountlist.c: Back out last change.  Instead, do this...
132448         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
132449         me_dummy member using the same `ignore'-testing code.
132450         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
132451         fs_type strings.
132452         From Mark D. Roth.
132454 2000-05-29  Jim Meyering  <meyering@lucent.com>
132456         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
132457         mounts with the `ignore' attribute.  Based on a patch from
132458         Mark D. Roth.
132460 2000-05-28  Jim Meyering  <meyering@lucent.com>
132462         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
132463         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132464         * m4/stat.m4: Likewise.
132465         * m4/lstat.m4: Likewise.
132466         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
132468         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
132469         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
132471 2000-05-26  Jim Meyering  <meyering@lucent.com>
132473         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
132475 2000-05-24  Jim Meyering  <meyering@lucent.com>
132477         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
132478         autoconf requires that.
132479         * m4/lib-check.m4: Likewise.
132480         * m4/jm-macros.m4: Likewise.
132481         * m4/strftime.m4: Likewise.
132483         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
132484         AC_CHECK_DECLS, now that autoconf requires that.
132486 2000-05-22  Jim Meyering  <meyering@lucent.com>
132488         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132489         * m4/lstat.m4: Likewise.
132491 2000-05-22  Jim Meyering  <meyering@lucent.com>
132493         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
132495 2000-05-20  Jim Meyering  <meyering@lucent.com>
132497         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
132498         (jm_PREREQ): Use it.
132500 2000-05-18  Jim Meyering  <meyering@lucent.com>
132502         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
132503         back, too, since it may have been modified by allocate_entry.
132504         (hash_delete): Rewrite to use neither the assignment operator
132505         nor the comma operator in an if-expression.
132507 2000-05-15  Paul Eggert  <eggert@twinsun.com>
132509         * lib/closeout.c:
132510         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
132511         Remove; no longer needed.
132512         "quotearg.h": Add include.
132513         (file_name): Do not bother to explicitly initialize to NULL; it's less
132514         efficient on some hosts.
132515         (close_stdout_status): Remove test as to whether stdout was already
132516         closed; it breaks for the case "echo x | sort >&-".
132517         Quote file name colons.
132518         Do not assume that _("write error") lacks format strings.
132520 2000-05-15  Jim Meyering  <meyering@lucent.com>
132522         * lib/version-etc.c (version_etc_copyright): Update the copyright
132523         string used in all --version output.
132525 2000-05-14  Jim Meyering  <meyering@lucent.com>
132527         * lib/closeout.c (close_stdout_set_file_name): New function.
132528         (close_stdout_status): Use new file-scoped global.
132529         Return right away if fstat says the stdout file descriptor is invalid.
132530         * lib/closeout.h (close_stdout_set_file_name): Declare.
132532 2000-05-10  Jim Meyering  <meyering@lucent.com>
132534         * lib/closeout.c [default_exit_status]: New file-scoped variable.
132535         (close_stdout_set_status): New function.
132536         * lib/closeout.h (close_stdout_set_status): Declare.
132538 2000-05-09  Jim Meyering  <meyering@lucent.com>
132540         * m4/gettext.m4: Rename this...
132541         * m4/libintl.m4: ...to this.
132543 2000-05-08  Jim Meyering  <meyering@lucent.com>
132545         * lib/long-options.c: Don't include closeout.h.
132546         (parse_long_options): Don't call close_stdout for --version.
132548 2000-05-06  Paul Eggert  <eggert@twinsun.com>
132550         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
132551         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
132552         2.1.3 bug.  This avoids a clash when files like regex.c define
132553         _GNU_SOURCE.
132555 2000-05-06  Jim Meyering  <meyering@lucent.com>
132557         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
132558         (AC_REPLACE_FUNCS): Add strnlen.
132560         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
132561         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
132563         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
132564         AC_SEARCH_LIBS call for nanosleep.
132565         (LIB_NANOSLEEP): Set and AC_SUBST.
132567 2000-05-06  Jim Meyering  <meyering@lucent.com>
132569         * lib/strnlen.c: Undefine __strnlen and strnlen.
132570         [!weak_alias]: Define __strnlen to strnlen.
132572         * lib/atexit.c: New file, from libiberty.
132574 2000-05-06  Jim Meyering  <meyering@lucent.com>
132576         * lib/closeout.c (close_stdout_status): Also check for errors on the
132577         stderr stream.
132579 2000-05-05  Jim Meyering  <meyering@lucent.com>
132581         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
132582         AC_SEARCH_LIBS call for clock_gettime.
132583         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
132585         * m4/search-libs.m4: Update from autoconf.
132587         su doesn't work on Solaris 2.6.
132588         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
132589         <shadow.h>.  Reported by Dragos Harabor.
132591 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
132593         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
132594         memcpy instead of xmalloc, xrealloc, path_concat.
132595         (locale_charset): Treat empty environment variables as absent.
132596         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
132598 2000-05-04  Jim Meyering  <meyering@lucent.com>
132600         * lib/getopt.c: Update from glibc.
132601         * lib/obstack.c: Likewise.
132602         * lib/obstack.h: Likewise.
132603         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
132604         file
132606         * lib/regex.h: Likewise.
132607         * lib/strndup.c: Likewise.
132608         * lib/strnlen.c: New file, from glibc.
132610 2000-05-03  Jim Meyering  <meyering@lucent.com>
132612         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
132614 2000-05-02  Paul Eggert  <eggert@twinsun.com>
132616         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
132617         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
132618         compile-time test, rather than inspecting host and OS, to
132619         decide whether to define _LARGEFILE_SOURCE.
132621 2000-05-01  Jim Meyering  <meyering@lucent.com>
132623         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
132625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
132626         Based on a patch from Bruno Haible.
132628 2000-05-01  Jim Meyering  <meyering@lucent.com>
132630         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
132632 2000-04-29  Jim Meyering  <meyering@lucent.com>
132634         * lib/path-concat.c: Declare strdup only if it's not defined.
132635         * lib/canon-host.c: Likewise.
132637 2000-04-28  Jim Meyering  <meyering@lucent.com>
132639         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
132640         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
132641         is included first, then limits.h is included by locale.h by libintl.h.
132642         From John David Anglin.
132644 2000-04-25  Jim Meyering  <meyering@lucent.com>
132646         * lib/makepath.c (S_IRWXUGO): Define.
132647         (make_path): Always perform explicit chmod if MODE specifies any
132648         of the `special' permission bits.  Prompted by a bug report against
132649         install from Mate Wierdl and Joost van Baal.
132651 2000-04-18  Jim Meyering  <meyering@lucent.com>
132653         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
132654         (jm_PREREQ): Use it.
132656 2000-04-18  Jim Meyering  <meyering@lucent.com>
132658         * lib/README: New file.
132660         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
132661         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
132663 2000-04-17  Jim Meyering  <meyering@lucent.com>
132665         Get it right :-)
132666         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
132667         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
132668         Suggestion from Akim Demaille.
132670 2000-04-17  Jim Meyering  <meyering@lucent.com>
132672         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
132673         the definition of it to rpl_strftime also defined-away the system's
132674         declaration.
132676 2000-04-15  Jim Meyering  <meyering@lucent.com>
132678         Use `C' to denote so-called `contiguous' files, the same way
132679         that tar does.
132680         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
132681         (ftypelet): Use S_ISCTG.
132682         From Michael Deutschmann.
132684 2000-04-14  Jim Meyering  <meyering@lucent.com>
132686         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
132687         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
132688         clobbered.
132690 2000-04-14  Jim Meyering  <meyering@lucent.com>
132692         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
132694 2000-04-13  Jim Meyering  <meyering@lucent.com>
132696         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
132697         AH_VERBATIM to insert required #ifndef into config.h.in.
132698         Suggestion from Akim Demaille.
132700 2000-04-12  Jim Meyering  <meyering@lucent.com>
132702         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
132703         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
132704         Christian Krackowizer.
132706         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
132707         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
132708         (AC_SYS_LARGEFILE): Require.
132709         (AM_C_PROTOTYPES): Require.
132711 2000-04-08  Jim Meyering  <meyering@lucent.com>
132713         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
132714         names don't conflict.  Reported by Eli Zaretskii.
132716 2000-04-07  Jim Meyering  <meyering@lucent.com>
132718         * lib/putenv.c: Move inclusion of errno.h so it follows that of
132719         sys/types.h, to work around system header problems on AIX 3.2.5.
132720         From Bruno Haible.
132722 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
132724         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
132725         bug.  Deal with the different error behavior of Irix iconv.
132727 2000-04-05  Paul Eggert  <eggert@twinsun.com>
132729         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
132730         IRIX if the installer said otherwise.
132732 2000-04-05  Jim Meyering  <meyering@lucent.com>
132734         Portability tweaks required for ultrix4.3.
132735         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
132736         (jm_CHECK_DECLS): Add getutent to the list of functions.
132737         (_jm_DECL_HEADERS): Add utmpx.h.
132738         From John David Anglin.
132740         * m4/strftime.m4: Back out the 2000-04-02 change.
132741         Instead of that change, simply undefine putenv in the test program.
132743 2000-04-05  Jim Meyering  <meyering@lucent.com>
132745         Portability tweaks required for ultrix4.3.
132746         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
132747         getutent.
132748         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
132749         * lib/canon-host.c: Declare strdup.
132750         * lib/path-concat.c: Likewise.
132751         From John David Anglin.
132753 2000-04-04  Jim Meyering  <meyering@lucent.com>
132755         Be more DOS 8.3-friendly.
132756         * lib/ref-add.sin: Renamed from ref-add.sed.in.
132757         * lib/ref-del.sin: Renamed from ref-del.sed.in.
132758         * lib/Makefile.am: Reflect renaming.
132759         Reported by Eli Zaretskii.
132761         Use a temporary file name that won't clash with `charset.alias'
132762         in the DOS 8.3 name space.
132763         * lib/Makefile.am (charset_tmp): Define.
132764         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
132765         (uninstall-local): Likewise.
132766         Reported by Eli Zaretskii.
132768 2000-04-03  Jim Meyering  <meyering@lucent.com>
132770         * m4/gettext.m4: Fix typo in comment.
132772         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
132773         textutils/configure.in).  Suggestion from Paul Eggert.
132774         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
132776 2000-04-02  Paul Eggert  <eggert@twinsun.com>
132778         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
132779         variable in the shell rather than using putenv, which isn't
132780         portable.  This avoids the configure-time inter-test dependency
132781         on the potentially-renamed putenv function.
132783 2000-03-30  Paul Eggert  <eggert@twinsun.com>
132785         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
132786         before checking struct stat.st_blksize, so that
132787         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
132789 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132791         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
132792         since strftime.c uses HAVE_STRFTIME to decide whether to use
132793         the underlying strftime.
132795 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132797         * lib/time/strftime.c (my_strftime): Make sure we call the system
132798         strftime, not ourselves, when invoking the underlying strftime.
132800 2000-03-24  Jim Meyering  <meyering@lucent.com>
132802         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
132803         (charset_alias): Define.
132804         (install-exec-local): Factor out common code.
132805         (uninstall-local): Split lines longer than 80.
132806         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
132807         (SUFFIXES): Define.
132808         (.sed.in.sed): New rule.  Don't redirect directly to $@.
132809         (CLEANFILES): Add ref-add.sed and ref-del.sed.
132811 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
132813         * lib/config.charset: Output a line containing "Packages using this
132814         file".
132815         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
132816         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
132817         ref-del.sed): New rules.
132819 2000-03-17  Jim Meyering  <meyering@lucent.com>
132821         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
132822         Otherwise, include <strings.h>
132824 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
132826         * lib/unicodeio.c (utf8_wctomb): New function.
132827         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
132828         format instead of in UCS-4 with platform dependent endianness.
132830 2000-03-10  Jim Meyering  <meyering@lucent.com>
132832         * m4/lib-check.m4: Look for getspnam in -lgen, too.
132833         From Marco Franzen.
132835 2000-03-07  Paul Eggert  <eggert@twinsun.com>
132837         * lib/savedir.c (savedir): Work even if directory size is
132838         negative; this can happen with some screwy NFS configurations.
132840 2000-03-06  Jim Meyering  <meyering@lucent.com>
132842         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
132843         if it's NULL (because we ran out of memory).  From Bruno Haible.
132845 2000-03-05  Jim Meyering  <meyering@lucent.com>
132847         * lib/localcharset.c ("path-concat.h"): Include.
132848         (get_charset_aliases): Use path_concat instead of ANSI string
132849         concatenation.
132851         * lib/unicodeio.h (PARAMS): Define.
132852         Use it to guard prototype.
132854 2000-03-04  Jim Meyering  <meyering@lucent.com>
132856         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
132857         for lib/localcharset.c.
132859 2000-03-04  Jim Meyering  <meyering@lucent.com>
132861         * lib/Makefile.am (install-exec-local): Create $(libdir) before
132862         installing into it.
132863         (uninstall-local): Uncomment this rule so `make distcheck' works
132864         once again.
132866         * lib/unicodeio.c (<errno.h>): Include it.
132867         (errno): Declare if not defined.
132869         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
132871         * lib/config.charset: New version, incorporating remarks from a linux
132872         i18n mailing list.  From Bruno Haible.
132874 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
132876         * m4/codeset.m4: New file.
132877         * m4/iconv.m4: New file.
132878         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
132880 2000-03-03  Jim Meyering  <meyering@lucent.com>
132882         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
132884 2000-03-02  Jim Meyering  <meyering@lucent.com>
132886         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
132887         the messages come out on separate lines.
132889         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
132890         rather than jm_CHECK_DECLARATIONS.
132891         * m4/decl.m4: Remove now-unused file.
132893         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
132894         geteuid.
132896 2000-03-02  Jim Meyering  <meyering@lucent.com>
132898         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
132900 2000-03-01  Jim Meyering  <meyering@lucent.com>
132902         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
132903         * lib/unicodeio.c: Likewise.
132905 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
132907         * lib/config.charset: New file.
132908         * lib/localcharset.c: New file.
132909         * lib/unicodeio.h, lib/unicodeio.c: New files.
132910         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
132911         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
132912         (noinst_HEADERS): Add unicodeio.h.
132913         (all-local, install-exec-local, charset.alias): New targets.
132915 2000-02-28  Paul Eggert  <eggert@twinsun.com>
132917         * lib/quotearg.c (ALERT_CHAR): New macro.
132918         (quotearg_buffer_restyled): Use it.
132920 2000-02-27  Jim Meyering  <meyering@lucent.com>
132922         * m4/check-decl.m4: Add getenv to the list.
132924 2000-02-27  Jim Meyering  <meyering@lucent.com>
132926         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
132927         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
132929         * lib/backupfile.c: Guard inclusion of stdlib.h with
132930         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
132931         Declare malloc if needed.
132933         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
132934         `#ifndef HAVE_DECL..'
132935         now that autoconf always defines the HAVE_DECL_ symbols.
132936         * lib/human.c: Likewise.
132937         * lib/same.c: Likewise.
132938         * lib/strtoumax.c: Likewise.
132940         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
132941         declaration check was not run.
132942         * lib/hash.c: Likewise.
132943         * lib/human.c: Likewise.
132944         * lib/same.c: Likewise.
132945         * lib/strtoumax.c: Likewise.
132947         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
132948         `.', then first look up the entire `.'-containing string as a login
132949         name.
132951 2000-02-23  Jim Meyering  <meyering@lucent.com>
132953         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
132954         in place of my hack.
132956 2000-02-18  Paul Eggert  <eggert@twinsun.com>
132958         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
132959         (textint): New typedef.
132960         (parser_control): Member year changed from int to textint.
132961         All uses changed.
132962         (YYSTYPE): Removed; replaced by %union with int and textint members.
132963         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
132964         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
132965         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
132966         (tSNUMBER, tUNUMBER): Now of type <textintval>.
132967         (date, number, to_year): Use width of number in digits, not its value,
132968         to determine whether it's a 2-digit year, or a 2-digit time.
132969         (yylex): Store number of digits of numeric tokens.
132970         Reported by John Kendall.
132972         (parser_control): Changed from struct parser_control to typedef (for
132973         consistency).  All uses changed.
132975         (tID): Removed; not used.
132976         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
132978 2000-02-14  Paul Eggert  <eggert@twinsun.com>
132980         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
132981         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
132983 2000-02-12  Jim Meyering  <meyering@lucent.com>
132985         * lib/userspec.c (ISDIGIT): Define it.
132986         (isdigit): Remove definition.
132987         (is_number): Use ISDIGIT, not isdigit.
132988         <libintl.h>: Include.
132989         (_ and N_): Define.
132990         (parse_user_spec): Mark translatable strings.
132992 2000-02-10  Jim Meyering  <meyering@lucent.com>
132994         With these changes, nanosleep.[ch] are finally enough like the other
132995         lib/* replacement files to compile on a few more losing systems.
132997         * lib/nanosleep.h: Don't include config.h.
132998         Remove prototype from declaration of nanosleep.
132999         (PARAMS): Remove now-unneeded definition.
133000         * lib/nanosleep.c: #undef nanosleep.
133001         (rpl_nanosleep): Rename from nanosleep.
133003 2000-02-10  Jim Meyering  <meyering@lucent.com>
133005         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
133006         gnu_nanosleep to rpl_nanosleep.
133008 2000-02-09  Jim Meyering  <meyering@lucent.com>
133010         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
133011         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
133013 2000-02-08  Akim Demaille  <akim@epita.fr>
133015         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
133016         `[' and `]' and remove uses of `changequote'.
133017         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
133018         (AC_SYS_LARGEFILE): Likewise.
133019         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
133020         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
133021         of changequote.
133022         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
133023         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
133024         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
133025         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
133027 2000-02-05  Jim Meyering  <meyering@lucent.com>
133029         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
133030         Remove explicit use of AC_HEADER_TIME.  It is required by
133031         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
133032         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
133033         in autoconf whereby the expansion of the latter ended up preceding
133034         the expansion of its prerequisite, AC_HEADER_TIME.
133035         Reported by Volker Borchert.
133037 2000-02-03  Jim Meyering  <meyering@lucent.com>
133039         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
133041 2000-02-03  Jim Meyering  <meyering@lucent.com>
133043         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
133044         rather than with `#if HAVE_UTMPNAME'.
133046 2000-02-02  Jim Meyering  <meyering@lucent.com>
133048         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
133049         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
133050         Reported by Eli Zaretskii.
133052 2000-02-01  Jim Meyering  <meyering@lucent.com>
133054         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
133056 2000-01-31  Jim Meyering  <meyering@lucent.com>
133058         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
133059         functions.  Add the time.h and sys/time.h headers along with the
133060         AC_REQUIRE'ment of AC_HEADER_TIME.
133062 2000-01-31  Jim Meyering  <meyering@lucent.com>
133064         * lib/nanosleep.h (nanosleep): Guard declaration with
133065         `#if ! HAVE_DECL_NANOSLEEP'.
133066         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
133067         the declaration in that vendor's sys/timers.h.
133068         Reported by Christian Krackowizer.
133070         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
133071         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
133072         (ISPRINT): Likewise.
133073         Reported by Tom Tromey.
133075 2000-01-30  Jim Meyering  <meyering@lucent.com>
133077         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
133079         * m4/prereq.m4 (utmp_includes): Define.
133080         Check for ut_user and ut_name members in both struct utmpx
133081         and struct utmp.
133083 2000-01-30  Jim Meyering  <meyering@lucent.com>
133085         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
133086         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
133087         header files where only utmpx.ut_user is declared.
133089         * lib/readutmp.h (UT_USER): Define.
133091 2000-01-29  Jim Meyering  <meyering@lucent.com>
133093         * m4/lib-check.m4: New file containing library-related checks from
133094         fileutils and sh-utils (textutils had none).
133096 2000-01-28  Jim Meyering  <meyering@lucent.com>
133098         * m4/perl.m4: Change format of warning message to look more like that
133099         from the missing script.  Suggestion from François Pinard.
133101 2000-01-25  Jim Meyering  <meyering@lucent.com>
133103         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
133104         well as time.h in the compile check.
133105         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
133106         Fix typo in cross-compiling case: s/yes/no/.
133108 2000-01-23  Jim Meyering  <meyering@lucent.com>
133110         * m4/jm-macros.m4: Move df-related tests here from
133111         fileutils/configure.in
133113         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
133114         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
133116         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
133117         s/space/ac_fsusage_space/.
133118         (jm_FILE_SYSTEM_USAGE): Take two parameters.
133120         * m4/ftruncate.m4: New file (derived from part of
133121         fileutils/configure.in).
133122         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
133123         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
133125         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
133126         AC_SUBST these here, rather than just in sh-util/configure.in, so
133127         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
133128         all the same.
133129         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
133130         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
133131         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
133132         (AC_SUBST(POW_LIBM)): Likewise.
133133         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
133135 2000-01-23  Jim Meyering  <meyering@lucent.com>
133137         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
133138         obstack.c.
133140 2000-01-22  Jim Meyering  <meyering@lucent.com>
133142         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
133144         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
133146         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
133147         configure.in
133148         (AC_CHECK_HEADERS): Likewise for sh-utils.
133149         (AC_CHECK_HEADERS): Likewise for textutils.
133150         Merge the three lists of headers.
133152         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
133153         from fileutils' configure.in.
133155         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
133156         code. Moved tests into their own function (_jm_DECL_HEADERS) in
133157         check-decl.m4.
133159         * m4/check-decl.m4: Use #if rather than #ifdef.
133160         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
133161         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
133162         (_jm_DECL_HEADERS): Define new function.
133163         (jm_CHECK_DECLARATIONS): Require it.
133165 2000-01-22  Jim Meyering  <meyering@lucent.com>
133167         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
133168         [! HAVE_DECL_STRTOULL]: Declare strtoull.
133169         Required for some AIX systems.  Reported by Christian Krackowizer.
133170         [TESTING] (main): New function.
133172         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
133173         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
133174         letters.
133176         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
133177         iswprint.
133179         * lib/strverscmp.c (ISDIGIT): Define.
133180         (strverscmp): Use ISDIGIT, not isdigit.
133182 2000-01-19  Jim Meyering  <meyering@lucent.com>
133184         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
133185         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
133186         defines `struct timespec' in <sys/time.h>
133188         * m4/c-bs-a.m4: Remove uses of changequote altogether.
133189         Thanks to Akim for explaining.
133191 2000-01-17  Paul Eggert  <eggert@twinsun.com>
133193         * lib/nanosleep.c (nanosleep):
133194         Don't use SA_INTERRUPT to decide whether to call sigaction, as
133195         POSIX.1 doesn't require SA_INTERRUPT and some systems
133196         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
133197         it's been part of POSIX.1 since day 1 (in 1988).
133199 2000-01-17  Jim Meyering  <meyering@lucent.com>
133201         * lib/interlock: Remove unused file.  Reported by François Pinard.
133203 2000-01-16  Paul Eggert  <eggert@twinsun.com>
133205         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
133206         alert, backslash, formfeed, and vertical tab unnecessarily in
133207         shell quoting style.
133209 2000-01-16  Jim Meyering  <meyering@lucent.com>
133211         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
133212         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
133213         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
133214         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
133216 2000-01-16  Jim Meyering  <meyering@lucent.com>
133218         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
133219         because the latter didn't work.
133221 2000-01-15  Jim Meyering  <meyering@lucent.com>
133223         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
133224         (AC_REPLACE_FUNCS): Add memcpy and memset.
133225         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
133226         Add strpbrk.
133227         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
133229 2000-01-12  Jim Meyering  <meyering@lucent.com>
133231         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
133232         (jm_PREREQ): Use it.
133233         (jm_PREREQ_READUTMP): New macro.
133234         (jm_PREREQ): Use it.
133236 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133238         Quote multibyte characters correctly.
133239         * m4/c-bs-a.m4: New file.
133240         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
133241         (jm_PREREQ): Use it.
133243 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133245         * m4/uintmax_t.m4: Port to autoconf 2.13.
133247 2000-01-08  Jim Meyering  <meyering@ascend.com>
133249         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
133250         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
133252 2000-01-04  Jim Meyering  <meyering@ascend.com>
133254         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
133255         jm_STRUCT_DIRENT_D_TYPE.
133256         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
133257         jm_STRUCT_DIRENT_D_INO.
133258         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
133259         jm_STRUCT_UTIMBUF.
133260         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
133261         renamings.
133262         * m4/utime.m4: Likewise.
133264         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
133265         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
133267 2000-01-03  Paul Eggert  <eggert@twinsun.com>
133269         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
133270         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
133272 2000-01-02  Jim Meyering  <meyering@ascend.com>
133274         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
133275         remember if this is necessary.
133277 1999-12-26  Jim Meyering  <meyering@ascend.com>
133279         * m4/jm-macros.m4: Use it here.
133280         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
133282 1999-12-23  Jim Meyering  <meyering@ascend.com>
133284         * m4/jm-macros.m4: Check for clock_gettime (moved from
133285         fileutils/configure.in)
133286         Check for gettimeofday.
133288 1999-12-20  Jim Meyering  <meyering@ascend.com>
133290         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
133291         autoconf-2.14a-1999-12-20.
133293 1999-12-19  Jim Meyering  <meyering@ascend.com>
133295         * m4/lstat-slash.m4: New file.
133296         * m4/jm-macros.m4: Use the new macro:
133297         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133299 1999-12-07  Jim Meyering  <meyering@ascend.com>
133301         * m4/perl.m4: Require that File::Compare be available, too.
133302         Too many systems seem to lack it.
133304         * m4/strftime.m4: Add checks for most of the cpp macros tested in
133305         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
133307 1999-11-18  Paul Eggert  <eggert@twinsun.com>
133309         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
133310         problem with the QNX 4.25 shell, which doesn't propagate exit
133311         status of failed commands inside shell assignments.
133313 1999-11-17  Jim Meyering  <meyering@ascend.com>
133315         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
133317 1999-11-07  Jim Meyering  <meyering@ascend.com>
133319         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
133321 1999-11-06  Jim Meyering  <meyering@ascend.com>
133323         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
133324         * m4/jm-macros.m4 (jm_MACROS): Use it here.
133326 1999-11-05  Jim Meyering  <meyering@ascend.com>
133328         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
133329         configure.in of textutils, fileutils, and sh-utils into this one
133330         (shared between those packages) file.
133331         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
133332         AC_STRUCT_ST_BLKSIZE.
133334 1999-11-03  Jim Meyering  <meyering@ascend.com>
133336         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
133337         of AC_CHECK_TYPE checks includes unistd.h.
133338         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
133339         Suggestion from Akim Demaille.
133341 1999-10-30  Jim Meyering  <meyering@ascend.com>
133343         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
133344         m4-quoted string.
133345         * m4/ls-mntd-fs.m4: Likewise.
133346         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
133347         * m4/jm-winsz1.m4: Likewise.
133349         * m4/const.m4: Remove file, since the fix made it into the experimental
133350         version of autoconf.
133351         * m4/mktime.m4: Likewise.
133353         * m4/check-type.m4: Remove file, now that the latest version of
133354         AC_CHECK_TYPE takes a third arg to specify additional #includes.
133356         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
133357         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
133358         AC_CHECK_TYPE.
133360 1999-10-04  Jim Meyering  <meyering@ascend.com>
133362         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
133364 1999-09-22  Paul Eggert  <eggert@twinsun.com>
133366         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
133367         2.95.1 bug with HP-UX 10.20.
133369 1999-09-17  Jim Meyering  <meyering@ascend.com>
133371         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
133372         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
133373         due to missing strdup (against sh-utils-2.0).
133375 1999-08-29  Jim Meyering  <meyering@ascend.com>
133377         * m4/jm-macros.m4: Require jm_BISON.
133378         * m4/bison.m4: New file.
133380 1999-08-17  Paul Eggert  <eggert@twinsun.com>
133382         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
133383         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
133385 1999-08-05  Jim Meyering  <meyering@ascend.com>
133387         * m4/getline.m4: Rename test file from conftestdata to conftest.data
133388         to avoid conflicts with `conftest' on 8+3 filesystems.
133389         Suggestion from Eli Zaretskii.
133391 1999-08-04  Jim Meyering  <meyering@ascend.com>
133393         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
133394         fileutils and sh-utils (textutils's getline test was inadequate).
133395         (AM_FUNC_GETLINE): Run this test.
133396         (AC_CHECK_FUNCS): Check for getdelim.
133397         Reported by Bob Proulx.
133399 1999-08-02  Jim Meyering  <meyering@ascend.com>
133401         * m4/jm-macros.m4: Add a comment.
133403 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133405         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
133406         <inttypes.h> defines strtoumax as a macro (and not as a
133407         function).
133409 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133411         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
133412         that we can shift, multiply and divide unsigned long long
133413         values; Ultrix cc can't do it.
133415 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133417         * m4/mktime.m4: New file, which is a preview of what should appear
133418         in the next public autoconf release.
133420 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133422         * m4/lfs.m4: Remove this file.
133423         * m4/largefile.m4: New file.  It contains the old contents of
133424         lfs.m4, except that all names with prefix AC_LFS have been
133425         changed to use the prefix AC_SYS_LARGEFILE instead, to be
133426         compatible with future autoconf versions.  Also, some minor m4
133427         quoting problems have been fixed.
133429 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133431         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
133432         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
133433         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
133434         and simplify the shell code.
133436 1999-08-01  Jim Meyering  <meyering@ascend.com>
133438         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
133439         m4.
133441 1999-07-20  Jim Meyering  <meyering@ascend.com>
133443         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
133445 1999-07-15  Jim Meyering  <meyering@ascend.com>
133447         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
133449 1999-05-22  Jim Meyering  <meyering@ascend.com>
133451         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
133453 1999-05-20  Jim Meyering  <meyering@ascend.com>
133455         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
133456         Add a colon after each `then' in case $4 is empty.
133458 1999-05-16  Jim Meyering  <meyering@ascend.com>
133460         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
133462 1999-05-10  Jim Meyering  <meyering@ascend.com>
133464         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
133466         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
133467         AC_FUNC_MKTIME.
133469 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
133471         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
133473 1999-05-04  Paul Eggert  <eggert@twinsun.com>
133475         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
133476         not CPPFLAGS, so that linking works correctly in IRIX.
133478 1999-04-30  Paul Eggert  <eggert@twinsun.com>
133480         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
133482 1999-04-20  Paul Eggert  <eggert@twinsun.com>
133484         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
133485         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
133486         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
133487         jm_AC_TYPE_UNSIGNED_LONG_LONG.
133488         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
133490         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
133492 1999-04-20  Jim Meyering  <meyering@ascend.com>
133494         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
133495         AC_REPLACE xstroull if necessary.  From Paul Eggert.
133496         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
133498 1999-04-18  Jim Meyering  <meyering@ascend.com>
133500         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
133501         * m4/jm-macros.m4: Use it.
133503 1999-04-06  Jim Meyering  <meyering@ascend.com>
133505         * m4/strftime.m4: Remove test for %f.
133507 1999-03-29  Jim Meyering  <meyering@ascend.com>
133509         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
133510         superset of the AC_TYPE_* checks in the textutils, fileutils,
133511         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
133512         AC_TYPE_PID_T.
133514 1999-03-28  Jim Meyering  <meyering@ascend.com>
133516         * m4/jm-macros.m4: Define GNU_PACKAGE here.
133517         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
133518         replaced e.g., in the *.sh files of the sh-utils.
133520 1999-03-20  Jim Meyering  <meyering@ascend.com>
133522         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
133523         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
133524         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
133526 1999-03-19  Jim Meyering  <meyering@ascend.com>
133528         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
133530 1999-03-12  Jim Meyering  <meyering@ascend.com>
133532         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
133534 1999-03-07  Jim Meyering  <meyering@ascend.com>
133536         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
133537         declared.
133539 1999-02-17  Jim Meyering  <meyering@ascend.com>
133541         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
133542         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
133544 1999-02-07  Jim Meyering  <meyering@ascend.com>
133546         * m4/group-member.m4: New file -- extracted from sh-utils'
133547         configure.in.
133549         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
133550         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
133552 1999-02-06  Jim Meyering  <meyering@ascend.com>
133554         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
133555         * m4/fnmatch.m4: Likewise.
133556         * m4/getgroups.m4: Likewise.
133557         * m4/lstat.m4: Likewise.
133558         * m4/malloc.m4: Likewise.
133559         * m4/putenv.m4: Likewise.
133560         * m4/realloc.m4: Likewise.
133561         * m4/regex.m4: Likewise.
133562         * m4/stat.m4: Likewise.
133563         * m4/strftime.m4: Likewise.
133564         Suggestion from Alain Magloire.
133566         * m4/chown.m4: Use `.$ac_objext', not `.o'.
133567         * m4/fnmatch.m4: Likewise.
133568         * m4/getgroups.m4: Likewise.
133569         * m4/getline.m4: Likewise.
133570         * m4/lstat.m4: Likewise.
133571         * m4/malloc.m4: Likewise.
133572         * m4/memcmp.m4: Likewise.
133573         * m4/putenv.m4: Likewise.
133574         * m4/realloc.m4: Likewise.
133575         * m4/regex.m4: Likewise.
133576         * m4/stat.m4: Likewise.
133577         * m4/strftime.m4: Likewise.
133578         Suggestion from Alain Magloire.
133580         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
133581         an argument.
133583         * m4/regex.m4: Add a run-time Test for proper operation of
133584         re_compile_pattern.
133586 1999-01-31  Jim Meyering  <meyering@ascend.com>
133588         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
133590 1999-01-30  Jim Meyering  <meyering@ascend.com>
133592         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
133594         * m4/jm-mktime.m4: Make this a wrapper around the official
133595         AM_FUNC_MKTIME rather than my private copy, now that the official one
133596         is up to date.
133597         * m4/mktime.m4: Remove file.
133599         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
133600         * m4/uptime.m4: Likewise.
133601         * m4/uintmax_t.m4: Likewise.
133603 1999-01-28  Jim Meyering  <meyering@ascend.com>
133605         * m4/jm-macros.m4: Use jm_AFS.
133606         * m4/afs.m4: New file (from fileutils' configure.in).
133608         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
133609         * m4/chown.m4: Likewise.
133610         * m4/d-ino.m4: Likewise.
133611         * m4/d-type.m4: Likewise.
133612         * m4/fnmatch.m4: Likewise.
133613         * m4/getgroups.m4: Likewise.
133614         * m4/gettext.m4: Likewise.
133615         * m4/jm-mktime.m4: Likewise.
133616         * m4/jm-winsz2.m4: Likewise.
133617         * m4/lcmessage.m4: Likewise.
133618         * m4/ls-mntd-fs.m4: Likewise.
133619         * m4/malloc.m4: Likewise.
133620         * m4/memcmp.m4: Likewise.
133621         * m4/putenv.m4: Likewise.
133622         * m4/realloc.m4: Likewise.
133623         * m4/st_mtim.m4: Likewise.
133624         * m4/strftime.m4: Likewise.
133626 1999-01-16  Jim Meyering  <meyering@ascend.com>
133628         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
133629         (ARGMATCH_DIE_DECL): Define.
133631 1999-01-12  Jim Meyering  <meyering@ascend.com>
133633         * m4/Makefile.am.in: Rewrite to avoid using fmt.
133634         Reported by Lars Hecking.
133636 1999-01-10  Jim Meyering  <meyering@ascend.com>
133638         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
133639         gross kludge.
133640         * m4/inttypes_h.m4: Likewise.
133641         * m4/lstat.m4: Likewise.
133642         * m4/malloc.m4: Likewise.
133643         * m4/readdir.m4: Likewise.
133644         * m4/realloc.m4: Likewise.
133645         * m4/st_dm_mode.m4: Likewise.
133646         * m4/stat.m4: Likewise.
133647         * m4/utimbuf.m4: Likewise.
133648         * m4/utimes.m4: Likewise.
133650         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
133651         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
133652         comments in config.h.in are meaningful.
133654         * m4/jm-macros.m4: Require autoconf-2.13 here.
133656         * m4/regex.m4: By default, don't use the included regex.c on systems
133657         with glibc 2.  Suggestion from Uli Drepper.
133659 1999-01-02  Jim Meyering  <meyering@ascend.com>
133661         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
133663 1998-12-18  Jim Meyering  <meyering@ascend.com>
133665         * m4/Makefile.am.in (Makefile.am): Simplify rule.
133666         Based on a suggestion from Lars Hecking.
133668 1998-11-16  Paul Eggert  <eggert@twinsun.com>
133670         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
133672 1998-11-16  Jim Meyering  <meyering@ascend.com>
133674         * m4/lfs.m4: Double-quote the `uname...` expression.
133676 1998-11-14  Jim Meyering  <meyering@ascend.com>
133678         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
133679         * m4/stat.m4: Likewise.
133681 1998-11-03  Jim Meyering  <meyering@ascend.com>
133683         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
133684         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
133686 1998-10-18  Jim Meyering  <meyering@ascend.com>
133688         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
133690 1998-10-17  Jim Meyering  <meyering@ascend.com>
133692         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
133693         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
133694         calls for those previously hard-coded headers.  Instead, take a new
133695         parameter.
133696         (jm_CHECK_DECLARATIONS): Reflect interface change.
133697         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
133698         (jm_CHECK_DECL_LOCALTIME_R): New macro.
133700         * m4/mktime.m4: Test for spring-forward gap before long-running test.
133702 1998-10-14  Jim Meyering  <meyering@ascend.com>
133704         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
133705         instead of "TZ=America/Vancouver".  From Paul Eggert.
133707 1998-10-11  Jim Meyering  <meyering@ascend.com>
133709         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
133710         This adds a test for a recently added compatibility fix for mktime.c.
133711         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
133713 1998-09-27  Jim Meyering  <meyering@ascend.com>
133715         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
133717         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
133718         ../configure.in, including a change from Gordon Matzigkeit to allow
133719         cross-compiling for the Hurd.
133721         * m4/glibc.m4: New file/macro to test for the GNU C Library
133722         versions 1 and 2.  From Gordon Matzigkeit.
133723         Indent.
133725 1998-09-21  Jim Meyering  <meyering@ascend.com>
133727         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
133729 1998-08-18  Paul Eggert  <eggert@twinsun.com>
133731         Port nanosecond-resolution times to UnixWare 2.1.2 and
133732         pedantic Solaris 2.6.
133734         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
133735         AC_STRUCT_ST_MTIM.
133736         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
133737         Generate name of ns member, instead of just 1 or undef.
133738         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
133740 1998-08-15  Jim Meyering  <meyering@ascend.com>
133742         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
133743         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
133744         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
133745         instead of jm_TYPE_SSIZE_T.
133747 1998-08-12  Jim Meyering  <meyering@ascend.com>
133749         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
133751 1998-08-02  Jim Meyering  <meyering@ascend.com>
133753         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
133754         in acconfig.h manually.
133756 1998-07-31  Paul Eggert  <eggert@twinsun.com>
133758         * m4/st_mtim.m4: New file.
133760 1998-07-28  Jim Meyering  <meyering@ascend.com>
133762         * m4/utimes.m4: Undef stat.
133764 1998-07-25  Jim Meyering  <meyering@ascend.com>
133766         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
133767         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
133769 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
133771         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
133772         uid and gid actually remain unchanged.
133774 1998-07-07  Jim Meyering  <meyering@ascend.com>
133776         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
133778 1998-07-04  Jim Meyering  <meyering@ascend.com>
133780         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
133781         to prove that this macro can be used in packages without regex.c.
133783 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
133785         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
133786         is to be used.
133788 1998-07-03  Jim Meyering  <meyering@ascend.com>
133790         * m4/gettext.m4: Add -lintl if it's found to be necessary.
133792         * m4/gettext.m4: New file -- from gettext-0.10.35.
133793         * m4/lcmessage.m4: Likewise.
133794         * m4/progtest.m4: Likewise.
133796         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
133797         * m4/jm-macros.m4: Require the new macro.
133799 1998-06-29  Jim Meyering  <meyering@ascend.com>
133801         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
133802         for the definition of NGROUPS (used in a system header included
133803         by sys/mount.h).
133805 1998-06-28  Jim Meyering  <meyering@ascend.com>
133807         * m4/ls-mntd-fs.m4: New file.
133808         * m4/fstypename.m4: New file.
133810         * m4/jm-macros.m4: Require the new macro.
133811         * m4/jm-glibc-io.m4: New file.
133813 1998-05-19  Jim Meyering  <meyering@ascend.com>
133815         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
133816         * m4/lchown.m4: New file.
133818         * m4/Makefile.am.in: New file.
133819         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
133821 1998-05-14  Jim Meyering  <meyering@ascend.com>
133823         * m4/Makefile.am (EXTRA_DIST): Add them.
133824         * m4/jm-macros.m4: New file.
133825         * m4/utimbuf.m4: New file.
133827 1998-05-12  Jim Meyering  <meyering@ascend.com>
133829         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
133831 1998-05-11  Jim Meyering  <meyering@ascend.com>
133833         * m4/isc-posix.m4: New file.
133835 1998-05-10  Jim Meyering  <meyering@ascend.com>
133837         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
133839 1998-05-09  Jim Meyering  <meyering@ascend.com>
133841         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
133842         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
133843         with automake.
133845         * m4/ssize_t.m4: New file.
133846         * m4/mktime.m4: Remove file -- the new automake has this now.
133848 1998-04-26  Jim Meyering  <meyering@ascend.com>
133850         * m4/assert.m4: New file.
133851         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
133853 1998-04-05  Jim Meyering  <meyering@ascend.com>
133855         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
133856         (jm_PREREQ): Use it here.
133858 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
133860         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
133861         in acconfig.h.
133863 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
133865         * m4/prereq.m4: New file.
133866         * m4/error.m4: New file.
133867         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
133869 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
133871         * m4/getline.m4: Don't set am_cv_func_working_getline before the
133872         cache-check for the same variable -- that defeated the purpose of
133873         the test; the test program was never run.  This was a problem only
133874         on systems with losing getline functions -- HP-UX 10.20 is one.
133875         Reported by Bjorn Helgaas.
133877 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
133879         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
133881 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
133883         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
133885         * m4/const.m4: New file.  Use an initializer in this declaration
133886         typedef int charset[2]; const charset x;
133887         Reported by Bob Glickstein.
133889 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
133891         * m4/chown.m4: Fix reversed types on -1 args to chown.
133892         From Kaveh Ghazi.
133894 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
133896         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
133897         Add lseek and memchr.
133899         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
133900         T.E.Dickey <dickey@clark.net> said that some older preprocessors
133901         have a 20-character limit on names.
133903 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
133905         * m4/inttypes_h.m4: New file.
133906         * m4/uintmax_t.m4: New file.
133907         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
133910         -----
133912         Local Variables:
133913         coding: utf-8
133914         End:
133916         Copyright (C) 1997-2020 Free Software Foundation, Inc.
133918         Copying and distribution of this file, with or without
133919         modification, are permitted provided the copyright notice
133920         and this notice are preserved.